diff options
author | Scott Murray <scott.murray@konsulko.com> | 2024-05-23 07:37:25 -0400 |
---|---|---|
committer | jenkins-dontreply@build.automotivelinux.org <collab-it+agl-jobbuilder@linuxfoundation.org> | 2024-12-11 20:41:32 +0000 |
commit | 21a22cadf07c8a42a20a7765bcf05bc1aaf2273a (patch) | |
tree | 2783328ba79a172473eb95ee7bb9b00f0a49a514 /meta-app-framework | |
parent | a5b07f0c4dc7b734e2e3cbc1675b3ef9ce032aa7 (diff) |
Update recipes for transition to UNPACKDIR
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: I32e277e15e5aa1ac93dadc67199dedd148d3d0b9
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-app-framework')
-rw-r--r-- | meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb | 7 | ||||
-rw-r--r-- | meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb | 12 |
2 files changed, 11 insertions, 8 deletions
diff --git a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb index 57dda7787..c4de20b38 100644 --- a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb +++ b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb @@ -2,9 +2,12 @@ SUMMARY = "Rule for agl-driver to control agl-app@ services" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +DEPENDS += "polkit" + SRC_URI = "file://50-agl-app.rules" -DEPENDS += "polkit" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" inherit useradd features_check REQUIRED_DISTRO_FEATURES = "polkit" @@ -12,7 +15,7 @@ REQUIRED_DISTRO_FEATURES = "polkit" do_install() { install -m 700 -d ${D}${datadir}/polkit-1/rules.d chown polkitd:root ${D}/${datadir}/polkit-1/rules.d - install -m 0644 ${WORKDIR}/50-agl-app.rules ${D}${datadir}/polkit-1/rules.d + install -m 0644 ${UNPACKDIR}/50-agl-app.rules ${D}${datadir}/polkit-1/rules.d } USERADD_PACKAGES = "${PN}" diff --git a/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb b/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb index c1bafad8e..733070d24 100644 --- a/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb +++ b/meta-app-framework/recipes-core/applaunchd/applaunchd_git.bb @@ -45,15 +45,15 @@ SYSTEMD_SERVICE:${PN} = "applaunchd.service" do_install:append() { # Install generic template for all agl-app services install -d ${D}${systemd_system_unitdir} - install -m 644 ${WORKDIR}/applaunchd.service ${D}${systemd_system_unitdir}/ - install -m 644 ${WORKDIR}/agl-app@.service ${D}${systemd_system_unitdir}/ - install -m 644 ${WORKDIR}/agl-app-web@.service ${D}${systemd_system_unitdir}/ - install -m 644 ${WORKDIR}/agl-app-flutter@.service ${D}${systemd_system_unitdir}/ + install -m 644 ${UNPACKDIR}/applaunchd.service ${D}${systemd_system_unitdir}/ + install -m 644 ${UNPACKDIR}/agl-app@.service ${D}${systemd_system_unitdir}/ + install -m 644 ${UNPACKDIR}/agl-app-web@.service ${D}${systemd_system_unitdir}/ + install -m 644 ${UNPACKDIR}/agl-app-flutter@.service ${D}${systemd_system_unitdir}/ # Install individual sandboxing overrides/drop-ins to be used by apps install -d ${D}${systemd_system_unitdir}/sandboxing - install -m 644 ${WORKDIR}/no-network.conf ${D}${systemd_system_unitdir}/sandboxing/ - install -m 644 ${WORKDIR}/private-tmp.conf ${D}${systemd_system_unitdir}/sandboxing/ + install -m 644 ${UNPACKDIR}/no-network.conf ${D}${systemd_system_unitdir}/sandboxing/ + install -m 644 ${UNPACKDIR}/private-tmp.conf ${D}${systemd_system_unitdir}/sandboxing/ } PACKAGE_BEFORE_PN += "${PN}-template-agl-app ${PN}-template-agl-app-web ${PN}-template-agl-app-flutter" |