diff options
author | Scott Murray <scott.murray@konsulko.com> | 2024-05-23 10:21:50 -0400 |
---|---|---|
committer | jenkins-dontreply@build.automotivelinux.org <collab-it+agl-jobbuilder@linuxfoundation.org> | 2024-08-17 12:37:34 +0000 |
commit | 62c27830707e134dfe18662fb304c5905ead49af (patch) | |
tree | 776975c7a0eaf09b5ccdc4a0c8d8879d2dbd1a21 /recipes-connectivity/kuksa-val | |
parent | da95381c1a7f3ad1455cd0da8da48d34b187186b (diff) |
Update recipes for transition to UNPACKDIRnext
Update recipes to handle the transition to using UNPACKDIR as the
destination for unpacked files. For recipes that had been using
S = WORKDIR, the approach used in meta-openembedded has been
followed, i.e. using UNPACKDIR in tasks for consistency.
Bug-AGL: SPEC-5147
Change-Id: I42b2b474be163c66e11a449de6eec7d748e00fbb
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'recipes-connectivity/kuksa-val')
8 files changed, 31 insertions, 19 deletions
diff --git a/recipes-connectivity/kuksa-val/can-dev-helper_1.0.bb b/recipes-connectivity/kuksa-val/can-dev-helper_1.0.bb index 90f5ff1cd..ae99006c5 100644 --- a/recipes-connectivity/kuksa-val/can-dev-helper_1.0.bb +++ b/recipes-connectivity/kuksa-val/can-dev-helper_1.0.bb @@ -6,6 +6,9 @@ SRC_URI = "file://can-dev-helper.service \ file://can-dev-helper.sh \ " +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + inherit systemd allarch SYSTEMD_SERVICE:${PN} = "${BPN}.service" @@ -14,8 +17,8 @@ do_configure[noexec] = "1" do_compile[noexec] = "1" do_install() { - install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service - install -D -m 0755 ${WORKDIR}/${BPN}.sh ${D}${sbindir}/${BPN}.sh + install -D -m 0644 ${UNPACKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service + install -D -m 0755 ${UNPACKDIR}/${BPN}.sh ${D}${sbindir}/${BPN}.sh } FILES:${PN} += "${systemd_system_unitdir}" diff --git a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-agl.bb b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-agl.bb index aadbb2dd3..dfcf42405 100644 --- a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-agl.bb +++ b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-agl.bb @@ -17,11 +17,11 @@ do_compile[noexec] = "1" do_install() { install -d ${D}${sysconfdir}/kuksa-can-provider - install -m 0644 ${WORKDIR}/config.ini ${D}${sysconfdir}/kuksa-can-provider/ - install -m 0644 ${WORKDIR}/can-provider.token ${D}${sysconfdir}/kuksa-can-provider/ - install -m 0644 ${WORKDIR}/dbc_default_values.json ${D}${sysconfdir}/kuksa-can-provider/ + install -m 0644 ${UNPACKDIR}/config.ini ${D}${sysconfdir}/kuksa-can-provider/ + install -m 0644 ${UNPACKDIR}/can-provider.token ${D}${sysconfdir}/kuksa-can-provider/ + install -m 0644 ${UNPACKDIR}/dbc_default_values.json ${D}${sysconfdir}/kuksa-can-provider/ install -d ${D}${systemd_system_unitdir}/kuksa-can-provider.service.d - install -m 0644 ${WORKDIR}/can-dev-helper.conf ${D}${systemd_system_unitdir}/kuksa-can-provider.service.d/ + install -m 0644 ${UNPACKDIR}/can-dev-helper.conf ${D}${systemd_system_unitdir}/kuksa-can-provider.service.d/ } FILES:${PN} += "${systemd_system_unitdir}" diff --git a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-control-panel.bb b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-control-panel.bb index f34aed010..b149d129d 100644 --- a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-control-panel.bb +++ b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-control-panel.bb @@ -13,7 +13,7 @@ do_compile[noexec] = "1" do_install() { install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/kuksa-can-provider.control-panel ${D}${sysconfdir}/default/ + install -m 0644 ${UNPACKDIR}/kuksa-can-provider.control-panel ${D}${sysconfdir}/default/ } ALTERNATIVE_LINK_NAME[kuksa-can-provider.env] = "${sysconfdir}/default/kuksa-can-provider" diff --git a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-control-panel.bb b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-control-panel.bb index f2e9e6738..8aa4da5e5 100644 --- a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-control-panel.bb +++ b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-control-panel.bb @@ -13,7 +13,7 @@ do_compile[noexec] = "1" do_install() { install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/kuksa-can-provider.gw-control-panel ${D}${sysconfdir}/default/ + install -m 0644 ${UNPACKDIR}/kuksa-can-provider.gw-control-panel ${D}${sysconfdir}/default/ } ALTERNATIVE_LINK_NAME[kuksa-can-provider.env] = "${sysconfdir}/default/kuksa-can-provider" diff --git a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-hardware.bb b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-hardware.bb index 723035b6a..fa13f9955 100644 --- a/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-hardware.bb +++ b/recipes-connectivity/kuksa-val/kuksa-can-provider-conf-gw-hardware.bb @@ -18,12 +18,12 @@ do_compile[noexec] = "1" do_install() { install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/kuksa-can-provider.gw-hardware ${D}${sysconfdir}/default/ + install -m 0644 ${UNPACKDIR}/kuksa-can-provider.gw-hardware ${D}${sysconfdir}/default/ install -d ${D}${sysconfdir}/kuksa-can-provider - install -m 0644 ${WORKDIR}/config.ini.gw-hardware ${D}${sysconfdir}/kuksa-can-provider/ + install -m 0644 ${UNPACKDIR}/config.ini.gw-hardware ${D}${sysconfdir}/kuksa-can-provider/ if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_system_unitdir} - install -m 0644 ${WORKDIR}/kuksa-can-provider-can1.service ${D}${systemd_system_unitdir} + install -m 0644 ${UNPACKDIR}/kuksa-can-provider-can1.service ${D}${systemd_system_unitdir} fi } diff --git a/recipes-connectivity/kuksa-val/kuksa-certificates-agl.bb b/recipes-connectivity/kuksa-val/kuksa-certificates-agl.bb index 0264ebbd7..a7c216bb7 100644 --- a/recipes-connectivity/kuksa-val/kuksa-certificates-agl.bb +++ b/recipes-connectivity/kuksa-val/kuksa-certificates-agl.bb @@ -13,6 +13,9 @@ SRC_URI = "file://CA.pem \ file://jwt.key.pub \ " +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + inherit allarch useradd USERADD_PACKAGES = "${PN}-server" @@ -26,12 +29,12 @@ do_install() { # genCerts.sh script to have different expiry dates than the # upstream defaults, and use AGL as the organization. install -d ${D}${sysconfdir}/kuksa-val/ - install -m 0644 ${WORKDIR}/CA.pem ${D}${sysconfdir}/kuksa-val/ - install -m 0640 -g 900 ${WORKDIR}/Server.key ${D}${sysconfdir}/kuksa-val/ - install -m 0640 -g 900 ${WORKDIR}/Server.pem ${D}${sysconfdir}/kuksa-val/ - install -m 0644 -g 900 ${WORKDIR}/jwt.key.pub ${D}${sysconfdir}/kuksa-val/ - install -m 0644 ${WORKDIR}/Client.key ${D}${sysconfdir}/kuksa-val/ - install -m 0644 ${WORKDIR}/Client.pem ${D}${sysconfdir}/kuksa-val/ + install -m 0644 ${UNPACKDIR}/CA.pem ${D}${sysconfdir}/kuksa-val/ + install -m 0640 -g 900 ${UNPACKDIR}/Server.key ${D}${sysconfdir}/kuksa-val/ + install -m 0640 -g 900 ${UNPACKDIR}/Server.pem ${D}${sysconfdir}/kuksa-val/ + install -m 0644 -g 900 ${UNPACKDIR}/jwt.key.pub ${D}${sysconfdir}/kuksa-val/ + install -m 0644 ${UNPACKDIR}/Client.key ${D}${sysconfdir}/kuksa-val/ + install -m 0644 ${UNPACKDIR}/Client.pem ${D}${sysconfdir}/kuksa-val/ } PACKAGE_BEFORE_PN += "${PN}-ca ${PN}-server ${PN}-client" diff --git a/recipes-connectivity/kuksa-val/kuksa-databroker-agl-demo-cluster.bb b/recipes-connectivity/kuksa-val/kuksa-databroker-agl-demo-cluster.bb index 36b77dbcc..3605e1dc8 100644 --- a/recipes-connectivity/kuksa-val/kuksa-databroker-agl-demo-cluster.bb +++ b/recipes-connectivity/kuksa-val/kuksa-databroker-agl-demo-cluster.bb @@ -7,11 +7,14 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 SRC_URI = "file://kuksa-databroker.env" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + inherit allarch update-alternatives do_install() { install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/kuksa-databroker.env ${D}${sysconfdir}/default/kuksa-databroker.agl-demo-cluster-support + install -m 0644 ${UNPACKDIR}/kuksa-databroker.env ${D}${sysconfdir}/default/kuksa-databroker.agl-demo-cluster-support } ALTERNATIVE:${PN} = "kuksa-databroker-env" diff --git a/recipes-connectivity/kuksa-val/kuksa-databroker-agl.bb b/recipes-connectivity/kuksa-val/kuksa-databroker-agl.bb index 2cee29305..bd8b52ec0 100644 --- a/recipes-connectivity/kuksa-val/kuksa-databroker-agl.bb +++ b/recipes-connectivity/kuksa-val/kuksa-databroker-agl.bb @@ -7,11 +7,14 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 SRC_URI = "file://kuksa-databroker.env" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + inherit allarch update-alternatives do_install() { install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/kuksa-databroker.env ${D}${sysconfdir}/default/kuksa-databroker.agl + install -m 0644 ${UNPACKDIR}/kuksa-databroker.env ${D}${sysconfdir}/default/kuksa-databroker.agl } ALTERNATIVE:${PN} = "kuksa-databroker-env" |