summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-23 17:49:05 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-23 17:49:25 +0200
commit45e52ed75cd90baeab7916086614e998188079df (patch)
tree2a7ba5b378e6ea6b496af202c0a5b5f559c225fe /toolchain/kernel-headers/Makefile
parentea8ec7c246cf8a4e7371cdb4da3fe296e6896796 (diff)
discussed with phil, do not split kernel patches between kernel-headers and kernel, can make issues
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r--toolchain/kernel-headers/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 36f562dc9..16f126da2 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -7,7 +7,15 @@ include $(TOPDIR)/mk/linux.mk
include ${TOPDIR}/mk/kernel-vars.mk
include ${TOPDIR}/mk/buildhlp.mk
-$(WRKBUILD)/.headers:
+$(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched:
+ $(TRACE) kernel-patch
+ $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
+ ../linux/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+ $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
+ ../$(ARCH)/$(ADK_TARGET_SYSTEM)/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+ touch $@
+
+$(WRKBUILD)/.headers: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched
${KERNEL_MAKE_ENV} $(MAKE) -C $(WRKBUILD) ${KERNEL_MAKE_OPTS} headers_check
${KERNEL_MAKE_ENV} $(MAKE) -C $(WRKBUILD) ${KERNEL_MAKE_OPTS} \
INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)/usr \