layerscape: support LSDK ppfe
[openwrt/openwrt.git] / package / firmware / layerscape / ppfe-firmware / Makefile
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:=2017.09
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/qoriq-open-source/engine-pfe-bin.git
16 PKG_SOURCE_VERSION:=97cd13d3070d7199e62881bc495b332194b67edd
17 PKG_MIRROR_HASH:=1ef60cdac49dd57c76ec9ef01d00f6eeb025ba62f0d75f54adeeb3362f5edad2
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 DEPENDS:=@TARGET_layerscape
30 TITLE:=NXP Layerscape PPFE firmware
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:=Freescale-Binary-EULA
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))