diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-04-28 08:15:30 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-01 12:38:08 +0100 |
| commit | b11dc75d19d91bb6a85aaf46f81abbe1d2d005e2 (patch) | |
| tree | 7c151e1bd3f9622d8f0b9ef4aa4d18532ac01f46 /meta/recipes-devtools | |
| parent | 339154100f5c26dea0a98cd1508d9533aaecc7e4 (diff) | |
| download | poky-b11dc75d19d91bb6a85aaf46f81abbe1d2d005e2.tar.gz | |
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
(From OE-Core rev: 4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 5 |
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 e7a5e41be8..6d160d659a 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
| @@ -45,7 +45,6 @@ do_compile () { | |||
| 45 | # append execution part of the script | 45 | # append execution part of the script |
| 46 | cat >> ${B}/${TARGET_PREFIX}testgcc << STOP | 46 | cat >> ${B}/${TARGET_PREFIX}testgcc << STOP |
| 47 | target="\$1" | 47 | target="\$1" |
| 48 | shift | ||
| 49 | usage () { | 48 | usage () { |
| 50 | echo "Usage:" | 49 | echo "Usage:" |
| 51 | echo "\$0 user@target 'extra options to dejagnu'" | 50 | echo "\$0 user@target 'extra options to dejagnu'" |
| @@ -60,11 +59,13 @@ usage () { | |||
| 60 | } | 59 | } |
| 61 | if [ "x\$target" = "x" ] | 60 | if [ "x\$target" = "x" ] |
| 62 | then | 61 | then |
| 63 | echo "Please specify the target machine and remote user in form of user@target" | 62 | echo "Please specify the target machine and remote user in form of user@target\n" |
| 64 | usage | 63 | usage |
| 65 | exit 1; | 64 | exit 1; |
| 66 | fi | 65 | fi |
| 67 | 66 | ||
| 67 | shift | ||
| 68 | |||
| 68 | echo "\$target" | grep "@" 2>&1 > /dev/null | 69 | echo "\$target" | grep "@" 2>&1 > /dev/null |
| 69 | if [ "x\$?" = "x0" ] | 70 | if [ "x\$?" = "x0" ] |
| 70 | then | 71 | then |
