Skip to content

Commit

Permalink
recipes: Switch away from S = WORKDIR
Browse files Browse the repository at this point in the history
Aligns with the changes and recommendations in oe-core.

Signed-off-by: Enrico Jörns <[email protected]>
  • Loading branch information
ejoerns committed Jun 4, 2024
1 parent c15e642 commit b5e4d7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion recipes-core/ptx-profile/ptx-profile.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda

SRC_URI = "file://00-ptx.sh"

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

do_install () {
install -d ${D}${sysconfdir}/profile.d/
Expand Down
9 changes: 5 additions & 4 deletions recipes-core/systemd/systemd-rc-once.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ SRC_URI = "\
file://systemd-rc-once \
"

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

inherit allarch systemd

do_install() {
install -d ${D}${base_libdir}/init
install -m 0755 ${WORKDIR}/rc-once.sh ${D}${base_libdir}/init/
install -m 0755 ${S}/rc-once.sh ${D}${base_libdir}/init/
install -d ${D}${systemd_unitdir}/system
install -m 0755 ${WORKDIR}/systemd-rc-once ${D}${systemd_unitdir}/
install -m 0644 ${WORKDIR}/rc-once.service ${D}${systemd_unitdir}/system/
install -m 0755 ${S}/systemd-rc-once ${D}${systemd_unitdir}/
install -m 0644 ${S}/rc-once.service ${D}${systemd_unitdir}/system/
install -d ${D}${systemd_unitdir}/system/system-update.target.wants
ln -sf ../rc-once.service ${D}${systemd_unitdir}/system/system-update.target.wants/rc-once.service
install -d ${D}${sysconfdir}/rc.once.d
Expand Down

0 comments on commit b5e4d7e

Please sign in to comment.