summaryrefslogtreecommitdiffstats
path: root/classes/sota_raspberrypi.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-04-25 15:21:07 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2017-04-26 11:04:39 +0200
commit4d610e9f230dd23589b18588446c2368f3a99446 (patch)
tree4c2f39cc49525698ef8197646bd652db270df8b8 /classes/sota_raspberrypi.bbclass
parent4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff)
downloadmeta-updater-4d610e9f230dd23589b18588446c2368f3a99446.tar.gz
Replace includes with bblcasses
They are more flexible and allow tricks like conditionally inheriting machine-related classes from the main one which makes things easier for external users like AGL
Diffstat (limited to 'classes/sota_raspberrypi.bbclass')
-rw-r--r--classes/sota_raspberrypi.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/sota_raspberrypi.bbclass b/classes/sota_raspberrypi.bbclass
new file mode 100644
index 0000000..1d23d1f
--- /dev/null
+++ b/classes/sota_raspberrypi.bbclass
@@ -0,0 +1,12 @@
1IMAGE_CLASSES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'image_types_uboot sdcard_image-rpi-ota', '', d)}"
2IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'rpi-sdimg-ota', 'rpi-sdimg', d)}"
3
4### both rpi-sdimg and rpi-sdimg-ota broken
5IMAGE_FSTYPES += "ext4.xz ext4.bmap tar.xz"
6
7KERNEL_IMAGETYPE_sota = "uImage"
8PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot"
9UBOOT_MACHINE_raspberrypi2_sota ?= "rpi_2_defconfig"
10UBOOT_MACHINE_raspberrypi3_sota ?= "rpi_3_32b_defconfig"
11
12OSTREE_BOOTLOADER ?= "u-boot"