Skip to contentSkip to conversation

ti-cgt-arm: Include recipes for 16.9.1

PATCH In review Karthik Ramanan 2 participants 8 messages Apr 19, 2017 – Apr 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ti-cgt-arm: Include recipes for 16.9.1

From: Ivan Pang <[email protected]>

---
 classes/component_meta.bbclass          | 29 +++++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm-linux.bb | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.bb       | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.inc      | 19 +++++++++++++++++++
 4 files changed, 100 insertions(+)
 create mode 100644 classes/component_meta.bbclass
 create mode 100644 recipes-ti/devtools/ti-cgt-arm-linux.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.inc
classes/component_meta.bbclass new file +29 -0
new file mode 100644
index 0000000..f2dc754
@@ -0,0 +1,29 @@
+CM_NAME ?= ""
+CM_VERSION ?= ""
+CM_ROOT_DIR ?= ""
+CM_BINARY ?= ""
+CM_DESCRIPTION ?= ""
+
+do_component_meta() {
+    if [ ! -d "${DEPLOY_DIR_IMAGE}" ]
+    then
+        mkdir -p ${DEPLOY_DIR_IMAGE}    
+    fi
+
+    if [ ! -e "${DEPLOY_DIR_IMAGE}/.components_meta" ]
+    then
+        touch ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+
+    # Check if component is already documented in .components_meta
+    if ! grep -q "${CM_ROOT_DIR}" ${DEPLOY_DIR_IMAGE}/.components_meta
+    then
+        # Add component meta information
+        echo "${CM_NAME}|${CM_VERSION}|${CM_ROOT_DIR}|${CM_BINARY}|${CM_DESCRIPTION}" >> \
+            ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+}
+
+do_component_meta[lockfiles] = "${DEPLOY_DIR_IMAGE}/component_meta.lock"
+
+addtask do_component_meta after do_install before do_package
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +26 -0
new file mode 100644
index 0000000..dbb143c
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    cp ${S}/../${BINFILE} ${S}/${BINFILE_NAME}
+}
+
+inherit component_meta
+CM_NAME = "TI CGT ARM"
+CM_VERSION = "${PV}"
+CM_ROOT_DIR = "ti-cgt-arm_${PV}"
+CM_DESCRIPTION = "TI ARM code generation tools, including C/C++ compiler, linker, and run-time-support libraries"
+CM_BINARY = "${BINFILE_NAME}"
+
+deltask do_create_srcipk
+addtask create_srcipk after do_install before do_populate_sysroot
+
+CREATE_SRCIPK = "1"
+SRCIPK_INSTALL_DIR = "${CM_ROOT_DIR}"
+SRCIPK_SRC_DIR = "${S}"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.bb new file +26 -0
new file mode 100644
index 0000000..464374d
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+S = "${WORKDIR}/ti-cgt-arm-${PV}"
+
+require recipes-ti/includes/ti-unpack.inc
+require recipes-ti/includes/ti-staging.inc
+require recipes-ti/includes/ti-paths.inc
+
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
+
+BBCLASSEXTEND = "native nativesdk"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.inc new file +19 -0
new file mode 100644
index 0000000..195d59e
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI ARM Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
+
+LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"
+
+PV = "16.9.1"
+PE = "0"
+
+BINFILE_NAME = "cgt_arm_installer"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt_arm_installer.md5sum] = "${BINFILE_MD5}"
+SRC_URI[cgt_arm_installer.sha256sum] = "${BINFILE_SHA256}"
+
+FILES_${PN} += "${S}/*"
+
+INSANE_SKIP_${PN} += "arch staticdev"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/4 Remove CCS dependencies for all components

---
 classes/ti-pdk.bbclass                      | 2 +-
 recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb | 2 +-
 recipes-bsp/ipumm-fw/ipumm-fw_git.bb        | 2 +-
 recipes-ti/includes/ti-paths.inc            | 1 -
 recipes-ti/ipc/ti-ipc-rtos.inc              | 2 +-
 5 files changed, 4 insertions(+), 5 deletions(-)
classes/ti-pdk.bbclass +1 -1
index fd7c3e7..eca3652 100644
@@ -5,7 +5,7 @@ inherit perlnative
 
 DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk-build-rtos"
 
-DEPENDS_append_omap-a15 = " ti-ccsv6-native"
+DEPENDS_append_omap-a15 = " ti-cgt-arm-native"
 DEPENDS_remove_ti33x = "ti-cgt6x-native"
 DEPENDS_remove_ti43x = "ti-cgt6x-native"
 
recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb +1 -1
index 6a01d0b..ce9ef85 100644
@@ -4,7 +4,7 @@ require recipes-ti/includes/ti-staging.inc
 
 PR = "${INC_PR}.0"
 
-DEPENDS = "ti-sysbios ti-xdctools gcc-arm-none-eabi-native ti-ccsv6-native ti-cgt6x-native"
+DEPENDS = "ti-sysbios ti-xdctools gcc-arm-none-eabi-native ti-cgt-arm-native ti-cgt6x-native"
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-bsp/ipumm-fw/ipumm-fw_git.bb +1 -1
index 1a5d285..1291e69 100644
@@ -29,7 +29,7 @@ require recipes-ti/includes/ti-staging.inc
 
 inherit update-alternatives
 
-DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
+DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos"
 
 export HWVERSION="ES10"
 export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
recipes-ti/includes/ti-paths.inc +0 -1
index e7d3e82..c5e25c9 100644
@@ -46,7 +46,6 @@ export XDC_INSTALL_DIR_RECIPE        = "${installdir}/ti-xdctools-tree"
 export PDK_INSTALL_DIR_RECIPE        = "${installdir}/ti-pdk-tree"
 export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
 export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
-export CCSV6_INSTALL_DIR_RECIPE           = "${installdir}/ccsv6"
 export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
 export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
 export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
recipes-ti/ipc/ti-ipc-rtos.inc +1 -1
index b29e984..696a897 100644
@@ -43,7 +43,7 @@ DEPENDS_append_keystone = " ti-cgt6x-native \
                             gcc-arm-none-eabi-native \
 "
 DEPENDS_append_omap-a15 = " ti-cgt6x-native \
-                            ti-ccsv6-native \
+                            ti-cgt-arm-native \
                             gcc-arm-none-eabi-native \
 "
 IPC_TARGETS = ""
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/4 ti-cgt-arm: Update to version 16.9.2

In reply to Karthik Ramanan
---
 recipes-ti/devtools/ti-cgt-arm.bb  | 4 ++--
 recipes-ti/devtools/ti-cgt-arm.inc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
recipes-ti/devtools/ti-cgt-arm.bb +2 -2
index 464374d..dbe61d4 100644
@@ -10,8 +10,8 @@ TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
 BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
-BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
-BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+BINFILE_MD5 = "7b73e51e9548a4a0bf3923a336b1a974"
+BINFILE_SHA256 = "d1a5c255319088be7d75b3fce1b16a2e3d60c75023db7dad16cab6d4d3425d06"
 
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
recipes-ti/devtools/ti-cgt-arm.inc +1 -1
index 195d59e..c14580c 100644
@@ -4,7 +4,7 @@ LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0
 
 LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"
 
-PV = "16.9.1"
+PV = "16.9.2"
 PE = "0"
 
 BINFILE_NAME = "cgt_arm_installer"
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/4 ti-ccsv6: Remove the recipe

In reply to Karthik Ramanan
---
 recipes-ti/devtools/ti-ccsv6-native_6.1.3.00034.bb | 45 ----------------------
 1 file changed, 45 deletions(-)
 delete mode 100644 recipes-ti/devtools/ti-ccsv6-native_6.1.3.00034.bb
recipes-ti/devtools/ti-ccsv6-native_6.1.3.00034.bb deleted +0 -45
deleted file mode 100644
index 334c7df..0000000
@@ -1,45 +0,0 @@
-DESCRIPTION = "TI DSP Code Generation Tools"
-HOMEPAGE = "http://processors.wiki.ti.com/index.php/Download_CCS#Code_Composer_Studio_Version_6_Downloads"
-LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
-
-LIC_FILES_CHKSUM = "file://${WORKDIR}/ccsv6/doc/EULA/EULA.doc;md5=24fb8a52ac52d3938b5888362edb295a"
-
-inherit native
-
-require recipes-ti/includes/ti-unpack.inc
-require recipes-ti/includes/ti-staging.inc
-require recipes-ti/includes/ti-paths.inc
-
-TI_CGT_ARM_VERSION = "15.12.1.LTS"
-
-SRC_URI = "http://install.source.dir.local/CCS${PV}_linux.tar.gz;name=ccsv6"
-
-S = "${WORKDIR}/CCS${PV}_linux"
-
-BINFILE = "CCS${PV}_linux/ccs_setup_${PV}.bin"
-TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
-TI_BIN_UNPK_CMDS = ""
-
-SRC_URI[ccsv6.md5sum] = "ceaa5023c1a4b51bc637d3de1a15786b"
-SRC_URI[ccsv6.sha256sum] = "fb3205a21942da09684c871371513707c841c4fd8d88a62f6a7865b0a86cc492"
-
-do_install() {
-    install -d ${D}${CCSV6_INSTALL_DIR_RECIPE}
-    cp -r ${WORKDIR}/ccsv6/. ${D}${CCSV6_INSTALL_DIR_RECIPE}
-
-    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
-    cp -r ${WORKDIR}/ccsv6/tools/compiler/ti-cgt-arm_${TI_CGT_ARM_VERSION}/. \
-          ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
-}
-
-FILES_${PN} += "\
-  ${CCSV6_INSTALL_DIR_RECIPE} \
-  ${M4_TOOLCHAIN_INSTALL_DIR_RECIPE} \
-"
-
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-INSANE_SKIP_${PN} = "arch libdir ldflags staticdev textrel dev-so"
-
-EXCLUDE_FROM_SHLIBS = "1"
Signature · 1 line
1.9.1
#6 lore raw
In reply to Karthik Ramanan

Please see inline.

Quoted 21 lines · Karthik Ramanan

From: Ivan Pang <[email protected]>

---
 classes/component_meta.bbclass          | 29 +++++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm-linux.bb | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.bb       | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.inc      | 19 +++++++++++++++++++
 4 files changed, 100 insertions(+)
 create mode 100644 classes/component_meta.bbclass
 create mode 100644 recipes-ti/devtools/ti-cgt-arm-linux.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.inc
classes/component_meta.bbclass new file +0 -0
new file mode 100644
index 0000000..f2dc754

classes/component_meta.bbclass line 5

Quoted 5 lines
classes/component_meta.bbclass new file +5 -0
@@ -0,0 +1,29 @@
+CM_NAME ?= ""
+CM_VERSION ?= ""
+CM_ROOT_DIR ?= ""
+CM_BINARY ?= ""
+CM_DESCRIPTION ?= ""

I'm not sure what's the purpose of this class and why you are including it here...
I'd suggest you drop it completely.

Quoted 29 lines
classes/component_meta.bbclass new file +23 -0
+do_component_meta() {
+    if [ ! -d "${DEPLOY_DIR_IMAGE}" ]
+    then
+        mkdir -p ${DEPLOY_DIR_IMAGE}    
+    fi
+
+    if [ ! -e "${DEPLOY_DIR_IMAGE}/.components_meta" ]
+    then
+        touch ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+
+    # Check if component is already documented in .components_meta
+    if ! grep -q "${CM_ROOT_DIR}" ${DEPLOY_DIR_IMAGE}/.components_meta
+    then
+        # Add component meta information
+        echo "${CM_NAME}|${CM_VERSION}|${CM_ROOT_DIR}|${CM_BINARY}|${CM_DESCRIPTION}" >> \
+            ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+}
+
+do_component_meta[lockfiles] = "${DEPLOY_DIR_IMAGE}/component_meta.lock"
+
+addtask do_component_meta after do_install before do_package
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +0 -0
new file mode 100644
index 0000000..dbb143c

recipes-ti/devtools/ti-cgt-arm-linux.bb line 8

Quoted 8 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +8 -0
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    cp ${S}/../${BINFILE} ${S}/${BINFILE_NAME}

Why do you need this step?

In general, what's the difference between ti-cgt-arm-linux.bb and ti-cgt-arm.bb?

Anyway, this ti-cgt-arm-linux recipe looks superflous to me...

Quoted 5 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +5 -0
+}
+
+inherit component_meta
+CM_NAME = "TI CGT ARM"
+CM_VERSION = "${PV}"

recipes-ti/devtools/ti-cgt-arm-linux.bb line 23

Quoted 10 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +10 -0
+CM_ROOT_DIR = "ti-cgt-arm_${PV}"
+CM_DESCRIPTION = "TI ARM code generation tools, including C/C++ compiler, linker, and run-time-support libraries"
+CM_BINARY = "${BINFILE_NAME}"
+
+deltask do_create_srcipk
+addtask create_srcipk after do_install before do_populate_sysroot
+
+CREATE_SRCIPK = "1"
+SRCIPK_INSTALL_DIR = "${CM_ROOT_DIR}"
+SRCIPK_SRC_DIR = "${S}"

This should not be here! This has nothing to do with meta-ti!

recipes-ti/devtools/ti-cgt-arm.bb line 3

Quoted 11 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +2 -0
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.bb new file +3 -0
new file mode 100644
index 0000000..464374d
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+S = "${WORKDIR}/ti-cgt-arm-${PV}"

May need to be set in .inc file...

Quoted 28 lines
recipes-ti/devtools/ti-cgt-arm.bb new file +22 -0
+require recipes-ti/includes/ti-unpack.inc
+require recipes-ti/includes/ti-staging.inc
+require recipes-ti/includes/ti-paths.inc
+
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
+
+BBCLASSEXTEND = "native nativesdk"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.inc new file +0 -0
new file mode 100644
index 0000000..195d59e

recipes-ti/devtools/ti-cgt-arm.inc line 1

Quoted 1 line
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI ARM Code Generation Tools"

Use SUMMARY

recipes-ti/devtools/ti-cgt-arm.inc line 3

Quoted 2 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +2 -0
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"

Is this the correct license?

recipes-ti/devtools/ti-cgt-arm.inc line 5

Quoted 1 line
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
+LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"

This is very incorrect! Please point to the real license file.

recipes-ti/devtools/ti-cgt-arm.inc line 8

Quoted 2 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +2 -0
+PV = "16.9.1"
+PE = "0"

Drop this - 0 is the default.

recipes-ti/devtools/ti-cgt-arm.inc line 17

Quoted 8 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +8 -0
+BINFILE_NAME = "cgt_arm_installer"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt_arm_installer.md5sum] = "${BINFILE_MD5}"
+SRC_URI[cgt_arm_installer.sha256sum] = "${BINFILE_SHA256}"
+
+FILES_${PN} += "${S}/*"

??? What's this?

Quoted 9 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
+INSANE_SKIP_${PN} += "arch staticdev"
Signature · 7 lines
1.9.1

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

Re: [morty 2/4] Remove CCS dependencies for all components

In reply to Karthik Ramanan
Quoted 53 lines · Karthik Ramanan
---
 classes/ti-pdk.bbclass                      | 2 +-
 recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb | 2 +-
 recipes-bsp/ipumm-fw/ipumm-fw_git.bb        | 2 +-
 recipes-ti/includes/ti-paths.inc            | 1 -
 recipes-ti/ipc/ti-ipc-rtos.inc              | 2 +-
 5 files changed, 4 insertions(+), 5 deletions(-)
classes/ti-pdk.bbclass +1 -1
index fd7c3e7..eca3652 100644
@@ -5,7 +5,7 @@ inherit perlnative
 
 DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk-build-rtos"
 
-DEPENDS_append_omap-a15 = " ti-ccsv6-native"
+DEPENDS_append_omap-a15 = " ti-cgt-arm-native"
 DEPENDS_remove_ti33x = "ti-cgt6x-native"
 DEPENDS_remove_ti43x = "ti-cgt6x-native"
 
recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb +1 -1
index 6a01d0b..ce9ef85 100644
@@ -4,7 +4,7 @@ require recipes-ti/includes/ti-staging.inc
 
 PR = "${INC_PR}.0"
 
-DEPENDS = "ti-sysbios ti-xdctools gcc-arm-none-eabi-native ti-ccsv6-native ti-cgt6x-native"
+DEPENDS = "ti-sysbios ti-xdctools gcc-arm-none-eabi-native ti-cgt-arm-native ti-cgt6x-native"
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-bsp/ipumm-fw/ipumm-fw_git.bb +1 -1
index 1a5d285..1291e69 100644
@@ -29,7 +29,7 @@ require recipes-ti/includes/ti-staging.inc
 
 inherit update-alternatives
 
-DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
+DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos"
 
 export HWVERSION="ES10"
 export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
recipes-ti/includes/ti-paths.inc +0 -0
index e7d3e82..c5e25c9 100644

recipes-ti/includes/ti-paths.inc export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" · line 49

Quoted 4 lines
recipes-ti/includes/ti-paths.inc +0 -1
@@ -46,7 +46,6 @@ export XDC_INSTALL_DIR_RECIPE        = "${installdir}/ti-xdctools-tree"
 export PDK_INSTALL_DIR_RECIPE        = "${installdir}/ti-pdk-tree"
 export OSAL_INSTALL_DIR_RECIPE       = "${installdir}/ti-osal-tree"
 export M4_TOOLCHAIN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt-arm"
-export CCSV6_INSTALL_DIR_RECIPE           = "${installdir}/ccsv6"

I'd suggest removing this variable in patch #3, along with removing CCS recipe.

Quoted 24 lines
recipes-ti/includes/ti-paths.inc +0 -0
 export GCC_ARM_NONE_TOOLCHAIN_RECIPE      = "${installdir}/gcc-arm-none-eabi"
 export TI_CGT_PRU_INSTALL_DIR_RECIPE      = "${installdir}/cgt-pru"
 export DSPLIB_C66_INSTALL_DIR_RECIPE      = "${installdir}/ti-dsplib-c66x-tree"
recipes-ti/ipc/ti-ipc-rtos.inc +1 -1
index b29e984..696a897 100644
@@ -43,7 +43,7 @@ DEPENDS_append_keystone = " ti-cgt6x-native \
                             gcc-arm-none-eabi-native \
 "
 DEPENDS_append_omap-a15 = " ti-cgt6x-native \
-                            ti-ccsv6-native \
+                            ti-cgt-arm-native \
                             gcc-arm-none-eabi-native \
 "
 IPC_TARGETS = ""
Signature · 7 lines
1.9.1

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

Re: [morty 4/4] ti-cgt-arm: Update to version 16.9.2

In reply to Karthik Ramanan

Since you'd need to completely re-do patch #1, I suggest you squash this change as well.

Quoted 42 lines · Karthik Ramanan
---
 recipes-ti/devtools/ti-cgt-arm.bb  | 4 ++--
 recipes-ti/devtools/ti-cgt-arm.inc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
recipes-ti/devtools/ti-cgt-arm.bb +2 -2
index 464374d..dbe61d4 100644
@@ -10,8 +10,8 @@ TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
 BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
-BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
-BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+BINFILE_MD5 = "7b73e51e9548a4a0bf3923a336b1a974"
+BINFILE_SHA256 = "d1a5c255319088be7d75b3fce1b16a2e3d60c75023db7dad16cab6d4d3425d06"
 
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
recipes-ti/devtools/ti-cgt-arm.inc +1 -1
index 195d59e..c14580c 100644
@@ -4,7 +4,7 @@ LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0
 
 LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"
 
-PV = "16.9.1"
+PV = "16.9.2"
 PE = "0"
 
 BINFILE_NAME = "cgt_arm_installer"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#7 lore raw
In reply to Denys Dmytriyenko

Hi Denys,

I have reworked the patches to address all your comments.
Regarding the license, I looked into the ti-cgt-arm folder after extraction, it has mention of all these licenses that are captured in the recipe.

The v2 of the patch set has been validated with the latest morty/morty-next.

Regards
Karthik

Quoted 177 lines · Denys Dmytriyenko

Please see inline.

Quoted 21 lines · Karthik Ramanan

From: Ivan Pang <[email protected]>

---
  classes/component_meta.bbclass          | 29 +++++++++++++++++++++++++++++
  recipes-ti/devtools/ti-cgt-arm-linux.bb | 26 ++++++++++++++++++++++++++
  recipes-ti/devtools/ti-cgt-arm.bb       | 26 ++++++++++++++++++++++++++
  recipes-ti/devtools/ti-cgt-arm.inc      | 19 +++++++++++++++++++
  4 files changed, 100 insertions(+)

create mode 100644 classes/component_meta.bbclass create mode 100644 recipes-ti/devtools/ti-cgt-arm-linux.bb create mode 100644 recipes-ti/devtools/ti-cgt-arm.bb create mode 100644 recipes-ti/devtools/ti-cgt-arm.inc

classes/component_meta.bbclass new file +0 -0
new file mode 100644
index 0000000..f2dc754

classes/component_meta.bbclass line 5

Quoted 5 lines
classes/component_meta.bbclass new file +5 -0
@@ -0,0 +1,29 @@
+CM_NAME ?= ""
+CM_VERSION ?= ""
+CM_ROOT_DIR ?= ""
+CM_BINARY ?= ""
+CM_DESCRIPTION ?= ""

I'm not sure what's the purpose of this class and why you are including it here...
I'd suggest you drop it completely.

Quoted 29 lines
classes/component_meta.bbclass new file +23 -0
+do_component_meta() {
+    if [ ! -d "${DEPLOY_DIR_IMAGE}" ]
+    then
+        mkdir -p ${DEPLOY_DIR_IMAGE}
+    fi
+
+    if [ ! -e "${DEPLOY_DIR_IMAGE}/.components_meta" ]
+    then
+        touch ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+
+    # Check if component is already documented in .components_meta
+    if ! grep -q "${CM_ROOT_DIR}" ${DEPLOY_DIR_IMAGE}/.components_meta
+    then
+        # Add component meta information
+        echo "${CM_NAME}|${CM_VERSION}|${CM_ROOT_DIR}|${CM_BINARY}|${CM_DESCRIPTION}" >> \
+            ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+}
+
+do_component_meta[lockfiles] = "${DEPLOY_DIR_IMAGE}/component_meta.lock"
+
+addtask do_component_meta after do_install before do_package
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +0 -0
new file mode 100644
index 0000000..dbb143c

recipes-ti/devtools/ti-cgt-arm-linux.bb line 8

Quoted 8 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +8 -0
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    cp ${S}/../${BINFILE} ${S}/${BINFILE_NAME}

Why do you need this step?

In general, what's the difference between ti-cgt-arm-linux.bb and ti-cgt-arm.bb?

Anyway, this ti-cgt-arm-linux recipe looks superflous to me...

Quoted 5 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +5 -0
+}
+
+inherit component_meta
+CM_NAME = "TI CGT ARM"
+CM_VERSION = "${PV}"

recipes-ti/devtools/ti-cgt-arm-linux.bb line 23

Quoted 10 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +10 -0
+CM_ROOT_DIR = "ti-cgt-arm_${PV}"
+CM_DESCRIPTION = "TI ARM code generation tools, including C/C++ compiler, linker, and run-time-support libraries"
+CM_BINARY = "${BINFILE_NAME}"
+
+deltask do_create_srcipk
+addtask create_srcipk after do_install before do_populate_sysroot
+
+CREATE_SRCIPK = "1"
+SRCIPK_INSTALL_DIR = "${CM_ROOT_DIR}"
+SRCIPK_SRC_DIR = "${S}"

This should not be here! This has nothing to do with meta-ti!

recipes-ti/devtools/ti-cgt-arm.bb line 3

Quoted 11 lines
recipes-ti/devtools/ti-cgt-arm-linux.bb new file +2 -0
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.bb new file +3 -0
new file mode 100644
index 0000000..464374d
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+S = "${WORKDIR}/ti-cgt-arm-${PV}"

May need to be set in .inc file...

Quoted 28 lines
recipes-ti/devtools/ti-cgt-arm.bb new file +22 -0
+require recipes-ti/includes/ti-unpack.inc
+require recipes-ti/includes/ti-staging.inc
+require recipes-ti/includes/ti-paths.inc
+
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
+
+BBCLASSEXTEND = "native nativesdk"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
recipes-ti/devtools/ti-cgt-arm.inc new file +0 -0
new file mode 100644
index 0000000..195d59e

recipes-ti/devtools/ti-cgt-arm.inc line 1

Quoted 1 line
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI ARM Code Generation Tools"

Use SUMMARY

recipes-ti/devtools/ti-cgt-arm.inc line 3

Quoted 2 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +2 -0
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"

Is this the correct license?

recipes-ti/devtools/ti-cgt-arm.inc line 5

Quoted 1 line
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
+LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"

This is very incorrect! Please point to the real license file.

recipes-ti/devtools/ti-cgt-arm.inc line 8

Quoted 2 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +2 -0
+PV = "16.9.1"
+PE = "0"

Drop this - 0 is the default.

recipes-ti/devtools/ti-cgt-arm.inc line 17

Quoted 8 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +8 -0
+BINFILE_NAME = "cgt_arm_installer"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt_arm_installer.md5sum] = "${BINFILE_MD5}"
+SRC_URI[cgt_arm_installer.sha256sum] = "${BINFILE_SHA256}"
+
+FILES_${PN} += "${S}/*"

??? What's this?

Quoted 9 lines
recipes-ti/devtools/ti-cgt-arm.inc new file +1 -0
+INSANE_SKIP_${PN} += "arch staticdev"
Signature · 7 lines
1.9.1

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