2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/image.mk
16 PKG_SOURCE_URL
:=https
://github.com
/qoriq-open-source
/rcw.git
17 PKG_SOURCE_VERSION
:=6719b046ee87b04026fe163e6c8fbbebba2186aa
18 PKG_MIRROR_HASH
:=555a0bda7236b6a0e9eb9337ec41ad140987e4def7e73c759699e415e31158b9
20 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_LICENSE
:=BSD-3-Clause
23 PKG_LICENSE_FILES
:=LICENSE
27 include $(INCLUDE_DIR
)/package.mk
35 TITLE
=RCW binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1043ardb
64b
/32b Dev Board
36 CONFIG
=ls1043ardb
/RR_FQPP_1455
/rcw_1600.bin
40 TITLE
=RCW binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1046ardb
64b
/32b Dev Board
41 CONFIG
=ls1046ardb
/RR_FFSSPPPH_1133_5559
/rcw_1800_qspiboot_swap.bin
45 TITLE
=RCW binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1012ardb
64b
/32b Dev Board
46 CONFIG
=ls1012ardb
/R_SPNH_3508
/PBL_0x35_0x08_1000_250_1000_default.bin
50 TITLE
=RCW binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1088ardb
64b
/32b Dev Board
51 CONFIG
=ls1088ardb
/FCQQQQQQQQ_PPP_H_0x1d_0x0d
/PBL_QSPI_1600_700_2100_0x1d_0x0d.bin
55 TITLE
=RCW binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls2088ardb
64b
/32b Dev Board
56 CONFIG
=ls2088ardb
/FFFFFFFF_PP_HH_0x2a_0x41
/PBL_0x2a_0x41_1800_700_1866_1600.bin
66 define Package
/rcw
/template
67 define Package
/rcw-layerscape-
$(1)
70 DEPENDS
:= @TARGET_layerscape
72 URL
:=http
://git.freescale.com
/git
/cgit.cgi
/ppc
/sdk
/rcw.git
74 MAINTAINER
:=Jiang Yutang
<jiangyutang1978@gmail.com
>
78 define BuildRCWPackage
79 $(eval
$(rcw
/Default
))
81 $(call Package
/rcw
/template
,$(1),$(TITLE
))
85 $(eval
$(call rcw
/$(BUILD_VARIANT
)))
86 RCW_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
89 define Build
/Configure
92 define Package
/rcw
/install/default
93 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
94 $(CP
) $(PKG_BUILD_DIR
)/$(RCW_CONFIG
) $(STAGING_DIR_IMAGE
)/$(1)-rcw.bin
97 define Package
/rcw
/install/template
98 define Package
/rcw-layerscape-
$(1)/install
99 $(call Package
/rcw
/install/default
,$(2))
103 $(foreach r
,$(RCWS
), \
104 $(eval
$(call Package
/rcw
/install/template
,$(r
),$(r
))) \
107 $(foreach r
,$(RCWS
), \
108 $(eval
$(call BuildRCWPackage
,$(r
))) \
109 $(eval
$(call BuildPackage
,rcw-layerscape-
$(r
))) \