Skip to contentSkip to conversation

ti-cgt-arm: "clean" library in do_configure

PATCH New Jacob Stiffler 1 participant 1 message Oct 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ti-cgt-arm: "clean" library in do_configure

* Prevent a potential error as mklib will return an error if the library already exists.
* The error encountered is the following:

| >> ERROR: mklib: destination library .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/ti-cgt-arm-16.9.2/ti-cgt-arm_16.9.2.LTS/lib/rtsv7R4_A_le_v3D16_eabi.lib already exists | WARNING: .../work/x86_64-linux/ti-cgt-arm-native/16.9.2-r1/temp/run.do_compile.13758:1 exit 1 from 'lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib'

---
 recipes-ti/devtools/ti-cgt-arm.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-ti/devtools/ti-cgt-arm.inc +7 -1
index b9f7566..d55b55b 100644
@@ -9,7 +9,7 @@ require recipes-ti/includes/ti-paths.inc
 
 S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
 
@@ -17,6 +17,12 @@ BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
 TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
+do_configure_append() {
+    # Remove the library if it exists to prevent an error when building the
+    # library in do_compile().
+    rm -f ./ti-cgt-arm_${PV}.LTS/lib/rtsv7R4_A_le_v3D16_eabi.lib
+}
+
 do_compile_append() {
     cd ${S}/ti-cgt-arm_${PV}.LTS
     export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
Signature · 1 line
2.7.4