Skip to contentSkip to conversation

ti-cgt-arm: Update to add rtsv7R4_A_le_v3D16_eabi.lib

PATCH In review Sam Nelson 3 participants 4 messages Sep 15, 2018 – Sep 19, 2018

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 ti-cgt-arm: Update to add rtsv7R4_A_le_v3D16_eabi.lib

rtsv7R4_A_le_v3D16_eabi.lib library is not included in the cgt package. This library is built dynamically during linking during a single build. Bu in case of parallel make, dynamic creation of libraries causes failures.
Hence building and adding the library to the package.

---
 recipes-ti/devtools/ti-cgt-arm.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-ti/devtools/ti-cgt-arm.inc +8 -0
index 436fab1..b9f7566 100644
@@ -9,12 +9,20 @@ require recipes-ti/includes/ti-paths.inc
 
 S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
+PR = "r1"
+
 SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
 
 BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
 TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
+do_compile_append() {
+    cd ${S}/ti-cgt-arm_${PV}.LTS
+    export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
+    lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+}
+
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
     cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 5 lines · Sam Nelson

rtsv7R4_A_le_v3D16_eabi.lib library is not included in the cgt package. This library is built dynamically during linking during a single build. Bu in case of parallel make, dynamic creation of libraries causes failures.
Hence building and adding the library to the package.

Is this applicable to all platforms?

Quoted 38 lines
---
 recipes-ti/devtools/ti-cgt-arm.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-ti/devtools/ti-cgt-arm.inc +8 -0
index 436fab1..b9f7566 100644
@@ -9,12 +9,20 @@ require recipes-ti/includes/ti-paths.inc
 
 S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
+PR = "r1"
+
 SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
 
 BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
 TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
+do_compile_append() {
+    cd ${S}/ti-cgt-arm_${PV}.LTS
+    export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
+    lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+}
+
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
     cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 17, 2018 8:41 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [rocko][PATCH] ti-cgt-arm: Update to add rtsv7R4_A_le_v3D16_eabi.lib

Quoted 8 lines
Quoted 5 lines · Sam Nelson

rtsv7R4_A_le_v3D16_eabi.lib library is not included in the cgt package. This library is built dynamically during linking during a single build. Bu in case of parallel make, dynamic creation of libraries causes failures.
Hence building and adding the library to the package.

Is this applicable to all platforms?

It only affects platforms that use armv7 cores. On second thought this can be modified to be added only for applicable platforms.

Quoted 43 lines

recipes-ti/devtools/ti-cgt-

Quoted 8 lines
---
 recipes-ti/devtools/ti-cgt-arm.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-ti/devtools/ti-cgt- renamed from recipes-ti/devtools/ti-cgt-arm.inc +0 -0

arm.inc

recipes-ti/devtools/ti-cgt-arm.inc require recipes-ti/includes/ti-paths.inc · line 14

Quoted 10 lines

index 436fab1..b9f7566 100644

recipes-ti/devtools/ti-cgt-arm.inc +2 -0
@@ -9,12 +9,20 @@ require recipes-ti/includes/ti-paths.inc
 
 S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
+PR = "r1"
+
 SRC_URI = "http://software-

dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name= ${BINFILE_NAME}"

Quoted 22 lines
recipes-ti/devtools/ti-cgt-arm.inc +6 -1
 BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
 TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
+do_compile_append() {
+    cd ${S}/ti-cgt-arm_${PV}.LTS
+    export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
+    lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+}
+
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
     cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
--

1.9.1

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw
In reply to Sam Nelson

Denys,

Can you please backport this to ti2018.03?

Thank you,

Jake

Quoted 36 lines · Sam Nelson

rtsv7R4_A_le_v3D16_eabi.lib library is not included in the cgt package. This library is built dynamically during linking during a single build. Bu in case of parallel make, dynamic creation of libraries causes failures.
Hence building and adding the library to the package.

---
  recipes-ti/devtools/ti-cgt-arm.inc | 8 ++++++++
  1 file changed, 8 insertions(+)
recipes-ti/devtools/ti-cgt-arm.inc +8 -0
index 436fab1..b9f7566 100644
@@ -9,12 +9,20 @@ require recipes-ti/includes/ti-paths.inc
 
  S = "${WORKDIR}/ti-cgt-arm-${PV}"
 
+PR = "r1"
+
  SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
 
  BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
  TI_BIN_UNPK_ARGS = "--prefix ${S}"
  TI_BIN_UNPK_CMDS = ""
 
+do_compile_append() {
+    cd ${S}/ti-cgt-arm_${PV}.LTS
+    export PATH=${PATH}:${S}/ti-cgt-arm_${PV}.LTS/bin
+    lib/mklib --pattern=rtsv7R4_A_le_v3D16_eabi.lib
+}
+
  do_install() {
      install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
      cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}