diff options
author | Phil Wise <phil@advancedtelematic.com> | 2017-06-26 16:33:56 +0200 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2017-06-26 16:33:56 +0200 |
commit | 0f40a9d48aeffeebccd01124f8e8c43b2e29883c (patch) | |
tree | 29976fc11edfa2c5c6680760e482034bfffa833d /scripts | |
parent | a33124a4592820f4b3c4deaf6853476df2a2f105 (diff) | |
download | meta-updater-0f40a9d48aeffeebccd01124f8e8c43b2e29883c.tar.gz |
Fix new/existing build directory logic
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/envsetup.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index c2f27c5..ff78681 100755 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh | |||
@@ -22,12 +22,14 @@ if [[ $SOURCED -ne 1 ]]; then | |||
22 | fi | 22 | fi |
23 | 23 | ||
24 | METADIR="${SOURCEDIR}/../.." | 24 | METADIR="${SOURCEDIR}/../.." |
25 | source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" | ||
26 | 25 | ||
27 | if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then | 26 | if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then |
27 | source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" | ||
28 | echo "METADIR := \"\${@os.path.abspath('${METADIR}')}\"" >> conf/bblayers.conf | 28 | echo "METADIR := \"\${@os.path.abspath('${METADIR}')}\"" >> conf/bblayers.conf |
29 | cat "${METADIR}/meta-updater/conf/include/bblayers/sota.inc" >> conf/bblayers.conf | 29 | cat "${METADIR}/meta-updater/conf/include/bblayers/sota.inc" >> conf/bblayers.conf |
30 | cat "${METADIR}/meta-updater/conf/include/bblayers/sota_${MACHINE}.inc" >> conf/bblayers.conf | 30 | cat "${METADIR}/meta-updater/conf/include/bblayers/sota_${MACHINE}.inc" >> conf/bblayers.conf |
31 | echo "MACHINE = \"${MACHINE}\"" >> conf/local.conf | 31 | echo "MACHINE = \"${MACHINE}\"" >> conf/local.conf |
32 | echo "DISTRO = \"poky-sota-systemd\"" >> conf/local.conf | 32 | echo "DISTRO = \"poky-sota-systemd\"" >> conf/local.conf |
33 | else | ||
34 | source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" | ||
33 | fi | 35 | fi |