From: Anton Gerasimov <anton@advancedtelematic.com>
Date: Wed, 2 Nov 2016 11:07:22 +0000 (+0100)
Subject: Generate OTA-enabled live image when building with agl-sota
X-Git-Tag: chinook_3.0.0~89
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=19aa2eca0c838d4270f7a990c8f95589c5c2ed78;p=AGL%2Fmeta-agl.git

Generate OTA-enabled live image when building with agl-sota

Bug-AGL: SPEC-307

Change-Id: I5ac3c3dad370545a33ce81071a4a15cdb261fa7a
Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
---

diff --git a/templates/machine/porter/50_local.conf.inc b/templates/machine/porter/50_local.conf.inc
index b50fcf7c4..a0452973e 100644
--- a/templates/machine/porter/50_local.conf.inc
+++ b/templates/machine/porter/50_local.conf.inc
@@ -187,3 +187,7 @@ DISTRO_FEATURES_append = " h264avcenc_lib"
 
 # Commit united image to OSTree, not just uImage
 OSTREE_KERNEL = "uImage+dtb"
+
+# OTA-enabled live image
+IMAGE_CLASSES_append_sota = " sdcard_image-porter-ota"
+IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'porter-sdimg-ota  ', '', d)}"