diff options
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 915da8e744..2a94d266bd 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -120,7 +120,7 @@ do_install () { | |||
120 | if [ $j -eq $i ] | 120 | if [ $j -eq $i ] |
121 | then | 121 | then |
122 | install -d ${D}/boot | 122 | install -d ${D}/boot |
123 | install ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} | 123 | install -m 644 ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} |
124 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} | 124 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} |
125 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY} | 125 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY} |
126 | fi | 126 | fi |
@@ -130,7 +130,7 @@ do_install () { | |||
130 | unset i | 130 | unset i |
131 | else | 131 | else |
132 | install -d ${D}/boot | 132 | install -d ${D}/boot |
133 | install ${B}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | 133 | install -m 644 ${B}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} |
134 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | 134 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} |
135 | fi | 135 | fi |
136 | 136 | ||
@@ -144,7 +144,7 @@ do_install () { | |||
144 | j=$(expr $j + 1); | 144 | j=$(expr $j + 1); |
145 | if [ $j -eq $i ] | 145 | if [ $j -eq $i ] |
146 | then | 146 | then |
147 | install ${B}/${config}/${UBOOT_ELF} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} | 147 | install -m 644 ${B}/${config}/${UBOOT_ELF} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} |
148 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} | 148 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} |
149 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY} | 149 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY} |
150 | fi | 150 | fi |
@@ -153,7 +153,7 @@ do_install () { | |||
153 | done | 153 | done |
154 | unset i | 154 | unset i |
155 | else | 155 | else |
156 | install ${B}/${UBOOT_ELF} ${D}/boot/${UBOOT_ELF_IMAGE} | 156 | install -m 644 ${B}/${UBOOT_ELF} ${D}/boot/${UBOOT_ELF_IMAGE} |
157 | ln -sf ${UBOOT_ELF_IMAGE} ${D}/boot/${UBOOT_ELF_BINARY} | 157 | ln -sf ${UBOOT_ELF_IMAGE} ${D}/boot/${UBOOT_ELF_BINARY} |
158 | fi | 158 | fi |
159 | fi | 159 | fi |
@@ -173,7 +173,7 @@ do_install () { | |||
173 | j=$(expr $j + 1); | 173 | j=$(expr $j + 1); |
174 | if [ $j -eq $i ] | 174 | if [ $j -eq $i ] |
175 | then | 175 | then |
176 | install ${B}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR} | 176 | install -m 644 ${B}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR} |
177 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type} | 177 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type} |
178 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME} | 178 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME} |
179 | fi | 179 | fi |
@@ -182,14 +182,14 @@ do_install () { | |||
182 | done | 182 | done |
183 | unset i | 183 | unset i |
184 | else | 184 | else |
185 | install ${B}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} | 185 | install -m 644 ${B}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} |
186 | ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME} | 186 | ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME} |
187 | fi | 187 | fi |
188 | fi | 188 | fi |
189 | 189 | ||
190 | if [ -n "${UBOOT_ENV}" ] | 190 | if [ -n "${UBOOT_ENV}" ] |
191 | then | 191 | then |
192 | install ${WORKDIR}/${UBOOT_ENV_BINARY} ${D}/boot/${UBOOT_ENV_IMAGE} | 192 | install -m 644 ${WORKDIR}/${UBOOT_ENV_BINARY} ${D}/boot/${UBOOT_ENV_IMAGE} |
193 | ln -sf ${UBOOT_ENV_IMAGE} ${D}/boot/${UBOOT_ENV_BINARY} | 193 | ln -sf ${UBOOT_ENV_IMAGE} ${D}/boot/${UBOOT_ENV_BINARY} |
194 | fi | 194 | fi |
195 | } | 195 | } |
@@ -206,7 +206,7 @@ do_deploy () { | |||
206 | if [ $j -eq $i ] | 206 | if [ $j -eq $i ] |
207 | then | 207 | then |
208 | install -d ${DEPLOYDIR} | 208 | install -d ${DEPLOYDIR} |
209 | install ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} | 209 | install -m 644 ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} |
210 | cd ${DEPLOYDIR} | 210 | cd ${DEPLOYDIR} |
211 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type} | 211 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type} |
212 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK} | 212 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK} |
@@ -219,7 +219,7 @@ do_deploy () { | |||
219 | unset i | 219 | unset i |
220 | else | 220 | else |
221 | install -d ${DEPLOYDIR} | 221 | install -d ${DEPLOYDIR} |
222 | install ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | 222 | install -m 644 ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} |
223 | cd ${DEPLOYDIR} | 223 | cd ${DEPLOYDIR} |
224 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} | 224 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} |
225 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | 225 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} |
@@ -236,7 +236,7 @@ do_deploy () { | |||
236 | j=$(expr $j + 1); | 236 | j=$(expr $j + 1); |
237 | if [ $j -eq $i ] | 237 | if [ $j -eq $i ] |
238 | then | 238 | then |
239 | install ${B}/${config}/${UBOOT_ELF} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} | 239 | install -m 644 ${B}/${config}/${UBOOT_ELF} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} |
240 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}-${type} | 240 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}-${type} |
241 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} | 241 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} |
242 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}-${type} | 242 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}-${type} |
@@ -247,7 +247,7 @@ do_deploy () { | |||
247 | done | 247 | done |
248 | unset i | 248 | unset i |
249 | else | 249 | else |
250 | install ${B}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE} | 250 | install -m 644 ${B}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE} |
251 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} | 251 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} |
252 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK} | 252 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK} |
253 | fi | 253 | fi |
@@ -264,7 +264,7 @@ do_deploy () { | |||
264 | j=$(expr $j + 1); | 264 | j=$(expr $j + 1); |
265 | if [ $j -eq $i ] | 265 | if [ $j -eq $i ] |
266 | then | 266 | then |
267 | install ${B}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR} | 267 | install -m 644 ${B}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR} |
268 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} | 268 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} |
269 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type} | 269 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type} |
270 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME} | 270 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME} |
@@ -276,7 +276,7 @@ do_deploy () { | |||
276 | done | 276 | done |
277 | unset i | 277 | unset i |
278 | else | 278 | else |
279 | install ${B}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} | 279 | install -m 644 ${B}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} |
280 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK} | 280 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK} |
281 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME} | 281 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME} |
282 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} | 282 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} |
@@ -286,7 +286,7 @@ do_deploy () { | |||
286 | 286 | ||
287 | if [ -n "${UBOOT_ENV}" ] | 287 | if [ -n "${UBOOT_ENV}" ] |
288 | then | 288 | then |
289 | install ${WORKDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_IMAGE} | 289 | install -m 644 ${WORKDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_IMAGE} |
290 | rm -f ${DEPLOYDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK} | 290 | rm -f ${DEPLOYDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK} |
291 | ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_BINARY} | 291 | ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_BINARY} |
292 | ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK} | 292 | ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK} |