blob: 1d06dcfc03e755cfe6b6bb7f0fb4b3166c7496f8 [file] [log] [blame]
Patrick Williams9958f392021-10-26 16:28:19 -05001#!/bin/bash
2if [ -n "${BASH_SOURCE[0]}" ]; then
3 OBMCROOT="$(dirname "${BASH_SOURCE[0]}")"
Patrick Williams37eda0c2015-09-16 09:22:10 -05004elif [ -n "$ZSH_NAME" ]; then
Patrick Williams9958f392021-10-26 16:28:19 -05005 OBMCROOT="$(dirname "$0")"
Patrick Williams37eda0c2015-09-16 09:22:10 -05006else
Patrick Williams9958f392021-10-26 16:28:19 -05007 OBMCROOT="$(pwd)"
Patrick Williams37eda0c2015-09-16 09:22:10 -05008fi
9
Patrick Williams9958f392021-10-26 16:28:19 -050010if [ -f "$OBMCROOT/customrc" ]; then
Patrick Williams37eda0c2015-09-16 09:22:10 -050011 echo "### Sourcing customrc ###"
Patrick Williams9958f392021-10-26 16:28:19 -050012 # shellcheck source=/dev/null
13 . "$OBMCROOT/customrc"
Patrick Williams37eda0c2015-09-16 09:22:10 -050014fi
15
16echo "### Initializing OE build env ###"
Patrick Williams9958f392021-10-26 16:28:19 -050017# shellcheck source=oe-init-build-env
18. "$OBMCROOT/oe-init-build-env"