diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2020-01-23 16:23:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 16:23:48 +0100 |
commit | e81f2e7d2a74fe27a0840aacfcfe547acbdcac0c (patch) | |
tree | 2b8e320a4149aa145eb0b75917fbdc74ac92c2fb /classes | |
parent | a6ef1ed2784fde198baef0e6b12e4b0d86e8bb66 (diff) | |
parent | 19ff287e7b6764af2f0af29cb5bac9433fc5862d (diff) | |
download | meta-updater-e81f2e7d2a74fe27a0840aacfcfe547acbdcac0c.tar.gz |
Merge pull request #663 from advancedtelematic/feat/zeus/2020.1
Feat/zeus/2020.1
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_repo_manifest.bbclass | 2 | ||||
-rw-r--r-- | classes/sota.bbclass | 4 | ||||
-rw-r--r-- | classes/sota_sanity.bbclass | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/classes/image_repo_manifest.bbclass b/classes/image_repo_manifest.bbclass index c2e7056..0b311bd 100644 --- a/classes/image_repo_manifest.bbclass +++ b/classes/image_repo_manifest.bbclass | |||
@@ -9,7 +9,7 @@ | |||
9 | # For more information, see: | 9 | # For more information, see: |
10 | # https://web.archive.org/web/20161224194009/https://wiki.cyanogenmod.org/w/Doc:_Using_manifests | 10 | # https://web.archive.org/web/20161224194009/https://wiki.cyanogenmod.org/w/Doc:_Using_manifests |
11 | 11 | ||
12 | HOSTTOOLS_NONFATAL += " repo " | 12 | HOSTTOOLS_NONFATAL += "repo python" |
13 | 13 | ||
14 | # Write build information to target filesystem | 14 | # Write build information to target filesystem |
15 | buildinfo_manifest () { | 15 | buildinfo_manifest () { |
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 4422741..7bf17a4 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
@@ -8,7 +8,7 @@ SOTA_DEPLOY_CREDENTIALS ?= "1" | |||
8 | SOTA_HARDWARE_ID ??= "${MACHINE}" | 8 | SOTA_HARDWARE_ID ??= "${MACHINE}" |
9 | 9 | ||
10 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" | 10 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" |
11 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 11 | IMAGE_CLASSES += " image_types_ostree image_types_ota image_repo_manifest" |
12 | 12 | ||
13 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck ota-ext4 wic', ' ', d)}" | 13 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck ota-ext4 wic', ' ', d)}" |
14 | IMAGE_FSTYPES += "${@bb.utils.contains('BUILD_OSTREE_TARBALL', '1', 'ostree.tar.bz2', ' ', d)}" | 14 | IMAGE_FSTYPES += "${@bb.utils.contains('BUILD_OSTREE_TARBALL', '1', 'ostree.tar.bz2', ' ', d)}" |
@@ -53,4 +53,4 @@ SOTA_MACHINE_freedom-u540 ?= "freedom-u540" | |||
53 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" | 53 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" |
54 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME" | 54 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME" |
55 | 55 | ||
56 | inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest | 56 | inherit sota_sanity sota_${SOTA_MACHINE} |
diff --git a/classes/sota_sanity.bbclass b/classes/sota_sanity.bbclass index 1339fb3..74973eb 100644 --- a/classes/sota_sanity.bbclass +++ b/classes/sota_sanity.bbclass | |||
@@ -14,10 +14,10 @@ def sota_check_variables_validity(status, d): | |||
14 | import re | 14 | import re |
15 | import os.path | 15 | import os.path |
16 | 16 | ||
17 | if d.getVar("OSTREE_BRANCHNAME") and re.match("^[a-zA-Z0-9_-]*$", d.getVar("OSTREE_BRANCHNAME")) is None: | 17 | if d.getVar("OSTREE_BRANCHNAME") and re.match("^[a-zA-Z0-9._-]*$", d.getVar("OSTREE_BRANCHNAME")) is None: |
18 | status.addresult("OSTREE_BRANCHNAME Should only contain characters from the character set [a-zA-Z0-9_-].\n") | 18 | status.addresult("OSTREE_BRANCHNAME Should only contain characters from the character set [a-zA-Z0-9._-].\n") |
19 | if d.getVar("SOTA_HARDWARE_ID") and re.match("^[a-zA-Z0-9_-]*$", d.getVar("SOTA_HARDWARE_ID")) is None: | 19 | if d.getVar("SOTA_HARDWARE_ID") and re.match("^[a-zA-Z0-9._-]*$", d.getVar("SOTA_HARDWARE_ID")) is None: |
20 | status.addresult("SOTA_HARDWARE_ID Should only contain characters from the character set [a-zA-Z0-9_-].\n") | 20 | status.addresult("SOTA_HARDWARE_ID Should only contain characters from the character set [a-zA-Z0-9._-].\n") |
21 | if d.getVar("SOTA_CLIENT_FEATURES") is not None: | 21 | if d.getVar("SOTA_CLIENT_FEATURES") is not None: |
22 | for feat in d.getVar("SOTA_CLIENT_FEATURES").split(' '): | 22 | for feat in d.getVar("SOTA_CLIENT_FEATURES").split(' '): |
23 | if feat not in ("hsm", "serialcan", "ubootenv", ""): | 23 | if feat not in ("hsm", "serialcan", "ubootenv", ""): |