[PATCH 1/2] firmware: Add cavium CPT hardware crypto firmware

Daniel Danzberger daniel at dd-wrt.com
Sun Apr 18 08:46:53 BST 2021


The firmware consists of 2 images:
 - cpt8x-mc-ae.out
 - cpt8x-mc-se.out

Both are required and requests by the kernel module 'cptpf'
(drivers/crypto/cavium/cpt) to provide hardware crpyto support
on cavium platforms like the octeontx

Signed-off-by: Daniel Danzberger <daniel at dd-wrt.com>
---
 package/firmware/cavium-cpt/Makefile | 52 ++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 package/firmware/cavium-cpt/Makefile

diff --git a/package/firmware/cavium-cpt/Makefile b/package/firmware/cavium-cpt/Makefile
new file mode 100644
index 0000000000..7a0a36d54c
--- /dev/null
+++ b/package/firmware/cavium-cpt/Makefile
@@ -0,0 +1,52 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cavium-firmware-cpt
+PKG_VERSION:=2021-04-17
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/cavium-firmware-cpt-default
+  TITLE:=Cavium firmware for CPT HW crypto ($(1) part)
+  SECTION:=firmware
+  CATEGORY:=Firmware
+endef
+
+define Download/cavium-firmware-cpt-ae
+  URL:=http://dev.gateworks.com/newport/cpt/1.0.0/
+  FILE:=cpt8x-mc-ae.out
+  HASH:=39063984d5f47e997ec2f15cef87394d719501e53ed121e0373161b86e72ad22
+endef
+$(eval $(call Download,cavium-firmware-cpt-ae))
+
+define Download/cavium-firmware-cpt-se
+  URL:=http://dev.gateworks.com/newport/cpt/1.0.0/
+  FILE:=cpt8x-mc-se.out
+  HASH:=7927b69eb693b7de67a3cc867083c1f5a3f2c3c586cfa11a542e6551091f7cc7
+endef
+$(eval $(call Download,cavium-firmware-cpt-se))
+
+define Package/cavium-firmware-cpt-ae
+  $(call Package/cavium-firmware-cpt-default,ae)
+endef
+
+define Package/cavium-firmware-cpt-se
+  $(call Package/cavium-firmware-cpt-default,se)
+endef
+
+define Build/Compile
+
+endef
+
+define Package/cavium-firmware-cpt-ae/install
+	$(INSTALL_DIR) $(1)/lib/firmware
+	$(INSTALL_DATA) $(DL_DIR)/cpt8x-mc-ae.out $(1)/lib/firmware
+endef
+
+define Package/cavium-firmware-cpt-se/install
+	$(INSTALL_DIR) $(1)/lib/firmware
+	$(INSTALL_DATA) $(DL_DIR)/cpt8x-mc-se.out $(1)/lib/firmware
+endef
+
+$(eval $(call BuildPackage,cavium-firmware-cpt-ae))
+$(eval $(call BuildPackage,cavium-firmware-cpt-se))
-- 
2.30.2




More information about the openwrt-devel mailing list