mt76: update to the latest version
[openwrt/openwrt.git] / package / firmware / layerscape / ls-rcw / 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:=ls-rcw
11 PKG_VERSION:=21.08
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
16 PKG_SOURCE_VERSION:=LSDK-21.08
17 PKG_MIRROR_HASH:=c0202d07223bb5ab43d0c0145c0d83e2b8c34c559bba0ec3c2c2aa562623f546
18
19 PKG_FLAGS:=nonshared
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/layerscape-rcw
24 SECTION:=firmware
25 CATEGORY:=Firmware
26 TITLE:=NXP Layerscape RCW binaries
27 DEPENDS:=@TARGET_layerscape
28 endef
29
30 BOARDS := \
31 ls1012a-rdb \
32 ls1012a-frdm \
33 ls1012a-frwy-sdboot \
34 ls1043a-rdb \
35 ls1043a-rdb-sdboot \
36 ls1046a-frwy \
37 ls1046a-frwy-sdboot \
38 ls1046a-rdb \
39 ls1046a-rdb-sdboot \
40 ls1088a-rdb \
41 ls1088a-rdb-sdboot \
42 ls2088a-rdb \
43 lx2160a-rdb \
44 lx2160a-rdb-sdboot \
45 ls1021a-twr
46
47 RCW_ls1012a-rdb :=ls1012ardb/R_SPNH_3508/rcw_1000_default.bin
48 RCW_ls1012a-frdm :=ls1012afrdm/N_SSNP_3305/rcw_800.bin
49 RCW_ls1012a-frwy-sdboot :=ls1012afrwy/N_SSNP_3305/rcw_1000_default.bin
50 RCW_ls1043a-rdb :=ls1043ardb/RR_FQPP_1455/rcw_1600.bin
51 RCW_ls1043a-rdb-sdboot :=ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot.bin
52 RCW_ls1046a-frwy :=ls1046afrwy/NN_NNQNNPNP_3040_0506/rcw_1600_qspiboot.bin
53 RCW_ls1046a-frwy-sdboot :=ls1046afrwy/NN_NNQNNPNP_3040_0506/rcw_1600_sdboot.bin
54 RCW_ls1046a-rdb :=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin
55 RCW_ls1046a-rdb-sdboot :=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_sdboot.bin
56 RCW_ls1088a-rdb :=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_qspi.bin
57 RCW_ls1088a-rdb-sdboot :=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_sd.bin
58 RCW_ls2088a-rdb :=ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/rcw_1800.bin
59 RCW_lx2160a-rdb :=lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2000_700_2900_19_5_2.bin
60 RCW_lx2160a-rdb-sdboot :=lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2000_700_2900_19_5_2.bin
61 RCW_ls1021a-twr :=ls1021atwr/SSR_PNS_30/rcw_1200.bin
62
63 define Build/InstallDev
64 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
65 $(foreach board,$(BOARDS), \
66 $(CP) $(PKG_BUILD_DIR)/$(RCW_$(board)) $(STAGING_DIR_IMAGE)/fsl_$(board)-rcw.bin;)
67 endef
68
69 $(eval $(call BuildPackage,layerscape-rcw))