All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ti-paths.inc: added path for TI CGT6x 7.x.x
@ 2017-07-24 22:31 Ivan Pang
  2017-07-24 22:31 ` [PATCH 2/4] ti-cgt6x-7: added recipe " Ivan Pang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ivan Pang @ 2017-07-24 22:31 UTC (permalink / raw)
  To: meta-ti

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

Signed-off-by: Ivan Pang <i-pang@ti.com>
---
 recipes-ti/includes/ti-paths.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-ti/includes/ti-paths.inc b/recipes-ti/includes/ti-paths.inc
index a7ea9a7..ebd4b8a 100644
--- a/recipes-ti/includes/ti-paths.inc
+++ b/recipes-ti/includes/ti-paths.inc
@@ -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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x
  2017-07-24 22:31 [PATCH 1/4] ti-paths.inc: added path for TI CGT6x 7.x.x Ivan Pang
@ 2017-07-24 22:31 ` Ivan Pang
  2017-07-25 14:14   ` Jacob Stiffler
  2017-07-24 22:31 ` [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils Ivan Pang
  2017-07-24 22:31 ` [PATCH 4/4] ibl-boot-rtos: added recipe for RTOS IBL Ivan Pang
  2 siblings, 1 reply; 8+ messages in thread
From: Ivan Pang @ 2017-07-24 22:31 UTC (permalink / raw)
  To: meta-ti

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

Signed-off-by: Ivan Pang <i-pang@ti.com>
---
 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

diff --git a/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
new file mode 100644
index 0000000..51d359e
--- /dev/null
+++ b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
@@ -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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils
  2017-07-24 22:31 [PATCH 1/4] ti-paths.inc: added path for TI CGT6x 7.x.x Ivan Pang
  2017-07-24 22:31 ` [PATCH 2/4] ti-cgt6x-7: added recipe " Ivan Pang
@ 2017-07-24 22:31 ` Ivan Pang
  2017-07-25 14:28   ` Jacob Stiffler
  2017-07-24 22:31 ` [PATCH 4/4] ibl-boot-rtos: added recipe for RTOS IBL Ivan Pang
  2 siblings, 1 reply; 8+ messages in thread
From: Ivan Pang @ 2017-07-24 22:31 UTC (permalink / raw)
  To: meta-ti

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

Signed-off-by: Ivan Pang <i-pang@ti.com>
---
 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

diff --git a/recipes-bsp/mad-utils/mad-utils-rtos_git.bb b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
new file mode 100644
index 0000000..0fab610
--- /dev/null
+++ b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
@@ -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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/4] ibl-boot-rtos: added recipe for RTOS IBL
  2017-07-24 22:31 [PATCH 1/4] ti-paths.inc: added path for TI CGT6x 7.x.x Ivan Pang
  2017-07-24 22:31 ` [PATCH 2/4] ti-cgt6x-7: added recipe " Ivan Pang
  2017-07-24 22:31 ` [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils Ivan Pang
@ 2017-07-24 22:31 ` Ivan Pang
  2 siblings, 0 replies; 8+ messages in thread
From: Ivan Pang @ 2017-07-24 22:31 UTC (permalink / raw)
  To: meta-ti

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

Signed-off-by: Ivan Pang <i-pang@ti.com>
---
 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

diff --git a/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb b/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb
new file mode 100644
index 0000000..275a050
--- /dev/null
+++ b/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb
@@ -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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x
  2017-07-24 22:31 ` [PATCH 2/4] ti-cgt6x-7: added recipe " Ivan Pang
@ 2017-07-25 14:14   ` Jacob Stiffler
  2017-07-25 14:53     ` Pang, Ivan
  0 siblings, 1 reply; 8+ messages in thread
From: Jacob Stiffler @ 2017-07-25 14:14 UTC (permalink / raw)
  To: Ivan Pang, meta-ti

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?


On 7/24/2017 6:31 PM, Ivan Pang wrote:
> This recipe specifically installs the 7.x.x series of TI CGT6x.
>
> Signed-off-by: Ivan Pang <i-pang@ti.com>
> ---
>   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
>
> diff --git a/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
> new file mode 100644
> index 0000000..51d359e
> --- /dev/null
> +++ b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
> @@ -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"



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils
  2017-07-24 22:31 ` [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils Ivan Pang
@ 2017-07-25 14:28   ` Jacob Stiffler
  2017-07-25 14:49     ` Pang, Ivan
  0 siblings, 1 reply; 8+ messages in thread
From: Jacob Stiffler @ 2017-07-25 14:28 UTC (permalink / raw)
  To: Ivan Pang, meta-ti



On 7/24/2017 6:31 PM, Ivan Pang wrote:
> This recipe adds the Multicore Application Deployment (MAD)
> utility for c665x-evm and c667x-evm.
>
> Signed-off-by: Ivan Pang <i-pang@ti.com>
> ---
>   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
>
> diff --git a/recipes-bsp/mad-utils/mad-utils-rtos_git.bb b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
> new file mode 100644
> index 0000000..0fab610
> --- /dev/null
> +++ b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
> @@ -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"

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

> +
> +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

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.

> +    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"



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils
  2017-07-25 14:28   ` Jacob Stiffler
@ 2017-07-25 14:49     ` Pang, Ivan
  0 siblings, 0 replies; 8+ messages in thread
From: Pang, Ivan @ 2017-07-25 14:49 UTC (permalink / raw)
  To: Stiffler, Jacob, meta-ti



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



On 7/24/2017 6:31 PM, Ivan Pang wrote:
> This recipe adds the Multicore Application Deployment (MAD) utility 
> for c665x-evm and c667x-evm.
>
> Signed-off-by: Ivan Pang <i-pang@ti.com>
> ---
>   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
>
> diff --git a/recipes-bsp/mad-utils/mad-utils-rtos_git.bb 
> b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
> new file mode 100644
> index 0000000..0fab610
> --- /dev/null
> +++ b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
> @@ -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"

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).

> +
> +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

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. 

> +    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"


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/4] ti-cgt6x-7: added recipe for TI CGT6x 7.x.x
  2017-07-25 14:14   ` Jacob Stiffler
@ 2017-07-25 14:53     ` Pang, Ivan
  0 siblings, 0 replies; 8+ messages in thread
From: Pang, Ivan @ 2017-07-25 14:53 UTC (permalink / raw)
  To: Stiffler, Jacob, meta-ti

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; meta-ti@yoctoproject.org
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?


On 7/24/2017 6:31 PM, Ivan Pang wrote:
> This recipe specifically installs the 7.x.x series of TI CGT6x.
>
> Signed-off-by: Ivan Pang <i-pang@ti.com>
> ---
>   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
>
> diff --git a/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb 
> b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
> new file mode 100644
> index 0000000..51d359e
> --- /dev/null
> +++ b/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
> @@ -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"


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-25 14:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-24 22:31 [PATCH 1/4] ti-paths.inc: added path for TI CGT6x 7.x.x Ivan Pang
2017-07-24 22:31 ` [PATCH 2/4] ti-cgt6x-7: added recipe " Ivan Pang
2017-07-25 14:14   ` Jacob Stiffler
2017-07-25 14:53     ` Pang, Ivan
2017-07-24 22:31 ` [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils Ivan Pang
2017-07-25 14:28   ` Jacob Stiffler
2017-07-25 14:49     ` Pang, Ivan
2017-07-24 22:31 ` [PATCH 4/4] ibl-boot-rtos: added recipe for RTOS IBL Ivan Pang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.