diff options
| author | Patrick Vacek <patrickvacek@gmail.com> | 2018-12-04 16:37:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-04 16:37:52 +0100 |
| commit | 3d2c819b275f37f474f064702b592a792053dead (patch) | |
| tree | fdeb4322c462ac9a85943d392a2fca9fae8b264e /classes | |
| parent | dc878039e6059ac5835c4d11c1c561603c62e810 (diff) | |
| parent | 27cbc9b97050f06d1478f7a2179a4dfd22272f5b (diff) | |
| download | meta-updater-3d2c819b275f37f474f064702b592a792053dead.tar.gz | |
Merge pull request #445 from advancedtelematic/feat/rocko/hardware-id-etc
Feat/rocko/hardware id etc
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/image_repo_manifest.bbclass | 4 | ||||
| -rw-r--r-- | classes/image_types_ostree.bbclass | 2 | ||||
| -rw-r--r-- | classes/sota.bbclass | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/classes/image_repo_manifest.bbclass b/classes/image_repo_manifest.bbclass index 467fd9a..c2e7056 100644 --- a/classes/image_repo_manifest.bbclass +++ b/classes/image_repo_manifest.bbclass | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | HOSTTOOLS_NONFATAL += " repo " | 12 | HOSTTOOLS_NONFATAL += " repo " |
| 13 | 13 | ||
| 14 | # Write build information to target filesystem | 14 | # Write build information to target filesystem |
| 15 | buildinfo () { | 15 | buildinfo_manifest () { |
| 16 | if [ $(which repo) ]; then | 16 | if [ $(which repo) ]; then |
| 17 | repo manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" | 17 | repo manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" |
| 18 | else | 18 | else |
| @@ -20,4 +20,4 @@ buildinfo () { | |||
| 20 | fi | 20 | fi |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | IMAGE_PREPROCESS_COMMAND += "buildinfo;" | 23 | IMAGE_PREPROCESS_COMMAND += "buildinfo_manifest;" |
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index e7ff2c4..22ae123 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
| @@ -226,7 +226,7 @@ IMAGE_CMD_garagesign () { | |||
| 226 | --length 0 \ | 226 | --length 0 \ |
| 227 | --url "${GARAGE_TARGET_URL}" \ | 227 | --url "${GARAGE_TARGET_URL}" \ |
| 228 | --sha256 ${ostree_target_hash} \ | 228 | --sha256 ${ostree_target_hash} \ |
| 229 | --hardwareids ${MACHINE} | 229 | --hardwareids ${SOTA_HARDWARE_ID} |
| 230 | garage-sign targets sign --repo tufrepo \ | 230 | garage-sign targets sign --repo tufrepo \ |
| 231 | --home-dir ${GARAGE_SIGN_REPO} \ | 231 | --home-dir ${GARAGE_SIGN_REPO} \ |
| 232 | --key-name=targets | 232 | --key-name=targets |
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 657fbc2..246865b 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
| @@ -10,6 +10,7 @@ HOSTTOOLS_NONFATAL += "java" | |||
| 10 | SOTA_CLIENT ??= "aktualizr" | 10 | SOTA_CLIENT ??= "aktualizr" |
| 11 | SOTA_CLIENT_PROV ??= "aktualizr-auto-prov" | 11 | SOTA_CLIENT_PROV ??= "aktualizr-auto-prov" |
| 12 | SOTA_DEPLOY_CREDENTIALS ?= "1" | 12 | SOTA_DEPLOY_CREDENTIALS ?= "1" |
| 13 | SOTA_HARDWARE_ID ??= "${MACHINE}" | ||
| 13 | 14 | ||
| 14 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" | 15 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" |
| 15 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 16 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
| @@ -26,7 +27,7 @@ OSTREE_INITRAMFS_FSTYPES ??= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER', T | |||
| 26 | 27 | ||
| 27 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | 28 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo |
| 28 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | 29 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" |
| 29 | OSTREE_BRANCHNAME ?= "${MACHINE}" | 30 | OSTREE_BRANCHNAME ?= "${SOTA_HARDWARE_ID}" |
| 30 | OSTREE_OSNAME ?= "poky" | 31 | OSTREE_OSNAME ?= "poky" |
| 31 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | 32 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" |
| 32 | OSTREE_BOOTLOADER ??= 'u-boot' | 33 | OSTREE_BOOTLOADER ??= 'u-boot' |
