summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-04 11:01:58 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-08 00:50:29 +0000
commit54fd9ad71b70cf823be702b980459980bcb05de6 (patch)
tree058a9cfa399a80e9a7b4bf628022aeb573970176
parentd6b885b1b5299d2c0c539f552bafc53569bbc2d3 (diff)
downloadpoky-54fd9ad71b70cf823be702b980459980bcb05de6.tar.gz
gcc-cross-testing: Fix evaluation of user and target name
Dont use -q to grep we pipe to /dev/null anyway all we care is the return status of grep (From OE-Core rev: 9c575b5f37ee53eaf26bfdc468d4cbb661db703f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 6acf8c5848..b16c57d399 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -65,11 +65,11 @@ then
65 exit 1; 65 exit 1;
66fi 66fi
67 67
68echo "\$target" | grep −q "@" >& /dev/null 68echo "\$target" | grep "@" >& /dev/null
69if [ "x\$?" = "x0" ] 69if [ "x\$?" = "x0" ]
70then 70then
71 user=echo \$target | cut -d '@' -f 1 71 user=\$(echo \$target | cut -d '@' -f 1)
72 target=echo \$target | cut -d '@' -f 2 72 target=\$(echo \$target | cut -d '@' -f 2)
73else 73else
74 user=\$USER 74 user=\$USER
75fi 75fi