summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-20 07:24:10 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-20 07:24:10 +0000
commit392ead671e8400a31ce50447efa2c1ab8060875b (patch)
treeef93a2f96c7395186705a36a2b37d2681c94df1b
parent349108bf57ef84c4c3719ad7995aeaf6a669a95f (diff)
Ensure KERNEL_HEADER_PATCH_DIR is always defined + empty dir for x86
-rw-r--r--target/device/x86/i386/Makefile.in2
-rw-r--r--toolchain/kernel-headers/kernel-headers-new.makefile3
2 files changed, 5 insertions, 0 deletions
diff --git a/target/device/x86/i386/Makefile.in b/target/device/x86/i386/Makefile.in
index 08ae1b1a2..c1c6ac0c1 100644
--- a/target/device/x86/i386/Makefile.in
+++ b/target/device/x86/i386/Makefile.in
@@ -15,3 +15,5 @@ endif
else
LINUX26_FORMAT=$(strip $(BR2_PACKAGE_LINUX_FORMAT))
endif
+
+KERNEL_HEADERS_PATCH_DIR:=$(BR2_BOARD_PATH)/kernel-header-patches
diff --git a/toolchain/kernel-headers/kernel-headers-new.makefile b/toolchain/kernel-headers/kernel-headers-new.makefile
index 55fff4a73..1a8a83fde 100644
--- a/toolchain/kernel-headers/kernel-headers-new.makefile
+++ b/toolchain/kernel-headers/kernel-headers-new.makefile
@@ -49,6 +49,9 @@ LINUX_HEADERS_IS_KERNEL=y
endif
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
+# Need to redefine KERNEL_HEADERS_PATCH_DIR if you want
+# board specific kernel headers
+KERNEL_HEADERS_PATCH_DIR:=toolchain/kernel-headers/empty
$(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
@echo "*** Using kernel-headers generated from kernel source"