wifi-scripts: add multi-radio config support
[openwrt/staging/nbd.git] / package / boot / uboot-layerscape / 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:=uboot-layerscape
11 PKG_VERSION:=6.6.23.2.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/nxp-qoriq/u-boot
16 PKG_SOURCE_VERSION:=lf-6.6.23-2.0.0
17 PKG_MIRROR_HASH:=41e089fde1d0b3b0998e6af33d5f4c2b62860bda6cd1e6a0e8d47dfd5749005d
18
19 include $(INCLUDE_DIR)/u-boot.mk
20 include $(INCLUDE_DIR)/package.mk
21
22 define U-Boot/Default
23 BUILD_TARGET:=layerscape
24 BUILD_SUBTARGET:=armv8_64b
25 BUILD_DEVICES:=$(1)
26 UBOOT_IMAGE:=u-boot-dtb.bin
27 ENV_SIZE:=0x2000
28 endef
29
30 define U-Boot/fsl_ls1012a-frdm
31 NAME:=NXP LS1012AFRDM
32 UBOOT_CONFIG:=ls1012afrdm_tfa
33 endef
34
35 define U-Boot/fsl_ls1012a-rdb
36 NAME:=NXP LS1012ARDB
37 UBOOT_CONFIG:=ls1012ardb_tfa
38 endef
39
40 define U-Boot/fsl_ls1012a-frwy-sdboot
41 NAME:=NXP LS1012AFRWY
42 UBOOT_CONFIG:=ls1012afrwy_tfa
43 endef
44
45 define U-Boot/fsl_ls1028a-rdb
46 NAME:=NXP LS1028ARDB
47 UBOOT_CONFIG:=ls1028ardb_tfa
48 endef
49
50 define U-Boot/fsl_ls1028a-rdb-sdboot
51 NAME:=NXP LS1028ARDB SD Card Boot
52 UBOOT_CONFIG:=ls1028ardb_tfa
53 endef
54
55 define U-Boot/fsl_ls1043a-rdb
56 NAME:=NXP LS1043ARDB
57 UBOOT_CONFIG:=ls1043ardb_tfa
58 endef
59
60 define U-Boot/fsl_ls1043a-rdb-sdboot
61 NAME:=NXP LS1043ARDB SD Card Boot
62 UBOOT_CONFIG:=ls1043ardb_tfa
63 endef
64
65 define U-Boot/fsl_ls1046a-frwy
66 NAME:=NXP LS1046AFRWY
67 UBOOT_CONFIG:=ls1046afrwy_tfa
68 endef
69
70 define U-Boot/fsl_ls1046a-frwy-sdboot
71 NAME:=NXP LS1046AFRWY SD Card Boot
72 UBOOT_CONFIG:=ls1046afrwy_tfa
73 endef
74
75 define U-Boot/fsl_ls1046a-rdb
76 NAME:=NXP LS1046ARDB
77 UBOOT_CONFIG:=ls1046ardb_tfa
78 endef
79
80 define U-Boot/fsl_ls1046a-rdb-sdboot
81 NAME:=NXP LS1046ARDB SD Card Boot
82 UBOOT_CONFIG:=ls1046ardb_tfa
83 endef
84
85 define U-Boot/fsl_ls1088a-rdb
86 NAME:=NXP LS1088ARDB
87 UBOOT_CONFIG:=ls1088ardb_tfa
88 endef
89
90 define U-Boot/fsl_ls1088a-rdb-sdboot
91 NAME:=NXP LS1088ARDB SD Card Boot
92 UBOOT_CONFIG:=ls1088ardb_tfa
93 endef
94
95 define U-Boot/fsl_ls2088a-rdb
96 NAME:=NXP LS2088ARDB
97 UBOOT_CONFIG:=ls2088ardb_tfa
98 endef
99
100 define U-Boot/fsl_lx2160a-rdb
101 NAME:=NXP LX2160ARDB
102 UBOOT_CONFIG:=lx2160ardb_tfa
103 endef
104
105 define U-Boot/fsl_lx2160a-rdb-sdboot
106 NAME:=NXP LX2160ARDB SD Card Boot
107 UBOOT_CONFIG:=lx2160ardb_tfa
108 endef
109
110 define U-Boot/fsl_ls1021a-twr
111 NAME:=NXP LS1021ATWR
112 BUILD_SUBTARGET:=armv7
113 UBOOT_CONFIG:=ls1021atwr_nor
114 ENV_SIZE:=0x20000
115 endef
116
117 define U-Boot/fsl_ls1021a-twr-sdboot
118 NAME:=NXP LS1021ATWR SD Card Boot
119 BUILD_SUBTARGET:=armv7
120 UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
121 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
122 ENV_SIZE:=0x20000
123 endef
124
125 define U-Boot/fsl_ls1021a-iot-sdboot
126 NAME:=NXP LS1021AIOT SD Card Boot
127 BUILD_SUBTARGET:=armv7
128 UBOOT_CONFIG:=ls1021aiot_sdcard
129 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
130 ENV_SIZE:=0x2000
131 endef
132
133 UBOOT_TARGETS := \
134 fsl_ls1012a-frdm \
135 fsl_ls1012a-rdb \
136 fsl_ls1012a-frwy-sdboot \
137 fsl_ls1028a-rdb \
138 fsl_ls1028a-rdb-sdboot \
139 fsl_ls1043a-rdb \
140 fsl_ls1043a-rdb-sdboot \
141 fsl_ls1046a-frwy \
142 fsl_ls1046a-frwy-sdboot \
143 fsl_ls1046a-rdb \
144 fsl_ls1046a-rdb-sdboot \
145 fsl_ls1088a-rdb \
146 fsl_ls1088a-rdb-sdboot \
147 fsl_ls2088a-rdb \
148 fsl_lx2160a-rdb \
149 fsl_lx2160a-rdb-sdboot \
150 fsl_ls1021a-twr \
151 fsl_ls1021a-twr-sdboot \
152 fsl_ls1021a-iot-sdboot
153
154 define Build/InstallDev
155 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
156 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
157 $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
158 $(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \
159 -o $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot-env.bin \
160 files/$(BUILD_VARIANT)-uEnv.txt
161 endef
162
163 define Package/u-boot/install/default
164 endef
165
166 $(eval $(call BuildPackage/U-Boot))