developer | 4f0d2ba | 2023-08-21 17:33:25 +0800 | [diff] [blame^] | 1 | # SPDX-Liscense-Identifier: GPL-2.0-or-later |
| 2 | # |
| 3 | # Copyright (C) 2023 MediaTek Inc. |
| 4 | # |
| 5 | # Author: Chris.Chou <chris.chou@mediatek.com> |
| 6 | # Ren-Ting Wang <ren-ting.wang@mediatek.com> |
| 7 | |
| 8 | # Configure for crypto firmware makefile |
| 9 | EIP_PKGS+= \ |
| 10 | crypto-eip-inline-fw |
| 11 | |
| 12 | define Package/crypto-eip-inline-fw |
| 13 | TITLE:=Mediatek EIP Firmware |
| 14 | SECTION:=firmware |
| 15 | CATEGORY:=Firmware |
| 16 | DEPENDS:=@CRYPTO_OFFLOAD_INLINE |
| 17 | endef |
| 18 | |
| 19 | define Package/crypto-eip-inline-fw/description |
| 20 | Load firmware for EIP197 inline mode. |
| 21 | endef |
| 22 | |
| 23 | define Package/crypto-eip-inline-fw/install |
| 24 | $(INSTALL_DIR) $(1)/lib/firmware/ |
| 25 | $(CP) \ |
| 26 | $(PKG_BUILD_DIR)/firmware/bin/firmware_eip207_ifpp.bin \ |
| 27 | $(PKG_BUILD_DIR)/firmware/bin/firmware_eip207_ipue.bin \ |
| 28 | $(PKG_BUILD_DIR)/firmware/bin/firmware_eip207_ofpp.bin \ |
| 29 | $(PKG_BUILD_DIR)/firmware/bin/firmware_eip207_opue.bin \ |
| 30 | $(1)/lib/firmware/ |
| 31 | endef |