summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-04-28 08:15:30 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-01 11:55:42 +0100
commit4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b (patch)
tree89af9c10f16cab0127ffd242c1be2b800a76f512 /meta/recipes-devtools
parentad9e844e5349a5bbea1ce60b75e5b1e55db9039e (diff)
downloadopenembedded-core-4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b.tar.gz
openembedded-core-4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b.tar.bz2
openembedded-core-4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b.tar.xz
openembedded-core-4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b.zip
gcc-cross.inc: Fix cross testing script
shift the cmdline argument after determining there is atleast 1 argument to shift otherwise it ends up in error when no argument is specified Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index e7a5e41be..6d160d659 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -45,7 +45,6 @@ do_compile () {
# append execution part of the script
cat >> ${B}/${TARGET_PREFIX}testgcc << STOP
target="\$1"
-shift
usage () {
echo "Usage:"
echo "\$0 user@target 'extra options to dejagnu'"
@@ -60,11 +59,13 @@ usage () {
}
if [ "x\$target" = "x" ]
then
- echo "Please specify the target machine and remote user in form of user@target"
+ echo "Please specify the target machine and remote user in form of user@target\n"
usage
exit 1;
fi
+shift
+
echo "\$target" | grep "@" 2>&1 > /dev/null
if [ "x\$?" = "x0" ]
then