Fix SOTA build for build other than qemu 40/23940/2
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Thu, 23 Jan 2020 21:14:28 +0000 (22:14 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 14 Feb 2020 10:38:08 +0000 (10:38 +0000)
- 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>
templates/feature/agl-sota/50_bblayers.conf.inc
templates/feature/agl-sota/50_setup.sh [new file with mode: 0644]

index 67c41d2..48655fd 100644 (file)
@@ -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 (file)
index 0000000..c5aeb53
--- /dev/null
@@ -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