summaryrefslogtreecommitdiffstats
path: root/conf/distro/sota.conf.inc
blob: c6f914dd462ebfc64642d277f01836170ccb4af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
IMAGE_INSTALL_append = " ostree rvi-sota-client"

# live image for OSTree-enabled systems
IMAGE_CLASSES_append = " image_types_ostree image_types_ota"
IMAGE_FSTYPES += "ostreepush otaimg"

# Please redefine OSTREE_REPO in order to have a persistent OSTree repo
OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo"
OSTREE_BRANCHNAME ?= "ota-${MACHINE}"
OSTREE_OSNAME ?= "poky"
OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image"

# Platform-specific configuration
IMAGE_CLASSES_append_raspberrypi2 = " image_types_uboot sdcard_image-rpi-ota"
IMAGE_CLASSES_append_raspberrypi3 = " image_types_uboot sdcard_image-rpi-ota"
IMAGE_FSTYPES += "${@'rpi-sdimg-ota' if d.getVar('MACHINE', True).startswith('raspberrypi') else ''}"
IMAGE_FSTYPES_remove = "rpi-sdimg"

KERNEL_IMAGETYPE_raspberrypi2 = "uImage"
KERNEL_IMAGETYPE_raspberrypi3 = "uImage"

UBOOT_MACHINE_raspberrypi2 = "rpi_2_defconfig"
UBOOT_MACHINE_raspberrypi3 = "rpi_3_32b_defconfig"
PREFERRED_PROVIDER_virtual/bootloader_raspberrypi2 = "u-boot"
PREFERRED_PROVIDER_virtual/bootloader_raspberrypi3 = "u-boot"

DISTRO_FEATURES_append = " systemd"

DISTROOVERRIDES_append = ":sota"