diff options
Diffstat (limited to 'scripts/envsetup.sh')
-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 |