Patchwork [meta-fsl-ppc,1/2] u-boot: not use == to compatible with dash

login
register
mail settings
Submitter Ting Liu
Date July 2, 2013, 3:39 a.m.
Message ID <1372736343-8839-1-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52777/
State Accepted
Headers show

Comments

Ting Liu - July 2, 2013, 3:39 a.m.
From: Ting Liu <b28495@freescale.com>

Signed-off-by: Ting Liu <b28495@freescale.com>
Tested-by: Luo Zhenhua-B19537 <zhenhua.luo@freescale.com>
---
 recipes-kernel/u-boot/u-boot_git.bb |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
Otavio Salvador - July 2, 2013, 12:11 p.m.
On Tue, Jul 2, 2013 at 12:39 AM,  <b28495@freescale.com> wrote:
> From: Ting Liu <b28495@freescale.com>
>
> Signed-off-by: Ting Liu <b28495@freescale.com>
> Tested-by: Luo Zhenhua-B19537 <zhenhua.luo@freescale.com>

Great! Less bashism is always good :)

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

Patch

diff --git a/recipes-kernel/u-boot/u-boot_git.bb b/recipes-kernel/u-boot/u-boot_git.bb
index 7427dfc..c3aa105 100644
--- a/recipes-kernel/u-boot/u-boot_git.bb
+++ b/recipes-kernel/u-boot/u-boot_git.bb
@@ -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