summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sota.bbclass')
-rw-r--r--classes/sota.bbclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index d2a065c..86863d9 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -38,15 +38,17 @@ EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native
38INITRAMFS_FSTYPES ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot', 'cpio.gz.u-boot', 'cpio.gz')}" 38INITRAMFS_FSTYPES ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot', 'cpio.gz.u-boot', 'cpio.gz')}"
39 39
40# Please redefine OSTREE_REPO in order to have a persistent OSTree repo 40# Please redefine OSTREE_REPO in order to have a persistent OSTree repo
41export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" 41OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo"
42export OSTREE_OSNAME ?= "poky" 42OSTREE_BRANCHNAME ?= "${SOTA_HARDWARE_ID}"
43export OSTREE_BOOTLOADER ??= 'u-boot' 43OSTREE_OSNAME ?= "poky"
44export OSTREE_BOOT_PARTITION ??= "/boot" 44OSTREE_BOOTLOADER ??= 'u-boot'
45OSTREE_BOOT_PARTITION ??= "/boot"
45 46
46INITRAMFS_IMAGE ?= "initramfs-ostree-image" 47INITRAMFS_IMAGE ?= "initramfs-ostree-image"
47 48
48GARAGE_SIGN_REPO ?= "${DEPLOY_DIR_IMAGE}/garage_sign_repo" 49GARAGE_SIGN_REPO ?= "${DEPLOY_DIR_IMAGE}/garage_sign_repo"
49GARAGE_SIGN_KEYNAME ?= "garage-key" 50GARAGE_SIGN_KEYNAME ?= "garage-key"
51GARAGE_TARGET_NAME ?= "${OSTREE_BRANCHNAME}"
50GARAGE_TARGET_VERSION ?= "" 52GARAGE_TARGET_VERSION ?= ""
51GARAGE_TARGET_URL ?= "" 53GARAGE_TARGET_URL ?= ""
52GARAGE_CUSTOMIZE_TARGET ?= "" 54GARAGE_CUSTOMIZE_TARGET ?= ""
@@ -61,6 +63,6 @@ SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi"
61SOTA_MACHINE_freedom-u540 ?= "freedom-u540" 63SOTA_MACHINE_freedom-u540 ?= "freedom-u540"
62 64
63SOTA_OVERRIDES_BLACKLIST = "ostree ota" 65SOTA_OVERRIDES_BLACKLIST = "ostree ota"
64SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO" 66SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME"
65 67
66inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest 68inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest