summaryrefslogtreecommitdiffstats
path: root/scripts/envsetup.sh
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-04-25 15:21:07 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2017-04-26 11:04:39 +0200
commit4d610e9f230dd23589b18588446c2368f3a99446 (patch)
tree4c2f39cc49525698ef8197646bd652db270df8b8 /scripts/envsetup.sh
parent4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff)
downloadmeta-updater-4d610e9f230dd23589b18588446c2368f3a99446.tar.gz
Replace includes with bblcasses
They are more flexible and allow tricks like conditionally inheriting machine-related classes from the main one which makes things easier for external users like AGL
Diffstat (limited to 'scripts/envsetup.sh')
-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