Skip to contentSkip to conversation

ti-paths.inc: added path for TI CGT6x 7.x.x

PATCH Superseded Ivan Pang 2 participants 8 messages Jul 24, 2017 – Jul 25, 2017

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
author
#4 lore raw

PATCH 3/4 mad-utils-rtos: added recipe for MAD utils

In reply to Ivan Pang

This recipe adds the Multicore Application Deployment (MAD) utility for c665x-evm and c667x-evm.

---
 recipes-bsp/mad-utils/mad-utils-rtos_git.bb | 66 +++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 recipes-bsp/mad-utils/mad-utils-rtos_git.bb
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +66 -0
new file mode 100644
index 0000000..0fab610
@@ -0,0 +1,66 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://README.txt;md5=44b2180aec0657f6b0e42e5611c0bafb"
+
+require recipes-ti/includes/ti-paths.inc
+
+DEPENDS = "ti-cgt6x-7-native"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "c66x"
+
+CLEANBROKEN = "1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/mad-utils.git;protocol=git;branch=${BRANCH}"
+SRCREV = "2458510f76eddfa837c2b83448965e233156944b"
+PR = "r0"
+
+S = "${WORKDIR}/git"
+
+export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}"
+
+DEVICE = ""
+DEVICE_c665x-evm = "C6657"
+DEVICE_c667x-evm = "C6678"
+
+ENDIAN = ""
+ENDIAN_c665x-evm = "little big"
+ENDIAN_c667x-evm = "little big"
+
+do_compile() {
+    cd mad-loader
+    cp mal/malLib/build/Makefile mal/malLib/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malLib/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malLib/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malLib/build/Makefile
+    cp mal/malApp/build/Makefile mal/malApp/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malApp/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malApp/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malApp/build/Makefile
+    cp nmlLoader/build/Makefile nmlLoader/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" nmlLoader/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" nmlLoader/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" nmlLoader/build/Makefile
+    for e in ${ENDIAN}
+    do
+        mkdir -p bin/${DEVICE}/${e}
+        make -C mal/malLib/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        make -C mal/malApp/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp mal/malApp/build/mal_app.exe bin/${DEVICE}/${e}
+        make -C nmlLoader/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp nmlLoader/build/nml.exe bin/${DEVICE}/${e}
+    done
+    mv -f mal/malLib/build/Makefile_save mal/malLib/build/Makefile
+    mv -f mal/malApp/build/Makefile_save mal/malApp/build/Makefile
+    mv -f nmlLoader/build/Makefile_save nmlLoader/build/Makefile
+    cd -
+}
+
+do_install() {
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+    cp -r * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils"
+
+INSANE_SKIP_${PN} += "arch staticdev ldflags file-rdeps"
Signature · 1 line
1.9.1
author
#7 lore raw

PATCH 4/4 ibl-boot-rtos: added recipe for RTOS IBL

In reply to Ivan Pang

This recipe adds the Intermediate Bootloader (IBL) for c665x-evm and c667x-evm.

---
 recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb | 66 +++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb
recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb new file +66 -0
new file mode 100644
index 0000000..275a050
@@ -0,0 +1,66 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://src/ibl.h;beginline=1;endline=34;md5=ee7d7a3305d1e524955996d1c5e31cb9"
+
+require recipes-ti/includes/ti-paths.inc
+
+DEPENDS = "ti-cgt6x-7-native"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "c66x"
+
+CLEANBROKEN = "1"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/ibl.git;protocol=git;branch=${BRANCH}"
+SRCREV = "f7ed32cc8911e3353dd01080da9b725b44a12285"
+PR = "r0"
+
+S = "${WORKDIR}/git"
+
+IBLTARGETS = ""
+IBLTARGETS_c665x-evm = "evm_c6657_i2c"
+IBLTARGETS_c667x-evm = "evm_c6678_i2c"
+
+IBLENDIAN = ""
+IBLENDIAN_c665x-evm = "little big"
+IBLENDIAN_c667x-evm = "little big"
+
+export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}"
+export TOOLSC6X="${C6X_BASE_DIR}"
+export TOOLSC6XDOS="${C6X_BASE_DIR}"
+export TOOLSBIOSC6XDOS="${C6X_BASE_DIR}"
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+
+do_compile() {
+    cd src/make
+    cp c64x/makedefs.mk c64x/makedefs_save.mk
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" c64x/makedefs.mk
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" c64x/makedefs.mk
+    cp makestg2 makestg2_save
+    sed -i "s@hex6x@${C6X_BASE_DIR}/bin/hex6x@g" makestg2
+    for t in ${IBLTARGETS}
+    do
+        for e in ${IBLENDIAN}
+        do
+            make ${t} ENDIAN=${e} I2C_BUS_ADDR=0x51
+        done
+    done
+    cp -f c64x/makedefs_save.mk c64x/makedefs.mk
+    rm c64x/makedefs_save.mk
+    cp -f makestg2_save makestage2
+    rm makestg2_save
+    cd -
+}
+
+do_install() {
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/ibl
+    cp -r * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/ibl
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+INSANE_SKIP_${PN} = "arch file-rdeps"
Signature · 1 line
1.9.1

Ivan Pang

author
#0 lore raw

PATCH 1/4 ti-paths.inc: added path for TI CGT6x 7.x.x

This directory path is for installing TI CGT6x 7.x.x as well as invoking the installation from other recipes.

---
 recipes-ti/includes/ti-paths.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-ti/includes/ti-paths.inc +2 -1
index a7ea9a7..ebd4b8a 100644
@@ -55,7 +55,7 @@ export VLIB_C66_INSTALL_DIR_RECIPE        = "${installdir}/ti-vlib-c66x-tree"
 export CG_XML_INSTALL_DIR_RECIPE     = "${installdir}/ti-cg-xml-tree"
 export OMP_INSTALL_DIR_RECIPE        = "${installdir}/ti-omp-tree"
 export MPM_INSTALL_DIR_RECIPE        = "${installdir}/ti-mpm-tree"
-
+export TI_CGT6X_7_INSTALL_DIR_RECIPE   = "${installdir}/cgt6x-7"
 
 # This is where the tools will end up in sysroot
 export BIOS_INSTALL_DIR       = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
@@ -101,6 +101,7 @@ export VLIB_C66_INSTALL_DIR        = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DI
 export CG_XML_INSTALL_DIR     = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
 export OMP_INSTALL_DIR        = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
 export MPM_INSTALL_DIR        = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
+export TI_CGT6X_7_INSTALL_DIR   = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
 
 DSPSUFFIX_omapl137 = "x674"
 DSPSUFFIX_omapl138 = "x674"
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/4 ti-cgt6x-7: added recipe for TI CGT6x 7.x.x

This recipe specifically installs the 7.x.x series of TI CGT6x.

---
 recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb | 38 ++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb new file +38 -0
new file mode 100644
index 0000000..51d359e
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI DSP Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "TI"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
+
+PE = "0"
+PR = "r0"
+
+S = "${WORKDIR}/c6000_7.4.16"
+
+require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/ti-unpack.inc
+
+BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
+BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
+TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
+TI_BIN_UNPK_CMDS=""
+
+SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
+SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
+
+do_install() {
+    install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+    cp -r ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN} += "arch staticdev"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.9.1
#2 lore raw

Re: [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x

The "target" class of this recipe does not appear to be supported (i.e. no ARM binary package). Shoudl this be native only, similar to ti-cgt-arm?

Quoted 52 lines · Ivan Pang

This recipe specifically installs the 7.x.x series of TI CGT6x.

---
  recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb | 38 ++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)

create mode 100644 recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb

recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb new file +38 -0
new file mode 100644
index 0000000..51d359e
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI DSP Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "TI"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
+
+PE = "0"
+PR = "r0"
+
+S = "${WORKDIR}/c6000_7.4.16"
+
+require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/ti-unpack.inc
+
+BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
+BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
+TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
+TI_BIN_UNPK_CMDS=""
+
+SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
+SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
+
+do_install() {
+    install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+    cp -r ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN} += "arch staticdev"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
#5 lore raw

Re: [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils

In reply to Ivan Pang
Quoted 16 lines · Ivan Pang

This recipe adds the Multicore Application Deployment (MAD) utility for c665x-evm and c667x-evm.

---
  recipes-bsp/mad-utils/mad-utils-rtos_git.bb | 66 +++++++++++++++++++++++++++++
  1 file changed, 66 insertions(+)

create mode 100644 recipes-bsp/mad-utils/mad-utils-rtos_git.bb

recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +1 -0
new file mode 100644
index 0000000..0fab610
@@ -0,0 +1,66 @@
+LICENSE = "BSD-3-Clause"

recipes-bsp/mad-utils/mad-utils-rtos_git.bb line 11

Quoted 10 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://README.txt;md5=44b2180aec0657f6b0e42e5611c0bafb"
+
+require recipes-ti/includes/ti-paths.inc
+
+DEPENDS = "ti-cgt6x-7-native"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "c66x"
+
+CLEANBROKEN = "1"

Is CLEANBROKEN needed? I do not see a Makefile in the 'S' directory.

Quoted 22 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +22 -0
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/mad-utils.git;protocol=git;branch=${BRANCH}"
+SRCREV = "2458510f76eddfa837c2b83448965e233156944b"
+PR = "r0"
+
+S = "${WORKDIR}/git"
+
+export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}"
+
+DEVICE = ""
+DEVICE_c665x-evm = "C6657"
+DEVICE_c667x-evm = "C6678"
+
+ENDIAN = ""
+ENDIAN_c665x-evm = "little big"
+ENDIAN_c667x-evm = "little big"
+
+do_compile() {
+    cd mad-loader
+    cp mal/malLib/build/Makefile mal/malLib/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malLib/build/Makefile

recipes-bsp/mad-utils/mad-utils-rtos_git.bb line 43

Quoted 10 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +10 -0
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malLib/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malLib/build/Makefile
+    cp mal/malApp/build/Makefile mal/malApp/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malApp/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malApp/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malApp/build/Makefile
+    cp nmlLoader/build/Makefile nmlLoader/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" nmlLoader/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" nmlLoader/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" nmlLoader/build/Makefile

I think that it would be cleaner to prepend PATH with '${C6X_BASE_DIR}/bin'. Then you do not need to modify the makefile and then undo the modifications.

Quoted 23 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +23 -0
+    for e in ${ENDIAN}
+    do
+        mkdir -p bin/${DEVICE}/${e}
+        make -C mal/malLib/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        make -C mal/malApp/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp mal/malApp/build/mal_app.exe bin/${DEVICE}/${e}
+        make -C nmlLoader/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp nmlLoader/build/nml.exe bin/${DEVICE}/${e}
+    done
+    mv -f mal/malLib/build/Makefile_save mal/malLib/build/Makefile
+    mv -f mal/malApp/build/Makefile_save mal/malApp/build/Makefile
+    mv -f nmlLoader/build/Makefile_save nmlLoader/build/Makefile
+    cd -
+}
+
+do_install() {
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+    cp -r * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils"
+
+INSANE_SKIP_${PN} += "arch staticdev ldflags file-rdeps"
author
#6 lore raw

Re: [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils

-----Original Message-----
From: Stiffler, Jacob
Sent: Tuesday, July 25, 2017 9:28 AM
To: Pang, Ivan; [email protected]
Subject: Re: [meta-ti] [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils

Quoted 17 lines · Ivan Pang

This recipe adds the Multicore Application Deployment (MAD) utility for c665x-evm and c667x-evm.

---
  recipes-bsp/mad-utils/mad-utils-rtos_git.bb | 66 +++++++++++++++++++++++++++++
  1 file changed, 66 insertions(+)

create mode 100644 recipes-bsp/mad-utils/mad-utils-rtos_git.bb

recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +1 -0
new file mode 100644
index 0000000..0fab610
@@ -0,0 +1,66 @@
+LICENSE = "BSD-3-Clause"

recipes-bsp/mad-utils/mad-utils-rtos_git.bb line 11

Quoted 10 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://README.txt;md5=44b2180aec0657f6b0e42e5611c0bafb"
+
+require recipes-ti/includes/ti-paths.inc
+
+DEPENDS = "ti-cgt6x-7-native"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "c66x"
+
+CLEANBROKEN = "1"

Is CLEANBROKEN needed? I do not see a Makefile in the 'S' directory.
[Ivan] I added CLEANBROKEN because of the sed done in do_compile(). I can remove this (same for ibl-boot-rtos).

Quoted 23 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +23 -0
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/mad-utils.git;protocol=git;branch=${BRANCH}"
+SRCREV = "2458510f76eddfa837c2b83448965e233156944b"
+PR = "r0"
+
+S = "${WORKDIR}/git"
+
+export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}"
+
+DEVICE = ""
+DEVICE_c665x-evm = "C6657"
+DEVICE_c667x-evm = "C6678"
+
+ENDIAN = ""
+ENDIAN_c665x-evm = "little big"
+ENDIAN_c667x-evm = "little big"
+
+do_compile() {
+    cd mad-loader
+    cp mal/malLib/build/Makefile mal/malLib/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malLib/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malLib/build/Makefile

recipes-bsp/mad-utils/mad-utils-rtos_git.bb

Quoted 10 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +10 -0
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malLib/build/Makefile
+    cp mal/malApp/build/Makefile mal/malApp/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malApp/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malApp/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malApp/build/Makefile
+    cp nmlLoader/build/Makefile nmlLoader/build/Makefile_save
+    sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" nmlLoader/build/Makefile
+    sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" nmlLoader/build/Makefile
+    sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" 
+nmlLoader/build/Makefile

I think that it would be cleaner to prepend PATH with '${C6X_BASE_DIR}/bin'. Then you do not need to modify the makefile and then undo the modifications. [Ivan] I wanted to refrain from adding an older toolchain (in this case, TI CGT6x 7.4.16) into the PATH. I'll see if I can tidy this up.

Quoted 23 lines
recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file +23 -0
+    for e in ${ENDIAN}
+    do
+        mkdir -p bin/${DEVICE}/${e}
+        make -C mal/malLib/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        make -C mal/malApp/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp mal/malApp/build/mal_app.exe bin/${DEVICE}/${e}
+        make -C nmlLoader/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
+        cp nmlLoader/build/nml.exe bin/${DEVICE}/${e}
+    done
+    mv -f mal/malLib/build/Makefile_save mal/malLib/build/Makefile
+    mv -f mal/malApp/build/Makefile_save mal/malApp/build/Makefile
+    mv -f nmlLoader/build/Makefile_save nmlLoader/build/Makefile
+    cd -
+}
+
+do_install() {
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+    cp -r * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils"
+
+INSANE_SKIP_${PN} += "arch staticdev ldflags file-rdeps"
author
#3 lore raw

Re: [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x

In reply to Jacob Stiffler

Yes, this can be native-only. I had based this recipe on existing CGT6x 7.x.x recipes, but the only use is done natively. I'll submit a v2.

Ivan

-----Original Message-----
From: Stiffler, Jacob
Sent: Tuesday, July 25, 2017 9:15 AM
To: Pang, Ivan; [email protected]
Subject: Re: [meta-ti] [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x

The "target" class of this recipe does not appear to be supported (i.e. no ARM binary package). Shoudl this be native only, similar to ti-cgt-arm?

Quoted 54 lines · Ivan Pang

This recipe specifically installs the 7.x.x series of TI CGT6x.

---
  recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb | 38 ++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)

create mode 100644 recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb

recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb new file +39 -0
new file mode 100644
index 0000000..51d359e
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI DSP Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "TI"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
+
+PE = "0"
+PR = "r0"
+
+S = "${WORKDIR}/c6000_7.4.16"
+
+require recipes-ti/includes/ti-paths.inc require 
+recipes-ti/includes/ti-unpack.inc
+
+BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
+BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
+TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
+TI_BIN_UNPK_CMDS=""
+
+SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
+SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
+
+do_install() {
+    install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+    cp -r ${WORKDIR}/c6000_7.4.16/. 
+${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN} += "arch staticdev"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"