diff options
Diffstat (limited to 'meta')
| -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 |
