treewide: Mark packages nonshared if they depend on @TARGET_
[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:=LSDK-20.04
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/NXP/qoriq-engine-pfe-bin.git
16 PKG_SOURCE_VERSION:=d3a8ef0760c54ddc243039c86389497e37be90ab
17 PKG_MIRROR_HASH:=64be93b8249d298e7b5fd0846787835f0659b6ab6c55b40b809366c79e272eb8
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))