Skip to contentSkip to conversation

u-boot-script-boundary: handle the case where MACHINE=imx6sabrelite

PATCH Applied Eric Bénard 2 participants 5 messages Jul 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot-script-boundary: handle the case where MACHINE=imx6sabrelite

else the build fails with :
uboot-mkimage: Can't open board/boundary/imx6qsabrelite/6x_bootscript: No such file or directory

---
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +6 -2
index 4d5e7db..2088a4f 100644
@@ -14,12 +14,16 @@ S = "${WORKDIR}/git"
 inherit deploy
 
 do_mkimage () {
+    # workaround the case where MACHINE=imx6qsabrelite
+    if [ ! -d board/boundary/${MACHINE} ]; then
+        mkdir board/boundary/${MACHINE}
+    fi
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
+                   -n "boot script" -d board/boundary/nitrogen6x/6x_bootscript.txt \
                    board/boundary/${MACHINE}/6x_bootscript
 
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
+                   -n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
                    board/boundary/${MACHINE}/6x_upgrade
 }
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 5 lines · Eric Bénard

else the build fails with :
uboot-mkimage: Can't open board/boundary/imx6qsabrelite/6x_bootscript: No such file or directory

Good catch!

Quoted 9 lines
---
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +0 -0
index 4d5e7db..2088a4f 100644

recipes-bsp/u-boot/u-boot-script-boundary_git.bb S = "${WORKDIR}/git" · line 20

Quoted 7 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +4 -0
@@ -14,12 +14,16 @@ S = "${WORKDIR}/git"
 inherit deploy
 
 do_mkimage () {
+    # workaround the case where MACHINE=imx6qsabrelite
+    if [ ! -d board/boundary/${MACHINE} ]; then
+        mkdir board/boundary/${MACHINE}
+    fi

I just didn't understand why you create this directory as below you use nitrogen one?

recipes-bsp/u-boot/u-boot-script-boundary_git.bb S = "${WORKDIR}/git" · line 28

Quoted 10 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -2
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
+                   -n "boot script" -d board/boundary/nitrogen6x/6x_bootscript.txt \
                    board/boundary/${MACHINE}/6x_bootscript
 
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
+                   -n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
                    board/boundary/${MACHINE}/6x_upgrade
 }

Seem fine.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#2 lore raw
Quoted 20 lines · Otavio Salvador
Quoted 5 lines · Eric Bénard

else the build fails with :
uboot-mkimage: Can't open board/boundary/imx6qsabrelite/6x_bootscript: No such file or directory

Good catch!

Quoted 11 lines
---
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +0 -0
index 4d5e7db..2088a4f 100644
@@ -14,12 +14,16 @@ S = "${WORKDIR}/git"
 inherit deploy
 
Quoted 9 lines

recipes-bsp/u-boot/u-boot-script-boundary_git.bb S = "${WORKDIR}/git" · line 20

Quoted 5 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +4 -0
 do_mkimage () {
+    # workaround the case where MACHINE=imx6qsabrelite
+    if [ ! -d board/boundary/${MACHINE} ]; then
+        mkdir board/boundary/${MACHINE}
+    fi

I just didn't understand why you create this directory as below you use nitrogen one?

because I use the nitrogen one for the .txt but the ${MACHINE} one for the results in order not to make many changes to the .bb as I assume imx6sabrelite is due to disapear in a short future.

Quoted 17 lines

recipes-bsp/u-boot/u-boot-script-boundary_git.bb S = "${WORKDIR}/git" · line 28

Quoted 10 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -2
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
+                   -n "boot script" -d board/boundary/nitrogen6x/6x_bootscript.txt \
                    board/boundary/${MACHINE}/6x_bootscript
 
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
+                   -n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
                    board/boundary/${MACHINE}/6x_upgrade
 }

Seem fine.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#3 lore raw
Quoted 32 lines · Eric Bénard
Quoted 20 lines · Otavio Salvador
Quoted 5 lines · Eric Bénard

else the build fails with :
uboot-mkimage: Can't open board/boundary/imx6qsabrelite/6x_bootscript: No such file or directory

Good catch!

Quoted 11 lines
---
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +0 -0
index 4d5e7db..2088a4f 100644
@@ -14,12 +14,16 @@ S = "${WORKDIR}/git"
 inherit deploy
 
Quoted 9 lines

recipes-bsp/u-boot/u-boot-script-boundary_git.bb S = "${WORKDIR}/git" · line 20

Quoted 5 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +4 -0
 do_mkimage () {
+    # workaround the case where MACHINE=imx6qsabrelite
+    if [ ! -d board/boundary/${MACHINE} ]; then
+        mkdir board/boundary/${MACHINE}
+    fi

I just didn't understand why you create this directory as below you use nitrogen one?

Quoted 3 lines

because I use the nitrogen one for the .txt but the ${MACHINE} one for the results in order not to make many changes to the .bb as I assume imx6sabrelite is due to disapear in a short future.

Makes sense :-)

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -2
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
+                   -n "boot script" -d board/boundary/nitrogen6x/6x_bootscript.txt \
                    board/boundary/${MACHINE}/6x_bootscript
 
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
+                   -n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
                    board/boundary/${MACHINE}/6x_upgrade
 }
Quoted 7 lines
Quoted 6 lines

Seem fine.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750