From 3e6e8c0097413de31ca89182969f1a2352947350 Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Fri, 4 Nov 2016 12:08:46 +0100 Subject: Add u-boot image class when sota feature is enabled Change-Id: I7ad6fc95f4252424ded09bc1d6d5ab18bf6733fd Signed-off-by: Anton Gerasimov --- templates/machine/porter-nogfx/50_local.conf.inc | 8 ++++++++ templates/machine/porter/50_local.conf.inc | 3 ++- templates/machine/raspberrypi2/50_local.conf.inc | 2 +- templates/machine/raspberrypi3/50_local.conf.inc | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/machine/porter-nogfx/50_local.conf.inc b/templates/machine/porter-nogfx/50_local.conf.inc index 63f5fb75c..6bc517191 100644 --- a/templates/machine/porter-nogfx/50_local.conf.inc +++ b/templates/machine/porter-nogfx/50_local.conf.inc @@ -18,3 +18,11 @@ UBOOT_MACHINE = "porter_vin_config" PREFERRED_PROVIDER_virtual/libgles2 = "mesa" PREFERRED_PROVIDER_virtual/egl = "mesa" + +# Commit united image to OSTree, not just uImage +OSTREE_KERNEL = "uImage+dtb" + +# OTA-enabled live image +IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-porter-ota" +IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'porter-sdimg-ota ', '', d)}" + diff --git a/templates/machine/porter/50_local.conf.inc b/templates/machine/porter/50_local.conf.inc index a0452973e..7cae49299 100644 --- a/templates/machine/porter/50_local.conf.inc +++ b/templates/machine/porter/50_local.conf.inc @@ -189,5 +189,6 @@ DISTRO_FEATURES_append = " h264avcenc_lib" OSTREE_KERNEL = "uImage+dtb" # OTA-enabled live image -IMAGE_CLASSES_append_sota = " sdcard_image-porter-ota" +IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-porter-ota" IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'porter-sdimg-ota ', '', d)}" + diff --git a/templates/machine/raspberrypi2/50_local.conf.inc b/templates/machine/raspberrypi2/50_local.conf.inc index 827fa052c..5b75257f0 100644 --- a/templates/machine/raspberrypi2/50_local.conf.inc +++ b/templates/machine/raspberrypi2/50_local.conf.inc @@ -7,7 +7,7 @@ CORE_IMAGE_EXTRA_INSTALL += "wayland weston" MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2" IMAGE_CLASSES += "sdcard_image-rpi-gdp" IMAGE_FSTYPES += "tar.bz2 ext3 rpi-sdimg" -IMAGE_CLASSES_append_sota = " sdcard_image-rpi-ota" +IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-rpi-ota" IMAGE_CLASSES_remove_sota = " sdcard_image-rpi-gdp" IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'rpi-sdimg-ota', '', d)}" IMAGE_FSTYPES_remove_sota = "rpi-sdimg" diff --git a/templates/machine/raspberrypi3/50_local.conf.inc b/templates/machine/raspberrypi3/50_local.conf.inc index 466886938..5309411a8 100644 --- a/templates/machine/raspberrypi3/50_local.conf.inc +++ b/templates/machine/raspberrypi3/50_local.conf.inc @@ -7,7 +7,7 @@ CORE_IMAGE_EXTRA_INSTALL += "wayland weston" MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2" IMAGE_CLASSES += "sdcard_image-rpi-gdp" IMAGE_FSTYPES += "tar.bz2 ext3 rpi-sdimg" -IMAGE_CLASSES_append_sota = " sdcard_image-rpi-ota" +IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-rpi-ota" IMAGE_CLASSES_remove_sota = " sdcard_image-rpi-gdp" IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'rpi-sdimg-ota ', '', d)}" IMAGE_FSTYPES_remove_sota = "rpi-sdimg" -- cgit 1.2.3-korg