diff options
Diffstat (limited to 'conf/distro/sota.conf.inc')
-rw-r--r-- | conf/distro/sota.conf.inc | 51 |
1 files changed, 8 insertions, 43 deletions
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc index 23e5a43..7438424 100644 --- a/conf/distro/sota.conf.inc +++ b/conf/distro/sota.conf.inc | |||
@@ -1,45 +1,10 @@ | |||
1 | IMAGE_INSTALL_append = " ostree rvi-sota-client" | 1 | # Common settings to enable SOTA |
2 | # This can be pulled into a custom distribution, or included in | ||
3 | # local.conf directly with: | ||
4 | # | ||
5 | # require conf/distro/sota.conf.inc | ||
2 | 6 | ||
3 | # live image for OSTree-enabled systems | ||
4 | IMAGE_CLASSES_append = " image_types_ostree image_types_ota" | ||
5 | IMAGE_FSTYPES += "ostreepush otaimg" | ||
6 | |||
7 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | ||
8 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | ||
9 | OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | ||
10 | OSTREE_OSNAME ?= "poky" | ||
11 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | ||
12 | |||
13 | # Platform-specific configurations | ||
14 | |||
15 | ## RaspberryPi | ||
16 | IMAGE_CLASSES_append_raspberrypi2 = " image_types_uboot sdcard_image-rpi-ota" | ||
17 | IMAGE_CLASSES_append_raspberrypi3 = " image_types_uboot sdcard_image-rpi-ota" | ||
18 | IMAGE_FSTYPES += "${@'rpi-sdimg-ota' if d.getVar('MACHINE', True).startswith('raspberrypi') else ''}" | ||
19 | IMAGE_FSTYPES_remove = "rpi-sdimg" | ||
20 | |||
21 | KERNEL_IMAGETYPE_raspberrypi2 = "uImage" | ||
22 | KERNEL_IMAGETYPE_raspberrypi3 = "uImage" | ||
23 | |||
24 | UBOOT_MACHINE_raspberrypi2 = "rpi_2_defconfig" | ||
25 | UBOOT_MACHINE_raspberrypi3 = "rpi_3_32b_defconfig" | ||
26 | PREFERRED_PROVIDER_virtual/bootloader_raspberrypi2 = "u-boot" | ||
27 | PREFERRED_PROVIDER_virtual/bootloader_raspberrypi3 = "u-boot" | ||
28 | |||
29 | # Some BSPs (e.g. meta-raspberrypi) use this variable to turn debug on/off | ||
30 | DISTRO_TYPE ?= "${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", "debug", "release",d)}" | ||
31 | |||
32 | ## Minnowboard | ||
33 | PREFERRED_PROVIDER_virtual/bootloader_intel-corei7-64 = "u-boot-ota" | ||
34 | UBOOT_MACHINE_intel-corei7-64 = "minnowmax_defconfig" | ||
35 | IMAGE_CLASSES_append_intel-corei7-64 = " sdcard_image-minnowboard-ota" | ||
36 | IMAGE_FSTYPES += "${@'minnowboard-sdimg-ota' if d.getVar('MACHINE', True).startswith('intel-corei7-64') else ''}" | ||
37 | |||
38 | ## QEMU | ||
39 | PREFERRED_PROVIDER_virtual/bootloader_qemux86 = "u-boot-ota" | ||
40 | UBOOT_MACHINE_qemux86 = "qemu-x86_defconfig" | ||
41 | PREFERRED_PROVIDER_virtual/bootloader_qemux86-64= "u-boot-ota" | ||
42 | UBOOT_MACHINE_qemux86-64 = "qemu-x86_defconfig" | ||
43 | |||
44 | DISTROOVERRIDES_append = ":sota" | ||
45 | DISTRO_FEATURES_append = " sota" | 7 | DISTRO_FEATURES_append = " sota" |
8 | INHERIT += " sota" | ||
9 | # Prelinking increases the size of downloads and causes build errors | ||
10 | USER_CLASSES_remove = "image-prelink" | ||