summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorcajun-rat <p@beta16.co.uk>2017-04-26 12:36:38 +0200
committerGitHub <noreply@github.com>2017-04-26 12:36:38 +0200
commitbae52014b6e3a49e7adf49373238dab9f5f3b4a2 (patch)
tree4c2f39cc49525698ef8197646bd652db270df8b8 /scripts
parent4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff)
parent4d610e9f230dd23589b18588446c2368f3a99446 (diff)
downloadmeta-updater-bae52014b6e3a49e7adf49373238dab9f5f3b4a2.tar.gz
Merge pull request #57 from advancedtelematic/bugfix/machinc
Replace includes with bblcasses
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/envsetup.sh8
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
35SCRIPTDIR=$(cd $(dirname $BASH_SOURCE) && pwd -P) 35SCRIPTDIR=$(cd $(dirname $BASH_SOURCE) && pwd -P)
36METADIR=$(cd $(dirname $BASH_SOURCE)/../.. && pwd -P) 36METADIR=$(cd $(dirname $BASH_SOURCE)/../.. && pwd -P)
37 37
38if ! [[ -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
41fi
42
43if [ -e ${BUILDDIR}/conf/local.conf ]; then 38if [ -e ${BUILDDIR}/conf/local.conf ]; then
44 source $METADIR/poky/oe-init-build-env ${BUILDDIR} 39 source $METADIR/poky/oe-init-build-env ${BUILDDIR}
45else 40else
@@ -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
53fi 47fi
54 48