summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-26 13:35:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-26 13:36:04 +0200
commitc280c23b8d8c3ff9f7ba47d8bbd403b8691c8e3c (patch)
tree8114b6fe94a1e1c0a875562e83761a003e6b2dcd
parent94df8342ab9065f5ebb1336d37720ec0a8ca637d (diff)
allow to disable kernel patches
-rw-r--r--target/config/Config.in.adk16
-rw-r--r--toolchain/kernel-headers/Makefile5
2 files changed, 21 insertions, 0 deletions
diff --git a/target/config/Config.in.adk b/target/config/Config.in.adk
index 433404cc6..9938b68c1 100644
--- a/target/config/Config.in.adk
+++ b/target/config/Config.in.adk
@@ -22,6 +22,22 @@ config ADK_DISABLE_HONOUR_CFLAGS
help
Disable honour CFLAGS checks.
+config ADK_DISABLE_KERNEL_PATCHES
+ bool "Disable global kernel patches"
+ default n
+ help
+ Disable all global kernel patches.
+ This might prevent the cross-compilation on
+ non-Linux targets. Useful for bug reporting on LKML.
+
+config ADK_DISABLE_TARGET_KERNEL_PATCHES
+ bool "Disable target specific kernel patches"
+ default n
+ help
+ Disable all target specific kernel patches.
+ This might render a system unusable, when external
+ kernel patches are required for bootup.
+
config ADK_WGET_TIMEOUT
int "Set wget timeout"
default 10
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 493f16ea9..f3ce1fea4 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -8,11 +8,16 @@ include ${TOPDIR}/mk/kernel-vars.mk
include ${TOPDIR}/mk/buildhlp.mk
$(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched:
+ifeq ($(ADK_DISABLE_KERNEL_PATCHES),)
$(TRACE) kernel-patch
$(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
$(TOPDIR)/target/linux/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+endif
+ifeq ($(ADK_DISABLE_TARGET_KERNEL_PATCHES),)
+ $(TRACE) kernel-target-patch
$(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
$(TOPDIR)/target/$(ARCH)/$(ADK_TARGET_SYSTEM)/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
+endif
ifeq ($(ADK_KERNEL_ADDON_GRSEC),y)
$(TRACE) grsec-kernel-patch
$(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \