aboutsummaryrefslogtreecommitdiffstats
path: root/templates/feature/agl-sota
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2020-01-23 22:14:28 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-02-14 10:38:08 +0000
commit2b014c6f1653a75b47ce6f9b26ba3763b470d57f (patch)
tree46781a9c64da5c0849efd15aeab2010a9a695e08 /templates/feature/agl-sota
parent42c901b1fac7e740ff7dde2c219e92cdfcb2fcdb (diff)
Fix SOTA build for build other than qemu
- The meta-updater-qemux86-64 must be add only for qemu build. Change-Id: Iebdeddd869b2fca88467acd6983826b4f7e49de1 Bug-AGL: SPEC-3097 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'templates/feature/agl-sota')
-rw-r--r--templates/feature/agl-sota/50_bblayers.conf.inc1
-rw-r--r--templates/feature/agl-sota/50_setup.sh24
2 files changed, 24 insertions, 1 deletions
diff --git a/templates/feature/agl-sota/50_bblayers.conf.inc b/templates/feature/agl-sota/50_bblayers.conf.inc
index 67c41d230..48655fdcb 100644
--- a/templates/feature/agl-sota/50_bblayers.conf.inc
+++ b/templates/feature/agl-sota/50_bblayers.conf.inc
@@ -1,6 +1,5 @@
BBLAYERS =+ " \
${METADIR}/external/meta-updater \
- ${METADIR}/external/meta-updater-qemux86-64 \
${METADIR}/external/meta-openembedded/meta-filesystems \
${METADIR}/external/meta-openembedded/meta-python \
"
diff --git a/templates/feature/agl-sota/50_setup.sh b/templates/feature/agl-sota/50_setup.sh
new file mode 100644
index 000000000..c5aeb532d
--- /dev/null
+++ b/templates/feature/agl-sota/50_setup.sh
@@ -0,0 +1,24 @@
+
+cat <<EOF >> ${BUILDDIR}/conf/bblayers.conf
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# fragment {
+# ${METADIR}/meta-agl/templates/feature/agl-sota/50_setup.sh
+#
+EOF
+
+case ${MACHINE} in
+ "qemux86-64")
+ echo "BBLAYERS =+ \"\${METADIR}/external/meta-updater-qemux86-64\"" >> ${BUILDDIR}/conf/bblayers.conf;;
+ *)
+ echo "#No extra SOTA feature layer for MACHINE ${MACHINE}" >> ${BUILDDIR}/conf/bblayers.conf;;
+esac
+
+
+cat <<EOF >> ${BUILDDIR}/conf/bblayers.conf
+
+#
+# }
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
+EOF