summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/kernel.mk6
-rw-r--r--package/kernel/modules/other.mk50
2 files changed, 31 insertions, 25 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index b82668ea48..b2a7476aa0 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)))
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 475755b6d9..11d1aa8bf0 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -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