Skip to contentSkip to conversation

ti-cgt-pru: UNPACKDIR cleanup

PATCH New Denys Dmytriyenko 1 participant 1 message Jul 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-cgt-pru: UNPACKDIR cleanup

From: Denys Dmytriyenko <[email protected]>

Fix warning that S does not exist, since it defaults to ${WORKDIR}/${BP}

---
 meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb +5 -2
index 47bd6a51..75bb7262 100644
@@ -24,14 +24,17 @@ SRC_URI[cgt-pru-x86.sha256sum] = "1f1405167214f2c0ef848591b17a7799fdcd9f55f11bc9
 SRC_URI[cgt-pru-arm.md5sum] = "648a6d7d8162fd6a89f381c7b974e6b0"
 SRC_URI[cgt-pru-arm.sha256sum] = "8390cb77b46b728ce2940595b81406f76d86dfed58c21258e3206a7c1232ccf2"
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 do_install() {
     install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
-    cp -r ${UNPACKDIR}/ti-cgt-pru_${PV}/. \
+    cp -r ${S}/ti-cgt-pru_${PV}/. \
           ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
 }
 
 do_install:class-target() {
-    ${UNPACKDIR}/${BINFILE} --prefix ${D}
+    ${S}/${BINFILE} --prefix ${D}
 }
 
 FILES:${PN} += "${datadir}/ti/*"
Signature · 1 line
2.35.3