summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:51 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:39 -0600
commit37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e (patch)
tree0cb0ca43d699f542e4421b3ce34607823774f841 /meta-ti-extras
parentc3007665063fac4140a6dddd3d76378ec5ae5c19 (diff)
downloadmeta-ti-37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e.tar.gz
meta-ti: move BIOS,XDC,XDAIS, CGT,DSP libs and components to meta-ti-extras
Legacy platforms AM3/4/5/J6 build components for multimedia acceleration and other DSP showcasing using SYS/BIOS, XDC, XDAIS, CodeGen Tools and different DSP libraries. Move all of them to meta-ti-extras. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-extras')
-rw-r--r--meta-ti-extras/licenses/Hewlett-Packard13
-rw-r--r--meta-ti-extras/licenses/Patrick-Powell4
-rw-r--r--meta-ti-extras/licenses/Thai-Open-Source-Software-Center31
-rw-r--r--meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb65
-rw-r--r--meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb22
-rw-r--r--meta-ti-extras/recipes-bsp/dsptop/dsptop.inc8
-rw-r--r--meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb27
-rw-r--r--meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb45
-rw-r--r--meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb67
-rw-r--r--meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb363
-rw-r--r--meta-ti-extras/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb31
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x.inc9
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch28
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/init48
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb49
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb49
-rw-r--r--meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb31
-rw-r--r--meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.14.00.bb18
-rw-r--r--meta-ti-extras/recipes-ti/README1
-rw-r--r--meta-ti-extras/recipes-ti/bios/ti-sysbios.inc28
-rw-r--r--meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb16
-rw-r--r--meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb29
-rw-r--r--meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb38
-rw-r--r--meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb29
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb40
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb44
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb49
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc24
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt470_4.6.6.bb8
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb46
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb107
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb49
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-xdctools-common.inc70
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-xdctools-core.inc5
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-xdctools.inc10
-rw-r--r--meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb10
-rw-r--r--meta-ti-extras/recipes-ti/dsplib/dsplib-c64xp_git.bb6
-rw-r--r--meta-ti-extras/recipes-ti/dsplib/dsplib-c66x_git.bb8
-rw-r--r--meta-ti-extras/recipes-ti/dsplib/dsplib-c674x_git.bb8
-rw-r--r--meta-ti-extras/recipes-ti/dsplib/dsplib.inc78
-rw-r--r--meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc21
-rw-r--r--meta-ti-extras/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb9
-rw-r--r--meta-ti-extras/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb9
-rw-r--r--meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc34
-rw-r--r--meta-ti-extras/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb9
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc15
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-paths.inc109
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-staging.inc6
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-unpack.inc83
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch40
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb49
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc31
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb44
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc73
-rw-r--r--meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb101
-rw-r--r--meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb5
-rw-r--r--meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb5
-rw-r--r--meta-ti-extras/recipes-ti/mathlib/mathlib.inc77
-rw-r--r--meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb62
-rw-r--r--meta-ti-extras/recipes-ti/osal/ti-osal.inc24
-rw-r--r--meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb9
-rw-r--r--meta-ti-extras/recipes-ti/swtools/swtools_git.bb52
-rw-r--r--meta-ti-extras/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb38
-rw-r--r--meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc32
-rw-r--r--meta-ti-extras/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb9
-rw-r--r--meta-ti-extras/recipes-ti/xdais/ti-xdais.inc25
-rw-r--r--meta-ti-extras/recipes-ti/xdais/ti-xdais_6.26.01.03.bb11
-rw-r--r--meta-ti-extras/recipes-ti/xdais/ti-xdais_7.24.00.04.bb9
68 files changed, 2602 insertions, 0 deletions
diff --git a/meta-ti-extras/licenses/Hewlett-Packard b/meta-ti-extras/licenses/Hewlett-Packard
new file mode 100644
index 00000000..569d009c
--- /dev/null
+++ b/meta-ti-extras/licenses/Hewlett-Packard
@@ -0,0 +1,13 @@
1/*
2 * Copyright (c) 1994
3 * Hewlett-Packard Company
4 *
5 * Permission to use, copy, modify, distribute and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation. Hewlett-Packard Company makes no
10 * representations about the suitability of this software for any
11 * purpose. It is provided "as is" without express or implied warranty.
12 *
13 */
diff --git a/meta-ti-extras/licenses/Patrick-Powell b/meta-ti-extras/licenses/Patrick-Powell
new file mode 100644
index 00000000..9c6eac42
--- /dev/null
+++ b/meta-ti-extras/licenses/Patrick-Powell
@@ -0,0 +1,4 @@
1Copyright Patrick Powell 1995
2This code is based on code written by Patrick Powell (papowell@astart.com)
3It may be used for any purpose as long as this notice remains intact
4on all source code distributions
diff --git a/meta-ti-extras/licenses/Thai-Open-Source-Software-Center b/meta-ti-extras/licenses/Thai-Open-Source-Software-Center
new file mode 100644
index 00000000..3a3972dd
--- /dev/null
+++ b/meta-ti-extras/licenses/Thai-Open-Source-Software-Center
@@ -0,0 +1,31 @@
1Copyright (c) 2002, 2003, 2008 Thai Open Source Software Center Ltd
2All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are
6met:
7
8 Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in
13 the documentation and/or other materials provided with the
14 distribution.
15
16 Neither the name of the Thai Open Source Software Center Ltd nor
17 the names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior written
19 permission.
20
21THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
25CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
new file mode 100644
index 00000000..4e863099
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
@@ -0,0 +1,65 @@
1SUMMARY = "Firmware for DSP for an example application called copycodectest"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d"
4
5COMPATIBLE_MACHINE = "dra7xx"
6
7inherit features_check
8
9REQUIRED_MACHINE_FEATURES = "dsp"
10
11SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git"
12
13SRCREV = "de6e599f067b25c46cc0c8f74a22cc3b8aafbae8"
14
15PV = "1.00.00.07"
16
17S = "${WORKDIR}/git"
18
19require recipes-ti/includes/ti-paths.inc
20
21PR = "r4"
22inherit update-alternatives
23
24DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native"
25
26export HWVERSION = "ES10"
27export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti"
28
29export XDCVERSION = "ti-xdctools-tree"
30export BIOSVERSION = "ti-sysbios-tree"
31export IPCVERSION = "ti-ipc-tree"
32export CEVERSION = "ti-codec-engine-tree"
33export FCVERSION = "ti-framework-components-tree"
34export XDAISVERSION = "ti-xdais-tree"
35export OSALVERSION = "ti-osal-tree"
36
37export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
38export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
39
40do_configure() {
41 cd ${S}
42 make unconfig
43 make vayu_config
44}
45
46do_compile() {
47 cd ${S}
48 make dspbin
49}
50
51TARGET = "dra7-dsp1-fw.xe66"
52
53do_install() {
54 install -d ${D}${base_libdir}/firmware
55 install -m 0644 ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}.${BPN}
56}
57
58ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66"
59ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}"
60ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}"
61ALTERNATIVE_PRIORITY = "10"
62
63INSANE_SKIP:${PN} = "arch"
64
65FILES:${PN} += "${base_libdir}/firmware/*"
diff --git a/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb b/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb
new file mode 100644
index 00000000..a250b825
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb
@@ -0,0 +1,22 @@
1DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"
4
5# This package builds a kernel module, use kernel PR as base and append a local
6MACHINE_KERNEL_PR:append = "d"
7PR = "${MACHINE_KERNEL_PR}"
8PV:append = "+git${SRCPV}"
9
10S = "${WORKDIR}/git/debugss_module/debugss-mod"
11
12inherit module
13
14PLATFORM = ""
15PLATFORM:dra7xx = "DRA7xx_PLATFORM"
16
17EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
18
19COMPATIBLE_MACHINE = "dra7xx"
20PACKAGE_ARCH = "${MACHINE_ARCH}"
21
22include dsptop.inc
diff --git a/meta-ti-extras/recipes-bsp/dsptop/dsptop.inc b/meta-ti-extras/recipes-bsp/dsptop/dsptop.inc
new file mode 100644
index 00000000..31f775e2
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/dsptop/dsptop.inc
@@ -0,0 +1,8 @@
1# This corresponds to version 1.4.0
2SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1"
3PV = "1.4.0"
4INC_PR = "r2"
5
6SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}"
7
8BRANCH = "master"
diff --git a/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb b/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb
new file mode 100644
index 00000000..20818443
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb
@@ -0,0 +1,27 @@
1DESCRIPTION = "TI dsptop utility."
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"
4
5DEPENDS = "libulm ncurses"
6
7PR = "${INC_PR}.2"
8
9S = "${WORKDIR}/git/dsptop"
10
11DEVICE = ""
12DEVICE:dra7xx = "DRA7xx"
13
14EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
15
16do_install() {
17 oe_runmake install DESTDIR=${D}
18}
19
20COMPATIBLE_MACHINE = "dra7xx"
21PACKAGE_ARCH = "${MACHINE_ARCH}"
22
23RDEPENDS:${PN} = "debugss-module-drv bash"
24
25include dsptop.inc
26
27PARALLEL_MAKE = ""
diff --git a/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb b/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb
new file mode 100644
index 00000000..f3e7ec3c
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb
@@ -0,0 +1,45 @@
1SUMMARY = "TI Usage & Load Monitor Implementation"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"
4
5inherit features_check
6
7REQUIRED_MACHINE_FEATURES = "dsp"
8
9DEPENDS = "ti-cgt6x-native"
10PR = "${INC_PR}.0"
11
12S = "${WORKDIR}/git/dsptop/ulm"
13
14DEVICE=""
15DEVICE:dra7xx = "DRA7xx"
16
17EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}"
18
19do_compile() {
20 oe_runmake arm XPORT_ONLY CC="${CC}"
21 oe_runmake dsp C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include
22}
23
24do_install() {
25 install -d ${D}${includedir}
26 install -d ${D}${libdir}
27 install -d ${D}${datadir}/ti/ulm
28 cp -f tiulm.h ${D}${includedir}
29 cp -f release/libtiulm.a ${D}${libdir}
30 cp -f tiulm.h ${D}${datadir}/ti/ulm
31 cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm
32}
33
34COMPATIBLE_MACHINE = "dra7xx"
35PACKAGE_ARCH = "${MACHINE_ARCH}"
36
37FILES:${PN}-dev += "\
38 ${datadir}/ti/ulm \
39"
40
41include dsptop.inc
42
43ALLOW_EMPTY:${PN} = "1"
44
45PARALLEL_MAKE= ""
diff --git a/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb b/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb
new file mode 100644
index 00000000..14d28258
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb
@@ -0,0 +1,67 @@
1SUMMARY = "Firmware for IPU to suppor Accelerated MM decode and encode"
2LICENSE = "TI-TSPA"
3
4LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=5cc572579f07af266ab57fc17d762c7f"
5
6COMPATIBLE_MACHINE = "dra7xx"
7
8inherit features_check
9
10REQUIRED_MACHINE_FEATURES = "mmip"
11
12RDEPENDS:${PN} = "libdce"
13
14SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git"
15
16SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5"
17
18S = "${WORKDIR}/git"
19
20PV = "3.00.15.00"
21PR = "r7"
22
23require recipes-ti/includes/ti-paths.inc
24
25inherit update-alternatives
26
27DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos"
28
29export HWVERSION="ES10"
30export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
31
32export XDCVERSION="ti-xdctools-tree"
33export BIOSVERSION="ti-sysbios-tree"
34export IPCVERSION="ti-ipc-tree"
35export CEVERSION="ti-codec-engine-tree"
36export FCVERSION="ti-framework-components-tree"
37export XDAISVERSION="ti-xdais-tree"
38
39export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}"
40export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
41
42EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}"
43
44do_configure() {
45 oe_runmake unconfig
46 oe_runmake vayu_smp_config
47}
48
49do_compile() {
50 oe_runmake
51}
52
53TARGET = "dra7-ipu2-fw.xem4"
54TARGET_MAP = "platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map"
55
56do_install() {
57 install -d ${D}${base_libdir}/firmware
58 install -m 0644 ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}.${BPN}
59 install -m 0644 ${S}/${TARGET_MAP} ${D}${base_libdir}/firmware/${TARGET}.map
60}
61
62ALTERNATIVE:${PN} = "dra7-ipu2-fw.xem4"
63ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}"
64ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}"
65ALTERNATIVE_PRIORITY = "20"
66
67FILES:${PN} += "${base_libdir}/firmware/*"
diff --git a/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb b/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb
new file mode 100644
index 00000000..779f96fd
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb
@@ -0,0 +1,363 @@
1DESCRIPTION = "Programmable Real-time Unit Software Package"
2HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS"
3LICENSE = "BSD-3-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://PRU-Package-v6.1-Manifest.html;md5=1e37797ebe9254922f4278bb6047211c"
6
7inherit update-alternatives
8
9BRANCH = "master"
10SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}"
11SRCREV = "8eee431384b6a1a9c96ae91a8e99485176b4d2b3"
12
13PV = "6.0.1"
14PR = "r0"
15
16require recipes-ti/includes/ti-paths.inc
17
18COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
19PACKAGE_ARCH = "${MACHINE_ARCH}"
20
21PACKAGES:prepend = " \
22 ${PN}-halt \
23 ${PN}-rpmsg-echo \
24"
25
26RDEPENDS:${PN}:append = " \
27 ${PN}-halt \
28 ${PN}-rpmsg-echo \
29"
30
31DEPENDS = "ti-cgt-pru-native"
32
33S = "${WORKDIR}/git"
34
35export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
36export PRU_SSP = "${S}"
37
38SUBDIRS = "examples pru_cape/pru_fw lib/src labs"
39
40PLATFORM:ti33x = "am335x"
41PLATFORM:ti43x = "am437x"
42PLATFORM:omap-a15 = "am572x"
43PLATFORM:am64xx = "am64x"
44PLATFORM:am65xx = "am65x"
45PLATFORM:j7 = "j721e"
46
47do_compile() {
48 for dir in ${SUBDIRS}
49 do
50 make -C ${S}/$dir
51 done
52}
53
54do_install() {
55 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
56 install -d ${D}${base_libdir}/firmware/pru
57 install -d ${D}${includedir}
58 cp ${CP_ARGS} ${S}/include/* ${D}${includedir}
59 install -d ${D}${libdir}
60 install -m 0644 ${S}/lib/rpmsg_lib.lib ${D}${libdir}
61}
62
63FILES:${PN}-staticdev = "${libdir}"
64FILES:${PN}-dev = "${includedir}"
65
66do_install:append:ti33x() {
67 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \
68 ${D}${base_libdir}/firmware/pru
69 for i in 0 1
70 do
71 install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \
72 ${D}${base_libdir}/firmware/pru
73 done
74}
75
76do_install:append:ti43x() {
77 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \
78 ${D}${base_libdir}/firmware/pru
79 for i in 0 1
80 do
81 for j in 0 1
82 do
83 install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
84 ${D}${base_libdir}/firmware/pru
85 done
86 done
87}
88
89do_install:append:omap-a15() {
90 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \
91 ${D}${base_libdir}/firmware/pru
92 for i in 1 2
93 do
94 for j in 0 1
95 do
96 install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
97 ${D}${base_libdir}/firmware/pru
98 done
99 done
100}
101
102do_install:append:am64xx(){
103 for i in 0 1
104 do
105 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \
106 ${D}${base_libdir}/firmware/pru
107 install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \
108 ${D}${base_libdir}/firmware/pru
109 install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \
110 ${D}${base_libdir}/firmware/pru
111 done
112 for i in 0 1
113 do
114 for j in 0 1
115 do
116 install -m 0644 ${S}/examples/${PLATFORM}/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
117 ${D}${base_libdir}/firmware/pru
118 install -m 0644 ${S}/examples/${PLATFORM}/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \
119 ${D}${base_libdir}/firmware/pru
120 done
121 done
122}
123
124do_install:append:am65xx() {
125 for i in 0 1
126 do
127 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \
128 ${D}${base_libdir}/firmware/pru
129 install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \
130 ${D}${base_libdir}/firmware/pru
131 install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \
132 ${D}${base_libdir}/firmware/pru
133 done
134 for i in 0 1 2
135 do
136 for j in 0 1
137 do
138 install -m 0644 ${S}/examples/am65x/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
139 ${D}${base_libdir}/firmware/pru
140 install -m 0644 ${S}/examples/am65x/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \
141 ${D}${base_libdir}/firmware/pru
142
143 done
144 done
145}
146
147do_install:append:j7() {
148 for i in 0 1
149 do
150 install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \
151 ${D}${base_libdir}/firmware/pru
152 install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \
153 ${D}${base_libdir}/firmware/pru
154 install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \
155 ${D}${base_libdir}/firmware/pru
156 done
157 for i in 0 1
158 do
159 for j in 0 1
160 do
161 install -m 0644 ${S}/examples/j721e/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
162 ${D}${base_libdir}/firmware/pru
163 install -m 0644 ${S}/examples/j721e/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \
164 ${D}${base_libdir}/firmware/pru
165
166 done
167 done
168}
169
170
171FILES:${PN}-halt = "${base_libdir}/firmware/pru/PRU_Halt* ${base_libdir}/firmware/pru/RTU_Halt* ${base_libdir}/firmware/pru/TX_PRU_Halt*"
172FILES:${PN}-rpmsg-echo = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt* ${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt*"
173
174# Set up names for the firmwares
175PRU_ICSS_ALTERNATIVES:ti33x = "am335x-pru0-fw am335x-pru1-fw"
176PRU_ICSS_ALTERNATIVES:ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw"
177PRU_ICSS_ALTERNATIVES:omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw"
178PRU_ICSS_ALTERNATIVES:am64xx = "am64x-pru0_0-fw am64x-pru0_1-fw am64x-pru1_0-fw am64x-pru1_1-fw am64x-rtu0_0-fw am64x-rtu0_1-fw am64x-rtu1_0-fw am64x-rtu1_1-fw"
179PRU_ICSS_ALTERNATIVES:am65xx = "am65x-pru0_0-fw am65x-pru0_1-fw am65x-pru1_0-fw am65x-pru1_1-fw am65x-pru2_0-fw am65x-pru2_1-fw am65x-rtu0_0-fw am65x-rtu0_1-fw am65x-rtu1_0-fw am65x-rtu1_1-fw am65x-rtu2_0-fw am65x-rtu2_1-fw"
180PRU_ICSS_ALTERNATIVES:j7 = "j7-pru0_0-fw j7-pru0_1-fw j7-pru1_0-fw j7-pru1_1-fw j7-rtu0_0-fw j7-rtu0_1-fw j7-rtu1_0-fw j7-rtu1_1-fw"
181
182# Set up link names for the firmwares
183ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "${base_libdir}/firmware/am335x-pru0-fw"
184ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "${base_libdir}/firmware/am335x-pru1-fw"
185
186ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "${base_libdir}/firmware/am437x-pru0_0-fw"
187ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "${base_libdir}/firmware/am437x-pru0_1-fw"
188ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "${base_libdir}/firmware/am437x-pru1_0-fw"
189ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "${base_libdir}/firmware/am437x-pru1_1-fw"
190
191ALTERNATIVE_LINK_NAME[am57xx-pru1_0-fw] = "${base_libdir}/firmware/am57xx-pru1_0-fw"
192ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "${base_libdir}/firmware/am57xx-pru1_1-fw"
193ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "${base_libdir}/firmware/am57xx-pru2_0-fw"
194ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "${base_libdir}/firmware/am57xx-pru2_1-fw"
195
196ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw"
197ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw"
198ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw"
199ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw"
200ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw"
201ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw"
202ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw"
203ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw"
204ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw"
205ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw"
206ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw"
207ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw"
208
209ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw"
210ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw"
211ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw"
212ALTERNATIVE_LINK_NAME[am65x-pru1_1-fw] = "${base_libdir}/firmware/am65x-pru1_1-fw"
213ALTERNATIVE_LINK_NAME[am65x-pru2_0-fw] = "${base_libdir}/firmware/am65x-pru2_0-fw"
214ALTERNATIVE_LINK_NAME[am65x-pru2_1-fw] = "${base_libdir}/firmware/am65x-pru2_1-fw"
215ALTERNATIVE_LINK_NAME[am65x-rtu0_0-fw] = "${base_libdir}/firmware/am65x-rtu0_0-fw"
216ALTERNATIVE_LINK_NAME[am65x-rtu0_1-fw] = "${base_libdir}/firmware/am65x-rtu0_1-fw"
217ALTERNATIVE_LINK_NAME[am65x-rtu1_0-fw] = "${base_libdir}/firmware/am65x-rtu1_0-fw"
218ALTERNATIVE_LINK_NAME[am65x-rtu1_1-fw] = "${base_libdir}/firmware/am65x-rtu1_1-fw"
219ALTERNATIVE_LINK_NAME[am65x-rtu2_0-fw] = "${base_libdir}/firmware/am65x-rtu2_0-fw"
220ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "${base_libdir}/firmware/am65x-rtu2_1-fw"
221ALTERNATIVE_LINK_NAME[am65x-txpru0_0-fw] = "${base_libdir}/firmware/am65x-txpru0_0-fw"
222ALTERNATIVE_LINK_NAME[am65x-txpru0_1-fw] = "${base_libdir}/firmware/am65x-txpru0_1-fw"
223ALTERNATIVE_LINK_NAME[am65x-txpru1_0-fw] = "${base_libdir}/firmware/am65x-txpru1_0-fw"
224ALTERNATIVE_LINK_NAME[am65x-txpru1_1-fw] = "${base_libdir}/firmware/am65x-txpru1_1-fw"
225ALTERNATIVE_LINK_NAME[am65x-txpru2_0-fw] = "${base_libdir}/firmware/am65x-txpru2_0-fw"
226ALTERNATIVE_LINK_NAME[am65x-txpru2_1-fw] = "${base_libdir}/firmware/am65x-txpru2_1-fw"
227
228ALTERNATIVE_LINK_NAME[j7-pru0_0-fw] = "${base_libdir}/firmware/j7-pru0_0-fw"
229ALTERNATIVE_LINK_NAME[j7-pru0_1-fw] = "${base_libdir}/firmware/j7-pru0_1-fw"
230ALTERNATIVE_LINK_NAME[j7-pru1_0-fw] = "${base_libdir}/firmware/j7-pru1_0-fw"
231ALTERNATIVE_LINK_NAME[j7-pru1_1-fw] = "${base_libdir}/firmware/j7-pru1_1-fw"
232ALTERNATIVE_LINK_NAME[j7-rtu0_0-fw] = "${base_libdir}/firmware/j7-rtu0_0-fw"
233ALTERNATIVE_LINK_NAME[j7-rtu0_1-fw] = "${base_libdir}/firmware/j7-rtu0_1-fw"
234ALTERNATIVE_LINK_NAME[j7-rtu1_0-fw] = "${base_libdir}/firmware/j7-rtu1_0-fw"
235ALTERNATIVE_LINK_NAME[j7-rtu1_1-fw] = "${base_libdir}/firmware/j7-rtu1_1-fw"
236ALTERNATIVE_LINK_NAME[j7-txpru0_0-fw] = "${base_libdir}/firmware/j7-txpru0_0-fw"
237ALTERNATIVE_LINK_NAME[j7-txpru0_1-fw] = "${base_libdir}/firmware/j7-txpru0_1-fw"
238ALTERNATIVE_LINK_NAME[j7-txpru1_0-fw] = "${base_libdir}/firmware/j7-txpru1_0-fw"
239ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw"
240
241# Create the pru-icss-halt firmware alternatives
242ALTERNATIVE:pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}"
243
244# Only Halt firmware images are supported for the Tx_PRU cores
245ALTERNATIVE:pru-icss-halt:append:am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw"
246ALTERNATIVE:pru-icss-halt:append:am65xx = " am65x-txpru0_0-fw am65x-txpru0_1-fw am65x-txpru1_0-fw am65x-txpru1_1-fw am65x-txpru2_0-fw am65x-txpru2_1-fw"
247ALTERNATIVE:pru-icss-halt:append:j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw"
248
249ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
250ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
251
252ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
253ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
254ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
255ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
256
257ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
258ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
259ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
260ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
261
262ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
263ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
264ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
265ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
266ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
267ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
268ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
269ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
270ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
271ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
272ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
273ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
274
275ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
276ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
277ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
278ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
279ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
280ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
281ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
282ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
283ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
284ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
285ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
286ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
287ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
288ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
289ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
290ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
291ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
292ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
293
294ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
295ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
296ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
297ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
298ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
299ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
300ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
301ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
302ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
303ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
304ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
305ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
306
307
308ALTERNATIVE_PRIORITY_pru-icss-halt = "50"
309
310# Create the pru-icss-rpmsg-echo firmware alternatives
311ALTERNATIVE:pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}"
312
313ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out"
314ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out"
315
316ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
317ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
318ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
319ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
320
321ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
322ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
323ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out"
324ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out"
325
326ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
327ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
328ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
329ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
330ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
331ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
332ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
333ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
334
335ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
336ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
337ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
338ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
339ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out"
340ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out"
341ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
342ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
343ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
344ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
345ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_0.out"
346ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_1.out"
347
348ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
349ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
350ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
351ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
352ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
353ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
354ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
355ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
356
357ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100"
358
359ALLOW_EMPTY:${PN} = "1"
360
361# This installs PRU firmware, so skip "arch" QA check
362INSANE_SKIP:${PN}-halt = "arch"
363INSANE_SKIP:${PN}-rpmsg-echo = "arch"
diff --git a/meta-ti-extras/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb b/meta-ti-extras/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb
new file mode 100644
index 00000000..98ab387c
--- /dev/null
+++ b/meta-ti-extras/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb
@@ -0,0 +1,31 @@
1DESCRIPTION = "Builds eDMA module used by eDMA libraries for PRU sw example applications"
2HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://edmautils.c;beginline=1;endline=23;md5=312e9cb8a37a044c617c98a9e980ad1b"
5
6COMPATIBLE_MACHINE = "omapl138"
7
8INHIBIT_PACKAGE_STRIP = "1"
9
10MACHINE_KERNEL_PR:append = "b"
11PR = "${MACHINE_KERNEL_PR}"
12PV:append = "+svn${SRCPV}"
13
14SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;protocol=https;user=anonymous;pswd=''"
15
16SRCREV = "33"
17
18S = "${WORKDIR}/trunk/peripheral_lib/edma_driver/module"
19
20inherit module
21
22EXTRA_OEMAKE += "KERNEL_DIR='${STAGING_KERNEL_DIR}'"
23
24do_compile:prepend () {
25 export CCTOOL_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}"
26}
27
28do_install () {
29 install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru
30 install -m 0755 ${S}/edmautils.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru/
31}
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x.inc b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x.inc
new file mode 100644
index 00000000..eeb18fb1
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x.inc
@@ -0,0 +1,9 @@
1# This corresponds to version 1.1.0
2SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
3
4PV = "1.1.0"
5INC_PR = "r7"
6
7SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
8
9BRANCH = "master"
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
new file mode 100644
index 00000000..1cc23b32
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
@@ -0,0 +1,28 @@
1From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Sat, 15 Feb 2020 15:59:37 -0500
4Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation
5
6Signed-off-by: Denys Dmytriyenko <denys@ti.com>
7---
8 gdbc6x/bfd/libbfd.h | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h
12index 72d3c50..3465f89 100644
13--- a/gdbc6x/bfd/libbfd.h
14+++ b/gdbc6x/bfd/libbfd.h
15@@ -34,6 +34,10 @@
16 #pragma GCC diagnostic ignored "-Wcast-function-type"
17 #endif
18
19+#if __GNUC__ >= 9
20+#pragma GCC diagnostic ignored "-Wstringop-truncation"
21+#endif
22+
23 #include "hashtab.h"
24
25 /* Align an address upward to a boundary, expressed as a number of bytes.
26--
272.7.4
28
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/init b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/init
new file mode 100644
index 00000000..90210b82
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x/init
@@ -0,0 +1,48 @@
1#!/bin/bash
2
3GDB_DEVICE_NAME='/dev/gdbtty$i'
4DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66'
5
6DSP_L2_GLOBAL_OFFSET="40000000"
7DSP_L2_GLOBAL_SHIFT="00800000"
8
9case "$1" in
10 start)
11
12 dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET
13
14 i=0
15 while [ -c "`eval echo $GDB_DEVICE_NAME`" ]
16 do
17 dsp_firmware=`eval echo $DSP_FIRMWARE_NAME`
18
19 if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ]
20 then
21 eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..."
22
23 gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \
24 grep 'gdb_globalData' | \
25 awk '{print $2}'`
26
27 echo "gdb_globalData (local) = $gdb_data_local"
28 printf "gdb_globalData (global) = %X\n" \
29 $[0x$gdb_data_local + 0x$dsp_core_l2_offset]
30
31
32 printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \
33 >> `eval echo $GDB_DEVICE_NAME`
34 fi
35 i=$[$i + 1]
36 dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]`
37 done
38 ;;
39 stop)
40 # Nothing to be done.
41 ;;
42 *)
43 echo "Usage: $0 {start|stop}"
44 exit 1
45 ;;
46esac
47
48
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb
new file mode 100644
index 00000000..df9aaee9
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "GNU debugger for TI C6X DSP."
2SECTION = "devel"
3LICENSE = "GPLv3+"
4LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"
5
6DEPENDS = "ncurses bison-native texinfo flex-native gettext"
7
8COMPATIBLE_MACHINE = "dra7xx"
9
10PR = "${INC_PR}.1"
11
12SRC_URI:append = " \
13 file://init \
14 file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \
15"
16
17S = "${WORKDIR}/git/gdbc6x"
18
19inherit update-rc.d
20inherit gettext
21
22CFLAGS += "-fcommon"
23
24do_configure () {
25 cd ${S}
26 ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb
27}
28
29do_install () {
30 make install
31
32 # Custom install to prevent conflict with standard GDB.
33 install -d ${D}${bindir}
34 install -d ${D}${includedir}
35 install -m 755 ${S}/install_gdb/bin/gdbc6x ${D}${bindir}
36 cp -rf ${S}/install_gdb/include/* ${D}${includedir}
37
38 install -d ${D}${sysconfdir}/init.d
39 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy
40}
41
42RDEPENDS:${PN} = "gdbserverproxy-module-drv bash"
43
44include gdbc6x.inc
45
46INITSCRIPT_NAME = "gdbserverproxy"
47INITSCRIPT_PARAMS = "defaults 95"
48
49PARALLEL_MAKE = ""
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
new file mode 100644
index 00000000..fab4fbd2
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI gdb-server to be used with c6xgdb."
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495"
4
5DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools-native"
6
7PR = "${INC_PR}.0"
8
9S = "${WORKDIR}/git/gdbserver-c6x/src"
10
11PLATFORM = ""
12PLATFORM:dra7xx = "DRA7xx_PLATFORM"
13
14EXTRA_OEMAKE = "PLATFORM=${PLATFORM}"
15
16export XDAIS_DIR = "${XDAIS_INSTALL_DIR}"
17export FC_DIR = "${FC_INSTALL_DIR}"
18export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
19export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
20export XDC_DIR = "${XDC_INSTALL_DIR}"
21
22# The following is to prevent an unused configure.ac from erroneously
23# triggering the QA check for gettext.
24EXTRA_OECONF = "--disable-nls"
25do_configure() {
26 :
27}
28
29do_install() {
30 install -d ${D}${datadir}/ti/gdbc6x/include
31 install -d ${D}${datadir}/ti/gdbc6x/lib
32 cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include
33 cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib
34}
35
36COMPATIBLE_MACHINE = "dra7xx"
37PACKAGE_ARCH = "${MACHINE_ARCH}"
38
39FILES:${PN}-dev += "\
40 ${datadir}/ti/gdbc6x \
41"
42
43include gdbc6x.inc
44
45require recipes-ti/includes/ti-paths.inc
46
47ALLOW_EMPTY:${PN} = "1"
48
49PARALLEL_MAKE = ""
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
new file mode 100644
index 00000000..168e4be3
--- /dev/null
+++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
@@ -0,0 +1,31 @@
1DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
4
5# This package builds a kernel module, use kernel PR as base and append a local
6MACHINE_KERNEL_PR:append = "b"
7PR = "${MACHINE_KERNEL_PR}"
8PV:append = "+git${SRCPV}"
9
10S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
11
12inherit module
13
14PLATFORM = ""
15PLATFORM:dra7xx = "DRA7xx_PLATFORM"
16
17EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
18
19# The following is to prevent an unused configure.ac from erroneously
20# triggering the QA check for gettext.
21EXTRA_OECONF = "--disable-nls"
22do_configure() {
23 :
24}
25
26COMPATIBLE_MACHINE = "dra7xx"
27PACKAGE_ARCH = "${MACHINE_ARCH}"
28
29include gdbc6x.inc
30
31KERNEL_MODULE_AUTOLOAD += "gdbserverproxy"
diff --git a/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.14.00.bb b/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.14.00.bb
new file mode 100644
index 00000000..42482c11
--- /dev/null
+++ b/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.14.00.bb
@@ -0,0 +1,18 @@
1SUMMARY = "Library for remotely invoking HW accelerated codecs on IVA-HD"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
4
5inherit autotools pkgconfig
6
7DEPENDS = "libdrm ti-ipc"
8
9SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
10SRCREV = "f72096090e3063e85ea77cae66b2d99a48d91727"
11
12PR = "r1"
13
14S = "${WORKDIR}/git"
15EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm"
16
17COMPATIBLE_HOST ?= "null"
18COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/README b/meta-ti-extras/recipes-ti/README
new file mode 100644
index 00000000..b32c2842
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/README
@@ -0,0 +1 @@
Note: some of the packages in this area are not actively maintained.
diff --git a/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc b/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc
new file mode 100644
index 00000000..0009dfcc
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc
@@ -0,0 +1,28 @@
1DESCRIPTION = "TI SYS/BIOS v6 Kernel"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10S = "${WORKDIR}/bios_${PV}"
11
12SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin"
13BINFILE="bios_${PV}.bin"
14TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
15
16do_install() {
17 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
18 install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
19 cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
20}
21
22ALLOW_EMPTY:${PN} = "1"
23FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}"
24
25INHIBIT_PACKAGE_STRIP = "1"
26INHIBIT_SYSROOT_STRIP = "1"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28INSANE_SKIP:${PN}-dev = "arch ldflags staticdev file-rdeps"
diff --git a/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb b/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
new file mode 100644
index 00000000..d242510f
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
@@ -0,0 +1,16 @@
1require recipes-ti/bios/ti-sysbios.inc
2
3PE = "1"
4PV = "6_76_03_01"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1"
8
9SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9"
10SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a"
11
12TI_BIN_UNPK_CMDS = ""
13TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
14
15BINFILE = "bios_${PV}.run"
16SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin"
diff --git a/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb b/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
new file mode 100644
index 00000000..5851b899
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Codec Engine for TI ARM/DSP processors"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9PV = "3_24_00_08"
10PR = "r0"
11
12LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7"
13
14SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b"
15SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1"
16
17S = "${WORKDIR}/codec_engine_${PV}"
18
19SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV},lite.tar.gz;name=cetarball "
20
21do_install() {
22 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
23 # Install/Stage the Source Tree
24 install -d ${D}${CE_INSTALL_DIR_RECIPE}
25 cp ${CP_ARGS} ${S}/* ${D}${CE_INSTALL_DIR_RECIPE}
26}
27
28ALLOW_EMPTY:${PN} = "1"
29FILES:${PN}-dev += "${CE_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb b/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb
new file mode 100644
index 00000000..c15ab229
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb
@@ -0,0 +1,38 @@
1SUMMARY = "TI Emulation CTools AET library"
2DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores"
3
4LICENSE = "BSD"
5
6PV = "4.19.0.0"
7
8LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd"
9
10SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build"
11SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31"
12
13DEPENDS = "ti-cgt6x-native"
14PR = "r0"
15
16S = "${WORKDIR}/git/aet"
17
18DEVICE=""
19DEVICE:dra7xx = "DRA7xx"
20
21EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include"
22
23do_install() {
24 install -d ${D}${datadir}/ti/ctoolslib/aet
25 install -d ${D}${datadir}/ti/ctoolslib/aet/include
26 install -d ${D}${datadir}/ti/ctoolslib/aet/lib
27 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${S}/include/* ${D}${datadir}/ti/ctoolslib/aet/include/
28 install -m 0644 ${S}/build/c66/libaet.ae66 ${D}${datadir}/ti/ctoolslib/aet/lib/
29}
30
31COMPATIBLE_MACHINE = "dra7xx"
32PACKAGE_ARCH = "${MACHINE_ARCH}"
33
34FILES:${PN}-dev += "\
35 ${datadir}/ti/ctoolslib/aet \
36"
37
38ALLOW_EMPTY:${PN} = "1"
diff --git a/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb b/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
new file mode 100644
index 00000000..e0feb02c
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Baremetal GCC for ARM"
2LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
3
4LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061"
5
6require recipes-ti/includes/ti-paths.inc
7
8SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2;name=gcc-arm-none"
9
10SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0"
11SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69"
12
13S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update"
14
15# only x86_64 is supported
16COMPATIBLE_HOST = "x86_64.*-linux"
17COMPATIBLE_HOST:class-target = "null"
18
19do_install() {
20 install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
21 cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
22}
23
24FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
25
26INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28
29BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb b/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
new file mode 100644
index 00000000..8e36be6d
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
@@ -0,0 +1,40 @@
1DESCRIPTION = "TI CG_XML"
2HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8require recipes-ti/includes/ti-unpack.inc
9
10PV = "2.61.00"
11PE = "1"
12S = "${WORKDIR}/cg_xml_${PV}"
13
14SRC_URI = "\
15 http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/cg_xml_v${@'${PV}'.replace('.','_')}/cgxml-${PV}-linux-installer.run;name=cgxmlbin_linux \
16"
17LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684"
18
19SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff"
20SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9"
21
22BINFILE="cgxml-${PV}-linux-installer.run"
23TI_BIN_UNPK_CMDS=""
24TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended"
25
26do_install() {
27 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
28 install -d ${D}${CG_XML_INSTALL_DIR_RECIPE}
29 cp ${CP_ARGS} ${S}/* ${D}${CG_XML_INSTALL_DIR_RECIPE}
30}
31
32FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}"
33
34INSANE_SKIP:${PN} = "arch ldflags file-rdeps"
35
36INHIBIT_PACKAGE_STRIP = "1"
37INHIBIT_SYSROOT_STRIP = "1"
38INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
39
40BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
new file mode 100644
index 00000000..b7b6d9b1
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
@@ -0,0 +1,44 @@
1SUMMARY = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108"
6
7require recipes-ti/includes/ti-unpack.inc
8require recipes-ti/includes/ti-staging.inc
9require recipes-ti/includes/ti-paths.inc
10
11S = "${WORKDIR}/ti-cgt-arm-${PV}"
12
13PE = "1"
14PR = "r0"
15
16SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
17
18BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
19TI_BIN_UNPK_ARGS = "--prefix ${S}"
20TI_BIN_UNPK_CMDS = ""
21
22# only x86_64 is supported
23COMPATIBLE_HOST = "x86_64.*-linux"
24COMPATIBLE_HOST:class-target = "null"
25
26do_install() {
27 install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
28 cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
29}
30
31SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b"
32SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4"
33
34BINFILE_NAME = "cgt_arm_installer"
35
36FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
37
38INHIBIT_PACKAGE_STRIP = "1"
39INHIBIT_SYSROOT_STRIP = "1"
40INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
41
42INSANE_SKIP:${PN} += "arch staticdev file-rdeps"
43
44BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
new file mode 100644
index 00000000..8b3e2a07
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI PRU Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
7
8require recipes-ti/includes/ti-paths.inc
9require recipes-ti/includes/ti-unpack.inc
10
11BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin"
12BINFILE_NAME = "cgt-pru-x86"
13TI_BIN_UNPK_ARGS = "--prefix ${S}"
14TI_BIN_UNPK_CMDS = ""
15
16BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh"
17BINFILE_NAME:class-target = "cgt-pru-arm"
18
19SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}"
20
21SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0"
22SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a"
23
24SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58"
25SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c"
26
27do_install() {
28 install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
29 cp -r ${S}/ti-cgt-pru_${PV}/. \
30 ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
31}
32
33do_install:class-target() {
34 ${WORKDIR}/${BINFILE} --prefix ${D}
35}
36
37FILES:${PN} += "${datadir}/ti/*"
38
39FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \
40 ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \
41"
42
43INHIBIT_PACKAGE_STRIP = "1"
44INHIBIT_SYSROOT_STRIP = "1"
45INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
46
47INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc
new file mode 100644
index 00000000..f0992aa7
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm"
3SECTION = "devel"
4LICENSE = "TI"
5
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
7
8require ../includes/ti-paths.inc
9require ../includes/ti-staging.inc
10require ../includes/ti-eula-unpack.inc
11
12S = "${WORKDIR}/cgt470_${PV}"
13
14SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
15
16BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin"
17TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
18TI_BIN_UNPK_WDEXT="/cgt470_${PV}"
19
20do_install() {
21 install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
22 cp -pPrf ${S}/* ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
23}
24
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt470_4.6.6.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt470_4.6.6.bb
new file mode 100644
index 00000000..6ff2cc48
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt470_4.6.6.bb
@@ -0,0 +1,8 @@
1require ti-cgt470.inc
2
3PV = "4_6_6"
4PVwithdots = "4.6.6"
5
6SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b"
7SRC_URI[cgt470bin.sha256sum] = "a17bc7139f450672503c932ef53b00c425522890e031b4a7c9135fdf90815740"
8
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
new file mode 100644
index 00000000..a7de8e38
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
@@ -0,0 +1,46 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C6000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8
9HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
10LICENSE = "TI-TSPA"
11
12LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
13
14S = "${WORKDIR}/c6000_7.4.16"
15
16require recipes-ti/includes/ti-paths.inc
17require recipes-ti/includes/ti-unpack.inc
18
19BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
20BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
21TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
22TI_BIN_UNPK_CMDS=""
23
24SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
25
26SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
27SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
28
29# only x86_64 is supported
30COMPATIBLE_HOST = "x86_64.*-linux"
31COMPATIBLE_HOST:class-target = "null"
32
33do_install() {
34 install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
35 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
36}
37
38FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
39
40INSANE_SKIP:${PN} += "arch staticdev textrel"
41
42INHIBIT_PACKAGE_STRIP = "1"
43INHIBIT_SYSROOT_STRIP = "1"
44INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
45
46BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
new file mode 100644
index 00000000..fd34657a
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
@@ -0,0 +1,107 @@
1DESCRIPTION = "TI DSP Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
7
8PE = "1"
9
10require recipes-ti/includes/ti-unpack.inc
11
12COMPATIBLE_HOST:class-target = "arm.*-linux"
13
14# For now we only have hardfp version for target class
15python __anonymous() {
16 c = d.getVar("CLASSOVERRIDE")
17
18 if c == "class-target":
19 tunes = d.getVar("TUNE_FEATURES")
20 if not tunes:
21 return
22 pkgn = d.getVar("PN")
23 pkgv = d.getVar("PV")
24 if "callconvention-hard" not in tunes:
25 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
26 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
27}
28
29BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
30BINFILE_NAME = "cgt6x_x86_installer"
31TI_BIN_UNPK_ARGS = "--prefix ${S}"
32TI_BIN_UNPK_CMDS = ""
33
34BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
35BINFILE_NAME:class-target = "cgt6x_arm_installer"
36
37SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}"
38
39SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161"
40SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6"
41
42SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9"
43SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f"
44
45do_install() {
46 install -d ${D}${bindir}
47 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
48 install -m 755 ${binfile} ${D}${bindir}
49 done
50
51 install -d ${D}${datadir}/ti/cgt-c6x/bin
52 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
53 install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin
54 done
55
56 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
57 cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include
58
59 install -d ${D}${datadir}/ti/cgt-c6x/lib
60 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
61 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
62 done
63
64 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
65 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
66 done
67
68 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
69 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
70 done
71
72 install -d ${D}${datadir}/man/man1
73 for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
74 if [ -e ${manfile} ]; then
75 install -m 644 ${manfile} ${D}${datadir}/man/man1
76 fi
77 done
78
79 install -d ${D}${datadir}/doc/ti/cgt-c6x
80 for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
81 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
82 done
83
84 for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do
85 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
86 done
87
88 for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
89 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
90 done
91
92}
93
94do_install:class-target() {
95 ${WORKDIR}/${BINFILE} --prefix ${D}
96}
97
98FILES:${PN} += "${datadir}/ti/*"
99
100FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug"
101
102INSANE_SKIP:${PN} += "staticdev"
103INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a"
104
105BBCLASSEXTEND = "native nativesdk"
106
107COMPATIBLE_MACHINE:class-target = "(ti-soc)"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
new file mode 100644
index 00000000..b45b52a3
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
@@ -0,0 +1,49 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C7000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
9LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
10
11LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64"
12
13require recipes-ti/includes/ti-unpack.inc
14require recipes-ti/includes/ti-paths.inc
15
16# only x86_64 is supported
17COMPATIBLE_HOST = "x86_64.*-linux"
18COMPATIBLE_HOST:class-target = "null"
19
20PE = "1"
21
22BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin"
23BINFILE_NAME = "cgt7x_x86_installer"
24
25SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}"
26
27TI_BIN_UNPK_ARGS = "--prefix ${S}"
28TI_BIN_UNPK_CMDS = ""
29
30SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb"
31SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5"
32
33S = "${WORKDIR}/c7000_${PV}"
34
35do_install() {
36 install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
37 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
38}
39
40
41FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}"
42
43INSANE_SKIP:${PN} += "arch staticdev textrel"
44
45INHIBIT_PACKAGE_STRIP = "1"
46INHIBIT_SYSROOT_STRIP = "1"
47INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-xdctools-common.inc b/meta-ti-extras/recipes-ti/devtools/ti-xdctools-common.inc
new file mode 100644
index 00000000..3caf7b8d
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-xdctools-common.inc
@@ -0,0 +1,70 @@
1DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc"
3SECTION = "devel"
4LICENSE = "BSD & GPLv2"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9do_install() {
10 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
11
12 install -d ${D}${XDC_INSTALL_DIR_RECIPE}
13 cp ${CP_ARGS} ${S}/* ${D}${XDC_INSTALL_DIR_RECIPE}
14}
15
16FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}"
17
18BBCLASSEXTEND = "native nativesdk"
19
20INHIBIT_PACKAGE_STRIP = "1"
21INHIBIT_SYSROOT_STRIP = "1"
22INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
23INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps"
24
25# Prevent internal libs from getting picked up
26PRIVATE_LIBS = " \
27libncdb.so \
28libcdb.so \
29libjavaplugin_oji.so \
30libjavaplugin_jni.so \
31libjsound.so \
32libinstrument.so \
33libjawt.so \
34libzip.so \
35libjava_crw_demo.so \
36libjavaplugin_nscp_gcc29.so \
37libhprof.so \
38libcmm.so \
39libjdwp.so \
40libmlib_image.so \
41libjpeg.so \
42libverify.so \
43libjavaplugin_nscp.so \
44libmanagement.so \
45libunpack.so \
46librmi.so \
47libJdbcOdbc.so \
48libawt.so \
49libnet.so \
50libjaas_unix.so \
51libnio.so \
52libdcpr.so \
53libioser12.so \
54libjsoundalsa.so \
55libjava.so \
56libfontmanager.so \
57libdt_socket.so \
58libmawt.so \
59libjvm.so \
60libhpi.so \
61lib.so \
62libcairo.so.2 \
63libjli.so \
64libawt_xawt.so \
65"
66
67COMPATIBLE_HOST ?= "null"
68COMPATIBLE_HOST:ti-soc = "(.*)"
69COMPATIBLE_HOST:class-native = "(.*)"
70COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-xdctools-core.inc b/meta-ti-extras/recipes-ti/devtools/ti-xdctools-core.inc
new file mode 100644
index 00000000..47f73b6d
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-xdctools-core.inc
@@ -0,0 +1,5 @@
1require ti-xdctools-common.inc
2
3S = "${WORKDIR}/xdctools_${PV}_core"
4
5SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdccore/xdctools_${PV}_core_linux.zip;name=xdczip"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-xdctools.inc b/meta-ti-extras/recipes-ti/devtools/ti-xdctools.inc
new file mode 100644
index 00000000..1415f83e
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-xdctools.inc
@@ -0,0 +1,10 @@
1require ti-xdctools-common.inc
2require ../includes/ti-eula-unpack.inc
3
4S = "${WORKDIR}/xdctools_${PV}"
5
6SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin"
7
8BINFILE="xdctools_setuplinux_${PV}.bin"
9TI_BIN_UNPK_CMDS="Y:workdir:Y"
10TI_BIN_UNPK_WDEXT="/ti"
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb b/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
new file mode 100644
index 00000000..6c3fdeb2
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
@@ -0,0 +1,10 @@
1require recipes-ti/devtools/ti-xdctools-core.inc
2
3PE = "1"
4PV = "3_55_02_22"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8"
8
9SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f"
10SRC_URI[xdczip.sha256sum] = "bf90dfbbe298458c736d81d5631db25b335e79146923a4a50fab217e02723e7b"
diff --git a/meta-ti-extras/recipes-ti/dsplib/dsplib-c64xp_git.bb b/meta-ti-extras/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 00000000..1550a538
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/dsplib/dsplib-c64xp_git.bb
@@ -0,0 +1,6 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c64Px"
diff --git a/meta-ti-extras/recipes-ti/dsplib/dsplib-c66x_git.bb b/meta-ti-extras/recipes-ti/dsplib/dsplib-c66x_git.bb
new file mode 100644
index 00000000..b28d8df6
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/dsplib/dsplib-c66x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c66x"
7
8DEPENDS += "mathlib-c66x"
diff --git a/meta-ti-extras/recipes-ti/dsplib/dsplib-c674x_git.bb b/meta-ti-extras/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 00000000..47974ea1
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/dsplib/dsplib-c674x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c674x"
7
8DEPENDS += "mathlib-c674x"
diff --git a/meta-ti-extras/recipes-ti/dsplib/dsplib.inc b/meta-ti-extras/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 00000000..85d79ae3
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,78 @@
1SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_4_0_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19DSPLIB_GIT_BRANCH = "master"
20DSPLIB_GIT_PROTOCOL = "git"
21DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git"
22DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161"
23
24SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}"
25SRCREV = "${DSPLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
28
29export DSPLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36export INCDIR="${MATHLIB_INSTALL_DIR}/"
37
38PATH:append = ":${XDC_INSTALL_DIR}"
39
40XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
41XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
42
43export XDCPATH
44
45DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
46
47do_compile() {
48 cd ${DSPLIB_WORK_DIR}/ti/dsplib;
49 xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
50}
51
52do_install() {
53 install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
54
55 find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
56 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE}
57 rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
58}
59
60inherit deploy
61addtask deploy before do_build after do_install
62
63do_deploy() {
64 install -d ${DEPLOYDIR}
65 # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
66 # and place the zip file in ${DEPLOYDIR}
67 mkdir ./${DSPLIB_PACKAGE_NAME}
68 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/. ./${DSPLIB_PACKAGE_NAME}
69 zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
70 rm -r ./${DSPLIB_PACKAGE_NAME}
71}
72
73ALLOW_EMPTY:${PN} = "1"
74FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
75
76INSANE_SKIP:${PN}-dev = "arch"
77COMPATIBLE_HOST ?= "null"
78COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc
new file mode 100644
index 00000000..e8b7c414
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc
@@ -0,0 +1,21 @@
1DESCRIPTION = "TI Framework Components"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7
8S = "${WORKDIR}/framework_components_${PV}"
9
10SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc/${PV}/exports/framework_components_${PV},lite.tar.gz;name=fctarball"
11
12do_install() {
13 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
14 install -d ${D}${FC_INSTALL_DIR_RECIPE}
15 cp ${CP_ARGS} ${S}/* ${D}${FC_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN} = "ldflags"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${FC_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
new file mode 100644
index 00000000..1ec10b15
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "2_26_00_01"
4PR = "r2"
5
6LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75"
7
8SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af"
9SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048"
diff --git a/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
new file mode 100644
index 00000000..56c00283
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "3_40_02_07"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a"
7
8SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e"
9SRC_URI[fctarball.sha256sum] = "69082a0f86d12c24b39a1293ec35cf8007b850479898d5ae485ec1e8cf2e8c72"
diff --git a/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc b/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc
new file mode 100644
index 00000000..ab5cbdb6
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc
@@ -0,0 +1,34 @@
1DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs"
2HOMEPAGE = "http://www.ti.com/tool/sprc264"
3SECTION = "devel"
4LICENSE = "BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib"
13
14S = "${WORKDIR}/imglib-c66x-${PV}"
15
16BINFILE = "imglib_c66x_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS = ""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32
33RDEPENDS:${PN}-dev += "perl"
34INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-extras/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb b/meta-ti-extras/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
new file mode 100644
index 00000000..e614352c
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
@@ -0,0 +1,9 @@
1require imglib-c66x.inc
2
3PV = "3_1_1_0"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667"
7
8SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca"
9SRC_URI[imglib.sha256sum] = "f3153e51530f26cfc638efca7ca6ae1bbaf7736daf287fc972592372a676ed21"
diff --git a/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc b/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc
new file mode 100644
index 00000000..ead06100
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc
@@ -0,0 +1,15 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http and display EULA.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
6# passed while unpacking the bin file. The keyword
7# workdir expands to WORKDIR and commands are appendded
8# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
9# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
10# the output in some internal directory
11
12require recipes-ti/includes/ti-unpack.inc
13
14TI_BIN_UNPK_ARGS = "--mode console"
15
diff --git a/meta-ti-extras/recipes-ti/includes/ti-paths.inc b/meta-ti-extras/recipes-ti/includes/ti-paths.inc
new file mode 100644
index 00000000..358d7dfd
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-paths.inc
@@ -0,0 +1,109 @@
1installdir = "${datadir}/ti"
2
3export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
4# This is where do_install will put it
5export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree"
6export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree"
7export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree"
8export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree"
9export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree"
10export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree"
11export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree"
12export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree"
13export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
14export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
15export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
16export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
17export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
18export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
19export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
20export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree"
21export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree"
22export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree"
23export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree"
24export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree"
25export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree"
26export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree"
27export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree"
28export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree"
29export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree"
30export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree"
31export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
32export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree"
33export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree"
34export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree"
35export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree"
36export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree"
37export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree"
38export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
39export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree"
40export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree"
41export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
42export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
43export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
44export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
45export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
46export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
47export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
48export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree"
49export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
50export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree"
51export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree"
52export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7"
53export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x"
54
55
56# This is where the tools will end up in sysroot
57export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
58export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}"
59export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}"
60export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}"
61export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}"
62export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}"
63export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}"
64export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}"
65export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}"
66export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}"
67export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
68export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}"
69export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}"
70export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}"
71export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}"
72export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}"
73export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}"
74export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}"
75export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}"
76export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}"
77export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}"
78export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
79export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}"
80export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}"
81export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}"
82export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}"
83export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}"
84export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}"
85export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
86export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
87export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
88export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
89export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
90export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
91export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
92export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
93export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
94export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
95export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
96export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
97export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
98export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
99export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
100export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}"
101export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}"
102export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}"
103
104
105DSPSUFFIX:omapl137 = "x674"
106DSPSUFFIX:omapl138 = "x674"
107DSPSUFFIX_ti816x = "xe674"
108DSPSUFFIX_ti814x = "xe674"
109DSPSUFFIX ?= "x64P"
diff --git a/meta-ti-extras/recipes-ti/includes/ti-staging.inc b/meta-ti-extras/recipes-ti/includes/ti-staging.inc
new file mode 100644
index 00000000..f18d017c
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-staging.inc
@@ -0,0 +1,6 @@
1INHIBIT_PACKAGE_STRIP = "1"
2
3ALLOW_EMPTY:${PN} = "1"
4ALLOW_EMPTY:${PN}-dev = "1"
5
6
diff --git a/meta-ti-extras/recipes-ti/includes/ti-unpack.inc b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc
new file mode 100644
index 00000000..46bfb957
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc
@@ -0,0 +1,83 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
6# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
7# passed while unpacking the bin file. The keyword
8# workdir expands to WORKDIR and commands are appendded
9# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
10# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
11# the output in some internal directory
12
13python do_unpack () {
14 bb.build.exec_func('base_do_unpack', d)
15 bb.build.exec_func('ti_bin_do_unpack', d)
16}
17
18TI_BIN_UNPK_WDEXT ?= ""
19python ti_bin_do_unpack() {
20 import os
21
22 # InstallJammer requires 32bit version of glibc
23 if not os.path.exists('/lib/ld-linux.so.2'):
24 bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
25
26 localdata = bb.data.createCopy(d)
27 bb.data.update_data(localdata)
28
29 binfile = localdata.getVar('BINFILE')
30 binfile = bb.data.expand(binfile, localdata)
31
32 # Change to the working directory
33 save_cwd = os.getcwd()
34 workdir = localdata.getVar('WORKDIR')
35 workdir = bb.data.expand(workdir, localdata)
36 os.chdir(workdir)
37
38 # Get unpack args
39 arg_string = localdata.getVar('TI_BIN_UNPK_ARGS')
40 arg_string = bb.data.expand(arg_string, localdata)
41
42 # Get unpack commands
43 cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS')
44 cmd_list = cmd_string.split( ":" )
45
46 # Make the InstallJammer binary executable so we can run it
47 os.chmod(binfile, 0o755)
48
49 # Run the InstallJammer binary and accept the EULA
50 filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
51
52 # Test executable by printing installer version or help screen (--version currently broken for some installers)
53 # - this is currently broken in some IJ installers - comment out for now
54 #if os.system(filename + " --version") != 0:
55 # print "ERROR: ti-eula-unpack: failed to execute binary installer"
56 # raise bb.build.FuncFailed()
57
58 f = os.popen(filename,'w')
59 for cmd in cmd_list:
60 if cmd == "workdir":
61 wdext = localdata.getVar('TI_BIN_UNPK_WDEXT')
62 wdext = bb.data.expand(wdext, localdata)
63 cmd = workdir+wdext
64 f.write(cmd+'\n');
65 f.close()
66
67 # Expand the tarball that was created if required
68 tarfile = localdata.getVar('TARFILE')
69 if bool(tarfile) == True:
70 tarfile = bb.data.expand(tarfile, localdata)
71 tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
72 if os.system(tcmd) != 0:
73 print("ERROR: ti-eula-unpack: failed to extract tarfile")
74 raise bb.build.FuncFailed()
75
76 # Return to the previous directory
77 os.chdir(save_cwd)
78}
79
80COMPATIBLE_HOST ?= "null"
81COMPATIBLE_HOST:ti-soc = "(.*)"
82COMPATIBLE_HOST:class-native = "(.*)"
83COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
new file mode 100644
index 00000000..ea514695
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
@@ -0,0 +1,40 @@
1From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denis@denix.org>
3Date: Mon, 29 Mar 2021 19:42:00 -0400
4Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in
5 glibc
6
7Use strerror() instead.
8
9Upstream-Status: Pending
10
11Signed-off-by: Denys Dmytriyenko <denis@denix.org>
12---
13 src/examples/templates/ex46_graph/manager/ClusterMgr.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
17index 19216c9..a1fa679 100644
18--- a/src/examples/templates/ex46_graph/manager/ClusterMgr.c
19+++ b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
20@@ -714,7 +714,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
21 pid = fork();
22
23 if (pid == -1) {
24- LOG "CM_system: fork error: %s\n", sys_errlist[errno] LOGF
25+ LOG "CM_system: fork error: %s\n", strerror(errno) LOGF
26 status = -1;
27 goto leave;
28 }
29@@ -739,7 +739,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
30 else {
31 /* overlay a new executable */
32 execvp(argv[0], argv);
33- LOG "CM_system: execvp error: %s\n", sys_errlist[errno] LOGF
34+ LOG "CM_system: execvp error: %s\n", strerror(errno) LOGF
35 status = -1;
36 }
37
38--
392.7.4
40
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
new file mode 100644
index 00000000..81706592
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios"
2require ti-ipc-examples.inc
3
4SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples"
5
6DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
7
8do_compile:append() {
9
10 if [ "${PLATFORM}" != "UNKNOWN" ]; then
11 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
12
13 if [ ! -z ${ALT_PLATFORM} ]; then
14 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \
15 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
16 fi
17 oe_runmake -C examples all HOSTOS="linux" \
18 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
20
21 if [ ! -z ${ALT_PLATFORM} ]; then
22 oe_runmake -C examples all HOSTOS="linux" \
23 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
24 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
25 PLATFORM="${ALT_PLATFORM}"
26 fi
27 fi
28}
29
30do_install:append() {
31 cd ${S_ipc-examples}/src
32
33 if [ "${PLATFORM}" != "UNKNOWN" ]; then
34 # Install directory for linux examples
35 install -d ${D}${bindir}/ipc/examples
36 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
37 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
38 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples"
39
40 if [ ! -z ${ALT_PLATFORM} ]; then
41 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
42 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
43 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \
44 PLATFORM="${ALT_PLATFORM}"
45 fi
46 fi
47}
48
49FILES:${PN} += "${bindir}/*"
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc
new file mode 100644
index 00000000..66cd5d32
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc
@@ -0,0 +1,31 @@
1HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC"
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a"
7
8INSANE_SKIP:${PN} += "arch"
9
10ALLOW_EMPTY:${PN} = "1"
11
12IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
13
14do_compile() {
15
16 cd ${S_ipc-examples}/src
17 oe_runmake .examples \
18 IPCTOOLS="${S_ipc-metadata}/src/etc"
19
20 for alt_platform in ${ALT_PLATFORM}; do
21 oe_runmake .examples "PLATFORM=${alt_platform}" \
22 IPCTOOLS="${S_ipc-metadata}/src/etc"
23 done
24}
25
26do_install() {
27 cd ${S_ipc-examples}/src
28 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
29}
30
31INHIBIT_PACKAGE_STRIP = "1"
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb
new file mode 100644
index 00000000..bcc8674e
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb
@@ -0,0 +1,44 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux"
2require ti-ipc-examples.inc
3
4DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
5
6do_compile:append() {
7
8 if [ "${PLATFORM}" != "UNKNOWN" ]; then
9 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
10
11 for alt_platform in ${ALT_PLATFORM}; do
12 oe_runmake extract PLATFORM="${alt_platform}" HOSTOS="bios" \
13 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
14 done
15 oe_runmake -C examples all HOSTOS="bios" \
16 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
17 for alt_platform in ${ALT_PLATFORM}; do
18 oe_runmake -C examples all HOSTOS="bios" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${alt_platform}"
20 done
21 fi
22}
23
24do_install:append() {
25 if [ "${PLATFORM}" != "UNKNOWN" ]; then
26 # Install directory for bios examples
27 install -d ${D}/ipc_${IPC_VERSION}/examples/bios
28 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
29 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
30 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
31 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
32
33 for alt_platform in ${ALT_PLATFORM}; do
34 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
35 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
36 PLATFORM="${alt_platform}"
37 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
38 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
39 PLATFORM="${alt_platform}"
40 done
41 fi
42}
43
44FILES:${PN} += "ipc_*"
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc
new file mode 100644
index 00000000..56667ad1
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc
@@ -0,0 +1,73 @@
1require recipes-ti/includes/ti-paths.inc
2
3TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git"
4TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples"
5TI_IPC_EXAMPLES_GIT_PROTOCOL = "git"
6TI_IPC_EXAMPLES_GIT_BRANCH = "master"
7TI_IPC_EXAMPLES_NAME = "ipc-examples"
8
9SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\
10destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\
11protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\
12branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\
13name=${TI_IPC_EXAMPLES_NAME}"
14
15TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git"
16TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata"
17TI_IPC_METADATA_GIT_PROTOCOL = "git"
18TI_IPC_METADATA_GIT_BRANCH = "master"
19TI_IPC_METADATA_NAME = "ipc-metadata"
20
21SRC_URI += "${TI_IPC_METADATA_GIT_URI};\
22destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\
23protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\
24branch=${TI_IPC_METADATA_GIT_BRANCH};\
25name=${TI_IPC_METADATA_NAME}"
26
27# Corresponds to tag: 3.51.00.00
28TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2"
29# Corresponds to tag: 3.51.00.00
30TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358"
31
32SRCREV_FORMAT = "default"
33SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}"
34SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}"
35
36S_ipc-examples = "${WORKDIR}/git/ipc-examples"
37S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
38
39RELEASE_TYPE = "GA"
40RELEASE_SUFFIX = ""
41
42PR = "${INC_PR}.r0"
43
44DEPENDS:append:omap-a15 = " ti-cgt6x-native \
45 ti-cgt-arm-native \
46 gcc-arm-baremetal-native \
47"
48DEPENDS:append:omapl138 = " ti-cgt6x-native \
49"
50
51IPC_TARGETS = ""
52
53IPC_TARGETS:omap-a15 = "\
54 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
55 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
56 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
57 ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
58"
59
60IPC_TARGETS:omapl138 = "\
61 ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
62"
63
64PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}"
65EXTRA_OEMAKE = "\
66 PLATFORM=${PLATFORM} \
67 XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
68 BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
69 ${IPC_TARGETS} \
70 ${PARALLEL_XDC} \
71 JAVA_TOOL_OPTIONS=-Xss2560k \
72"
73
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb
new file mode 100644
index 00000000..abef3195
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb
@@ -0,0 +1,101 @@
1require ti-ipc.inc
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native"
6
7PACKAGES =+ "${PN}-fw"
8FILES:${PN}-fw = "${base_libdir}/firmware/*"
9FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}"
10
11INSANE_SKIP:${PN}-fw += "arch"
12INSANE_SKIP:${PN}-dev += "arch"
13
14ALLOW_EMPTY:${PN} = "1"
15
16IPC_PACKAGE_DIR = "${S}/ipc-package"
17
18do_compile() {
19 oe_runmake -f ipc-bios.mak clean
20 oe_runmake -f ipc-bios.mak release
21
22 cd ${S_ipc-metadata}
23 oe_runmake .all-files IPC_INSTALL_DIR="${S}" \
24 BUILD_HOST_OS="linux" \
25 RELEASE_TYPE="${RELEASE_TYPE}"
26
27 cd ${S_ipc-examples}/src
28 oe_runmake .examples \
29 IPCTOOLS="${S_ipc-metadata}/src/etc"
30 for alt_platform in ${ALT_PLATFORM}; do
31 oe_runmake .examples \
32 IPCTOOLS="${S_ipc-metadata}/src/etc" \
33 PLATFORM=${alt_platform}
34 done
35
36 if [ "${PLATFORM}" != "UNKNOWN" ]; then
37 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}"
38 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}"
39
40 for alt_platform in ${ALT_PLATFORM}; do
41 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" IPC_INSTALL_DIR="${S}"
42 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" IPC_INSTALL_DIR="${S}"
43 done
44 fi
45
46 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
47 install -d ${IPC_PACKAGE_DIR}
48 # Copy docs and other meta files
49 cp -pPrf ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d ${IPC_PACKAGE_DIR}
50
51 # Copy example folders corresponding to the platforms
52 if [ "${PLATFORM}" != "UNKNOWN" ]; then
53 install -d ${IPC_PACKAGE_DIR}/examples
54 cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/
55 cp -pPf ${S_ipc-examples}/src/examples/makefile ${IPC_PACKAGE_DIR}/examples/
56 cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* ${IPC_PACKAGE_DIR}/examples/
57 for alt_platform in ${ALT_PLATFORM}; do
58 cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* ${IPC_PACKAGE_DIR}/examples/
59 done
60 find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {}
61 fi
62}
63
64do_install() {
65 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
66 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
67 # Copy docs and other meta files
68 install -d ${D}${IPC_INSTALL_DIR_RECIPE}
69 cp ${CP_ARGS} ${IPC_PACKAGE_DIR}/* -d ${D}${IPC_INSTALL_DIR_RECIPE}
70
71 install -d ${D}${base_libdir}/firmware/ipc
72 cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true
73}
74
75KFDSPNUM = "0"
76
77KFPLAT = ""
78
79ALTERNATIVE_PRIORITY = "5"
80
81pkg_postinst:${PN}-fw:omap-a15 () {
82 update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY}
83 update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY}
84 update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY}
85 update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY}
86}
87
88pkg_postrm:${PN}-fw:omap-a15 () {
89 update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66
90 update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66
91 update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4
92 update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4
93}
94
95pkg_postinst:${PN}-fw:omapl138 () {
96 update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY}
97}
98
99pkg_postrm:${PN}-fw:omapl138 () {
100 update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674
101}
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb b/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb
new file mode 100644
index 00000000..22683855
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c66x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}"
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb b/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb
new file mode 100644
index 00000000..1654baf2
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c674x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}"
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib.inc b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc
new file mode 100644
index 00000000..fe75c099
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc
@@ -0,0 +1,77 @@
1SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_1_2_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19MATHLIB_GIT_BRANCH = "master"
20MATHLIB_GIT_PROTOCOL = "git"
21MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git"
22MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951"
23
24SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}"
25SRCREV = "${MATHLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250"
28
29export MATHLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36
37PATH:append = ":${XDC_INSTALL_DIR}"
38
39XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
40XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};"
41
42export XDCPATH
43
44MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}"
45
46do_compile() {
47 cd ${MATHLIB_WORK_DIR}/ti/mathlib;
48 xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
49}
50
51do_install() {
52 install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE}
53
54 find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \;
55 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE}
56 rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib
57}
58
59inherit deploy
60addtask deploy before do_build after do_install
61
62do_deploy() {
63 install -d ${DEPLOYDIR}
64 # zip up files in ${D}${MATHLIB_INSTALL_DIR_RECIPE}
65 # and place the zip file in ${DEPLOYDIR}
66 mkdir ./${MATHLIB_PACKAGE_NAME}
67 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/. ./${MATHLIB_PACKAGE_NAME}
68 zip -9 -y -r -q ${DEPLOYDIR}/${MATHLIB_PACKAGE_NAME}.zip ./${MATHLIB_PACKAGE_NAME}
69 rm -r ./${MATHLIB_PACKAGE_NAME}
70}
71
72ALLOW_EMPTY:${PN} = "1"
73FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}"
74
75INSANE_SKIP:${PN}-dev = "arch"
76COMPATIBLE_HOST ?= "null"
77COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb b/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb
new file mode 100644
index 00000000..59a9635d
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb
@@ -0,0 +1,62 @@
1DESCRIPTION = "TI OpenMP RTOS"
2HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
3LICENSE = "BSD"
4
5require recipes-ti/includes/ti-paths.inc
6
7inherit features_check
8
9REQUIRED_MACHINE_FEATURES = "dsp"
10REQUIRED_DISTRO_FEATURES = "openmp"
11
12PV = "2_06_03_00"
13PR = "r0"
14
15OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
16OPENMP_RTOS_GIT_PROTOCOL = "git"
17OPENMP_RTOS_GIT_BRANCH = "master"
18
19BRANCH = "${OPENMP_RTOS_GIT_BRANCH}"
20SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}"
21
22SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8"
23
24LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee"
25
26DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
27
28COMPATIBLE_MACHINE = "omap-a15"
29PACKAGE_ARCH = "${MACHINE_ARCH}"
30
31S = "${WORKDIR}/git"
32export IPC_DIR = "${IPC_INSTALL_DIR}"
33export XDC_DIR = "${XDC_INSTALL_DIR}"
34export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
35export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm"
36export C6636_PDK_DIR ="${PDK_INSTALL_DIR}"
37export AM572_PDK_DIR ="${PDK_INSTALL_DIR}"
38export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
39
40export BUILD_AM572 = "0"
41
42BUILD_AM572:omap-a15 = "1"
43
44RELEASE_TARGET = ""
45RELEASE_TARGET:omap-a15 = "am57xx"
46
47do_compile() {
48 make -f utils/product/Makefile .zipfile
49}
50
51do_install() {
52 install -d ${D}${OMP_INSTALL_DIR_RECIPE}
53 cp -r ${S}/exports/openmp_dsp_${RELEASE_TARGET}_*/. -d ${D}${OMP_INSTALL_DIR_RECIPE}
54}
55
56ALLOW_EMPTY:${PN} = "1"
57
58FILES:${PN}-dev += " \
59 ${OMP_INSTALL_DIR_RECIPE}/ \
60"
61
62INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-extras/recipes-ti/osal/ti-osal.inc b/meta-ti-extras/recipes-ti/osal/ti-osal.inc
new file mode 100644
index 00000000..dbd64f7b
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/osal/ti-osal.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI Operating System Abstraction Library (OSAL)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal"
3LICENSE = "BSD & EPL-1.0"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/osal_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball"
12
13do_install() {
14 install -d ${D}${OSAL_INSTALL_DIR_RECIPE}
15 cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN}-dev = "staticdev"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}"
22
23COMPATIBLE_HOST ?= "null"
24COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb b/meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb
new file mode 100644
index 00000000..226458be
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb
@@ -0,0 +1,9 @@
1require ti-osal.inc
2
3PV = "1_24_00_09"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4"
7
8SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b"
9SRC_URI[osaltarball.sha256sum] = "d14f1f43c8a7965e86add69bd813cea56ea7e38abeb55de3fdcdaf4a69f19bf3"
diff --git a/meta-ti-extras/recipes-ti/swtools/swtools_git.bb b/meta-ti-extras/recipes-ti/swtools/swtools_git.bb
new file mode 100644
index 00000000..d3b9a9b1
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/swtools/swtools_git.bb
@@ -0,0 +1,52 @@
1SUMMARY = "TI Software Tools"
2HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools"
3SECTION = "devel"
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d"
6
7require ../includes/ti-paths.inc
8
9DEPENDS = "ti-cgt6x-native \
10 ti-sysbios \
11 ti-xdctools-native"
12
13PV = "5_0_8"
14PR = "r3"
15S = "${WORKDIR}/git"
16
17SWTOOLS_GIT_BRANCH = "master"
18SWTOOLS_GIT_PROTOCOL = "git"
19SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git"
20SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4"
21
22SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}"
23SRCREV = "${SWTOOLS_SRCREV}"
24
25
26export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
27export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
28export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
29
30PATH:append = ":${XDC_INSTALL_DIR}"
31
32XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
33
34export XDCPATH
35
36do_compile() {
37 cd ${S}/ti/mas/swtools
38 xdc
39}
40
41do_install() {
42 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
43 install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
44 cp ${CP_ARGS} ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
45}
46
47FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}"
48
49INSANE_SKIP:${PN}-dev = "arch staticdev"
50ALLOW_EMPTY:${PN} = "1"
51COMPATIBLE_HOST ?= "null"
52COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-extras/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb b/meta-ti-extras/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
new file mode 100644
index 00000000..59576daa
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
@@ -0,0 +1,38 @@
1DESCRIPTION = "Provides test pruss firmware for uio based tests"
2LICENSE = "BSD-3-Clause"
3PV = "1.0.2.0"
4require recipes-ti/includes/ti-paths.inc
5
6S = "${WORKDIR}/git"
7
8DEPENDS = "ti-cgt-pru-native"
9
10BRANCH = "master"
11LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144"
12
13UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git"
14UIO_TEST_PRUSS_GIT_PROTOCOL = "git"
15SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}"
16
17# Corresponds to version 01.00.02.00
18UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c"
19
20SRCREV = "${UIO_TEST_PRUSS_SRCREV}"
21
22PR = "r0"
23
24COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
25
26PACKAGE_ARCH = "${MACHINE_ARCH}"
27
28DEVICE_NAME = ""
29DEVICE_NAME:append:am57xx-evm = "am57xx"
30DEVICE_NAME:append:ti33x = "am33xx"
31DEVICE_NAME:append:ti43x = "am43xx"
32
33EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}"
34
35do_install() {
36 install -d ${D}${bindir}/
37 cp -r *.bin ${D}${bindir}/
38}
diff --git a/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc b/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc
new file mode 100644
index 00000000..460964b3
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc
@@ -0,0 +1,32 @@
1DESCRIPTION = "TI Vision Library (VLIB) for C66x"
2HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html"
3SECTION = "devel"
4LICENSE = "TI-TSPA & BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin"
13
14S = "${WORKDIR}/vlib_c66x_${PV}"
15
16BINFILE="vlib_c66x_obj_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS=""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32INSANE_SKIP:${PN}-dev = "installed-vs-shipped arch"
diff --git a/meta-ti-extras/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb b/meta-ti-extras/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
new file mode 100644
index 00000000..e3742d10
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
@@ -0,0 +1,9 @@
1require vlib-c66x.inc
2
3PV = "3_2_1_0"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda"
7
8SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7"
9SRC_URI[vlibbin.sha256sum] = "05bf16473d60e0252d3a73a7c3d268e540783a226b4bda930e5f6042e7b01bd8"
diff --git a/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc b/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc
new file mode 100644
index 00000000..daa93ddf
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc
@@ -0,0 +1,25 @@
1DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais"
3LICENSE = "GPLv2"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/xdais_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball"
12
13do_install() {
14 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
15 install -d ${D}${XDAIS_INSTALL_DIR_RECIPE}
16 cp ${CP_ARGS} ${S}/* ${D}${XDAIS_INSTALL_DIR_RECIPE}
17}
18
19INHIBIT_PACKAGE_STRIP = "1"
20INHIBIT_SYSROOT_STRIP = "1"
21INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
22INSANE_SKIP:${PN}-dev = "arch"
23
24ALLOW_EMPTY:${PN} = "1"
25FILES:${PN}-dev += "${XDAIS_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-extras/recipes-ti/xdais/ti-xdais_6.26.01.03.bb b/meta-ti-extras/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
new file mode 100644
index 00000000..9fc4cee1
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
@@ -0,0 +1,11 @@
1require ti-xdais.inc
2
3PV = "6_26_01_03"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e"
7
8SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6"
9SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d"
10
11INSANE_SKIP:${PN} = "installed-vs-shipped"
diff --git a/meta-ti-extras/recipes-ti/xdais/ti-xdais_7.24.00.04.bb b/meta-ti-extras/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
new file mode 100644
index 00000000..8148f73a
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
@@ -0,0 +1,9 @@
1require ti-xdais.inc
2
3PV = "7_24_00_04"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6"
7
8SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989"
9SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1"