Skip to content

Commit

Permalink
follow WORKDIR -> UNPACKDIR transition
Browse files Browse the repository at this point in the history
This adapts to the oe-core rework to enforce a separate directory for
unpacking local sources (UNPACKDIR) instead of polluting WORKDIR
directly.

Follows the preliminary guideline from:
https://lists.openembedded.org/g/openembedded-architecture/message/2007

Signed-off-by: Enrico Jörns <[email protected]>
  • Loading branch information
ejoerns committed May 27, 2024
1 parent a19aaa2 commit 3d52312
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions recipes-core/rauc/rauc-conf.bb
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ SRC_URI = " \
do_install () {
# Create rauc config dir
# Warn if system configuration was not overwritten
if ! grep -q "^[^#]" ${WORKDIR}/system.conf; then
if ! grep -q "^[^#]" ${UNPACKDIR}/system.conf; then
bbwarn "Please overwrite example system.conf with a project specific one!"
fi
install -d ${D}${sysconfdir}/rauc
install -m 0644 ${WORKDIR}/system.conf ${D}${sysconfdir}/rauc/
install -m 0644 ${UNPACKDIR}/system.conf ${D}${sysconfdir}/rauc/

# Warn if CA file was not overwritten
if ! grep -q "^[^#]" ${WORKDIR}/${RAUC_KEYRING_FILE}; then
if ! grep -q "^[^#]" ${UNPACKDIR}/${RAUC_KEYRING_FILE}; then
bbwarn "Please overwrite example ca.cert.pem with a project specific one, or set the RAUC_KEYRING_FILE variable with your file!"
fi
install -d ${D}${sysconfdir}/rauc
install -m 0644 ${WORKDIR}/${RAUC_KEYRING_FILE} ${D}${sysconfdir}/rauc/
install -m 0644 ${UNPACKDIR}/${RAUC_KEYRING_FILE} ${D}${sysconfdir}/rauc/
}
4 changes: 2 additions & 2 deletions recipes-core/rauc/rauc-target.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ do_install () {
meson_do_install

install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/rauc-mark-good.service ${D}${systemd_unitdir}/system/
install -m 0644 ${UNPACKDIR}/rauc-mark-good.service ${D}${systemd_unitdir}/system/
sed -i -e 's!@BINDIR@!${bindir}!g' ${D}${systemd_unitdir}/system/*.service

install -d "${D}${sysconfdir}/init.d"
install -m 755 "${WORKDIR}/rauc-mark-good.init" "${D}${sysconfdir}/init.d/rauc-mark-good"
install -m 755 "${UNPACKDIR}/rauc-mark-good.init" "${D}${sysconfdir}/init.d/rauc-mark-good"
}

PACKAGES =+ "${PN}-mark-good"
Expand Down
2 changes: 1 addition & 1 deletion recipes-support/rauc-hawkbit/rauc-hawkbit_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ do_install:append() {
install -d ${D}${sysconfdir}/${BPN}/
install -m 0644 ${S}/rauc_hawkbit/config.cfg ${D}${sysconfdir}/${BPN}/config.cfg
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/rauc-hawkbit.service ${D}${systemd_unitdir}/system/
install -m 0644 ${UNPACKDIR}/rauc-hawkbit.service ${D}${systemd_unitdir}/system/
sed -i -e 's!@BINDIR@!${bindir}!g' -e 's!@SYSCONFDIR@!${sysconfdir}!g' \
${D}${systemd_unitdir}/system/rauc-hawkbit.service
}
Expand Down

0 comments on commit 3d52312

Please sign in to comment.