Skip to content

Commit

Permalink
Remove S = "${WORKDIR} (#38)
Browse files Browse the repository at this point in the history
Remove deprecated usage of ``S = "${WORKDIR}``
  • Loading branch information
IvoBCD authored Oct 17, 2024
1 parent 2b536d0 commit 2e7f2e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions recipes-mfgtools/pltagent-msc-host/pltagent-msc-host.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SRC_URI = "\
file://pltagent-usbgadget-handler.sh \
"

S = "${WORKDIR}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

FILES:${PN} += " /opt/pltagent/bin/pltagent-msc-mount"
FILES:${PN} += " /opt/pltagent/bin/pltagent-msc-mount"
Expand Down Expand Up @@ -71,7 +72,7 @@ SRC_URI:append = " file://pltagent-msc.service "

do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/pltagent-msc.service ${D}/${systemd_unitdir}/system
install -m 0644 ${S}/pltagent-msc.service ${D}/${systemd_unitdir}/system
}

FILES:${PN} += "${systemd_unitdir}/system"
7 changes: 4 additions & 3 deletions recipes-mfgtools/pltagent/pltagent.bb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384

SRC_URI = "file://pltagent-profile"

S = "${WORKDIR}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

inherit allarch
inherit useradd
Expand All @@ -34,7 +35,7 @@ GROUPMEMS_PARAM:${PN} = "-g audio -a pltagent; -g plugdev -a pltagent"

do_install () {
install -d 755 ${D}${localstatedir}/lib/${BPN}
install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile
install -m 644 ${S}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile
chown -R pltagent:adm ${D}${localstatedir}/lib/${BPN}
}

Expand All @@ -51,5 +52,5 @@ FILES:${PN} += "${systemd_unitdir}/system/pltagent.service"

do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/pltagent.service ${D}/${systemd_unitdir}/system
install -m 0644 ${S}/pltagent.service ${D}/${systemd_unitdir}/system
}
2 changes: 1 addition & 1 deletion recipes-mfgtools/pltagent/systemd-serialgetty.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append = " file://[email protected]"

do_install:append() {
install -m 0644 ${WORKDIR}/serial-getty@.service ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/serial-getty@.service ${D}${systemd_system_unitdir}/
}

0 comments on commit 2e7f2e5

Please sign in to comment.