diff options
| -rw-r--r-- | recipes-sota/aktualizr/aktualizr_git.bb | 2 | ||||
| -rw-r--r-- | recipes-sota/config/aktualizr-virtualsec.bb | 27 | ||||
| -rw-r--r-- | recipes-sota/config/files/30-virtualsec.toml | 3 | ||||
| -rw-r--r-- | recipes-sota/config/files/virtualsec.json | 14 | ||||
| -rwxr-xr-x | scripts/ci/checkout-oe.sh | 4 |
5 files changed, 48 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 694e849..e4c9be8 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
| @@ -31,7 +31,7 @@ SRC_URI = " \ | |||
| 31 | SRC_URI[md5sum] = "66ffe8dcd61d4c15646e1c4b7dde7401" | 31 | SRC_URI[md5sum] = "66ffe8dcd61d4c15646e1c4b7dde7401" |
| 32 | SRC_URI[sha256sum] = "7a7193ddf7e1a33ea60fbb20f98318a8bd78c325dab391d8c4ebd644a738abdc" | 32 | SRC_URI[sha256sum] = "7a7193ddf7e1a33ea60fbb20f98318a8bd78c325dab391d8c4ebd644a738abdc" |
| 33 | 33 | ||
| 34 | SRCREV = "5443f810d63eedc92ff917e49ca20e2e7551ba43" | 34 | SRCREV = "d13ff1ceeca2694b982287740aca8f58edad514d" |
| 35 | BRANCH ?= "master" | 35 | BRANCH ?= "master" |
| 36 | 36 | ||
| 37 | S = "${WORKDIR}/git" | 37 | S = "${WORKDIR}/git" |
diff --git a/recipes-sota/config/aktualizr-virtualsec.bb b/recipes-sota/config/aktualizr-virtualsec.bb new file mode 100644 index 0000000..b7d55aa --- /dev/null +++ b/recipes-sota/config/aktualizr-virtualsec.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | SUMMARY = "Example virtual secondary in aktualizr" | ||
| 2 | DESCRIPTION = "Creates an example virtual secondary to be used to update an arbitrary file on the primary" | ||
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "MPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
| 7 | |||
| 8 | inherit allarch | ||
| 9 | |||
| 10 | SRC_URI = " \ | ||
| 11 | file://30-virtualsec.toml \ | ||
| 12 | file://virtualsec.json \ | ||
| 13 | " | ||
| 14 | |||
| 15 | do_install_append () { | ||
| 16 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
| 17 | install -m 0644 ${WORKDIR}/30-virtualsec.toml ${D}${libdir}/sota/conf.d/30-virtualsec.toml | ||
| 18 | install -m 0644 ${WORKDIR}/virtualsec.json ${D}${libdir}/sota/virtualsec.json | ||
| 19 | } | ||
| 20 | |||
| 21 | FILES_${PN} = " \ | ||
| 22 | ${libdir}/sota/conf.d/30-virtualsec.toml \ | ||
| 23 | ${libdir}/sota/virtualsec.json \ | ||
| 24 | " | ||
| 25 | |||
| 26 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
| 27 | |||
diff --git a/recipes-sota/config/files/30-virtualsec.toml b/recipes-sota/config/files/30-virtualsec.toml new file mode 100644 index 0000000..987f692 --- /dev/null +++ b/recipes-sota/config/files/30-virtualsec.toml | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | [uptane] | ||
| 2 | secondary_config_file = "/usr/lib/sota/virtualsec.json" | ||
| 3 | |||
diff --git a/recipes-sota/config/files/virtualsec.json b/recipes-sota/config/files/virtualsec.json new file mode 100644 index 0000000..dcdcdba --- /dev/null +++ b/recipes-sota/config/files/virtualsec.json | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | { | ||
| 2 | "virtual": [ | ||
| 3 | { | ||
| 4 | "partial_verifying": "false", | ||
| 5 | "ecu_hardware_id": "external-config", | ||
| 6 | "full_client_dir": "/var/sota/external-config", | ||
| 7 | "ecu_private_key": "sec.private", | ||
| 8 | "ecu_public_key": "sec.public", | ||
| 9 | "firmware_path": "/var/sota/external-config/config.txt", | ||
| 10 | "target_name_path": "/var/sota/external-config/target_name", | ||
| 11 | "metadata_path": "/var/sota/external-config/metadata" | ||
| 12 | } | ||
| 13 | ] | ||
| 14 | } | ||
diff --git a/scripts/ci/checkout-oe.sh b/scripts/ci/checkout-oe.sh index fdc0e48..e8a2473 100755 --- a/scripts/ci/checkout-oe.sh +++ b/scripts/ci/checkout-oe.sh | |||
| @@ -64,7 +64,9 @@ fi | |||
| 64 | 64 | ||
| 65 | repo manifest | 65 | repo manifest |
| 66 | 66 | ||
| 67 | repo forall -c 'git reset --hard ; git clean -fdx' | 67 | # Try to clean up the repos in case they are messed up, but this returns an |
| 68 | # error code if the repos don't exist, which the subsequent repo sync will fix. | ||
| 69 | repo forall -c 'git reset --hard ; git clean -fdx' || true | ||
| 68 | 70 | ||
| 69 | repo sync -d --force-sync | 71 | repo sync -d --force-sync |
| 70 | 72 | ||
