summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sota.bbclass')
-rw-r--r--classes/sota.bbclass17
1 files changed, 16 insertions, 1 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index 92b4c43..236a3bb 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -21,7 +21,11 @@ WKS_FILE_sota ?= "sdimage-sota.wks"
21 21
22EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native" 22EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native"
23 23
24INITRAMFS_FSTYPES ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot', 'cpio.gz.u-boot', 'cpio.gz')}" 24# Has to be an override, because 'INITRAMFS_FSTYPES ?=' is not strong enough to override the default value
25INITRAMFS_FSTYPES_sota ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot' and d.getVar('KERNEL_IMAGETYPE') != 'fitImage', 'cpio.gz.u-boot', 'cpio.gz')}"
26
27# Deploy config fragment list to OSTree root fs
28IMAGE_INSTALL_append = "${@oe.utils.ifelse(d.getVar('KERNEL_IMAGETYPE') == 'fitImage', ' fit-conf', ' ')}"
25 29
26# Please redefine OSTREE_REPO in order to have a persistent OSTree repo 30# Please redefine OSTREE_REPO in order to have a persistent OSTree repo
27export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" 31export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo"
@@ -38,6 +42,15 @@ GARAGE_TARGET_NAME ?= "${OSTREE_BRANCHNAME}"
38GARAGE_TARGET_VERSION ?= "" 42GARAGE_TARGET_VERSION ?= ""
39GARAGE_TARGET_URL ?= "https://example.com/" 43GARAGE_TARGET_URL ?= "https://example.com/"
40 44
45SOTA_BOOTLOADER_EXTRA_PARAMS ??= ""
46SOTA_BOOTLOADER_BOOTCOMMAND ??= "bootm"
47SOTA_BOOTLOADER_KERNEL_ADDR ??= "0x02700000"
48SOTA_BOOTLOADER_RAMDISK_ADDR ??= ""
49SOTA_BOOTLOADER_FDT_ADDR ??= ""
50SOTA_BOOTLOADER_BOOT_PART ??= "mmc 0:1"
51SOTA_BOOTLOADER_MAIN_PART ??= "mmc 0:2"
52SOTA_BOOTLOADER_ROOT_DEVICE ??= "/dev/mmcblk0p2"
53
41SOTA_MACHINE ??="none" 54SOTA_MACHINE ??="none"
42SOTA_MACHINE_rpi ?= "raspberrypi" 55SOTA_MACHINE_rpi ?= "raspberrypi"
43SOTA_MACHINE_porter ?= "porter" 56SOTA_MACHINE_porter ?= "porter"
@@ -49,4 +62,6 @@ SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi"
49SOTA_OVERRIDES_BLACKLIST = "ostree ota" 62SOTA_OVERRIDES_BLACKLIST = "ostree ota"
50SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME" 63SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME"
51 64
65do_image_wic[depends] += " ota-u-boot-script:do_deploy "
66
52inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest 67inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest