aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2020-07-09 21:16:15 +0200
committerPetr Štetiar <ynezz@true.cz>2020-07-11 13:33:28 +0200
commit4d92a558f26b910de84661b3c273ae2ff9b2f3e1 (patch)
tree11f21a96db6f01ee638b735ac0bacf75e0b7fda0
parent61b36ee9ba8dcf2b7a935900af603a946408c6ab (diff)
downloadupstream-4d92a558f26b910de84661b3c273ae2ff9b2f3e1.tar.gz
upstream-4d92a558f26b910de84661b3c273ae2ff9b2f3e1.tar.bz2
upstream-4d92a558f26b910de84661b3c273ae2ff9b2f3e1.zip
linux-firmware: package EIP197 mini firmware
Quoting part of original message from eefb5f741015 commit in linux-firmware repository: This adds the "minifw" version of the EIP197 firmware, which the inside- secure driver will use as a fallback if the original full-featured firmware cannot be found. This allows for using the inside-secure driver and hardware without access to "official" firmware only available under NDA. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
-rw-r--r--package/firmware/linux-firmware/misc.mk9
-rw-r--r--package/kernel/linux/modules/crypto.mk10
2 files changed, 15 insertions, 4 deletions
diff --git a/package/firmware/linux-firmware/misc.mk b/package/firmware/linux-firmware/misc.mk
new file mode 100644
index 0000000000..d0956f77b3
--- /dev/null
+++ b/package/firmware/linux-firmware/misc.mk
@@ -0,0 +1,9 @@
+Package/eip197-mini-firmware = $(call Package/firmware-default,Inside Secure EIP197 mini firmware)
+define Package/eip197-mini-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/inside-secure/eip197_minifw
+ $(INSTALL_DATA) \
+ $(PKG_BUILD_DIR)/inside-secure/eip197_minifw/ifpp.bin \
+ $(PKG_BUILD_DIR)/inside-secure/eip197_minifw/ipue.bin \
+ $(1)/lib/firmware/inside-secure/eip197_minifw
+endef
+$(eval $(call BuildPackage,eip197-mini-firmware))
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 9001721792..48777764a8 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -377,7 +377,7 @@ $(eval $(call KernelPackage,crypto-hw-padlock))
define KernelPackage/crypto-hw-safexcel
TITLE:= MVEBU SafeXcel Crypto Engine module
- DEPENDS:=@!LINUX_4_14 @(TARGET_mvebu_cortexa53||TARGET_mvebu_cortexa72) \
+ DEPENDS:=@!LINUX_4_14 @(TARGET_mvebu_cortexa53||TARGET_mvebu_cortexa72) +eip197-mini-firmware \
+kmod-crypto-authenc +kmod-crypto-md5 +kmod-crypto-hmac +kmod-crypto-sha256 +kmod-crypto-sha512
KCONFIG:= \
CONFIG_CRYPTO_HW=y \
@@ -392,9 +392,11 @@ MVEBU's EIP97 and EIP197 Cryptographic Engine driver designed by
Inside Secure. This is found on Marvell Armada 37xx/7k/8k SoCs.
Particular version of these IP (EIP197B and EIP197D) require firmware.
-Unfortunately it's not freely available and needs signed Non-Disclosure
-Agreement (NDA) with Marvell. For those who have signed NDA the firmware can be
-obtained at https://extranet.marvell.com.
+The mini firmware package provides limited functionality, for most operations
+a full-featured firmware is required. Unfortunately the "full" firmware is not
+freely available and needs signed Non-Disclosure Agreement (NDA) with Marvell.
+For those who have signed NDA the firmware can be obtained at
+https://extranet.marvell.com.
endef
$(eval $(call KernelPackage,crypto-hw-safexcel))