[oe-commits] [openembedded-core] 42/63: oe-find-native-sysroot: create usage output

git at git.openembedded.org git at git.openembedded.org
Tue Dec 13 22:57:00 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8ddfc48c7f3e2ca45c035cec492fdc31c6ad484f
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Dec 9 18:04:26 2016 +0200

    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 at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/oe-find-native-sysroot | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 81d62b8..13a5c46 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list