Skip to contentSkip to conversation

u-boot: not use == to compatible with dash

PATCH In review [email protected] 2 participants 5 messages Jul 2, 2013 – Jul 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 u-boot: not use == to compatible with dash

From: Ting Liu <[email protected]>

---
 recipes-kernel/u-boot/u-boot_git.bb |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
recipes-kernel/u-boot/u-boot_git.bb +5 -5
index 7427dfc..c3aa105 100644
@@ -47,7 +47,7 @@ do_compile () {
 	unset CFLAGS
 	unset CPPFLAGS
 
-	if [ "x${UBOOT_MACHINES}" == "x" ]; then
+	if [ "x${UBOOT_MACHINES}" = "x" ]; then
 		UBOOT_MACHINES=${UBOOT_MACHINE}
 	fi
 
@@ -64,9 +64,9 @@ do_compile () {
 		esac
 
 		if [ "x${UBOOT_TARGET}" != "x" ]; then
-			if [ "${UBOOT_TARGET}" == "u-boot-sd" ]; then
+			if [ "${UBOOT_TARGET}" = "u-boot-sd" ]; then
 				cp ${S}/${board}/u-boot.bin  ${S}/${board}/${UBOOT_TARGET}.bin
-            elif [ "${UBOOT_TARGET}" == "u-boot-nand" ];then
+            elif [ "${UBOOT_TARGET}" = "u-boot-nand" ];then
 				if [ "${DEFAULTTUNE}" = "ppce500v2" ];then
                     if echo $board |egrep "(P1010RDB|P1020RDB|P1021RDB|P1024RDB|P2020RDB|P1022DS|P1025RDB|BSC9131RDB|BSC9132QDS)" 2>&1 >/dev/null;then
                         cp ${S}/${board}/u-boot-with-spl.bin ${S}/${board}/${UBOOT_TARGET}.bin
@@ -88,7 +88,7 @@ do_compile () {
 }
 
 do_install(){
-	if [ "x${UBOOT_MACHINES}" == "x" ]; then
+	if [ "x${UBOOT_MACHINES}" = "x" ]; then
 		UBOOT_MACHINES=${UBOOT_MACHINE}
 	fi
 
@@ -109,7 +109,7 @@ do_install(){
 }
 
 do_deploy(){
-	if [ "x${UBOOT_MACHINES}" == "x" ]; then
+	if [ "x${UBOOT_MACHINES}" = "x" ]; then
 		UBOOT_MACHINES=${UBOOT_MACHINE}
 	fi
 
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 usdpaa: set MACHINE_ARCH specific, same with dependency fmc

From: Ting Liu <[email protected]>

---
 recipes-tools/usdpaa/usdpaa_git.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes-tools/usdpaa/usdpaa_git.bb +2 -0
index cb7b76b..93cb8ef 100644
@@ -4,6 +4,8 @@ LICENSE = "BSD & GPLv2"
 LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
 PR = "r4"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit pkgconfig
 
 DEPENDS = "libxml2 libedit ncurses readline flib fmc"
Signature · 1 line
1.7.3.4
#2 lore raw

Re: [meta-fsl-ppc][PATCH 2/2] usdpaa: set MACHINE_ARCH specific, same with dependency fmc

Quoted 13 lines · On Tue, Jul 2, 2013 at 12:39 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

---
 recipes-tools/usdpaa/usdpaa_git.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes-tools/usdpaa/usdpaa_git.bb +0 -0
index cb7b76b..93cb8ef 100644

recipes-tools/usdpaa/usdpaa_git.bb LICENSE = "BSD & GPLv2" · line 8

Quoted 5 lines
recipes-tools/usdpaa/usdpaa_git.bb +2 -0
@@ -4,6 +4,8 @@ LICENSE = "BSD & GPLv2"
 LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
 PR = "r4"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

Usually PACKAGE_ARCH is the last field being set in the recipe (near COMPATIBLE_MACHINE when it is the case). I'd move it down.

Quoted 11 lines
recipes-tools/usdpaa/usdpaa_git.bb +0 -1
 inherit pkgconfig
 
 DEPENDS = "libxml2 libedit ncurses readline flib fmc"
--

1.7.3.4

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

--
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

Re: [meta-fsl-ppc][PATCH 2/2] usdpaa: set MACHINE_ARCH specific, same with dependency fmc

In reply to Otavio Salvador
Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Tuesday, July 02, 2013 8:11 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH 2/2] usdpaa: set MACHINE_ARCH specific, same with dependency fmc

Quoted 14 lines · On Tue, Jul 2, 2013 at 12:39 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

---
 recipes-tools/usdpaa/usdpaa_git.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes-tools/usdpaa/usdpaa_git.bb +0 -0
index cb7b76b..93cb8ef 100644

recipes-tools/usdpaa/usdpaa_git.bb LICENSE = "BSD & GPLv2" · line 4

Quoted 1 line
recipes-tools/usdpaa/usdpaa_git.bb +0 -0
@@ -4,6 +4,8 @@ LICENSE = "BSD & GPLv2"
 LIC_FILES_CHKSUM =

"file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"

Quoted 7 lines

recipes-tools/usdpaa/usdpaa_git.bb LICENSE = "BSD & GPLv2" · line 8

Quoted 4 lines
recipes-tools/usdpaa/usdpaa_git.bb +2 -0
 PR = "r4"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

Usually PACKAGE_ARCH is the last field being set in the recipe (near COMPATIBLE_MACHINE when it is the case). I'd move it down.

Patch v2 sent out. Thanks for your suggestion.

Quoted 19 lines
Quoted 8 lines
recipes-tools/usdpaa/usdpaa_git.bb +0 -1
 inherit pkgconfig
 
 DEPENDS = "libxml2 libedit ncurses readline flib fmc"
--

1.7.3.4

Quoted 4 lines

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

--
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