| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com> |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=ppfe |
| 11 | PKG_VERSION:=6.6.3.1.0.0 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE_PROTO:=git |
| 15 | PKG_SOURCE_URL:=https://github.com/nxp-qoriq/qoriq-engine-pfe-bin |
| 16 | PKG_SOURCE_VERSION:=lf-6.6.3-1.0.0 |
| 17 | PKG_MIRROR_HASH:=836da0d1ace6c5896c434940b5f06ae9ddcb871959e9f5aa3df75d67e39aec41 |
| 18 | |
| 19 | PKG_FLAGS:=nonshared |
| 20 | |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | |
| 23 | RSTRIP:=: |
| 24 | STRIP:=: |
| 25 | |
| 26 | define Package/layerscape-ppfe |
| 27 | SECTION:=firmware |
| 28 | CATEGORY:=Firmware |
| 29 | TITLE:=NXP Layerscape PPFE firmware |
| 30 | DEPENDS:=@TARGET_layerscape |
| 31 | CONFIG_FW:=ls1012a/u-boot/pfe_fw_sbl.itb |
| 32 | CONFIG_BIN1:=ls1012a/slow_path/ppfe_class_ls1012a.elf |
| 33 | CONFIG_BIN2:=ls1012a/slow_path/ppfe_tmu_ls1012a.elf |
| 34 | CONFIG_LIC:=NXP-Binary-EULA.txt |
| 35 | endef |
| 36 | |
| 37 | define Build/Compile |
| 38 | endef |
| 39 | |
| 40 | define Package/layerscape-ppfe/install |
| 41 | $(INSTALL_DIR) $(STAGING_DIR_IMAGE) |
| 42 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(CONFIG_FW) \ |
| 43 | $(STAGING_DIR_IMAGE)/pfe.itb |
| 44 | $(INSTALL_DIR) $(1)/lib/firmware/ |
| 45 | $(INSTALL_DATA) \ |
| 46 | $(PKG_BUILD_DIR)/$(CONFIG_BIN1) \ |
| 47 | $(PKG_BUILD_DIR)/$(CONFIG_BIN2) \ |
| 48 | $(PKG_BUILD_DIR)/$(CONFIG_LIC) \ |
| 49 | $(1)/lib/firmware/ |
| 50 | endef |
| 51 | |
| 52 | $(eval $(call BuildPackage,layerscape-ppfe)) |