diff options
Diffstat (limited to 'recipes-sota')
| -rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 45 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | 15 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/aktualizr-implicit-prov.bb | 19 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/aktualizr_git.bb | 36 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/credentials.inc | 1 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/environment.inc | 17 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/aktualizr-manual-provision.service | 13 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/aktualizr-serialcan.service | 15 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/aktualizr.service (renamed from recipes-sota/aktualizr/files/aktualizr-autoprovision.service) | 3 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/sota_autoprov.toml | 14 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/sota_hsm_test.toml | 18 | ||||
| -rw-r--r-- | recipes-sota/aktualizr/files/sota_implicit_prov.toml | 11 | ||||
| -rw-r--r-- | recipes-sota/garage-sign/garage-sign.bb | 34 | ||||
| -rw-r--r-- | recipes-sota/ostree/ostree_git.bb | 6 |
14 files changed, 104 insertions, 143 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index 4f9fe4f..2190512 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
| @@ -1,28 +1,24 @@ | |||
| 1 | SUMMARY = "Aktualizr systemd service and configurations" | 1 | SUMMARY = "Aktualizr configuration for autoprovisioning" |
| 2 | DESCRIPTION = "Systemd service and configurations for autoprovisioning Aktualizr, the SOTA Client application written in C++" | 2 | DESCRIPTION = "Systemd service and configurations for autoprovisioning Aktualizr, the SOTA Client application written in C++" |
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" |
| 4 | SECTION = "base" | 4 | SECTION = "base" |
| 5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
| 7 | DEPENDS = "zip-native" | 7 | DEPENDS = "aktualizr-native zip-native" |
| 8 | RDEPENDS_${PN} = "aktualizr" | 8 | RDEPENDS_${PN} = "aktualizr" |
| 9 | PV = "1.0" | 9 | PV = "1.0" |
| 10 | PR = "6" | 10 | PR = "6" |
| 11 | 11 | ||
| 12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
| 13 | file://LICENSE \ | 13 | file://LICENSE \ |
| 14 | file://aktualizr-manual-provision.service \ | ||
| 15 | file://aktualizr-autoprovision.service \ | ||
| 16 | file://sota_autoprov.toml \ | ||
| 17 | " | 14 | " |
| 18 | 15 | ||
| 19 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | 16 | require environment.inc |
| 20 | 17 | require credentials.inc | |
| 21 | inherit systemd | ||
| 22 | 18 | ||
| 23 | export SOTA_PACKED_CREDENTIALS | 19 | export SOTA_PACKED_CREDENTIALS |
| 24 | 20 | ||
| 25 | do_install_append() { | 21 | do_install() { |
| 26 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then | 22 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then |
| 27 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" | 23 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" |
| 28 | fi | 24 | fi |
| @@ -36,27 +32,24 @@ do_install_append() { | |||
| 36 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" | 32 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" |
| 37 | fi | 33 | fi |
| 38 | 34 | ||
| 35 | install -d ${D}${libdir}/sota | ||
| 36 | install -d ${D}${localstatedir}/sota | ||
| 39 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 37 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
| 40 | install -d ${D}/${systemd_unitdir}/system | 38 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota_autoprov.toml ${D}${libdir}/sota/sota.toml |
| 41 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 39 | |
| 42 | install -d ${D}${libdir}/sota | 40 | # deploy SOTA credentials |
| 43 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}${libdir}/sota/sota.toml | 41 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then |
| 44 | 42 | cp ${SOTA_PACKED_CREDENTIALS} ${D}${localstatedir}/sota/sota_provisioning_credentials.zip | |
| 45 | # deploy SOTA credentials | 43 | # Device should not be able to push data to treehub |
| 46 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then | 44 | zip -d ${D}${localstatedir}/sota/sota_provisioning_credentials.zip treehub.json |
| 47 | mkdir -p ${D}/var/sota | 45 | fi |
| 48 | cp ${SOTA_PACKED_CREDENTIALS} ${D}/var/sota/sota_provisioning_credentials.zip | ||
| 49 | # Device should not be able to push data to treehub | ||
| 50 | zip -d ${D}/var/sota/sota_provisioning_credentials.zip treehub.json | ||
| 51 | fi | ||
| 52 | else | ||
| 53 | install -d ${D}/${systemd_unitdir}/system | ||
| 54 | install -m 0644 ${WORKDIR}/aktualizr-manual-provision.service ${D}/${systemd_unitdir}/system/aktualizr.service | ||
| 55 | fi | 46 | fi |
| 56 | } | 47 | } |
| 57 | 48 | ||
| 58 | FILES_${PN} = " \ | 49 | FILES_${PN} = " \ |
| 59 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 60 | ${libdir}/sota/sota.toml \ | 50 | ${libdir}/sota/sota.toml \ |
| 61 | /var/sota/sota_provisioning_credentials.zip \ | 51 | ${localstatedir}/sota \ |
| 52 | ${localstatedir}/sota/sota_provisioning_credentials.zip \ | ||
| 62 | " | 53 | " |
| 54 | |||
| 55 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb index c443c56..1e893fa 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | SUMMARY = "Aktualizr systemd service and configuration with HSM support" | 1 | SUMMARY = "Aktualizr configuration with HSM support" |
| 2 | DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++" | 2 | DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++" |
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" |
| 4 | SECTION = "base" | 4 | SECTION = "base" |
| @@ -10,25 +10,22 @@ RDEPENDS_${PN} = "aktualizr softhsm softhsm-testtoken" | |||
| 10 | 10 | ||
| 11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
| 12 | file://LICENSE \ | 12 | file://LICENSE \ |
| 13 | file://aktualizr-autoprovision.service \ | ||
| 14 | file://sota_hsm_test.toml \ | ||
| 15 | " | 13 | " |
| 16 | PV = "1.0" | 14 | PV = "1.0" |
| 17 | PR = "6" | 15 | PR = "6" |
| 18 | 16 | ||
| 19 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
| 20 | 17 | ||
| 21 | inherit systemd | 18 | require environment.inc |
| 19 | require credentials.inc | ||
| 22 | 20 | ||
| 23 | do_install() { | 21 | do_install() { |
| 24 | install -d ${D}/${systemd_unitdir}/system | ||
| 25 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | ||
| 26 | install -d ${D}${libdir}/sota | 22 | install -d ${D}${libdir}/sota |
| 27 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ | 23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ |
| 28 | -i ${WORKDIR}/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} |
| 29 | } | 25 | } |
| 30 | 26 | ||
| 31 | FILES_${PN} = " \ | 27 | FILES_${PN} = " \ |
| 32 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 33 | ${libdir}/sota/sota.toml \ | 28 | ${libdir}/sota/sota.toml \ |
| 34 | " | 29 | " |
| 30 | |||
| 31 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index 21e38c9..b5bf420 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | SUMMARY = "Aktualizr systemd service and configurations" | 1 | SUMMARY = "Aktualizr configuration for implicit provisioning" |
| 2 | DESCRIPTION = "Systemd service and configurations for implicitly provisioning Aktualizr, the SOTA Client application written in C++" | 2 | DESCRIPTION = "Systemd service and configurations for implicitly provisioning Aktualizr, the SOTA Client application written in C++" |
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" |
| 4 | SECTION = "base" | 4 | SECTION = "base" |
| @@ -11,24 +11,23 @@ PR = "1" | |||
| 11 | 11 | ||
| 12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
| 13 | file://LICENSE \ | 13 | file://LICENSE \ |
| 14 | file://aktualizr-autoprovision.service \ | ||
| 15 | file://sota_implicit_prov.toml \ | ||
| 16 | " | 14 | " |
| 17 | 15 | ||
| 18 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
| 19 | 16 | ||
| 20 | inherit systemd | 17 | require environment.inc |
| 18 | require credentials.inc | ||
| 21 | 19 | ||
| 22 | do_install() { | 20 | do_install() { |
| 23 | install -d ${D}/${systemd_unitdir}/system | ||
| 24 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | ||
| 25 | install -d ${D}${libdir}/sota | 21 | install -d ${D}${libdir}/sota |
| 26 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ | 22 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
| 27 | -i ${WORKDIR}/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ |
| 24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | ||
| 25 | fi | ||
| 28 | } | 26 | } |
| 29 | 27 | ||
| 30 | FILES_${PN} = " \ | 28 | FILES_${PN} = " \ |
| 31 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 32 | ${libdir}/sota/sota.toml \ | 29 | ${libdir}/sota/sota.toml \ |
| 33 | ${libdir}/sota/root.crt \ | 30 | ${libdir}/sota/root.crt \ |
| 34 | " | 31 | " |
| 32 | |||
| 33 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 162065e..48ed652 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
| @@ -11,41 +11,69 @@ DEPENDS_append_class-native = "glib-2.0-native " | |||
| 11 | 11 | ||
| 12 | RDEPENDS_${PN}_class-target = "lshw " | 12 | RDEPENDS_${PN}_class-target = "lshw " |
| 13 | RDEPENDS_${PN}_append_class-target = "${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' engine-pkcs11', '', d)} " | 13 | RDEPENDS_${PN}_append_class-target = "${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' engine-pkcs11', '', d)} " |
| 14 | RDEPENDS_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', ' slcand-start', '', d)} " | ||
| 14 | 15 | ||
| 15 | PV = "1.0+git${SRCPV}" | 16 | PV = "1.0+git${SRCPV}" |
| 16 | PR = "7" | 17 | PR = "7" |
| 17 | 18 | ||
| 18 | SRC_URI = " \ | 19 | SRC_URI = " \ |
| 19 | git://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ | 20 | gitsm://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ |
| 21 | file://aktualizr.service \ | ||
| 22 | file://aktualizr-serialcan.service \ | ||
| 20 | " | 23 | " |
| 21 | SRCREV = "f043191ae622a96cf2f4d48f9073d5cfa9f16e3f" | 24 | SRCREV = "e53f2a5747bba3e4f40609aa27f3d89e80c2d784" |
| 22 | BRANCH ?= "master" | 25 | BRANCH ?= "master" |
| 23 | 26 | ||
| 24 | S = "${WORKDIR}/git" | 27 | S = "${WORKDIR}/git" |
| 25 | 28 | ||
| 26 | inherit cmake | 29 | inherit cmake |
| 27 | 30 | ||
| 31 | inherit systemd | ||
| 32 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
| 33 | |||
| 28 | BBCLASSEXTEND =+ "native" | 34 | BBCLASSEXTEND =+ "native" |
| 29 | 35 | ||
| 30 | EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DAKTUALIZR_VERSION=${PV} " | 36 | EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DAKTUALIZR_VERSION=${PV} " |
| 31 | EXTRA_OECMAKE_append_class-target = "-DBUILD_OSTREE=ON ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', '-DBUILD_P11=ON', '', d)} " | 37 | EXTRA_OECMAKE_append_class-target = " -DBUILD_OSTREE=ON -DBUILD_ISOTP=ON ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', '-DBUILD_P11=ON', '', d)} " |
| 32 | EXTRA_OECMAKE_append_class-native = "-DBUILD_SOTA_TOOLS=ON -DBUILD_OSTREE=OFF " | 38 | EXTRA_OECMAKE_append_class-native = " -DBUILD_SOTA_TOOLS=ON -DBUILD_OSTREE=OFF " |
| 33 | 39 | ||
| 34 | do_install_append () { | 40 | do_install_append () { |
| 35 | rm -f ${D}${bindir}/aktualizr_cert_provider | 41 | rm -f ${D}${bindir}/aktualizr_cert_provider |
| 36 | } | 42 | } |
| 37 | do_install_append_class-target () { | 43 | do_install_append_class-target () { |
| 38 | rm -f ${D}${bindir}/aktualizr_implicit_writer | 44 | rm -f ${D}${bindir}/aktualizr_implicit_writer |
| 45 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)} | ||
| 46 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', '', 'rm -f ${D}${bindir}/isotp-test-interface', d)} | ||
| 47 | |||
| 48 | install -d ${D}${systemd_unitdir}/system | ||
| 49 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} | ||
| 50 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service | ||
| 39 | } | 51 | } |
| 40 | do_install_append_class-native () { | 52 | do_install_append_class-native () { |
| 41 | rm -f ${D}${bindir}/aktualizr | 53 | rm -f ${D}${bindir}/aktualizr |
| 54 | rm -f ${D}${bindir}/aktualizr-info | ||
| 55 | rm -f ${D}${bindir}/example-interface | ||
| 56 | install -d ${D}${libdir}/sota | ||
| 57 | install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml | ||
| 58 | install -m 0644 ${S}/config/sota_hsm_test.toml ${D}/${libdir}/sota/sota_hsm_test.toml | ||
| 59 | install -m 0644 ${S}/config/sota_implicit_prov.toml ${D}/${libdir}/sota/sota_implicit_prov.toml | ||
| 60 | |||
| 61 | install -m 0755 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/bin/* ${D}${bindir} | ||
| 62 | install -m 0644 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/lib/* ${D}${libdir} | ||
| 42 | } | 63 | } |
| 43 | 64 | ||
| 44 | FILES_${PN}_class-target = " \ | 65 | FILES_${PN}_class-target = " \ |
| 45 | ${bindir}/aktualizr \ | 66 | ${bindir}/aktualizr \ |
| 67 | ${bindir}/aktualizr-info \ | ||
| 68 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 46 | " | 69 | " |
| 70 | FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', ' ${bindir}/example-interface', '', d)} " | ||
| 71 | FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', ' ${bindir}/isotp-test-interface', '', d)} " | ||
| 47 | FILES_${PN}_class-native = " \ | 72 | FILES_${PN}_class-native = " \ |
| 48 | ${bindir}/aktualizr_implicit_writer \ | 73 | ${bindir}/aktualizr_implicit_writer \ |
| 49 | ${bindir}/garage-deploy \ | 74 | ${bindir}/garage-deploy \ |
| 50 | ${bindir}/garage-push \ | 75 | ${bindir}/garage-push \ |
| 76 | ${libdir}/sota/* \ | ||
| 51 | " | 77 | " |
| 78 | |||
| 79 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/credentials.inc b/recipes-sota/aktualizr/credentials.inc new file mode 100644 index 0000000..256c8ff --- /dev/null +++ b/recipes-sota/aktualizr/credentials.inc | |||
| @@ -0,0 +1 @@ | |||
| SRC_URI_append = "${@('file://' + d.getVar('SOTA_PACKED_CREDENTIALS', True)) if d.getVar('SOTA_PACKED_CREDENTIALS', True) else ''}" | |||
diff --git a/recipes-sota/aktualizr/environment.inc b/recipes-sota/aktualizr/environment.inc new file mode 100644 index 0000000..cba77e7 --- /dev/null +++ b/recipes-sota/aktualizr/environment.inc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | export SOTA_LEGACY_SECONDARY_INTERFACE | ||
| 2 | export SOTA_VIRTUAL_SECONDARIES | ||
| 3 | |||
| 4 | do_install_append() { | ||
| 5 | if [ -n "${SOTA_LEGACY_SECONDARY_INTERFACE}" ]; then | ||
| 6 | AKTUALIZR_PARAMETERS_LEGACYSEC="--legacy-interface ${SOTA_LEGACY_SECONDARY_INTERFACE}"; | ||
| 7 | fi | ||
| 8 | |||
| 9 | AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota.toml" | ||
| 10 | for sec in ${SOTA_VIRTUAL_SECONDARIES}; do | ||
| 11 | AKTUALIZR_PARAMETERS_VIRTUALSECS="${AKTUALIZR_PARAMETERS_VIRTUALSECS} --secondary-config $sec" | ||
| 12 | done | ||
| 13 | |||
| 14 | echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_LEGACYSEC} ${AKTUALIZR_PARAMETERS_VIRTUALSECS}" > ${D}${libdir}/sota/sota.env | ||
| 15 | } | ||
| 16 | |||
| 17 | FILES_${PN}_append = " ${libdir}/sota/sota.env" | ||
diff --git a/recipes-sota/aktualizr/files/aktualizr-manual-provision.service b/recipes-sota/aktualizr/files/aktualizr-manual-provision.service deleted file mode 100644 index a70f2f9..0000000 --- a/recipes-sota/aktualizr/files/aktualizr-manual-provision.service +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Aktualizr SOTA Client | ||
| 3 | Wants=network-online.target | ||
| 4 | After=network.target network-online.target | ||
| 5 | Requires=network-online.target | ||
| 6 | |||
| 7 | [Service] | ||
| 8 | RestartSec=10 | ||
| 9 | Restart=always | ||
| 10 | ExecStart=/usr/bin/aktualizr --config /sysroot/boot/sota.toml --loglevel 2 | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/aktualizr/files/aktualizr-serialcan.service b/recipes-sota/aktualizr/files/aktualizr-serialcan.service new file mode 100644 index 0000000..b42f348 --- /dev/null +++ b/recipes-sota/aktualizr/files/aktualizr-serialcan.service | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Aktualizr SOTA Client | ||
| 3 | Wants=network-online.target slcand@ttyACM0.service | ||
| 4 | After=network.target network-online.target slcand@ttyACM0.service | ||
| 5 | |||
| 6 | Requires=network-online.target | ||
| 7 | |||
| 8 | [Service] | ||
| 9 | RestartSec=10 | ||
| 10 | Restart=always | ||
| 11 | EnvironmentFile=/usr/lib/sota/sota.env | ||
| 12 | ExecStart=/bin/sh -c "(ip addr | grep can0) && /usr/bin/aktualizr $AKTUALIZR_CMDLINE_PARAMETERS" | ||
| 13 | |||
| 14 | [Install] | ||
| 15 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/aktualizr/files/aktualizr-autoprovision.service b/recipes-sota/aktualizr/files/aktualizr.service index 8cb8d78..b6df9d7 100644 --- a/recipes-sota/aktualizr/files/aktualizr-autoprovision.service +++ b/recipes-sota/aktualizr/files/aktualizr.service | |||
| @@ -7,7 +7,8 @@ Requires=network-online.target | |||
| 7 | [Service] | 7 | [Service] |
| 8 | RestartSec=10 | 8 | RestartSec=10 |
| 9 | Restart=always | 9 | Restart=always |
| 10 | ExecStart=/usr/bin/aktualizr --config /usr/lib/sota/sota.toml | 10 | EnvironmentFile=/usr/lib/sota/sota.env |
| 11 | ExecStart=/usr/bin/aktualizr $AKTUALIZR_CMDLINE_PARAMETERS | ||
| 11 | 12 | ||
| 12 | [Install] | 13 | [Install] |
| 13 | WantedBy=multi-user.target | 14 | WantedBy=multi-user.target |
diff --git a/recipes-sota/aktualizr/files/sota_autoprov.toml b/recipes-sota/aktualizr/files/sota_autoprov.toml deleted file mode 100644 index 9fbb093..0000000 --- a/recipes-sota/aktualizr/files/sota_autoprov.toml +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | [tls] | ||
| 2 | certificates_directory = "/var/sota/" | ||
| 3 | ca_file = "root.crt" | ||
| 4 | client_certificate = "client.pem" | ||
| 5 | pkey_file = "pkey.pem" | ||
| 6 | |||
| 7 | [uptane] | ||
| 8 | metadata_path = "/var/sota/metadata" | ||
| 9 | private_key_path = "ecukey.der" | ||
| 10 | public_key_path = "ecukey.pub" | ||
| 11 | |||
| 12 | [provision] | ||
| 13 | provision_path = "/var/sota/sota_provisioning_credentials.zip" | ||
| 14 | |||
diff --git a/recipes-sota/aktualizr/files/sota_hsm_test.toml b/recipes-sota/aktualizr/files/sota_hsm_test.toml deleted file mode 100644 index 28aefc2..0000000 --- a/recipes-sota/aktualizr/files/sota_hsm_test.toml +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | [tls] | ||
| 2 | certificates_directory = "/var/sota/" | ||
| 3 | ca_file = "/var/sota/token/root.crt" | ||
| 4 | client_certificate = "01" | ||
| 5 | cert_source = "pkcs11" | ||
| 6 | pkey_file = "02" | ||
| 7 | pkey_source = "pkcs11" | ||
| 8 | |||
| 9 | [p11] | ||
| 10 | module = "/usr/lib/softhsm/libsofthsm2.so" | ||
| 11 | pass = "1234" | ||
| 12 | |||
| 13 | [uptane] | ||
| 14 | metadata_path = "/var/sota/metadata" | ||
| 15 | key_source = "pkcs11" | ||
| 16 | private_key_path = "03" | ||
| 17 | public_key_path = "03" | ||
| 18 | |||
diff --git a/recipes-sota/aktualizr/files/sota_implicit_prov.toml b/recipes-sota/aktualizr/files/sota_implicit_prov.toml deleted file mode 100644 index 756c868..0000000 --- a/recipes-sota/aktualizr/files/sota_implicit_prov.toml +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | [tls] | ||
| 2 | certificates_directory = "/var/sota/" | ||
| 3 | ca_file = "/usr/lib/sota/root.crt" | ||
| 4 | client_certificate = "client.pem" | ||
| 5 | pkey_file = "pkey.pem" | ||
| 6 | |||
| 7 | [uptane] | ||
| 8 | metadata_path = "/var/sota/metadata" | ||
| 9 | private_key_path = "ecukey.der" | ||
| 10 | public_key_path = "ecukey.pub" | ||
| 11 | |||
diff --git a/recipes-sota/garage-sign/garage-sign.bb b/recipes-sota/garage-sign/garage-sign.bb deleted file mode 100644 index d5388bc..0000000 --- a/recipes-sota/garage-sign/garage-sign.bb +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | SUMMARY = "garage-sign" | ||
| 2 | DESCRIPTION = "Metadata signing tool for ATS Garage" | ||
| 3 | HOMEPAGE = "https://ats-tuf-cli-releases.s3-eu-central-1.amazonaws.com/index.html" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "CLOSED" | ||
| 6 | LIC_FILES_CHKSUM = "file://${S}/docs/LICENSE;md5=3025e77db7bd3f1d616b3ffd11d54c94" | ||
| 7 | DEPENDS = "" | ||
| 8 | |||
| 9 | PV = "0.2.0-35-g0544c33" | ||
| 10 | |||
| 11 | SRC_URI = " \ | ||
| 12 | https://ats-tuf-cli-releases.s3-eu-central-1.amazonaws.com/cli-${PV}.tgz \ | ||
| 13 | " | ||
| 14 | |||
| 15 | SRC_URI[md5sum] = "1546e06d1e747f67aee5ed7096bf1c74" | ||
| 16 | SRC_URI[sha256sum] = "1432348bca8ca5ad75df1218f348f480d429d7509d6454deb6e16ff31c5e08fc" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/${BPN}" | ||
| 19 | |||
| 20 | BBCLASSEXTEND =+ "native" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}${bindir} | ||
| 24 | install -m "0755" -t ${D}${bindir} ${S}/bin/* | ||
| 25 | install -d ${D}${libdir} | ||
| 26 | install -m "0644" -t ${D}${libdir} ${S}/lib/* | ||
| 27 | } | ||
| 28 | |||
| 29 | FILES_${PN} = " \ | ||
| 30 | /usr/bin \ | ||
| 31 | /usr/bin/garage-sign.bat \ | ||
| 32 | /usr/bin/garage-sign \ | ||
| 33 | /usr/lib/* \ | ||
| 34 | " | ||
diff --git a/recipes-sota/ostree/ostree_git.bb b/recipes-sota/ostree/ostree_git.bb index 724976a..00559b6 100644 --- a/recipes-sota/ostree/ostree_git.bb +++ b/recipes-sota/ostree/ostree_git.bb | |||
| @@ -8,7 +8,7 @@ INHERIT_remove_class-native = "systemd" | |||
| 8 | 8 | ||
| 9 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" | 9 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" |
| 10 | 10 | ||
| 11 | SRCREV="ae61321046ad7f4148a5884c8c6c8b2594ff840e" | 11 | SRCREV="854a823e05d6fe8b610c02c2a71eaeb2bf1e98a6" |
| 12 | 12 | ||
| 13 | PV = "v2017.13" | 13 | PV = "v2017.13" |
| 14 | 14 | ||
| @@ -16,14 +16,14 @@ S = "${WORKDIR}/git" | |||
| 16 | 16 | ||
| 17 | BBCLASSEXTEND = "native" | 17 | BBCLASSEXTEND = "native" |
| 18 | 18 | ||
| 19 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs gtk-doc-native curl xz" | 19 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse e2fsprogs gtk-doc-native curl xz" |
| 20 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | 20 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" |
| 21 | DEPENDS_remove_class-native = "systemd-native" | 21 | DEPENDS_remove_class-native = "systemd-native" |
| 22 | 22 | ||
| 23 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash" | 23 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash" |
| 24 | RDEPENDS_${PN}_remove_class-native = "python-native" | 24 | RDEPENDS_${PN}_remove_class-native = "python-native" |
| 25 | 25 | ||
| 26 | EXTRA_OECONF = "--with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man --with-smack --with-builtin-grub2-mkconfig --with-curl" | 26 | EXTRA_OECONF = "CFLAGS='-Wno-error=missing-prototypes' --with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man --with-smack --with-builtin-grub2-mkconfig --with-curl --without-soup" |
| 27 | EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" | 27 | EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" |
| 28 | 28 | ||
| 29 | # Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the | 29 | # Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the |
