commit | 37eda0c49a9fc0a15002500e40da9c8bec70ebf3 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 16 09:22:10 2015 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 16 09:22:10 2015 -0500 |
tree | 4a7513c85cb3b3ebd8a2814709f8f24c45b3d232 | |
parent | 885cdf3f44f8a7a4f1972cb3adc18b1e80d606ce [diff] [blame] |
Environment helper utility.
diff --git a/openbmc-env b/openbmc-env new file mode 100644 index 0000000..03e8628 --- /dev/null +++ b/openbmc-env
@@ -0,0 +1,16 @@ +if [ -n "$BASH_SOURCE" ]; then + OBMCROOT="`dirname $BASH_SOURCE`" +elif [ -n "$ZSH_NAME" ]; then + OBMCROOT="`dirname $0`" +else + OBMCROOT="`pwd`" +fi + +if [ -f $OBMCROOT/customrc ]; then + echo "### Sourcing customrc ###" + . $OBMCROOT/customrc +fi + +echo "### Initializing OE build env ###" +. $OBMCROOT/oe-init-build-env +