diff options
author | cajun-rat <p@beta16.co.uk> | 2017-04-26 12:36:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 12:36:38 +0200 |
commit | bae52014b6e3a49e7adf49373238dab9f5f3b4a2 (patch) | |
tree | 4c2f39cc49525698ef8197646bd652db270df8b8 /scripts/envsetup.sh | |
parent | 4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff) | |
parent | 4d610e9f230dd23589b18588446c2368f3a99446 (diff) | |
download | meta-updater-bae52014b6e3a49e7adf49373238dab9f5f3b4a2.tar.gz |
Merge pull request #57 from advancedtelematic/bugfix/machinc
Replace includes with bblcasses
Diffstat (limited to 'scripts/envsetup.sh')
-rwxr-xr-x | scripts/envsetup.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 6c01d5b..5adf319 100755 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh | |||
@@ -35,11 +35,6 @@ fi | |||
35 | SCRIPTDIR=$(cd $(dirname $BASH_SOURCE) && pwd -P) | 35 | SCRIPTDIR=$(cd $(dirname $BASH_SOURCE) && pwd -P) |
36 | METADIR=$(cd $(dirname $BASH_SOURCE)/../.. && pwd -P) | 36 | METADIR=$(cd $(dirname $BASH_SOURCE)/../.. && pwd -P) |
37 | 37 | ||
38 | if ! [[ -e ${SCRIPTDIR}/../conf/include/local/sota_${MACHINE}.inc && -e ${SCRIPTDIR}/../conf/include/bblayers/sota_${MACHINE}.inc ]]; then | ||
39 | echo "Error: invalid machine: ${MACHINE}" >&2 | ||
40 | return -1 | ||
41 | fi | ||
42 | |||
43 | if [ -e ${BUILDDIR}/conf/local.conf ]; then | 38 | if [ -e ${BUILDDIR}/conf/local.conf ]; then |
44 | source $METADIR/poky/oe-init-build-env ${BUILDDIR} | 39 | source $METADIR/poky/oe-init-build-env ${BUILDDIR} |
45 | else | 40 | else |
@@ -47,8 +42,7 @@ else | |||
47 | echo "METADIR := \"\${@os.path.abspath('${METADIR}')}\"" >> conf/bblayers.conf | 42 | echo "METADIR := \"\${@os.path.abspath('${METADIR}')}\"" >> conf/bblayers.conf |
48 | cat ${METADIR}/meta-updater/conf/include/bblayers/sota.inc >> conf/bblayers.conf | 43 | cat ${METADIR}/meta-updater/conf/include/bblayers/sota.inc >> conf/bblayers.conf |
49 | cat ${METADIR}/meta-updater/conf/include/bblayers/sota_${MACHINE}.inc >> conf/bblayers.conf | 44 | cat ${METADIR}/meta-updater/conf/include/bblayers/sota_${MACHINE}.inc >> conf/bblayers.conf |
50 | echo "include conf/include/local/sota_${MACHINE}.inc" >> conf/local.conf | 45 | echo "MACHINE = \"${MACHINE}\"" >> conf/local.conf |
51 | echo "include conf/distro/sota.conf.inc" >> conf/local.conf | ||
52 | echo "DISTRO = \"poky-sota-systemd\"" >> conf/local.conf | 46 | echo "DISTRO = \"poky-sota-systemd\"" >> conf/local.conf |
53 | fi | 47 | fi |
54 | 48 | ||