ft_utils/0001-update-kernel-dir-in-makefile.patch
2023-12-15 10:08:54 +08:00

40 lines
1.1 KiB
Diff

From a94e38486e246812025baf65b2f3d33c6289ccce Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
Date: Fri, 15 Dec 2023 09:37:44 +0800
Subject: [PATCH] update kernel dir in makefile
---
ashmem/src/Makefile | 2 +-
binder/src/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ashmem/src/Makefile b/ashmem/src/Makefile
index f11e08b..301a5ba 100644
--- a/ashmem/src/Makefile
+++ b/ashmem/src/Makefile
@@ -5,7 +5,7 @@ obj-m := ashmem_linux.o
ashmem_linux-y := deps.o ashmem.o
else
-KERNEL_SRC ?= /lib/modules/$(shell dir /lib/modules)/build
+KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
all:
$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD
diff --git a/binder/src/Makefile b/binder/src/Makefile
index 74858b1..3c0b52d 100644
--- a/binder/src/Makefile
+++ b/binder/src/Makefile
@@ -5,7 +5,7 @@ ifneq ($(KERNELRELEASE),)
obj-m := binder_linux.o
binder_linux-y := deps.o binder.o binder_alloc.o
else
-KERNEL_SRC ?= /lib/modules/$(shell dir /lib/modules)/build
+KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
all:
$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD
--
2.33.0