diff options
| author | cajun-rat <p@beta16.co.uk> | 2017-04-26 12:36:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-26 12:36:38 +0200 |
| commit | bae52014b6e3a49e7adf49373238dab9f5f3b4a2 (patch) | |
| tree | 4c2f39cc49525698ef8197646bd652db270df8b8 /classes/sota.bbclass | |
| parent | 4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff) | |
| parent | 4d610e9f230dd23589b18588446c2368f3a99446 (diff) | |
| download | meta-updater-bae52014b6e3a49e7adf49373238dab9f5f3b4a2.tar.gz | |
Merge pull request #57 from advancedtelematic/bugfix/machinc
Replace includes with bblcasses
Diffstat (limited to 'classes/sota.bbclass')
| -rw-r--r-- | classes/sota.bbclass | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass new file mode 100644 index 0000000..0697932 --- /dev/null +++ b/classes/sota.bbclass | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | DISTRO_FEATURES_append = " sota" | ||
| 2 | OVERRIDES .= ":sota" | ||
| 3 | |||
| 4 | IMAGE_INSTALL_append = " ostree os-release" | ||
| 5 | |||
| 6 | # live image for OSTree-enabled systems | ||
| 7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" | ||
| 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 ''}" | ||
| 13 | WKS_FILE ?= "sdimage-sota.wks" | ||
| 14 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" | ||
| 15 | |||
| 16 | EXTRA_IMAGEDEPENDS += " parted-native mtools-native dosfstools-native" | ||
| 17 | |||
| 18 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | ||
| 19 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | ||
| 20 | OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | ||
| 21 | OSTREE_OSNAME ?= "poky" | ||
| 22 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | ||
| 23 | |||
| 24 | # Prelinking increases the size of downloads and causes build errors | ||
| 25 | USER_CLASSES_remove = "image-prelink" | ||
| 26 | |||
| 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} | ||
