fix kmod-crypto, emit warning messages for kmod packages that cannot be built due...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 8 Sep 2007 23:33:01 +0000 (23:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 8 Sep 2007 23:33:01 +0000 (23:33 +0000)
SVN-Revision: 8697

include/kernel.mk
package/kernel/modules/other.mk

index b82668e..b2a7476 100644 (file)
@@ -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)))
 
index 475755b..11d1aa8 100644 (file)
@@ -24,31 +24,31 @@ define KernelPackage/crypto
   SUBMENU:=$(EMENU)
   TITLE:=CryptoAPI modules
   KCONFIG:= \
-       CONFIG_CRYPTO_HMAC \
-       CONFIG_CRYPTO_NULL \
-       CONFIG_CRYPTO_MD4 \
-       CONFIG_CRYPTO_MD5 \
-       CONFIG_CRYPTO_SHA1 \
-       CONFIG_CRYPTO_SHA256 \
-       CONFIG_CRYPTO_SHA512 \
-       CONFIG_CRYPTO_WP512 \
-       CONFIG_CRYPTO_TGR192 \
-       CONFIG_CRYPTO_DES \
-       CONFIG_CRYPTO_BLOWFISH \
-       CONFIG_CRYPTO_TWOFISH \
-       CONFIG_CRYPTO_SERPENT \
-       CONFIG_CRYPTO_AES \
-       CONFIG_CRYPTO_CAST5 \
-       CONFIG_CRYPTO_CAST6 \
-       CONFIG_CRYPTO_TEA \
-       CONFIG_CRYPTO_ARC4 \
-       CONFIG_CRYPTO_KHAZAD \
-       CONFIG_CRYPTO_ANUBIS \
-       CONFIG_CRYPTO_DEFLATE \
-       CONFIG_CRYPTO_MICHAEL_MIC \
-       CONFIG_CRYPTO_CRC32C \
-       CONFIG_CRYPTO_ECB \
-       CONFIG_CRYPTO_BLKCIPHER 
+       CONFIG_CRYPTO_HMAC=m \
+       CONFIG_CRYPTO_NULL=m \
+       CONFIG_CRYPTO_MD4=m \
+       CONFIG_CRYPTO_MD5=m \
+       CONFIG_CRYPTO_SHA1=m \
+       CONFIG_CRYPTO_SHA256=m \
+       CONFIG_CRYPTO_SHA512=m \
+       CONFIG_CRYPTO_WP512=m \
+       CONFIG_CRYPTO_TGR192=m \
+       CONFIG_CRYPTO_DES=m \
+       CONFIG_CRYPTO_BLOWFISH=m \
+       CONFIG_CRYPTO_TWOFISH=m \
+       CONFIG_CRYPTO_SERPENT=m \
+       CONFIG_CRYPTO_AES=m \
+       CONFIG_CRYPTO_CAST5=m \
+       CONFIG_CRYPTO_CAST6=m \
+       CONFIG_CRYPTO_TEA=m \
+       CONFIG_CRYPTO_ARC4=m \
+       CONFIG_CRYPTO_KHAZAD=m \
+       CONFIG_CRYPTO_ANUBIS=m \
+       CONFIG_CRYPTO_DEFLATE=m \
+       CONFIG_CRYPTO_MICHAEL_MIC=m \
+       CONFIG_CRYPTO_CRC32C=m \
+       CONFIG_CRYPTO_ECB=m \
+       CONFIG_CRYPTO_BLKCIPHER=m
   FILES:=$(LINUX_DIR)/crypto/*.$(LINUX_KMOD_SUFFIX)
 endef