ソースを参照

include: modify kernel.mk to build empty kmod packages if the referenced symbols do not exist in the config

SVN-Revision: 37400
Jo-Philipp Wich 12 年 前
コミット
6a559ff95e
1 ファイル変更7 行追加3 行削除
  1. 7 3
      include/kernel.mk

+ 7 - 3
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)))