wireguard: add support for 5.15

This commit is contained in:
lean 2022-01-01 13:13:48 +08:00
parent ae4bace648
commit 23d753e060

View File

@ -446,24 +446,13 @@ endef
$(eval $(call KernelPackage,crypto-kpp))
define KernelPackage/crypto-lib-blake2s-generic
TITLE:=BLAKE2s hash function library generic
DEPENDS:=@(!CONFIG_arm&&!TARGET_x86)
KCONFIG:=CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC
HIDDEN:=1
FILES:= $(LINUX_DIR)/lib/crypto/libblake2s-generic.ko
$(call AddDepends/crypto,+PACKAGE_kmod-crypto-hash:kmod-crypto-hash)
endef
$(eval $(call KernelPackage,crypto-lib-blake2s-generic))
define KernelPackage/crypto-lib-blake2s
TITLE:=BLAKE2s hash function library
DEPENDS:=+kmod-crypto-lib-blake2s-generic
KCONFIG:=CONFIG_CRYPTO_LIB_BLAKE2S
HIDDEN:=1
FILES:= $(LINUX_DIR)/lib/crypto/libblake2s.ko
FILES:= \
$(LINUX_DIR)/lib/crypto/libblake2s.ko \
$(LINUX_DIR)/lib/crypto/libblake2s-generic.ko
$(call AddDepends/crypto,+PACKAGE_kmod-crypto-hash:kmod-crypto-hash)
endef
@ -481,11 +470,6 @@ define KernelPackage/crypto-lib-blake2s/arm
FILES+=$(LINUX_DIR)/arch/arm/crypto/blake2s-arm.ko
endef
ifdef KernelPackage/crypto-lib-blake2s/$(ARCH)
KernelPackage/crypto-lib-blake2s/$(CRYPTO_TARGET)=\
$(KernelPackage/crypto-lib-blake2s/$(ARCH))
endif
$(eval $(call KernelPackage,crypto-lib-blake2s))