summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-12-08 17:27:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-13 22:55:20 +0000
commite8fbd7158b418b6d509330848837a6da3399a75c (patch)
tree3d52b83d5fd9e9fb8a321f3015513fd30de51b43 /scripts
parent8dfc417780c6b119620fc7aaff1f4d7e21c2c2c9 (diff)
downloadpoky-e8fbd7158b418b6d509330848837a6da3399a75c.tar.gz
oe-run-native: standardize usage output
Made usage output of oe-run-native to look similar to the output of other oe scripts. [YOCTO #10751] (From OE-Core rev: e1c96125ea674509fbc9b36dc671b7a53bd848ac) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-run-native11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/oe-run-native b/scripts/oe-run-native
index 496e34f70e..7e26ea3fcc 100755
--- a/scripts/oe-run-native
+++ b/scripts/oe-run-native
@@ -22,8 +22,15 @@
22# 22#
23 23
24if [ $# -lt 1 -o "$1" = '--help' -o "$1" = '-h' ] ; then 24if [ $# -lt 1 -o "$1" = '--help' -o "$1" = '-h' ] ; then
25 echo "Usage: $0 <native tool> [parameters]" 25 echo 'oe-run-native: error: the following arguments are required: <native tool>'
26 exit 1 26 echo 'Usage: oe-run-native tool [parameters]'
27 echo ''
28 echo 'OpenEmbedded run-native - runs native tools'
29 echo ''
30 echo 'arguments:'
31 echo ' tool Native tool to run'
32 echo ''
33 exit 2
27fi 34fi
28 35
29SYSROOT_SETUP_SCRIPT=`which oe-find-native-sysroot 2> /dev/null` 36SYSROOT_SETUP_SCRIPT=`which oe-find-native-sysroot 2> /dev/null`