Skip to content

Commit

Permalink
kernel: extract asn1_decoder.ko
Browse files Browse the repository at this point in the history
The asn1_decoder.ko module is needed by the kmod-nf-nathelper-extra
package in kernel 4.19, extract it and add the missing dependencies.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
hauke committed Dec 15, 2018
1 parent 36bf45f commit 35e0f60
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package/kernel/linux/modules/crypto.mk
Expand Up @@ -570,11 +570,10 @@ $(eval $(call KernelPackage,crypto-pcompress))


define KernelPackage/crypto-rsa define KernelPackage/crypto-rsa
TITLE:=RSA algorithm TITLE:=RSA algorithm
DEPENDS:=@!LINUX_3_18 +kmod-crypto-manager DEPENDS:=@!LINUX_3_18 +kmod-crypto-manager +kmod-asn1-decoder
KCONFIG:= CONFIG_CRYPTO_RSA KCONFIG:= CONFIG_CRYPTO_RSA
HIDDEN:=1 HIDDEN:=1
FILES:= \ FILES:= \
$(LINUX_DIR)/lib/asn1_decoder.ko \
$(LINUX_DIR)/lib/mpi/mpi.ko \ $(LINUX_DIR)/lib/mpi/mpi.ko \
$(LINUX_DIR)/crypto/akcipher.ko \ $(LINUX_DIR)/crypto/akcipher.ko \
$(LINUX_DIR)/crypto/rsa_generic.ko $(LINUX_DIR)/crypto/rsa_generic.ko
Expand Down
11 changes: 11 additions & 0 deletions package/kernel/linux/modules/lib.mk
Expand Up @@ -260,3 +260,14 @@ define KernelPackage/lib-cordic/description
endef endef


$(eval $(call KernelPackage,lib-cordic)) $(eval $(call KernelPackage,lib-cordic))


define KernelPackage/asn1-decoder
SUBMENU:=$(LIB_MENU)
TITLE:=Simple ASN1 decoder
KCONFIG:= CONFIG_ASN1
HIDDEN:=1
FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
endef

$(eval $(call KernelPackage,asn1-decoder))
2 changes: 1 addition & 1 deletion package/kernel/linux/modules/netfilter.mk
Expand Up @@ -539,7 +539,7 @@ define KernelPackage/nf-nathelper-extra
KCONFIG:=$(KCONFIG_NF_NATHELPER_EXTRA) KCONFIG:=$(KCONFIG_NF_NATHELPER_EXTRA)
FILES:=$(foreach mod,$(NF_NATHELPER_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko) FILES:=$(foreach mod,$(NF_NATHELPER_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
AUTOLOAD:=$(call AutoProbe,$(notdir $(NF_NATHELPER_EXTRA-m))) AUTOLOAD:=$(call AutoProbe,$(notdir $(NF_NATHELPER_EXTRA-m)))
DEPENDS:=+kmod-nf-nat +kmod-lib-textsearch +kmod-ipt-raw DEPENDS:=+kmod-nf-nat +kmod-lib-textsearch +kmod-ipt-raw +LINUX_4_19:kmod-asn1-decoder
endef endef


define KernelPackage/nf-nathelper-extra/description define KernelPackage/nf-nathelper-extra/description
Expand Down

0 comments on commit 35e0f60

Please sign in to comment.