summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:52 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:45:27 +0100
commiteebde77970ce3476e24d11e4adad992f5b670784 (patch)
treed2cf428dbc5bff9b8f37a81b8e6a7cbf2034f116 /mk
parent4935edd89d6019323d7c67fd9692cebe0f110496 (diff)
allow disabling kernel customisation completely
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/kernel.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/kernel.mk b/mk/kernel.mk
index 2ce156694..d5288cd7e 100644
--- a/mk/kernel.mk
+++ b/mk/kernel.mk
@@ -33,6 +33,7 @@ IDEPENDK_$(1):=kernel ($(KERNEL_VERSION)) $(foreach pkg,$(5),", $(pkg)")
PKG_$(1) := $(PACKAGE_DIR)/kmod-$(2)_$(KERNEL_VERSION)-$(KERNEL_RELEASE)_$(CPU_ARCH).$(PKG_SUFFIX)
I_$(1) := $(KMOD_BUILD_DIR)/ipkg/$(2)
+ifeq ($${ADK_TARGET_KERNEL_CUSTOMISING},y)
ifeq ($$(ADK_KPACKAGE_KMOD_$(1)),m)
TARGETS+=$$(PKG_$(1))
endif
@@ -40,6 +41,7 @@ ifeq ($$(ADK_KPACKAGE_KMOD_$(1)),y)
TARGETS+=$$(PKG_$(1))
INSTALL_TARGETS+=$$(PKG_$(1))
endif
+endif
$$(PKG_$(1)):
rm -rf $$(I_$(1))