diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-07-18 15:41:09 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-07-18 15:41:09 +0000 |
commit | 6a559ff95e72c9b53cb32dfedf59c5a256e62d5c (patch) | |
tree | 69cfdd31267e0ccb0bd4f994d6a4b5f56d532bae /include | |
parent | a5f93fad9d8f76deedf6eb0ffb62d574ebe68b59 (diff) | |
download | mtk-20170518-6a559ff95e72c9b53cb32dfedf59c5a256e62d5c.zip mtk-20170518-6a559ff95e72c9b53cb32dfedf59c5a256e62d5c.tar.gz mtk-20170518-6a559ff95e72c9b53cb32dfedf59c5a256e62d5c.tar.bz2 |
include: modify kernel.mk to build empty kmod packages if the referenced symbols do not exist in the config
SVN-Revision: 37400
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index cbf342a..5442c91 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))) |