diff options
Diffstat (limited to 'classes/sota.bbclass')
| -rw-r--r-- | classes/sota.bbclass | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 0697932..ab9611a 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | DISTRO_FEATURES_append = " sota" | 1 | python __anonymous() { |
| 2 | OVERRIDES .= ":sota" | 2 | if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d): |
| 3 | d.appendVar("OVERRIDES", ":sota") | ||
| 4 | #d.appendVar("IMAGE_INSTALL", " ostree os-release") | ||
| 3 | 5 | ||
| 4 | IMAGE_INSTALL_append = " ostree os-release" | 6 | d.appendVarFlag("do_image_wic", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True)) |
| 7 | #d.appendVar("EXTRA_IMAGEDEPENDS", " parted-native mtools-native dosfstools-native") | ||
| 8 | } | ||
| 5 | 9 | ||
| 6 | # live image for OSTree-enabled systems | 10 | IMAGE_INSTALL_append_sota = " ostree os-release" |
| 7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" | 11 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
| 8 | IMAGE_FSTYPES += "ostreepush otaimg" | 12 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush otaimg wic', ' ', d)}" |
| 9 | 13 | ||
| 10 | # if don't build wic image unless IMAGE_BOOT_FILES is set. Prevents build from failing | 14 | WKS_FILE_sota ?= "sdimage-sota.wks" |
| 11 | # on machines that don't support updater yet | ||
| 12 | IMAGE_FSTYPES += "${@' wic' if (d.getVar("IMAGE_BOOT_FILES", True)) else ''}" | ||
| 13 | WKS_FILE ?= "sdimage-sota.wks" | ||
| 14 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" | ||
| 15 | 15 | ||
| 16 | EXTRA_IMAGEDEPENDS += " parted-native mtools-native dosfstools-native" | 16 | EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native" |
| 17 | 17 | ||
| 18 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | 18 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo |
| 19 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | 19 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" |
| @@ -21,13 +21,11 @@ OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | |||
| 21 | OSTREE_OSNAME ?= "poky" | 21 | OSTREE_OSNAME ?= "poky" |
| 22 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | 22 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" |
| 23 | 23 | ||
| 24 | # Prelinking increases the size of downloads and causes build errors | 24 | SOTA_MACHINE ??="none" |
| 25 | USER_CLASSES_remove = "image-prelink" | 25 | SOTA_MACHINE_raspberrypi2 ?= "raspberrypi" |
| 26 | SOTA_MACHINE_rarpberrypi3 ?= "raspberrypi" | ||
| 27 | SOTA_MACHINE_porter ?= "porter" | ||
| 28 | SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" | ||
| 29 | SOTA_MACHINE_qemux86-64 ?= "qemux86-64" | ||
| 26 | 30 | ||
| 27 | SOTA_MACHINE ?= "none" | ||
| 28 | SOTA_MACHINE_raspberrypi = "raspberrypi" | ||
| 29 | SOTA_MACHINE_raspberrypi3 = "raspberrypi" | ||
| 30 | SOTA_MACHINE_porter = "porter" | ||
| 31 | SOTA_MACHINE_intel-corei7-64 = "minnowboard" | ||
| 32 | SOTA_MACHINE_qemux86-64 = "qemux86-64" | ||
| 33 | inherit sota_${SOTA_MACHINE} | 31 | inherit sota_${SOTA_MACHINE} |
