aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-10-28 12:45:15 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-10-28 18:29:38 +0000
commit202d801eb83c456ee44a15ccf6142e7d23a80cbc (patch)
tree344dee75fc3a300f2375162d7f43370842fe716d /templates
parentdfa42832d3239b1aa687b853fef63a5aa057a4fc (diff)
Move machine-dependent sota configuration to machine templates
Change-Id: Icb03b2163d7e36a54f27bee78570240c5d337107 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/machine/porter/50_local.conf.inc3
-rw-r--r--templates/machine/qemux86-64/50_local.conf.inc4
-rw-r--r--templates/machine/qemux86/50_local.conf.inc4
-rw-r--r--templates/machine/raspberrypi2/50_local.conf.inc9
-rw-r--r--templates/machine/raspberrypi3/50_local.conf.inc9
5 files changed, 29 insertions, 0 deletions
diff --git a/templates/machine/porter/50_local.conf.inc b/templates/machine/porter/50_local.conf.inc
index 570e41817..b50fcf7c4 100644
--- a/templates/machine/porter/50_local.conf.inc
+++ b/templates/machine/porter/50_local.conf.inc
@@ -184,3 +184,6 @@ DISTRO_FEATURES_append = " h264avcenc_lib"
#DISTRO_FEATURES_append = " aacsdec_mdw"
# ARM AAC Encode Middleware for Linux
#DISTRO_FEATURES_append = " aacenc_mdw"
+
+# Commit united image to OSTree, not just uImage
+OSTREE_KERNEL = "uImage+dtb"
diff --git a/templates/machine/qemux86-64/50_local.conf.inc b/templates/machine/qemux86-64/50_local.conf.inc
index f5bb53cfc..29e29b4d0 100644
--- a/templates/machine/qemux86-64/50_local.conf.inc
+++ b/templates/machine/qemux86-64/50_local.conf.inc
@@ -18,3 +18,7 @@ APPEND += "console=ttyS0,115200n8"
#
# All boot message will be off
APPEND += "quiet"
+
+# U-Boot support for SOTA
+PREFERRED_PROVIDER_virtual/bootloader_sota = "u-boot-ota"
+UBOOT_MACHINE_sota = "qemu-x86_defconfig"
diff --git a/templates/machine/qemux86/50_local.conf.inc b/templates/machine/qemux86/50_local.conf.inc
index 9cdc49da9..1062a7744 100644
--- a/templates/machine/qemux86/50_local.conf.inc
+++ b/templates/machine/qemux86/50_local.conf.inc
@@ -18,3 +18,7 @@ APPEND += "console=ttyS0,115200n8"
#
# All boot message will be off
APPEND += "quiet"
+
+# U-Boot support for SOTA
+PREFERRED_PROVIDER_virtual/bootloader_sota = "u-boot-ota"
+UBOOT_MACHINE_sota = "qemu-x86_defconfig"
diff --git a/templates/machine/raspberrypi2/50_local.conf.inc b/templates/machine/raspberrypi2/50_local.conf.inc
index d864964c9..827fa052c 100644
--- a/templates/machine/raspberrypi2/50_local.conf.inc
+++ b/templates/machine/raspberrypi2/50_local.conf.inc
@@ -7,7 +7,14 @@ 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_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"
+IMAGE_FSTYPES_remove_sota = "rpi-sdimg"
+
KERNEL_DEVICETREE_append = " overlays/vc4-kms-v3d-overlay.dtb"
+KERNEL_IMAGETYPE_sota = "uImage"
PREFERRED_VERSION_linux-raspberrypi = "4.4.%"
PREFERRED_VERSION_mesa = "11.%"
@@ -17,5 +24,7 @@ PREFERRED_PROVIDER_virtual/libgl = "mesa"
PREFERRED_PROVIDER_virtual/mesa = "mesa"
PREFERRED_PROVIDER_jpeg = "jpeg"
+UBOOT_MACHINE_sota = "rpi_3_32b_defconfig"
+PREFERRED_PROVIDER_virtual/bootloader_sota = "u-boot"
# For libomxil
#LICENSE_FLAGS_WHITELIST = "commercial"
diff --git a/templates/machine/raspberrypi3/50_local.conf.inc b/templates/machine/raspberrypi3/50_local.conf.inc
index a308e40e7..466886938 100644
--- a/templates/machine/raspberrypi3/50_local.conf.inc
+++ b/templates/machine/raspberrypi3/50_local.conf.inc
@@ -7,7 +7,14 @@ 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_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"
+IMAGE_FSTYPES_remove_sota = "rpi-sdimg"
+
KERNEL_DEVICETREE_append = " overlays/vc4-kms-v3d-overlay.dtb"
+KERNEL_IMAGETYPE_sota = "uImage"
PREFERRED_VERSION_linux-raspberrypi = "4.4.%"
PREFERRED_VERSION_mesa = "11.%"
@@ -17,5 +24,7 @@ PREFERRED_PROVIDER_virtual/libgl = "mesa"
PREFERRED_PROVIDER_virtual/mesa = "mesa"
PREFERRED_PROVIDER_jpeg = "jpeg"
+UBOOT_MACHINE_sota = "rpi_3_32b_defconfig"
+PREFERRED_PROVIDER_virtual/bootloader_sota = "u-boot"
# For libomxil
#LICENSE_FLAGS_WHITELIST = "commercial"