summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-04-03 12:05:53 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2017-04-03 12:10:27 +0200
commitb49c2631b6bc48ead4d352e2bd00cdfbca7af5e8 (patch)
tree1493f6d046067c36a4059b26b690f5d8cae9f50d /conf
parent501e07acd803df6f9264c4206b4b9529006f287a (diff)
downloadmeta-updater-b49c2631b6bc48ead4d352e2bd00cdfbca7af5e8.tar.gz
Replace sdcard_image* classes with wic
Diffstat (limited to 'conf')
-rw-r--r--conf/distro/sota.conf.inc48
1 files changed, 12 insertions, 36 deletions
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc
index 23e5a43..c8b4388 100644
--- a/conf/distro/sota.conf.inc
+++ b/conf/distro/sota.conf.inc
@@ -1,8 +1,17 @@
1IMAGE_INSTALL_append = " ostree rvi-sota-client" 1DISTRO_FEATURES_append = " sota"
2OVERRIDES .= ":sota"
3
4IMAGE_INSTALL_append = " ostree"
2 5
3# live image for OSTree-enabled systems 6# live image for OSTree-enabled systems
4IMAGE_CLASSES_append = " image_types_ostree image_types_ota" 7IMAGE_CLASSES += "image_types_ostree image_types_ota"
5IMAGE_FSTYPES += "ostreepush otaimg" 8IMAGE_FSTYPES += "ostreepush otaimg wic"
9WKS_FILE = "sdimage-sota.wks"
10do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg"
11
12# No working WKS for Raspberry Pi yet
13IMAGE_FSTYPES_remove_raspberrypi3 = "wic"
14IMAGE_FSTYPES_remove_raspberrypi2 = "wic"
6 15
7# Please redefine OSTREE_REPO in order to have a persistent OSTree repo 16# Please redefine OSTREE_REPO in order to have a persistent OSTree repo
8OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" 17OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo"
@@ -10,36 +19,3 @@ OSTREE_BRANCHNAME ?= "ota-${MACHINE}"
10OSTREE_OSNAME ?= "poky" 19OSTREE_OSNAME ?= "poky"
11OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" 20OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image"
12 21
13# Platform-specific configurations
14
15## RaspberryPi
16IMAGE_CLASSES_append_raspberrypi2 = " image_types_uboot sdcard_image-rpi-ota"
17IMAGE_CLASSES_append_raspberrypi3 = " image_types_uboot sdcard_image-rpi-ota"
18IMAGE_FSTYPES += "${@'rpi-sdimg-ota' if d.getVar('MACHINE', True).startswith('raspberrypi') else ''}"
19IMAGE_FSTYPES_remove = "rpi-sdimg"
20
21KERNEL_IMAGETYPE_raspberrypi2 = "uImage"
22KERNEL_IMAGETYPE_raspberrypi3 = "uImage"
23
24UBOOT_MACHINE_raspberrypi2 = "rpi_2_defconfig"
25UBOOT_MACHINE_raspberrypi3 = "rpi_3_32b_defconfig"
26PREFERRED_PROVIDER_virtual/bootloader_raspberrypi2 = "u-boot"
27PREFERRED_PROVIDER_virtual/bootloader_raspberrypi3 = "u-boot"
28
29# Some BSPs (e.g. meta-raspberrypi) use this variable to turn debug on/off
30DISTRO_TYPE ?= "${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", "debug", "release",d)}"
31
32## Minnowboard
33PREFERRED_PROVIDER_virtual/bootloader_intel-corei7-64 = "u-boot-ota"
34UBOOT_MACHINE_intel-corei7-64 = "minnowmax_defconfig"
35IMAGE_CLASSES_append_intel-corei7-64 = " sdcard_image-minnowboard-ota"
36IMAGE_FSTYPES += "${@'minnowboard-sdimg-ota' if d.getVar('MACHINE', True).startswith('intel-corei7-64') else ''}"
37
38## QEMU
39PREFERRED_PROVIDER_virtual/bootloader_qemux86 = "u-boot-ota"
40UBOOT_MACHINE_qemux86 = "qemu-x86_defconfig"
41PREFERRED_PROVIDER_virtual/bootloader_qemux86-64= "u-boot-ota"
42UBOOT_MACHINE_qemux86-64 = "qemu-x86_defconfig"
43
44DISTROOVERRIDES_append = ":sota"
45DISTRO_FEATURES_append = " sota"