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

b28495 at freescale.com b28495 at freescale.com
Mon Jul 1 20:39:02 PDT 2013


From: Ting Liu <b28495 at freescale.com>

Signed-off-by: Ting Liu <b28495 at freescale.com>
Tested-by: Luo Zhenhua-B19537 <zhenhua.luo at freescale.com>
---
 recipes-kernel/u-boot/u-boot_git.bb |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

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





More information about the meta-freescale mailing list