Skip to contentSkip to conversation

recipes: Remove S = WORKDIR

PATCH Superseded Ryan Eatmon 1 participant 2 messages May 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 recipes: Remove S = WORKDIR

Since S = "${WORKDIR}" is the default setting for S it is not needed to override S in this way.

---
v2: After reviewing what all was being changed, I decided to make smaller changes for this patch series while the whole UNPACKDIR change is worked out upstream.

 meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config.bb  | 2 --
 .../recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb        | 2 --
 meta-arago-distro/recipes-connectivity/bt-enable/bt-enable.bb   | 2 --
 .../initscript-telnetd/initscript-telnetd.bb                    | 2 --
 .../recipes-connectivity/systemd-telnetd/systemd-telnetd.bb     | 2 --
 .../recipes-core/arago-gpl-notice/arago-gpl-notice.bb           | 2 --
 .../recipes-core/busybox/softap-udhcpd-config_1.0.bb            | 2 --
 meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb    | 2 --
 meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb        | 2 --
 .../recipes-graphics/tslib/ts-calibrate-init_1.0.bb             | 2 --
 .../recipes-sysrepo/nw-configurator/nw-configurator.bb          | 2 --
 11 files changed, 22 deletions(-)
meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config.bb +0 -2
index c932e67f..314f1510 100644
@@ -12,8 +12,6 @@ SRC_URI = "file://lighttpd.conf.matrix"
 # Grabbed COPYING file from lighttpd_1.4.30
 SRC_URI += "file://COPYING"
 
-S = "${WORKDIR}"
-
 do_install() {
 	install -d ${D}${sysconfdir}/lighttpd
 	install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd/lighttpd.conf.matrix
meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb +0 -2
index 0eaf9314..091ccad1 100644
@@ -6,8 +6,6 @@ CLEANBROKEN = "1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
-
 BOOSTRAP_IMAGE = "tisdk-bootstrap-base-image"
 
 TARGET = "bootstrap-rootfs-${MACHINE}.cpio"
meta-arago-distro/recipes-connectivity/bt-enable/bt-enable.bb +0 -2
index cb7fa93f..3b910204 100644
@@ -9,8 +9,6 @@ SRC_URI = " \
 
 PR = "r1"
 
-S = "${WORKDIR}"
-
 INITSCRIPT_NAME = "bt-enable.sh"
 INITSCRIPT_PARAMS = "defaults 99"
 
meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb +0 -2
index e492119b..15d158b7 100644
@@ -5,8 +5,6 @@ PR ="r1"
 
 SRC_URI = "file://telnetd"
 
-S = "${WORKDIR}"
-
 INITSCRIPT_NAME = "telnetd"
 INITSCRIPT_PARAMS = "defaults 10"
 
meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb +0 -2
index 3158da5a..b6575118 100644
@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://telnetd.service;beginline=1;endline=17;md5=d134d0d385
 
 SRC_URI = "file://telnetd.service"
 
-S = "${WORKDIR}"
-
 inherit systemd
 
 SYSTEMD_PACKAGES = "${PN}"
meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice.bb +0 -2
index 6cb428a5..885123b4 100644
@@ -4,8 +4,6 @@ LIC_FILES_CHKSUM = "file://print-gplv3-packages.sh;beginline=2;endline=18;md5=d1
 
 PR = "r3"
 
-S = "${WORKDIR}"
-
 INITSCRIPT_NAME = "gplv3-notice"
 INITSCRIPT_PARAMS = "defaults 99"
 
meta-arago-distro/recipes-core/busybox/softap-udhcpd-config_1.0.bb +0 -2
index 0c896fed..a3365df6 100644
@@ -8,8 +8,6 @@ PR = "r1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
-
 # Default configuration file is from the base udhcp package
 SRC_URI = "file://udhcpd.conf \
            file://LICENSE"
meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb +0 -2
index 59df0c97..3aaa3d31 100644
@@ -11,8 +11,6 @@ PV = "1.0"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
-
 do_install () {
     install -d ${D}/board-support/prebuilt-images
 
meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb +0 -2
index 76c83e7d..3ae27171 100644
@@ -11,8 +11,6 @@ PV = "1.0"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
-
 do_install () {
     install -d ${D}/board-support/prebuilt-images
 
meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb +0 -2
index db48d746..fe30919f 100644
@@ -8,8 +8,6 @@ LIC_FILES_CHKSUM = "file://init;beginline=2;endline=11;md5=4b2e3b15f01cf63d2cb79
 
 PR = "r4"
 
-S = "${WORKDIR}"
-
 INITSCRIPT_NAME = "ts-calibrate"
 
 # Start this init script early enough for other processes to be started later
meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb +0 -2
index c5d9a86b..13f07750 100644
@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://nw-configurator.c;beginline=1;endline=33;md5=3538caaf
 
 SRC_URI = "file://nw-configurator.c"
 
-S = "${WORKDIR}"
-
 FILES_${PN}-dev = "${includedir}"
 
 DEPENDS = "sysrepo"
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 2/2 recipes: Update S = WORKDIR recipes to use ${S} correctly

This is a corresponding patch to match one from Richard Purdie in oe-core. [1]

Where recipes use S = ${WORKDIR}, ensure they are referencing ${S} correctly to access files as soon we want to stop doing this in WORKDIR at which point they would break unless corrected.

[1] https://git.openembedded.org/openembedded-core/commit/?id=f25dd633fffe6560f191526d1869e657e129bad9

---
v2: After reviewing what all was being changed, I decided to make smaller changes for this patch series while the whole UNPACKDIR change is worked out upstream.

 .../recipes-core/matrix/matrix-lighttpd-config.bb             | 2 +-
 .../recipes-connectivity/systemd-telnetd/systemd-telnetd.bb   | 2 +-
 .../recipes-core/arago-gpl-notice/arago-gpl-notice.bb         | 2 +-
 meta-arago-distro/recipes-core/thermal-init/thermal-init.bb   | 2 +-
 meta-arago-distro/recipes-core/udev/eudev_%.bbappend          | 4 ++--
 meta-arago-distro/recipes-qt/qt5/qtbase-conf_1.0.bb           | 4 ++--
 .../recipes-support/strongswan/strongswan_%.bbappend          | 2 +-
 meta-arago-extras/recipes-core/llvm/llvm-common.bb            | 4 ++--
 .../recipes-devtools/opkg/opkg-bash-completion.bb             | 2 +-
 .../recipes-graphics/tslib/ts-calibrate-init_1.0.bb           | 2 +-
 .../recipes-sysrepo/nw-configurator/nw-configurator.bb        | 2 +-
 11 files changed, 14 insertions(+), 14 deletions(-)
meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config.bb +1 -1
index 314f1510..68e5b578 100644
@@ -14,7 +14,7 @@ SRC_URI += "file://COPYING"
 
 do_install() {
 	install -d ${D}${sysconfdir}/lighttpd
-	install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd/lighttpd.conf.matrix
+	install -m 0644 ${S}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd/lighttpd.conf.matrix
 }
 
 FILES:${PN} = "${sysconfdir}/lighttpd/lighttpd.conf.matrix"
meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb +1 -1
index b6575118..ac056dac 100644
@@ -14,5 +14,5 @@ SYSTEMD_AUTO_ENABLE:${PN} = "enable"
 do_install:append () {
     # install systemd unit files
     install -d ${D}${systemd_system_unitdir}
-    install -m 0644 ${WORKDIR}/telnetd.service ${D}${systemd_system_unitdir}
+    install -m 0644 ${S}/telnetd.service ${D}${systemd_system_unitdir}
 }
meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice.bb +1 -1
index 885123b4..a130f9cb 100644
@@ -22,7 +22,7 @@ do_install(){
 		install -d ${D}${bindir}
 		install -d ${D}${systemd_system_unitdir}
 		install -m 0755 ${S}/print-gplv3-packages.sh ${D}${bindir}/gplv3-notice
-		install -m 0644 ${WORKDIR}/gplv3-notice.service ${D}${systemd_system_unitdir}
+		install -m 0644 ${S}/gplv3-notice.service ${D}${systemd_system_unitdir}
 	fi
 }
 
meta-arago-distro/recipes-core/thermal-init/thermal-init.bb +1 -1
index 56f1ba1a..edd67a65 100644
@@ -13,7 +13,7 @@ inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+    install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
 }
 
 FILES:${PN} = "${sysconfdir} ${bindir}"
meta-arago-distro/recipes-core/udev/eudev_%.bbappend +2 -2
index 4817e840..967fc882 100644
@@ -16,7 +16,7 @@ SRC_URI:append = " \
 do_install:append() {
     install -d ${D}/${bindir}
 
-    install -m 0755 ${WORKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
-    install -m 0755 ${WORKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
+    install -m 0755 ${S}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
+    install -m 0755 ${S}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
     ln -sf libudev.so.1 ${D}${base_libdir}/libudev.so.0
 }
meta-arago-distro/recipes-qt/qt5/qtbase-conf_1.0.bb +2 -2
index 63894c47..3fe1b310 100644
@@ -12,9 +12,9 @@ SRC_URI = "file://qt_env.sh \
 # Add custom Arago qtbase Environment script and eglfs_kms configuration file
 do_install () {
     install -d ${D}${sysconfdir}/profile.d
-    install -m 0644 ${WORKDIR}/qt_env.sh ${D}${sysconfdir}/profile.d/
+    install -m 0644 ${S}/qt_env.sh ${D}${sysconfdir}/profile.d/
     install -d ${D}${sysconfdir}/qt5
-    install -m 0644 ${WORKDIR}/eglfs_kms_cfg.json ${D}${sysconfdir}/qt5/
+    install -m 0644 ${S}/eglfs_kms_cfg.json ${D}${sysconfdir}/qt5/
 }
 
 FILES:${PN} += "${sysconfdir}/profile.d/* ${sysconfdir}/qt5/*"
meta-arago-distro/recipes-support/strongswan/strongswan_%.bbappend +1 -1
index ae313c74..d1236a8f 100644
@@ -14,5 +14,5 @@ EXTRA_OECONF += " \
 SRC_URI += "file://pkcs11_plugin.conf"
 
 do_install:append () {
-	install -m 0644 ${WORKDIR}/pkcs11_plugin.conf ${D}${sysconfdir}/strongswan.d/
+	install -m 0644 ${S}/pkcs11_plugin.conf ${D}${sysconfdir}/strongswan.d/
 }
meta-arago-extras/recipes-core/llvm/llvm-common.bb +2 -2
index b69a5775..23d2feaf 100644
@@ -9,12 +9,12 @@ SYSROOT_PREPROCESS_FUNCS:append:class-target = " llvm_common_sysroot_preprocess"
 
 llvm_common_sysroot_preprocess() {
     install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
-    install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
+    install -m 0755 ${S}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
 }
 
 do_install:class-native() {
     install -d ${D}${bindir}
-    install -m 0755 ${WORKDIR}/llvm-config ${D}${bindir}
+    install -m 0755 ${S}/llvm-config ${D}${bindir}
 }
 
 BBCLASSEXTEND = "native"
meta-arago-extras/recipes-devtools/opkg/opkg-bash-completion.bb +1 -1
index df0b1440..017c30f0 100644
@@ -9,7 +9,7 @@ SRC_URI = "file://opkg-bash-completion"
 
 do_install() {
     install -d ${D}${datadir}/bash-completion/completions
-    install -m 0644 ${WORKDIR}/opkg-bash-completion \
+    install -m 0644 ${S}/opkg-bash-completion \
                     ${D}${datadir}/bash-completion/completions/opkg
 }
 
meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb +1 -1
index fe30919f..7ce58d87 100644
@@ -24,5 +24,5 @@ do_install(){
 	# Install the init script
 	# TODO: replace init script with systemd files
 	install -d ${D}${sysconfdir}/init.d
-	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ts-calibrate
+	install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/ts-calibrate
 }
meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb +1 -1
index 13f07750..dbe05681 100644
@@ -12,7 +12,7 @@ DEPENDS = "sysrepo"
 inherit autotools pkgconfig
 
 do_compile() {
-	${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR}	${WORKDIR}/nw-configurator.c -o nw-configurator -lsysrepo
+	${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR}	${S}/nw-configurator.c -o nw-configurator -lsysrepo
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1