aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-07-18 15:41:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-07-18 15:41:09 +0000
commit0610b1556dd41a0f91dce4356e8609a29fc7d881 (patch)
tree14762fb48c2c080d82d9826715252d9217d6025f /include
parent410ffc8c219ff2c1f2a5cdffe7ab64115869c80f (diff)
downloadupstream-0610b1556dd41a0f91dce4356e8609a29fc7d881.tar.gz
upstream-0610b1556dd41a0f91dce4356e8609a29fc7d881.tar.bz2
upstream-0610b1556dd41a0f91dce4356e8609a29fc7d881.zip
include: modify kernel.mk to build empty kmod packages if the referenced symbols do not exist in the config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37400 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index cbf342a0d2..5442c9153f 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -176,9 +176,13 @@ $(call KernelPackage/$(1)/config)
endif
$(if $(CONFIG_PACKAGE_kmod-$(1)),
else
- compile: kmod-$(1)-unavailable
- kmod-$(1)-unavailable:
- @echo "WARNING: kmod-$(1) is not available in the kernel config" >&2
+ compile: $(1)-disabled
+ $(1)-disabled:
+ @echo "WARNING: kmod-$(1) is not available in the kernel config - generating empty package" >&2
+
+ define Package/kmod-$(1)/install
+ true
+ endef
)
endif
$$(eval $$(call BuildPackage,kmod-$(1)))