diff options
Diffstat (limited to 'recipes-sota')
25 files changed, 202 insertions, 500 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-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb new file mode 100644 index 0000000..5f8da3c --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "Aktualizr configuration with HSM support" | ||
| 2 | DESCRIPTION = "Systemd service and configurations for HSM provisioning with Aktualizr, the SOTA Client application written in C++" | ||
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "MPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | ||
| 7 | |||
| 8 | DEPENDS = "aktualizr-native" | ||
| 9 | RDEPENDS_${PN} = "aktualizr softhsm softhsm-testtoken" | ||
| 10 | |||
| 11 | SRC_URI = " \ | ||
| 12 | file://LICENSE \ | ||
| 13 | " | ||
| 14 | PV = "1.0" | ||
| 15 | PR = "6" | ||
| 16 | |||
| 17 | require environment.inc | ||
| 18 | require credentials.inc | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | install -d ${D}${libdir}/sota | ||
| 22 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | ||
| 23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ | ||
| 24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | FILES_${PN} = " \ | ||
| 29 | ${libdir}/sota/sota.toml \ | ||
| 30 | " | ||
| 31 | |||
| 32 | # 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 deleted file mode 100644 index b14dc29..0000000 --- a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | SUMMARY = "Aktualizr systemd service and configuration with HSM support" | ||
| 2 | DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++" | ||
| 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "MPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | ||
| 7 | |||
| 8 | DEPENDS = "aktualizr-native" | ||
| 9 | RDEPENDS_${PN} = "aktualizr" | ||
| 10 | |||
| 11 | SRC_URI = " \ | ||
| 12 | file://LICENSE \ | ||
| 13 | file://aktualizr-autoprovision.service \ | ||
| 14 | file://sota_hsm_test.toml \ | ||
| 15 | " | ||
| 16 | PV = "1.0" | ||
| 17 | PR = "6" | ||
| 18 | |||
| 19 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
| 20 | |||
| 21 | inherit systemd | ||
| 22 | |||
| 23 | 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 | ||
| 27 | 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} | ||
| 29 | } | ||
| 30 | |||
| 31 | FILES_${PN} = " \ | ||
| 32 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 33 | ${libdir}/sota/sota.toml \ | ||
| 34 | " | ||
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index 21e38c9..cf3d22c 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
| @@ -1,34 +1,33 @@ | |||
| 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" |
| 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 | |||
| 7 | DEPENDS = "aktualizr-native" | 8 | DEPENDS = "aktualizr-native" |
| 8 | RDEPENDS_${PN} = "aktualizr" | 9 | RDEPENDS_${PN} = "aktualizr" |
| 9 | PV = "1.0" | ||
| 10 | PR = "1" | ||
| 11 | 10 | ||
| 12 | SRC_URI = " \ | 11 | SRC_URI = " \ |
| 13 | file://LICENSE \ | 12 | file://LICENSE \ |
| 14 | file://aktualizr-autoprovision.service \ | ||
| 15 | file://sota_implicit_prov.toml \ | ||
| 16 | " | 13 | " |
| 14 | PV = "1.0" | ||
| 15 | PR = "1" | ||
| 17 | 16 | ||
| 18 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | 17 | require environment.inc |
| 19 | 18 | require credentials.inc | |
| 20 | inherit systemd | ||
| 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 c98027d..beaf893 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
| @@ -5,47 +5,80 @@ SECTION = "base" | |||
| 5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | 6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
| 7 | 7 | ||
| 8 | DEPENDS = "boost curl openssl libarchive libsodium " | 8 | DEPENDS = "boost curl openssl libarchive libsodium asn1c-native " |
| 9 | DEPENDS_append_class-target = "jansson ostree ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' libp11', '', d)} " | 9 | DEPENDS_append_class-target = "jansson ostree ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' libp11', '', d)} " |
| 10 | DEPENDS_append_class-native = "glib-2.0-native " | 10 | 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', 'hsm-test', ' softhsm softhsm-testtoken', '', d)} " | 14 | RDEPENDS_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', ' slcand-start', '', d)} " |
| 15 | 15 | ||
| 16 | PV = "1.0+git${SRCPV}" | 16 | PV = "1.0+git${SRCPV}" |
| 17 | PR = "7" | 17 | PR = "7" |
| 18 | 18 | ||
| 19 | SRC_URI = " \ | 19 | SRC_URI = " \ |
| 20 | git://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ | 20 | gitsm://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ |
| 21 | file://aktualizr.service \ | ||
| 22 | file://aktualizr-serialcan.service \ | ||
| 21 | " | 23 | " |
| 22 | SRCREV = "f043191ae622a96cf2f4d48f9073d5cfa9f16e3f" | 24 | SRCREV = "07d73645231681848bd943074498581e930d8582" |
| 23 | BRANCH ?= "master" | 25 | BRANCH ?= "master" |
| 24 | 26 | ||
| 25 | S = "${WORKDIR}/git" | 27 | S = "${WORKDIR}/git" |
| 26 | 28 | ||
| 27 | inherit cmake | 29 | inherit cmake |
| 28 | 30 | ||
| 31 | inherit systemd | ||
| 32 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | ||
| 33 | |||
| 29 | BBCLASSEXTEND =+ "native" | 34 | BBCLASSEXTEND =+ "native" |
| 30 | 35 | ||
| 31 | 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} " |
| 32 | 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)} " |
| 33 | 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 " |
| 34 | 39 | ||
| 35 | do_install_append () { | 40 | do_install_append () { |
| 36 | rm -f ${D}${bindir}/aktualizr_cert_provider | 41 | rm -f ${D}${bindir}/aktualizr_cert_provider |
| 37 | } | 42 | } |
| 38 | do_install_append_class-target () { | 43 | do_install_append_class-target () { |
| 39 | rm -f ${D}${bindir}/aktualizr_implicit_writer | 44 | rm -f ${D}${bindir}/aktualizr_implicit_writer |
| 45 | rm -f ${D}${libdir}/sota/sota.toml | ||
| 46 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)} | ||
| 47 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', '', 'rm -f ${D}${bindir}/isotp-test-interface', d)} | ||
| 48 | |||
| 49 | install -d ${D}${systemd_unitdir}/system | ||
| 50 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} | ||
| 51 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service | ||
| 52 | |||
| 53 | install -d ${D}${libdir}/sota/schemas | ||
| 54 | install -m 0755 ${S}/config/storage/* ${D}${libdir}/sota/schemas | ||
| 40 | } | 55 | } |
| 41 | do_install_append_class-native () { | 56 | do_install_append_class-native () { |
| 42 | rm -f ${D}${bindir}/aktualizr | 57 | rm -f ${D}${bindir}/aktualizr |
| 58 | rm -f ${D}${bindir}/aktualizr-info | ||
| 59 | rm -f ${D}${bindir}/example-interface | ||
| 60 | install -d ${D}${libdir}/sota | ||
| 61 | install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml | ||
| 62 | install -m 0644 ${S}/config/sota_hsm_prov.toml ${D}/${libdir}/sota/sota_hsm_prov.toml | ||
| 63 | install -m 0644 ${S}/config/sota_implicit_prov.toml ${D}/${libdir}/sota/sota_implicit_prov.toml | ||
| 64 | |||
| 65 | install -m 0755 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/bin/* ${D}${bindir} | ||
| 66 | install -m 0644 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/lib/* ${D}${libdir} | ||
| 43 | } | 67 | } |
| 44 | 68 | ||
| 45 | FILES_${PN}_class-target = " \ | 69 | FILES_${PN}_class-target = " \ |
| 46 | ${bindir}/aktualizr \ | 70 | ${bindir}/aktualizr \ |
| 71 | ${bindir}/aktualizr-info \ | ||
| 72 | ${systemd_unitdir}/system/aktualizr.service \ | ||
| 73 | ${libdir}/sota/schemas \ | ||
| 47 | " | 74 | " |
| 75 | FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', ' ${bindir}/example-interface', '', d)} " | ||
| 76 | FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', ' ${bindir}/isotp-test-interface', '', d)} " | ||
| 48 | FILES_${PN}_class-native = " \ | 77 | FILES_${PN}_class-native = " \ |
| 49 | ${bindir}/aktualizr_implicit_writer \ | 78 | ${bindir}/aktualizr_implicit_writer \ |
| 79 | ${bindir}/garage-deploy \ | ||
| 50 | ${bindir}/garage-push \ | 80 | ${bindir}/garage-push \ |
| 81 | ${libdir}/sota/* \ | ||
| 51 | " | 82 | " |
| 83 | |||
| 84 | # 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/asn1c/asn1c.bb b/recipes-sota/asn1c/asn1c.bb new file mode 100644 index 0000000..9d1517d --- /dev/null +++ b/recipes-sota/asn1c/asn1c.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | SUMMARY = "ASN.1 to C compiler" | ||
| 2 | DESCRIPTION = "Generates serialization routines from ASN.1 schemas" | ||
| 3 | HOMEPAGE = "http://lionet.info/asn1c" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "BSD" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ee8bfaaa7d71cf3edb079475e6716d4b" | ||
| 7 | |||
| 8 | inherit autotools native | ||
| 9 | |||
| 10 | PV = "0.9.28" | ||
| 11 | SRC_URI = "https://github.com/vlm/asn1c/releases/download/v${PV}/asn1c-${PV}.tar.gz \ | ||
| 12 | file://skeletons_dir_fix.patch" | ||
| 13 | SRC_URI[sha256sum] = "8007440b647ef2dd9fb73d931c33ac11764e6afb2437dbe638bb4e5fc82386b9" | ||
| 14 | |||
| 15 | BBCLASSEXTEND = "native nativesdk" | ||
| 16 | |||
| 17 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/asn1c/files/skeletons_dir_fix.patch b/recipes-sota/asn1c/files/skeletons_dir_fix.patch new file mode 100644 index 0000000..f1caa2f --- /dev/null +++ b/recipes-sota/asn1c/files/skeletons_dir_fix.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | From 1a1c2c94f700cf0f4dc5dba863950b16477fdc6d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Laurent Bonnans <laurent.bonnans@here.com> | ||
| 3 | Date: Thu, 25 Jan 2018 09:49:41 +0100 | ||
| 4 | Subject: [PATCH] Patch the skeletons directory detection | ||
| 5 | |||
| 6 | Detect `share/asn1c` from `bin/` if it exists | ||
| 7 | --- | ||
| 8 | asn1c/asn1c.c | 9 ++++----- | ||
| 9 | 1 file changed, 4 insertions(+), 5 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c | ||
| 12 | index eb1eff7c..dd9fc832 100644 | ||
| 13 | --- a/asn1c/asn1c.c | ||
| 14 | +++ b/asn1c/asn1c.c | ||
| 15 | @@ -226,22 +226,21 @@ main(int ac, char **av) { | ||
| 16 | if(skeletons_dir == NULL) { | ||
| 17 | struct stat sb; | ||
| 18 | skeletons_dir = DATADIR; | ||
| 19 | - if((av[-optind][0] == '.' || av[-optind][1] == '/') | ||
| 20 | - && stat(skeletons_dir, &sb)) { | ||
| 21 | + if(stat(skeletons_dir, &sb)) { | ||
| 22 | /* | ||
| 23 | * The default skeletons directory does not exist, | ||
| 24 | * compute it from my file name: | ||
| 25 | - * ./asn1c/asn1c -> ./skeletons | ||
| 26 | + * ./asn1c/asn1c -> ./share/asn1c | ||
| 27 | */ | ||
| 28 | char *p; | ||
| 29 | size_t len; | ||
| 30 | |||
| 31 | p = a1c_dirname(av[-optind]); | ||
| 32 | |||
| 33 | - len = strlen(p) + sizeof("/../skeletons"); | ||
| 34 | + len = strlen(p) + sizeof("/../share/asn1c"); | ||
| 35 | skeletons_dir = malloc(len); | ||
| 36 | assert(skeletons_dir); | ||
| 37 | - snprintf(skeletons_dir, len, "%s/../skeletons", p); | ||
| 38 | + snprintf(skeletons_dir, len, "%s/../share/asn1c", p); | ||
| 39 | if(stat(skeletons_dir, &sb)) { | ||
| 40 | fprintf(stderr, | ||
| 41 | "WARNING: skeletons are neither in " | ||
| 42 | -- | ||
| 43 | 2.15.1 | ||
| 44 | |||
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..ad85775 100644 --- a/recipes-sota/ostree/ostree_git.bb +++ b/recipes-sota/ostree/ostree_git.bb | |||
| @@ -8,22 +8,23 @@ 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 | PR = "1" | ||
| 14 | 15 | ||
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 16 | 17 | ||
| 17 | BBCLASSEXTEND = "native" | 18 | BBCLASSEXTEND = "native" |
| 18 | 19 | ||
| 19 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs gtk-doc-native curl xz" | 20 | 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)}" | 21 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" |
| 21 | DEPENDS_remove_class-native = "systemd-native" | 22 | DEPENDS_remove_class-native = "systemd-native" |
| 22 | 23 | ||
| 23 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash" | 24 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash" |
| 24 | RDEPENDS_${PN}_remove_class-native = "python-native" | 25 | RDEPENDS_${PN}_remove_class-native = "python-native" |
| 25 | 26 | ||
| 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" | 27 | 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" | 28 | EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" |
| 28 | 29 | ||
| 29 | # Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the | 30 | # Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the |
diff --git a/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service b/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service deleted file mode 100644 index 11b1354..0000000 --- a/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SOTA Client Autoprovisioning | ||
| 3 | Requires=network-online.target | ||
| 4 | After=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | Type=oneshot | ||
| 8 | WorkingDirectory=/var/sota | ||
| 9 | Environment=SOTA_CERT_DIR=/var/sota | ||
| 10 | ExecStart=/usr/bin/sota_provision.sh sota_provisioning_credentials | ||
| 11 | RemainAfterExit=true | ||
| 12 | StandardOutput=journal | ||
| 13 | |||
| 14 | [Install] | ||
| 15 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/rvi-sota-client/files/sota-client-ostree.service b/recipes-sota/rvi-sota-client/files/sota-client-ostree.service deleted file mode 100644 index 093a994..0000000 --- a/recipes-sota/rvi-sota-client/files/sota-client-ostree.service +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SOTA Client | ||
| 3 | Requires=network-online.target | ||
| 4 | After=network.target network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | RestartSec=5 | ||
| 8 | Restart=on-failure | ||
| 9 | Environment="RUST_LOG=debug" | ||
| 10 | ExecStart=/usr/bin/sota_client --config /sysroot/boot/sota.toml --device-package-manager ostree | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/rvi-sota-client/files/sota-client-uptane.service b/recipes-sota/rvi-sota-client/files/sota-client-uptane.service deleted file mode 100644 index a2d80ce..0000000 --- a/recipes-sota/rvi-sota-client/files/sota-client-uptane.service +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SOTA Client | ||
| 3 | Requires=network-online.target | ||
| 4 | After=network.target network-online.target | ||
| 5 | Requires=sota-client-autoprovision | ||
| 6 | After=sota-client-autoprovision | ||
| 7 | |||
| 8 | [Service] | ||
| 9 | RestartSec=5 | ||
| 10 | Restart=on-failure | ||
| 11 | Environment="RUST_LOG=debug" | ||
| 12 | ExecStart=/usr/bin/sota_client --config /var/sota/sota.toml --device-package-manager uptane | ||
| 13 | |||
| 14 | [Install] | ||
| 15 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/rvi-sota-client/files/sota-installer.service b/recipes-sota/rvi-sota-client/files/sota-installer.service deleted file mode 100644 index a4fd99e..0000000 --- a/recipes-sota/rvi-sota-client/files/sota-installer.service +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SOTA Secondary ECU Installer | ||
| 3 | Requires=network-online.target | ||
| 4 | After=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | RestartSec=10 | ||
| 8 | Restart=always | ||
| 9 | ExecStart=/usr/bin/sota-installer --level debug --oneshot --config /var/sota/installer.toml | ||
| 10 | |||
| 11 | [Install] | ||
| 12 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client.inc b/recipes-sota/rvi-sota-client/rvi-sota-client.inc deleted file mode 100644 index 712b9b3..0000000 --- a/recipes-sota/rvi-sota-client/rvi-sota-client.inc +++ /dev/null | |||
| @@ -1,173 +0,0 @@ | |||
| 1 | inherit cargo systemd | ||
| 2 | |||
| 3 | DESCRIPTION = "rvi-sota-client recipe" | ||
| 4 | HOMEPAGE = "https://github.com/advancedtelematic/rvi_sota_client" | ||
| 5 | LICENSE = "MPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea" | ||
| 7 | |||
| 8 | BBCLASSEXTEND = "native" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | SRC_URI[index.md5sum] = "6a635e8a081b4d4ba4cebffd721c2d7d" | ||
| 13 | SRC_URI[index.sha256sum] = "1913c41d4b8de89a931b6f9e418f83e70a083e12e6c247e8510ee932571ebae2" | ||
| 14 | |||
| 15 | # also update PV and SRC_URI crates when updating SRCREV | ||
| 16 | SRCREV = "be8ec83af2051a2b2499ce8878242771c65f0f1c" | ||
| 17 | |||
| 18 | PR = "1" | ||
| 19 | |||
| 20 | # generate with: `make package-version` | ||
| 21 | PV = "0.2.34-8-gbe8ec83" | ||
| 22 | |||
| 23 | # generate with: `make yocto-version` | ||
| 24 | SRC_URI = " \ | ||
| 25 | git://github.com/advancedtelematic/rvi_sota_client \ | ||
| 26 | file://sota-client-autoprovision.service \ | ||
| 27 | file://sota-client-ostree.service \ | ||
| 28 | file://sota-client-uptane.service \ | ||
| 29 | file://sota-installer.service \ | ||
| 30 | crate://crates.io/adler32/1.0.2 \ | ||
| 31 | crate://crates.io/advapi32-sys/0.2.0 \ | ||
| 32 | crate://crates.io/aho-corasick/0.6.3 \ | ||
| 33 | crate://crates.io/ansi_term/0.9.0 \ | ||
| 34 | crate://crates.io/antidote/1.0.0 \ | ||
| 35 | crate://crates.io/atty/0.2.3 \ | ||
| 36 | crate://crates.io/backtrace/0.3.3 \ | ||
| 37 | crate://crates.io/backtrace-sys/0.1.15 \ | ||
| 38 | crate://crates.io/base64/0.6.0 \ | ||
| 39 | crate://crates.io/bincode/0.9.0 \ | ||
| 40 | crate://crates.io/bit-set/0.4.0 \ | ||
| 41 | crate://crates.io/bit-vec/0.4.4 \ | ||
| 42 | crate://crates.io/bitflags/0.7.0 \ | ||
| 43 | crate://crates.io/bitflags/0.9.1 \ | ||
| 44 | crate://crates.io/block-buffer/0.2.0 \ | ||
| 45 | crate://crates.io/byte-tools/0.2.0 \ | ||
| 46 | crate://crates.io/byteorder/1.1.0 \ | ||
| 47 | crate://crates.io/bytes/0.4.5 \ | ||
| 48 | crate://crates.io/cc/1.0.1 \ | ||
| 49 | crate://crates.io/cfg-if/0.1.2 \ | ||
| 50 | crate://crates.io/chan/0.1.19 \ | ||
| 51 | crate://crates.io/chan-signal/0.3.1 \ | ||
| 52 | crate://crates.io/chrono/0.4.0 \ | ||
| 53 | crate://crates.io/clap/2.26.2 \ | ||
| 54 | crate://crates.io/coco/0.1.1 \ | ||
| 55 | crate://crates.io/constant_time_eq/0.1.3 \ | ||
| 56 | crate://crates.io/core-foundation/0.2.3 \ | ||
| 57 | crate://crates.io/core-foundation-sys/0.2.3 \ | ||
| 58 | crate://crates.io/crossbeam/0.3.0 \ | ||
| 59 | crate://crates.io/crypt32-sys/0.2.0 \ | ||
| 60 | crate://crates.io/crypto-mac/0.4.0 \ | ||
| 61 | crate://crates.io/dbghelp-sys/0.2.0 \ | ||
| 62 | crate://crates.io/dbus/0.5.4 \ | ||
| 63 | crate://crates.io/digest/0.6.2 \ | ||
| 64 | crate://crates.io/dtoa/0.4.2 \ | ||
| 65 | crate://crates.io/either/1.2.0 \ | ||
| 66 | crate://crates.io/env_logger/0.4.3 \ | ||
| 67 | crate://crates.io/error-chain/0.10.0 \ | ||
| 68 | crate://crates.io/fake-simd/0.1.2 \ | ||
| 69 | crate://crates.io/filetime/0.1.14 \ | ||
| 70 | crate://crates.io/foreign-types/0.2.0 \ | ||
| 71 | crate://crates.io/fuchsia-zircon/0.2.1 \ | ||
| 72 | crate://crates.io/fuchsia-zircon-sys/0.2.0 \ | ||
| 73 | crate://crates.io/futures/0.1.16 \ | ||
| 74 | crate://crates.io/gcc/0.3.54 \ | ||
| 75 | crate://crates.io/generic-array/0.8.3 \ | ||
| 76 | crate://crates.io/getopts/0.2.15 \ | ||
| 77 | crate://crates.io/hex/0.2.0 \ | ||
| 78 | crate://crates.io/hmac/0.4.2 \ | ||
| 79 | crate://crates.io/httparse/1.2.3 \ | ||
| 80 | crate://crates.io/hyper/0.10.13 \ | ||
| 81 | crate://crates.io/hyper-native-tls/0.2.4 \ | ||
| 82 | crate://crates.io/idna/0.1.4 \ | ||
| 83 | crate://crates.io/iovec/0.1.1 \ | ||
| 84 | crate://crates.io/itoa/0.3.4 \ | ||
| 85 | crate://crates.io/kernel32-sys/0.2.2 \ | ||
| 86 | crate://crates.io/language-tags/0.2.2 \ | ||
| 87 | crate://crates.io/lazy_static/0.2.9 \ | ||
| 88 | crate://crates.io/libc/0.2.32 \ | ||
| 89 | crate://crates.io/libdbus-sys/0.1.1 \ | ||
| 90 | crate://crates.io/libflate/0.1.11 \ | ||
| 91 | crate://crates.io/log/0.3.8 \ | ||
| 92 | crate://crates.io/maplit/0.1.5 \ | ||
| 93 | crate://crates.io/matches/0.1.6 \ | ||
| 94 | crate://crates.io/memchr/1.0.1 \ | ||
| 95 | crate://crates.io/metadeps/1.1.2 \ | ||
| 96 | crate://crates.io/mime/0.2.6 \ | ||
| 97 | crate://crates.io/native-tls/0.1.4 \ | ||
| 98 | crate://crates.io/net2/0.2.31 \ | ||
| 99 | crate://crates.io/nodrop/0.1.9 \ | ||
| 100 | crate://crates.io/num/0.1.40 \ | ||
| 101 | crate://crates.io/num-integer/0.1.35 \ | ||
| 102 | crate://crates.io/num-iter/0.1.34 \ | ||
| 103 | crate://crates.io/num-traits/0.1.40 \ | ||
| 104 | crate://crates.io/num_cpus/1.7.0 \ | ||
| 105 | crate://crates.io/odds/0.2.25 \ | ||
| 106 | crate://crates.io/openssl/0.9.19 \ | ||
| 107 | crate://crates.io/openssl-sys/0.9.19 \ | ||
| 108 | crate://crates.io/pem/0.4.1 \ | ||
| 109 | crate://crates.io/percent-encoding/1.0.0 \ | ||
| 110 | crate://crates.io/pkg-config/0.3.9 \ | ||
| 111 | crate://crates.io/quote/0.3.15 \ | ||
| 112 | crate://crates.io/rand/0.3.17 \ | ||
| 113 | crate://crates.io/rayon/0.8.2 \ | ||
| 114 | crate://crates.io/rayon-core/1.2.1 \ | ||
| 115 | crate://crates.io/redox_syscall/0.1.31 \ | ||
| 116 | crate://crates.io/redox_termios/0.1.1 \ | ||
| 117 | crate://crates.io/regex/0.2.2 \ | ||
| 118 | crate://crates.io/regex-syntax/0.4.1 \ | ||
| 119 | crate://crates.io/reqwest/0.6.2 \ | ||
| 120 | crate://crates.io/ring/0.12.1 \ | ||
| 121 | crate://crates.io/rust-crypto/0.2.36 \ | ||
| 122 | crate://crates.io/rustc-demangle/0.1.5 \ | ||
| 123 | crate://crates.io/rustc-serialize/0.3.24 \ | ||
| 124 | crate://crates.io/safemem/0.2.0 \ | ||
| 125 | crate://crates.io/schannel/0.1.8 \ | ||
| 126 | crate://crates.io/scopeguard/0.3.2 \ | ||
| 127 | crate://crates.io/secur32-sys/0.2.0 \ | ||
| 128 | crate://crates.io/security-framework/0.1.16 \ | ||
| 129 | crate://crates.io/security-framework-sys/0.1.16 \ | ||
| 130 | crate://crates.io/serde/1.0.15 \ | ||
| 131 | crate://crates.io/serde_derive/1.0.15 \ | ||
| 132 | crate://crates.io/serde_derive_internals/0.16.0 \ | ||
| 133 | crate://crates.io/serde_json/1.0.3 \ | ||
| 134 | crate://crates.io/serde_urlencoded/0.5.1 \ | ||
| 135 | crate://crates.io/sha1/0.2.0 \ | ||
| 136 | crate://crates.io/sha2/0.6.0 \ | ||
| 137 | crate://crates.io/strsim/0.6.0 \ | ||
| 138 | crate://crates.io/syn/0.11.11 \ | ||
| 139 | crate://crates.io/synom/0.11.3 \ | ||
| 140 | crate://crates.io/tar/0.4.13 \ | ||
| 141 | crate://crates.io/tempdir/0.3.5 \ | ||
| 142 | crate://crates.io/term_size/0.3.0 \ | ||
| 143 | crate://crates.io/termion/1.5.1 \ | ||
| 144 | crate://crates.io/textwrap/0.8.0 \ | ||
| 145 | crate://crates.io/thread_local/0.3.4 \ | ||
| 146 | crate://crates.io/time/0.1.38 \ | ||
| 147 | crate://crates.io/toml/0.2.1 \ | ||
| 148 | crate://crates.io/toml/0.4.5 \ | ||
| 149 | crate://crates.io/traitobject/0.1.0 \ | ||
| 150 | crate://crates.io/tungstenite/0.5.0 \ | ||
| 151 | crate://crates.io/typeable/0.1.2 \ | ||
| 152 | crate://crates.io/typenum/1.9.0 \ | ||
| 153 | crate://crates.io/unicase/1.4.2 \ | ||
| 154 | crate://crates.io/unicode-bidi/0.3.4 \ | ||
| 155 | crate://crates.io/unicode-normalization/0.1.5 \ | ||
| 156 | crate://crates.io/unicode-width/0.1.4 \ | ||
| 157 | crate://crates.io/unicode-xid/0.0.4 \ | ||
| 158 | crate://crates.io/unix_socket/0.5.0 \ | ||
| 159 | crate://crates.io/unreachable/1.0.0 \ | ||
| 160 | crate://crates.io/untrusted/0.5.1 \ | ||
| 161 | crate://crates.io/url/1.5.1 \ | ||
| 162 | crate://crates.io/utf-8/0.7.1 \ | ||
| 163 | crate://crates.io/utf8-ranges/1.0.0 \ | ||
| 164 | crate://crates.io/uuid/0.5.1 \ | ||
| 165 | crate://crates.io/vcpkg/0.2.2 \ | ||
| 166 | crate://crates.io/vec_map/0.8.0 \ | ||
| 167 | crate://crates.io/version_check/0.1.3 \ | ||
| 168 | crate://crates.io/void/1.0.2 \ | ||
| 169 | crate://crates.io/winapi/0.2.8 \ | ||
| 170 | crate://crates.io/winapi-build/0.1.1 \ | ||
| 171 | crate://crates.io/ws2_32-sys/0.2.1 \ | ||
| 172 | crate://crates.io/xattr/0.1.11 \ | ||
| 173 | " | ||
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb deleted file mode 100644 index e286598..0000000 --- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | require rvi-sota-client.inc | ||
| 2 | |||
| 3 | |||
| 4 | SYSTEMD_SERVICE_${PN} = "sota-client.service sota-client-autoprovision.service" | ||
| 5 | |||
| 6 | FILES_${PN} = " \ | ||
| 7 | /lib64 \ | ||
| 8 | ${bindir}/sota_client \ | ||
| 9 | ${bindir}/sota_sysinfo.sh \ | ||
| 10 | ${bindir}/sota_provision.sh \ | ||
| 11 | ${sysconfdir}/sota_client.version \ | ||
| 12 | ${sysconfdir}/sota_certificates \ | ||
| 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-client.service', '', d)} \ | ||
| 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-client-autoprovision.service', '', d)} \ | ||
| 15 | " | ||
| 16 | |||
| 17 | DEPENDS += " openssl openssl-native dbus " | ||
| 18 | RDEPENDS_${PN} = " \ | ||
| 19 | bash \ | ||
| 20 | curl \ | ||
| 21 | libcrypto \ | ||
| 22 | libssl \ | ||
| 23 | lshw \ | ||
| 24 | jq \ | ||
| 25 | python-petname \ | ||
| 26 | sota-launcher \ | ||
| 27 | zip \ | ||
| 28 | " | ||
| 29 | |||
| 30 | export SOTA_PACKED_CREDENTIALS | ||
| 31 | |||
| 32 | do_compile_prepend() { | ||
| 33 | export SOTA_VERSION=$(make sota-version) | ||
| 34 | cd sota-client | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | ln -fs /lib ${D}/lib64 | ||
| 39 | |||
| 40 | install -d ${D}${bindir} | ||
| 41 | install -d ${D}${sysconfdir} | ||
| 42 | |||
| 43 | echo `git log -1 --pretty=format:%H` > ${D}${sysconfdir}/sota_client.version | ||
| 44 | install -c ${S}/sota-client/docker/sota_certificates ${D}${sysconfdir} | ||
| 45 | |||
| 46 | install -m 0755 target/${TARGET_SYS}/release/sota_client ${D}${bindir} | ||
| 47 | install -m 0755 ${S}/sota-client/docker/sota_provision.sh ${D}${bindir} | ||
| 48 | install -m 0755 ${S}/sota-client/docker/sota_sysinfo.sh ${D}${bindir} | ||
| 49 | |||
| 50 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 51 | install -d ${D}/${systemd_unitdir}/system | ||
| 52 | if [ -n "$SOTA_PACKED_CREDENTIALS" ]; then | ||
| 53 | install -m 0644 ${WORKDIR}/sota-client-uptane.service ${D}/${systemd_unitdir}/system/sota-client.service | ||
| 54 | else | ||
| 55 | install -m 0644 ${WORKDIR}/sota-client-ostree.service ${D}/${systemd_unitdir}/system/sota-client.service | ||
| 56 | fi | ||
| 57 | install -m 0644 ${WORKDIR}/sota-client-autoprovision.service ${D}/${systemd_unitdir}/system/sota-client-autoprovision.service | ||
| 58 | fi | ||
| 59 | } | ||
diff --git a/recipes-sota/rvi-sota-client/sota-installer_git.bb b/recipes-sota/rvi-sota-client/sota-installer_git.bb deleted file mode 100644 index 09f6e5d..0000000 --- a/recipes-sota/rvi-sota-client/sota-installer_git.bb +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | require rvi-sota-client.inc | ||
| 2 | |||
| 3 | |||
| 4 | SYSTEMD_SERVICE_${PN} = "sota-installer.service" | ||
| 5 | |||
| 6 | DEPENDS += " rvi-sota-client " | ||
| 7 | |||
| 8 | FILES_${PN} = " \ | ||
| 9 | ${bindir}/sota-installer \ | ||
| 10 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-installer.service', '', d)} \ | ||
| 11 | " | ||
| 12 | |||
| 13 | do_compile_prepend() { | ||
| 14 | cd sota-installer | ||
| 15 | } | ||
| 16 | |||
| 17 | do_install() { | ||
| 18 | install -d ${D}${bindir} | ||
| 19 | install -m 0755 target/${TARGET_SYS}/release/sota-installer ${D}${bindir} | ||
| 20 | |||
| 21 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 22 | install -d ${D}/${systemd_unitdir}/system | ||
| 23 | install -m 0644 ${WORKDIR}/sota-installer.service ${D}/${systemd_unitdir}/system/sota-installer.service | ||
| 24 | fi | ||
| 25 | } | ||
diff --git a/recipes-sota/rvi-sota-client/sota-launcher_git.bb b/recipes-sota/rvi-sota-client/sota-launcher_git.bb deleted file mode 100644 index e9874e7..0000000 --- a/recipes-sota/rvi-sota-client/sota-launcher_git.bb +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | require rvi-sota-client.inc | ||
| 2 | |||
| 3 | |||
| 4 | DEPENDS += " rvi-sota-client " | ||
| 5 | FILES_${PN} = "${bindir}/sota-launcher" | ||
| 6 | |||
| 7 | |||
| 8 | do_compile_prepend() { | ||
| 9 | cd sota-launcher | ||
| 10 | } | ||
| 11 | |||
| 12 | do_install() { | ||
| 13 | install -d ${D}${bindir} | ||
| 14 | install -m 0755 target/${TARGET_SYS}/release/sota-launcher ${D}${bindir} | ||
| 15 | } | ||
