Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | if [ -n "${BASH_SOURCE[0]}" ]; then |
| 3 | OBMCROOT="$(dirname "${BASH_SOURCE[0]}")" |
Patrick Williams | 37eda0c | 2015-09-16 09:22:10 -0500 | [diff] [blame] | 4 | elif [ -n "$ZSH_NAME" ]; then |
Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 5 | OBMCROOT="$(dirname "$0")" |
Patrick Williams | 37eda0c | 2015-09-16 09:22:10 -0500 | [diff] [blame] | 6 | else |
Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 7 | OBMCROOT="$(pwd)" |
Patrick Williams | 37eda0c | 2015-09-16 09:22:10 -0500 | [diff] [blame] | 8 | fi |
| 9 | |
Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 10 | if [ -f "$OBMCROOT/customrc" ]; then |
Patrick Williams | 37eda0c | 2015-09-16 09:22:10 -0500 | [diff] [blame] | 11 | echo "### Sourcing customrc ###" |
Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 12 | # shellcheck source=/dev/null |
| 13 | . "$OBMCROOT/customrc" |
Patrick Williams | 37eda0c | 2015-09-16 09:22:10 -0500 | [diff] [blame] | 14 | fi |
| 15 | |
| 16 | echo "### Initializing OE build env ###" |
Patrick Williams | 9958f39 | 2021-10-26 16:28:19 -0500 | [diff] [blame] | 17 | # shellcheck source=oe-init-build-env |
| 18 | . "$OBMCROOT/oe-init-build-env" |