Skip to contentSkip to conversation

recipes: Remove S = WORKDIR

PATCH New 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-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb | 2 --
 1 file changed, 2 deletions(-)
meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb +0 -2
index 4ec09a70..b7d71c3d 100644
@@ -11,8 +11,6 @@ SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vis/01_50_07_15/exp
 SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb"
 SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69"
 
-S = "${WORKDIR}"
-
 DSPAPP = "dra7-dsp1-fw-radio.xe66"
 GPPAPP = "RadioApp"
 
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.

 meta-ti-bsp/recipes-core/udev/eudev_%.bbappend         |  4 ++--
 .../recipes-ti/beagleboard/beaglebone-capes.bb         |  4 ++--
 meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb   | 10 +++++-----
 .../recipes-ti/bios/ti-sysbios_6.76.03.01.bb           |  2 +-
 meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb |  2 +-
 meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb   |  2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)
meta-ti-bsp/recipes-core/udev/eudev_%.bbappend +2 -2
index ddb1e75d..8535ac70 100644
@@ -8,6 +8,6 @@ SRC_URI:append:ti-soc = " \
 PR:append:ti-soc = ".3"
 
 do_install:append:ti-soc() {
-    install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${S}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${S}/firmware.rules ${D}${sysconfdir}/udev/rules.d/
 }
meta-ti-extras/recipes-ti/beagleboard/beaglebone-capes.bb +2 -2
index ceefe0d6..a1f38e48 100644
@@ -14,13 +14,13 @@ SRC_URI = "file://cape.service \
 
 do_install() {
 	install -d ${D}${base_libdir}/systemd/system/
-	install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system
+	install -m 0644 ${S}/cape.service ${D}${base_libdir}/systemd/system
 
 	install -d ${D}${base_libdir}/systemd/system/basic.target.wants
 	ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/
 
 	install -d ${D}${bindir}
-	install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
+	install -m 0755 ${S}/cape*.sh ${D}${bindir}
 }
 
 FILES:${PN} += "${base_libdir}/systemd/system"
meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb +5 -5
index 3ab00ec3..37a61ca4 100644
@@ -22,19 +22,19 @@ SRC_URI = "file://storage-gadget-init.service \
 
 do_install() {
 	install -d ${D}${base_libdir}/systemd/system/basic.target.wants
-	install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
+	install -m 0644 ${S}/*.service ${D}${base_libdir}/systemd/system
 
-	for i in ${WORKDIR}/storage-gadget-init.service ; do
+	for i in ${S}/storage-gadget-init.service ; do
 		install -m 0644 $i ${D}${base_libdir}/systemd/system
 		ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
 	done
 
 	install -d ${D}${sysconfdir}/udev/rules.d
-	install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
-	install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
+	install -m 0644 ${S}/*.rules ${D}${sysconfdir}/udev/rules.d
+	install -m 0644 ${S}/*.conf ${D}${sysconfdir}
 
 	install -d ${D}${bindir}
-	install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
+	install -m 0755 ${S}/*.sh ${D}${bindir}
 }
 
 PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"
meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb +1 -1
index d242510f..1226bb19 100644
@@ -10,7 +10,7 @@ SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9"
 SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a"
 
 TI_BIN_UNPK_CMDS = ""
-TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
+TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${S}"
 
 BINFILE = "bios_${PV}.run"
 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin"
meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb +1 -1
index c96113fe..0a52561b 100644
@@ -31,7 +31,7 @@ do_install() {
 }
 
 do_install:class-target() {
-    ${WORKDIR}/${BINFILE} --prefix ${D}
+    ${S}/${BINFILE} --prefix ${D}
 }
 
 FILES:${PN} += "${datadir}/ti/*"
meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb +1 -1
index fd34657a..e7fda0f3 100644
@@ -92,7 +92,7 @@ do_install() {
 }
 
 do_install:class-target() {
-    ${WORKDIR}/${BINFILE} --prefix ${D}
+    ${S}/${BINFILE} --prefix ${D}
 }
 
 FILES:${PN} += "${datadir}/ti/*"
Signature · 1 line
2.17.1