diff options
| author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-20 18:16:47 +0200 |
|---|---|---|
| committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-22 22:39:03 +0200 |
| commit | fe58cc2394283801d7fecc329a8d6e278373938a (patch) | |
| tree | f33cf4cf24b83fdd3501acb134424fa82c359d53 | |
| parent | e6ecb4a285d6d0d599155951dc101166e6440881 (diff) | |
| download | meta-updater-fe58cc2394283801d7fecc329a8d6e278373938a.tar.gz | |
Don't build wic unless IMAGE_BOOT_FILES is set
| -rw-r--r-- | conf/distro/sota.conf.inc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc index a2d8184..5ec1d18 100644 --- a/conf/distro/sota.conf.inc +++ b/conf/distro/sota.conf.inc | |||
| @@ -5,19 +5,16 @@ IMAGE_INSTALL_append = " ostree os-release" | |||
| 5 | 5 | ||
| 6 | # live image for OSTree-enabled systems | 6 | # live image for OSTree-enabled systems |
| 7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" | 7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" |
| 8 | IMAGE_FSTYPES += "ostreepush otaimg wic" | 8 | IMAGE_FSTYPES += "ostreepush otaimg" |
| 9 | |||
| 10 | # if don't build wic image unless IMAGE_BOOT_FILES is set. Prevents build from failing | ||
| 11 | # on machines that don't support updater yet | ||
| 12 | IMAGE_FSTYPES += "${@' wic' if (d.getVar("IMAGE_BOOT_FILES", True)) else ''}" | ||
| 9 | WKS_FILE ?= "sdimage-sota.wks" | 13 | WKS_FILE ?= "sdimage-sota.wks" |
| 10 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" | 14 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" |
| 11 | 15 | ||
| 12 | EXTRA_IMAGEDEPENDS += " parted-native mtools-native dosfstools-native" | 16 | EXTRA_IMAGEDEPENDS += " parted-native mtools-native dosfstools-native" |
| 13 | 17 | ||
| 14 | # No working WKS for Raspberry Pi yet | ||
| 15 | IMAGE_FSTYPES_remove_raspberrypi3 = "wic" | ||
| 16 | IMAGE_FSTYPES_remove_raspberrypi2 = "wic" | ||
| 17 | |||
| 18 | # QEMU emulation uses plain otaimg, no wic needed | ||
| 19 | IMAGE_FSTYPES_remove_qemux86-64 = "wic" | ||
| 20 | |||
| 21 | # 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 |
| 22 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | 19 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" |
| 23 | OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | 20 | OSTREE_BRANCHNAME ?= "ota-${MACHINE}" |
