summaryrefslogtreecommitdiff
path: root/include/kernel.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index b82668e..b2a7476 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -123,6 +123,12 @@ $(call KernelPackage/$(1)/description)
$(call KernelPackage/$(1)/install,$$(1))
endef
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"
+ )
endif
$$(eval $$(call BuildPackage,kmod-$(1)))