OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright 2017 NXP |
||
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 | include $(INCLUDE_DIR)/image.mk |
||
10 | |||
11 | PKG_NAME:=ls-rcw-bin |
||
12 | PKG_SOURCE_DATE:=2017-11-19 |
||
13 | PKG_RELEASE:=1 |
||
14 | |||
15 | PKG_SOURCE_PROTO:=git |
||
16 | PKG_SOURCE_URL:=https://github.com/NXP/qoriq-rcw-bin.git |
||
17 | PKG_SOURCE_VERSION:=bf3ae3cb15829876007c553509501cdaa16745e7 |
||
18 | PKG_MIRROR_HASH:=dc14a47e9529578c63d9ad2bf4e27ef565a055e4121ce2d1324c019f69074314 |
||
19 | |||
20 | PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) |
||
21 | |||
22 | PKG_FLAGS:=nonshared |
||
23 | |||
24 | include $(INCLUDE_DIR)/package.mk |
||
25 | |||
26 | define rcw-bin/Default |
||
27 | TITLE:= |
||
28 | CONFIG:= |
||
29 | endef |
||
30 | |||
31 | define rcw-bin/ls1012ardb |
||
32 | TITLE=NXP LS1012ARDB RCW Binary |
||
33 | CONFIG=ls1012ardb/R_SPNH_3508/PBL_0x35_0x08_1000_250_1000_default.bin |
||
34 | endef |
||
35 | |||
36 | define rcw-bin/ls1088ardb |
||
37 | TITLE=NXP LS1088ARDB RCW Binary |
||
38 | CONFIG=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/PBL_QSPI_1600_700_2100_0x1d_0x0d.bin |
||
39 | endef |
||
40 | |||
41 | define rcw-bin/ls2088ardb |
||
42 | TITLE=NXP LS2088ARDB RCW Binary |
||
43 | CONFIG=ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/PBL_0x2a_0x41_1800_700_1866_1600.bin |
||
44 | endef |
||
45 | |||
46 | define rcw-bin/ls1012afrdm |
||
47 | TITLE=NXP LS1012AFRDM RCW Binary |
||
48 | CONFIG=ls1012afrdm/N_SSNP_3305/PBL_0x33_0x05_800_250_1000_default.bin |
||
49 | endef |
||
50 | |||
51 | RCWS := \ |
||
52 | ls1012ardb \ |
||
53 | ls1088ardb \ |
||
54 | ls2088ardb \ |
||
55 | ls1012afrdm |
||
56 | |||
57 | define Package/rcw-bin/template |
||
58 | define Package/rcw-layerscape-$(1) |
||
59 | SECTION:=firmware |
||
60 | CATEGORY:=Firmware |
||
61 | DEPENDS:=@TARGET_layerscape |
||
62 | TITLE:=$(2) |
||
63 | VARIANT:=$(1) |
||
64 | endef |
||
65 | endef |
||
66 | |||
67 | define BuildRCWPackage |
||
68 | $(eval $(rcw-bin/Default)) |
||
69 | $(eval $(rcw-bin/$(1))) |
||
70 | $(call Package/rcw-bin/template,$(1),$(TITLE)) |
||
71 | endef |
||
72 | |||
73 | ifdef BUILD_VARIANT |
||
74 | $(eval $(call rcw-bin/$(BUILD_VARIANT))) |
||
75 | RCW_CONFIG:=$(if $(CONFIG),$(CONFIG),$(BUILD_VARIANT)) |
||
76 | endif |
||
77 | |||
78 | define Build/Compile |
||
79 | endef |
||
80 | |||
81 | define Package/rcw-bin/install/default |
||
82 | $(INSTALL_DIR) $(STAGING_DIR_IMAGE) |
||
83 | $(CP) $(PKG_BUILD_DIR)/$(RCW_CONFIG) $(STAGING_DIR_IMAGE)/$(1)-rcw.bin |
||
84 | endef |
||
85 | |||
86 | define Package/rcw-bin/install/template |
||
87 | define Package/rcw-layerscape-$(1)/install |
||
88 | $(call Package/rcw-bin/install/default,$(2)) |
||
89 | endef |
||
90 | endef |
||
91 | |||
92 | $(foreach r,$(RCWS), \ |
||
93 | $(eval $(call Package/rcw-bin/install/template,$(r),$(r))) \ |
||
94 | ) |
||
95 | |||
96 | $(foreach r,$(RCWS), \ |
||
97 | $(eval $(call BuildRCWPackage,$(r))) \ |
||
98 | $(eval $(call BuildPackage,rcw-layerscape-$(r))) \ |
||
99 | ) |