diff options
author | Denys Dmytriyenko <denys@ti.com> | 2017-06-08 03:04:37 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-06-10 14:30:19 -0400 |
commit | a67add5c24633d7ce0732a66241102b81b0ed629 (patch) | |
tree | aa0693057272255f842ac522365a83ded43bb06c /recipes-bsp/u-boot | |
parent | bf4281cf3220e32fa6faba00fbc8b4f45d61e7ea (diff) | |
download | meta-ti-a67add5c24633d7ce0732a66241102b81b0ed629.tar.gz |
u-boot-ti: support multiple configs
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 257 |
1 files changed, 192 insertions, 65 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 68b79899..04e224dd 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -18,9 +18,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:" | |||
18 | 18 | ||
19 | SUMMARY = "u-boot bootloader for TI devices" | 19 | SUMMARY = "u-boot bootloader for TI devices" |
20 | 20 | ||
21 | LICENSE = "GPLv2+" | ||
22 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" | ||
23 | |||
24 | BRANCH ?= "master" | 21 | BRANCH ?= "master" |
25 | SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}" | 22 | SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}" |
26 | 23 | ||
@@ -29,8 +26,6 @@ PV_append = "+git${SRCPV}" | |||
29 | # u-boot needs devtree compiler to parse dts files | 26 | # u-boot needs devtree compiler to parse dts files |
30 | DEPENDS += "dtc-native bc-native" | 27 | DEPENDS += "dtc-native bc-native" |
31 | 28 | ||
32 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
33 | |||
34 | PROVIDES += "u-boot" | 29 | PROVIDES += "u-boot" |
35 | PKG_${PN} = "u-boot" | 30 | PKG_${PN} = "u-boot" |
36 | PKG_${PN}-dev = "u-boot-dev" | 31 | PKG_${PN}-dev = "u-boot-dev" |
@@ -88,82 +83,214 @@ UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" | |||
88 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" | 83 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" |
89 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" | 84 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" |
90 | 85 | ||
91 | do_compile_append_am437x-hs-evm () { | ||
92 | if [ -f ${B}/u-boot-spl_HS_ISSW ]; then | ||
93 | rm -rf ${B}/MLO | ||
94 | cp ${B}/u-boot-spl_HS_ISSW ${B}/MLO | ||
95 | fi | ||
96 | } | ||
97 | |||
98 | do_install_append () { | 86 | do_install_append () { |
99 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | 87 | if [ -n "${UBOOT_CONFIG}" ] |
100 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | 88 | then |
101 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | 89 | for config in ${UBOOT_MACHINE}; do |
102 | fi | 90 | i=$(expr $i + 1); |
103 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | 91 | for type in ${UBOOT_CONFIG}; do |
104 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | 92 | j=$(expr $j + 1); |
105 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | 93 | if [ $j -eq $i ] |
106 | fi | 94 | then |
107 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | 95 | if [ "x${SPL_UART_BINARY}" != "x" ]; then |
108 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | 96 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type} |
109 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | 97 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} |
98 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} | ||
99 | fi | ||
100 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
101 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} | ||
102 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} | ||
103 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
104 | fi | ||
105 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
106 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type} | ||
107 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} | ||
108 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
109 | fi | ||
110 | fi | ||
111 | done | ||
112 | unset j | ||
113 | done | ||
114 | unset i | ||
115 | else | ||
116 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
117 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | ||
118 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | ||
119 | fi | ||
120 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
121 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | ||
122 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
123 | fi | ||
124 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
125 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | ||
126 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
127 | fi | ||
110 | fi | 128 | fi |
111 | } | 129 | } |
112 | 130 | ||
113 | do_deploy_append () { | 131 | do_deploy_append () { |
114 | cd ${DEPLOYDIR} | 132 | if [ -n "${UBOOT_CONFIG}" ] |
115 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | 133 | then |
116 | install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} | 134 | for config in ${UBOOT_MACHINE}; do |
117 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | 135 | i=$(expr $i + 1); |
118 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} | 136 | for type in ${UBOOT_CONFIG}; do |
119 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | 137 | j=$(expr $j + 1); |
120 | fi | 138 | if [ $j -eq $i ] |
121 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | 139 | then |
122 | install ${B}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE} | 140 | cd ${DEPLOYDIR} |
123 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | 141 | if [ "x${SPL_UART_BINARY}" != "x" ]; then |
124 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | 142 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE}-${type} |
125 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | 143 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} |
126 | fi | 144 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY}-${type} |
127 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | 145 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY} |
128 | install ${B}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE} | 146 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK}-${type} |
129 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | 147 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK} |
130 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | 148 | fi |
131 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | 149 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then |
150 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE}-${type} | ||
151 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
152 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type} | ||
153 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK} | ||
154 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type} | ||
155 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY} | ||
156 | fi | ||
157 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
158 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE}-${type} | ||
159 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
160 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type} | ||
161 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK} | ||
162 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | ||
163 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | ||
164 | fi | ||
165 | fi | ||
166 | done | ||
167 | unset j | ||
168 | done | ||
169 | unset i | ||
170 | else | ||
171 | cd ${DEPLOYDIR} | ||
172 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
173 | install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} | ||
174 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
175 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
176 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
177 | fi | ||
178 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
179 | install ${B}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE} | ||
180 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
181 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | ||
182 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | ||
183 | fi | ||
184 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
185 | install ${B}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE} | ||
186 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
187 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | ||
188 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | ||
189 | fi | ||
132 | fi | 190 | fi |
133 | } | 191 | } |
134 | 192 | ||
135 | do_install_append_keystone () { | 193 | do_install_append_keystone () { |
136 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | 194 | if [ -n "${UBOOT_CONFIG}" ] |
137 | install ${B}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE} | 195 | then |
138 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} | 196 | for config in ${UBOOT_MACHINE}; do |
139 | fi | 197 | i=$(expr $i + 1); |
198 | for type in ${UBOOT_CONFIG}; do | ||
199 | j=$(expr $j + 1); | ||
200 | if [ $j -eq $i ] | ||
201 | then | ||
202 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | ||
203 | install ${B}/${config}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE}-${type} | ||
204 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_SPL_BINARY}-${type} | ||
205 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_SPL_BINARY} | ||
206 | fi | ||
207 | |||
208 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE}-${type} | ||
209 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY}-${type} | ||
210 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_BINARY} | ||
211 | |||
212 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | ||
213 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE}-${type} | ||
214 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_GPH_BINARY}-${type} | ||
215 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${D}/boot/${UBOOT_SPI_GPH_BINARY} | ||
216 | fi | ||
217 | fi | ||
218 | done | ||
219 | unset j | ||
220 | done | ||
221 | unset i | ||
222 | else | ||
223 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | ||
224 | install ${B}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE} | ||
225 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} | ||
226 | fi | ||
140 | 227 | ||
141 | install ${B}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE} | 228 | install ${B}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE} |
142 | ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY} | 229 | ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY} |
143 | 230 | ||
144 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 231 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
145 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE} | 232 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE} |
146 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${D}/boot/${UBOOT_SPI_GPH_BINARY} | 233 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${D}/boot/${UBOOT_SPI_GPH_BINARY} |
234 | fi | ||
147 | fi | 235 | fi |
148 | } | 236 | } |
149 | 237 | ||
150 | do_deploy_append_keystone () { | 238 | do_deploy_append_keystone () { |
151 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | 239 | if [ -n "${UBOOT_CONFIG}" ] |
152 | install ${B}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE} | 240 | then |
153 | rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK} | 241 | for config in ${UBOOT_MACHINE}; do |
154 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_SYMLINK} | 242 | i=$(expr $i + 1); |
155 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY} | 243 | for type in ${UBOOT_CONFIG}; do |
156 | fi | 244 | j=$(expr $j + 1); |
245 | if [ $j -eq $i ] | ||
246 | then | ||
247 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | ||
248 | install ${B}/${config}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE}-${type} | ||
249 | rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK} | ||
250 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_SYMLINK}-${type} | ||
251 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_SYMLINK} | ||
252 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_BINARY}-${type} | ||
253 | ln -sf ${UBOOT_SPI_SPL_IMAGE}-${type} ${UBOOT_SPI_SPL_BINARY} | ||
254 | fi | ||
255 | |||
256 | install ${B}/${config}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE}-${type} | ||
257 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} | ||
258 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK}-${type} | ||
259 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_SYMLINK} | ||
260 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY}-${type} | ||
261 | ln -sf ${UBOOT_SPI_IMAGE}-${type} ${UBOOT_SPI_BINARY} | ||
262 | |||
263 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | ||
264 | install ${B}/${config}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE}-${type} | ||
265 | rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK} | ||
266 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${UBOOT_SPI_GPH_SYMLINK}-${type} | ||
267 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${UBOOT_SPI_GPH_SYMLINK} | ||
268 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${UBOOT_SPI_GPH_BINARY}-${type} | ||
269 | ln -sf ${UBOOT_SPI_GPH_IMAGE}-${type} ${UBOOT_SPI_GPH_BINARY} | ||
270 | fi | ||
271 | fi | ||
272 | done | ||
273 | unset j | ||
274 | done | ||
275 | unset i | ||
276 | else | ||
277 | if [ "x${UBOOT_SPI_SPL_BINARY}" != "x" ]; then | ||
278 | install ${B}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE} | ||
279 | rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK} | ||
280 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_SYMLINK} | ||
281 | ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY} | ||
282 | fi | ||
157 | 283 | ||
158 | install ${B}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE} | 284 | install ${B}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE} |
159 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} | 285 | rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} |
160 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK} | 286 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK} |
161 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY} | 287 | ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY} |
162 | 288 | ||
163 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then | 289 | if [ "x${UBOOT_SPI_GPH_BINARY}" != "x" ]; then |
164 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE} | 290 | install ${B}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE} |
165 | rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK} | 291 | rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK} |
166 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_SYMLINK} | 292 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_SYMLINK} |
167 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_BINARY} | 293 | ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_BINARY} |
294 | fi | ||
168 | fi | 295 | fi |
169 | } | 296 | } |