summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-04 19:01:58 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-08 00:50:29 (GMT)
commit54fd9ad71b70cf823be702b980459980bcb05de6 (patch)
tree058a9cfa399a80e9a7b4bf628022aeb573970176 /meta/recipes-devtools/gcc
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>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-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 6acf8c5..b16c57d 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