summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-12-09 18:04:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-13 22:47:31 +0000
commit8ddfc48c7f3e2ca45c035cec492fdc31c6ad484f (patch)
tree13646ceab3badee5d929ffaf5415aac2f2b1c9d8 /scripts
parentec0fdb5e896fc20dbafcc8ae507b17c011dc56fd (diff)
downloadopenembedded-core-8ddfc48c7f3e2ca45c035cec492fdc31c6ad484f.tar.gz
openembedded-core-8ddfc48c7f3e2ca45c035cec492fdc31c6ad484f.tar.bz2
openembedded-core-8ddfc48c7f3e2ca45c035cec492fdc31c6ad484f.zip
oe-find-native-sysroot: create usage output
Created usage output for oe-find-native-sysroot script. [YOCTO #10751] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-find-native-sysroot14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 81d62b8882..13a5c46039 100755
--- a/scripts/oe-find-native-sysroot
+++ b/scripts/oe-find-native-sysroot
@@ -30,6 +30,20 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+if [ "$1" = '--help' -o "$1" = '-h' ] ; then
+ echo 'Usage: oe-find-native-sysroot [-h|--help]'
+ echo ''
+ echo 'OpenEmbedded find-native-sysroot - helper script to set'
+ echo 'environment variables OECORE_NATIVE_SYSROOT and PSEUDO'
+ echo 'to the path of the native sysroot directory and pseudo'
+ echo 'executable binary'
+ echo ''
+ echo 'options:'
+ echo ' -h, --help show this help message and exit'
+ echo ''
+ exit 2
+fi
+
if [ "x$OECORE_NATIVE_SYSROOT" = "x" ]; then
BITBAKE=`which bitbake 2> /dev/null`
if [ "x$BITBAKE" != "x" ]; then