diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:51 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:39 -0600 |
commit | 37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e (patch) | |
tree | 0cb0ca43d699f542e4421b3ce34607823774f841 /meta-ti-extras | |
parent | c3007665063fac4140a6dddd3d76378ec5ae5c19 (diff) | |
download | meta-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')
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 @@ | |||
1 | Copyright Patrick Powell 1995 | ||
2 | This code is based on code written by Patrick Powell (papowell@astart.com) | ||
3 | It may be used for any purpose as long as this notice remains intact | ||
4 | on 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 @@ | |||
1 | Copyright (c) 2002, 2003, 2008 Thai Open Source Software Center Ltd | ||
2 | All rights reserved. | ||
3 | |||
4 | Redistribution and use in source and binary forms, with or without | ||
5 | modification, are permitted provided that the following conditions are | ||
6 | met: | ||
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 | |||
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR | ||
25 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
26 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
27 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
28 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
29 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
30 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
31 | SOFTWARE, 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 @@ | |||
1 | SUMMARY = "Firmware for DSP for an example application called copycodectest" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "dra7xx" | ||
6 | |||
7 | inherit features_check | ||
8 | |||
9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
10 | |||
11 | SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" | ||
12 | |||
13 | SRCREV = "de6e599f067b25c46cc0c8f74a22cc3b8aafbae8" | ||
14 | |||
15 | PV = "1.00.00.07" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | require recipes-ti/includes/ti-paths.inc | ||
20 | |||
21 | PR = "r4" | ||
22 | inherit update-alternatives | ||
23 | |||
24 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native" | ||
25 | |||
26 | export HWVERSION = "ES10" | ||
27 | export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti" | ||
28 | |||
29 | export XDCVERSION = "ti-xdctools-tree" | ||
30 | export BIOSVERSION = "ti-sysbios-tree" | ||
31 | export IPCVERSION = "ti-ipc-tree" | ||
32 | export CEVERSION = "ti-codec-engine-tree" | ||
33 | export FCVERSION = "ti-framework-components-tree" | ||
34 | export XDAISVERSION = "ti-xdais-tree" | ||
35 | export OSALVERSION = "ti-osal-tree" | ||
36 | |||
37 | export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
38 | export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
39 | |||
40 | do_configure() { | ||
41 | cd ${S} | ||
42 | make unconfig | ||
43 | make vayu_config | ||
44 | } | ||
45 | |||
46 | do_compile() { | ||
47 | cd ${S} | ||
48 | make dspbin | ||
49 | } | ||
50 | |||
51 | TARGET = "dra7-dsp1-fw.xe66" | ||
52 | |||
53 | do_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 | |||
58 | ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66" | ||
59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}" | ||
60 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
61 | ALTERNATIVE_PRIORITY = "10" | ||
62 | |||
63 | INSANE_SKIP:${PN} = "arch" | ||
64 | |||
65 | FILES:${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 @@ | |||
1 | DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3" | ||
4 | |||
5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
6 | MACHINE_KERNEL_PR:append = "d" | ||
7 | PR = "${MACHINE_KERNEL_PR}" | ||
8 | PV:append = "+git${SRCPV}" | ||
9 | |||
10 | S = "${WORKDIR}/git/debugss_module/debugss-mod" | ||
11 | |||
12 | inherit module | ||
13 | |||
14 | PLATFORM = "" | ||
15 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
16 | |||
17 | EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
18 | |||
19 | COMPATIBLE_MACHINE = "dra7xx" | ||
20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
21 | |||
22 | include 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 | ||
2 | SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1" | ||
3 | PV = "1.4.0" | ||
4 | INC_PR = "r2" | ||
5 | |||
6 | SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}" | ||
7 | |||
8 | BRANCH = "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 @@ | |||
1 | DESCRIPTION = "TI dsptop utility." | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
4 | |||
5 | DEPENDS = "libulm ncurses" | ||
6 | |||
7 | PR = "${INC_PR}.2" | ||
8 | |||
9 | S = "${WORKDIR}/git/dsptop" | ||
10 | |||
11 | DEVICE = "" | ||
12 | DEVICE:dra7xx = "DRA7xx" | ||
13 | |||
14 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"" | ||
15 | |||
16 | do_install() { | ||
17 | oe_runmake install DESTDIR=${D} | ||
18 | } | ||
19 | |||
20 | COMPATIBLE_MACHINE = "dra7xx" | ||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
22 | |||
23 | RDEPENDS:${PN} = "debugss-module-drv bash" | ||
24 | |||
25 | include dsptop.inc | ||
26 | |||
27 | PARALLEL_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 @@ | |||
1 | SUMMARY = "TI Usage & Load Monitor Implementation" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
4 | |||
5 | inherit features_check | ||
6 | |||
7 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
8 | |||
9 | DEPENDS = "ti-cgt6x-native" | ||
10 | PR = "${INC_PR}.0" | ||
11 | |||
12 | S = "${WORKDIR}/git/dsptop/ulm" | ||
13 | |||
14 | DEVICE="" | ||
15 | DEVICE:dra7xx = "DRA7xx" | ||
16 | |||
17 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" | ||
18 | |||
19 | do_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 | |||
24 | do_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 | |||
34 | COMPATIBLE_MACHINE = "dra7xx" | ||
35 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
36 | |||
37 | FILES:${PN}-dev += "\ | ||
38 | ${datadir}/ti/ulm \ | ||
39 | " | ||
40 | |||
41 | include dsptop.inc | ||
42 | |||
43 | ALLOW_EMPTY:${PN} = "1" | ||
44 | |||
45 | PARALLEL_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 @@ | |||
1 | SUMMARY = "Firmware for IPU to suppor Accelerated MM decode and encode" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=5cc572579f07af266ab57fc17d762c7f" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "dra7xx" | ||
7 | |||
8 | inherit features_check | ||
9 | |||
10 | REQUIRED_MACHINE_FEATURES = "mmip" | ||
11 | |||
12 | RDEPENDS:${PN} = "libdce" | ||
13 | |||
14 | SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git" | ||
15 | |||
16 | SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | PV = "3.00.15.00" | ||
21 | PR = "r7" | ||
22 | |||
23 | require recipes-ti/includes/ti-paths.inc | ||
24 | |||
25 | inherit update-alternatives | ||
26 | |||
27 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos" | ||
28 | |||
29 | export HWVERSION="ES10" | ||
30 | export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" | ||
31 | |||
32 | export XDCVERSION="ti-xdctools-tree" | ||
33 | export BIOSVERSION="ti-sysbios-tree" | ||
34 | export IPCVERSION="ti-ipc-tree" | ||
35 | export CEVERSION="ti-codec-engine-tree" | ||
36 | export FCVERSION="ti-framework-components-tree" | ||
37 | export XDAISVERSION="ti-xdais-tree" | ||
38 | |||
39 | export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}" | ||
40 | export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
41 | |||
42 | EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}" | ||
43 | |||
44 | do_configure() { | ||
45 | oe_runmake unconfig | ||
46 | oe_runmake vayu_smp_config | ||
47 | } | ||
48 | |||
49 | do_compile() { | ||
50 | oe_runmake | ||
51 | } | ||
52 | |||
53 | TARGET = "dra7-ipu2-fw.xem4" | ||
54 | TARGET_MAP = "platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map" | ||
55 | |||
56 | do_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 | |||
62 | ALTERNATIVE:${PN} = "dra7-ipu2-fw.xem4" | ||
63 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}" | ||
64 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
65 | ALTERNATIVE_PRIORITY = "20" | ||
66 | |||
67 | FILES:${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 @@ | |||
1 | DESCRIPTION = "Programmable Real-time Unit Software Package" | ||
2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" | ||
3 | LICENSE = "BSD-3-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://PRU-Package-v6.1-Manifest.html;md5=1e37797ebe9254922f4278bb6047211c" | ||
6 | |||
7 | inherit update-alternatives | ||
8 | |||
9 | BRANCH = "master" | ||
10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" | ||
11 | SRCREV = "8eee431384b6a1a9c96ae91a8e99485176b4d2b3" | ||
12 | |||
13 | PV = "6.0.1" | ||
14 | PR = "r0" | ||
15 | |||
16 | require recipes-ti/includes/ti-paths.inc | ||
17 | |||
18 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
20 | |||
21 | PACKAGES:prepend = " \ | ||
22 | ${PN}-halt \ | ||
23 | ${PN}-rpmsg-echo \ | ||
24 | " | ||
25 | |||
26 | RDEPENDS:${PN}:append = " \ | ||
27 | ${PN}-halt \ | ||
28 | ${PN}-rpmsg-echo \ | ||
29 | " | ||
30 | |||
31 | DEPENDS = "ti-cgt-pru-native" | ||
32 | |||
33 | S = "${WORKDIR}/git" | ||
34 | |||
35 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" | ||
36 | export PRU_SSP = "${S}" | ||
37 | |||
38 | SUBDIRS = "examples pru_cape/pru_fw lib/src labs" | ||
39 | |||
40 | PLATFORM:ti33x = "am335x" | ||
41 | PLATFORM:ti43x = "am437x" | ||
42 | PLATFORM:omap-a15 = "am572x" | ||
43 | PLATFORM:am64xx = "am64x" | ||
44 | PLATFORM:am65xx = "am65x" | ||
45 | PLATFORM:j7 = "j721e" | ||
46 | |||
47 | do_compile() { | ||
48 | for dir in ${SUBDIRS} | ||
49 | do | ||
50 | make -C ${S}/$dir | ||
51 | done | ||
52 | } | ||
53 | |||
54 | do_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 | |||
63 | FILES:${PN}-staticdev = "${libdir}" | ||
64 | FILES:${PN}-dev = "${includedir}" | ||
65 | |||
66 | do_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 | |||
76 | do_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 | |||
89 | do_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 | |||
102 | do_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 | |||
124 | do_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 | |||
147 | do_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 | |||
171 | FILES:${PN}-halt = "${base_libdir}/firmware/pru/PRU_Halt* ${base_libdir}/firmware/pru/RTU_Halt* ${base_libdir}/firmware/pru/TX_PRU_Halt*" | ||
172 | FILES:${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 | ||
175 | PRU_ICSS_ALTERNATIVES:ti33x = "am335x-pru0-fw am335x-pru1-fw" | ||
176 | PRU_ICSS_ALTERNATIVES:ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw" | ||
177 | PRU_ICSS_ALTERNATIVES:omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw" | ||
178 | PRU_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" | ||
179 | PRU_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" | ||
180 | PRU_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 | ||
183 | ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "${base_libdir}/firmware/am335x-pru0-fw" | ||
184 | ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "${base_libdir}/firmware/am335x-pru1-fw" | ||
185 | |||
186 | ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "${base_libdir}/firmware/am437x-pru0_0-fw" | ||
187 | ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "${base_libdir}/firmware/am437x-pru0_1-fw" | ||
188 | ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "${base_libdir}/firmware/am437x-pru1_0-fw" | ||
189 | ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "${base_libdir}/firmware/am437x-pru1_1-fw" | ||
190 | |||
191 | ALTERNATIVE_LINK_NAME[am57xx-pru1_0-fw] = "${base_libdir}/firmware/am57xx-pru1_0-fw" | ||
192 | ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "${base_libdir}/firmware/am57xx-pru1_1-fw" | ||
193 | ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "${base_libdir}/firmware/am57xx-pru2_0-fw" | ||
194 | ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "${base_libdir}/firmware/am57xx-pru2_1-fw" | ||
195 | |||
196 | ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw" | ||
197 | ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw" | ||
198 | ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw" | ||
199 | ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw" | ||
200 | ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw" | ||
201 | ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw" | ||
202 | ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw" | ||
203 | ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw" | ||
204 | ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw" | ||
205 | ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw" | ||
206 | ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw" | ||
207 | ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw" | ||
208 | |||
209 | ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw" | ||
210 | ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw" | ||
211 | ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw" | ||
212 | ALTERNATIVE_LINK_NAME[am65x-pru1_1-fw] = "${base_libdir}/firmware/am65x-pru1_1-fw" | ||
213 | ALTERNATIVE_LINK_NAME[am65x-pru2_0-fw] = "${base_libdir}/firmware/am65x-pru2_0-fw" | ||
214 | ALTERNATIVE_LINK_NAME[am65x-pru2_1-fw] = "${base_libdir}/firmware/am65x-pru2_1-fw" | ||
215 | ALTERNATIVE_LINK_NAME[am65x-rtu0_0-fw] = "${base_libdir}/firmware/am65x-rtu0_0-fw" | ||
216 | ALTERNATIVE_LINK_NAME[am65x-rtu0_1-fw] = "${base_libdir}/firmware/am65x-rtu0_1-fw" | ||
217 | ALTERNATIVE_LINK_NAME[am65x-rtu1_0-fw] = "${base_libdir}/firmware/am65x-rtu1_0-fw" | ||
218 | ALTERNATIVE_LINK_NAME[am65x-rtu1_1-fw] = "${base_libdir}/firmware/am65x-rtu1_1-fw" | ||
219 | ALTERNATIVE_LINK_NAME[am65x-rtu2_0-fw] = "${base_libdir}/firmware/am65x-rtu2_0-fw" | ||
220 | ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "${base_libdir}/firmware/am65x-rtu2_1-fw" | ||
221 | ALTERNATIVE_LINK_NAME[am65x-txpru0_0-fw] = "${base_libdir}/firmware/am65x-txpru0_0-fw" | ||
222 | ALTERNATIVE_LINK_NAME[am65x-txpru0_1-fw] = "${base_libdir}/firmware/am65x-txpru0_1-fw" | ||
223 | ALTERNATIVE_LINK_NAME[am65x-txpru1_0-fw] = "${base_libdir}/firmware/am65x-txpru1_0-fw" | ||
224 | ALTERNATIVE_LINK_NAME[am65x-txpru1_1-fw] = "${base_libdir}/firmware/am65x-txpru1_1-fw" | ||
225 | ALTERNATIVE_LINK_NAME[am65x-txpru2_0-fw] = "${base_libdir}/firmware/am65x-txpru2_0-fw" | ||
226 | ALTERNATIVE_LINK_NAME[am65x-txpru2_1-fw] = "${base_libdir}/firmware/am65x-txpru2_1-fw" | ||
227 | |||
228 | ALTERNATIVE_LINK_NAME[j7-pru0_0-fw] = "${base_libdir}/firmware/j7-pru0_0-fw" | ||
229 | ALTERNATIVE_LINK_NAME[j7-pru0_1-fw] = "${base_libdir}/firmware/j7-pru0_1-fw" | ||
230 | ALTERNATIVE_LINK_NAME[j7-pru1_0-fw] = "${base_libdir}/firmware/j7-pru1_0-fw" | ||
231 | ALTERNATIVE_LINK_NAME[j7-pru1_1-fw] = "${base_libdir}/firmware/j7-pru1_1-fw" | ||
232 | ALTERNATIVE_LINK_NAME[j7-rtu0_0-fw] = "${base_libdir}/firmware/j7-rtu0_0-fw" | ||
233 | ALTERNATIVE_LINK_NAME[j7-rtu0_1-fw] = "${base_libdir}/firmware/j7-rtu0_1-fw" | ||
234 | ALTERNATIVE_LINK_NAME[j7-rtu1_0-fw] = "${base_libdir}/firmware/j7-rtu1_0-fw" | ||
235 | ALTERNATIVE_LINK_NAME[j7-rtu1_1-fw] = "${base_libdir}/firmware/j7-rtu1_1-fw" | ||
236 | ALTERNATIVE_LINK_NAME[j7-txpru0_0-fw] = "${base_libdir}/firmware/j7-txpru0_0-fw" | ||
237 | ALTERNATIVE_LINK_NAME[j7-txpru0_1-fw] = "${base_libdir}/firmware/j7-txpru0_1-fw" | ||
238 | ALTERNATIVE_LINK_NAME[j7-txpru1_0-fw] = "${base_libdir}/firmware/j7-txpru1_0-fw" | ||
239 | ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw" | ||
240 | |||
241 | # Create the pru-icss-halt firmware alternatives | ||
242 | ALTERNATIVE:pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" | ||
243 | |||
244 | # Only Halt firmware images are supported for the Tx_PRU cores | ||
245 | ALTERNATIVE:pru-icss-halt:append:am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw" | ||
246 | ALTERNATIVE: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" | ||
247 | ALTERNATIVE:pru-icss-halt:append:j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw" | ||
248 | |||
249 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
250 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
251 | |||
252 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
253 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
254 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
255 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
256 | |||
257 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
258 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
259 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
260 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
261 | |||
262 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
263 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
264 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
265 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
266 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
267 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
268 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
269 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
270 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
271 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
272 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
273 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
274 | |||
275 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
276 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
277 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
278 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
279 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
280 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
281 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
282 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
283 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
284 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
285 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
286 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
287 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
288 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
289 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
290 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
291 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
292 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
293 | |||
294 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
295 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
296 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
297 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
298 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
299 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
300 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
301 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
302 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
303 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
304 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
305 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
306 | |||
307 | |||
308 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" | ||
309 | |||
310 | # Create the pru-icss-rpmsg-echo firmware alternatives | ||
311 | ALTERNATIVE:pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}" | ||
312 | |||
313 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out" | ||
314 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out" | ||
315 | |||
316 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
317 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
318 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
319 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
320 | |||
321 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
322 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
323 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
324 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
325 | |||
326 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
327 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
328 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
329 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
330 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
331 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
332 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
333 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
334 | |||
335 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
336 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
337 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
338 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
339 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
340 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
341 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
342 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
343 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
344 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
345 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_0.out" | ||
346 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_1.out" | ||
347 | |||
348 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
349 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
350 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
351 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
352 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
353 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
354 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
355 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
356 | |||
357 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" | ||
358 | |||
359 | ALLOW_EMPTY:${PN} = "1" | ||
360 | |||
361 | # This installs PRU firmware, so skip "arch" QA check | ||
362 | INSANE_SKIP:${PN}-halt = "arch" | ||
363 | INSANE_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 @@ | |||
1 | DESCRIPTION = "Builds eDMA module used by eDMA libraries for PRU sw example applications" | ||
2 | HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://edmautils.c;beginline=1;endline=23;md5=312e9cb8a37a044c617c98a9e980ad1b" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "omapl138" | ||
7 | |||
8 | INHIBIT_PACKAGE_STRIP = "1" | ||
9 | |||
10 | MACHINE_KERNEL_PR:append = "b" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | PV:append = "+svn${SRCPV}" | ||
13 | |||
14 | SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;protocol=https;user=anonymous;pswd=''" | ||
15 | |||
16 | SRCREV = "33" | ||
17 | |||
18 | S = "${WORKDIR}/trunk/peripheral_lib/edma_driver/module" | ||
19 | |||
20 | inherit module | ||
21 | |||
22 | EXTRA_OEMAKE += "KERNEL_DIR='${STAGING_KERNEL_DIR}'" | ||
23 | |||
24 | do_compile:prepend () { | ||
25 | export CCTOOL_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" | ||
26 | } | ||
27 | |||
28 | do_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 | ||
2 | SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7" | ||
3 | |||
4 | PV = "1.1.0" | ||
5 | INC_PR = "r7" | ||
6 | |||
7 | SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}" | ||
8 | |||
9 | BRANCH = "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 @@ | |||
1 | From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Sat, 15 Feb 2020 15:59:37 -0500 | ||
4 | Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/libbfd.h | 4 ++++ | ||
9 | 1 file changed, 4 insertions(+) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h | ||
12 | index 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 | -- | ||
27 | 2.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 | |||
3 | GDB_DEVICE_NAME='/dev/gdbtty$i' | ||
4 | DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66' | ||
5 | |||
6 | DSP_L2_GLOBAL_OFFSET="40000000" | ||
7 | DSP_L2_GLOBAL_SHIFT="00800000" | ||
8 | |||
9 | case "$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 | ;; | ||
46 | esac | ||
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 @@ | |||
1 | DESCRIPTION = "GNU debugger for TI C6X DSP." | ||
2 | SECTION = "devel" | ||
3 | LICENSE = "GPLv3+" | ||
4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f" | ||
5 | |||
6 | DEPENDS = "ncurses bison-native texinfo flex-native gettext" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "dra7xx" | ||
9 | |||
10 | PR = "${INC_PR}.1" | ||
11 | |||
12 | SRC_URI:append = " \ | ||
13 | file://init \ | ||
14 | file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \ | ||
15 | " | ||
16 | |||
17 | S = "${WORKDIR}/git/gdbc6x" | ||
18 | |||
19 | inherit update-rc.d | ||
20 | inherit gettext | ||
21 | |||
22 | CFLAGS += "-fcommon" | ||
23 | |||
24 | do_configure () { | ||
25 | cd ${S} | ||
26 | ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb | ||
27 | } | ||
28 | |||
29 | do_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 | |||
42 | RDEPENDS:${PN} = "gdbserverproxy-module-drv bash" | ||
43 | |||
44 | include gdbc6x.inc | ||
45 | |||
46 | INITSCRIPT_NAME = "gdbserverproxy" | ||
47 | INITSCRIPT_PARAMS = "defaults 95" | ||
48 | |||
49 | PARALLEL_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 @@ | |||
1 | DESCRIPTION = "TI gdb-server to be used with c6xgdb." | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" | ||
4 | |||
5 | DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools-native" | ||
6 | |||
7 | PR = "${INC_PR}.0" | ||
8 | |||
9 | S = "${WORKDIR}/git/gdbserver-c6x/src" | ||
10 | |||
11 | PLATFORM = "" | ||
12 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
13 | |||
14 | EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" | ||
15 | |||
16 | export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" | ||
17 | export FC_DIR = "${FC_INSTALL_DIR}" | ||
18 | export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
19 | export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" | ||
20 | export 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. | ||
24 | EXTRA_OECONF = "--disable-nls" | ||
25 | do_configure() { | ||
26 | : | ||
27 | } | ||
28 | |||
29 | do_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 | |||
36 | COMPATIBLE_MACHINE = "dra7xx" | ||
37 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
38 | |||
39 | FILES:${PN}-dev += "\ | ||
40 | ${datadir}/ti/gdbc6x \ | ||
41 | " | ||
42 | |||
43 | include gdbc6x.inc | ||
44 | |||
45 | require recipes-ti/includes/ti-paths.inc | ||
46 | |||
47 | ALLOW_EMPTY:${PN} = "1" | ||
48 | |||
49 | PARALLEL_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 @@ | |||
1 | DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" | ||
4 | |||
5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
6 | MACHINE_KERNEL_PR:append = "b" | ||
7 | PR = "${MACHINE_KERNEL_PR}" | ||
8 | PV:append = "+git${SRCPV}" | ||
9 | |||
10 | S = "${WORKDIR}/git/kernel_module/gdbproxy-mod" | ||
11 | |||
12 | inherit module | ||
13 | |||
14 | PLATFORM = "" | ||
15 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
16 | |||
17 | EXTRA_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. | ||
21 | EXTRA_OECONF = "--disable-nls" | ||
22 | do_configure() { | ||
23 | : | ||
24 | } | ||
25 | |||
26 | COMPATIBLE_MACHINE = "dra7xx" | ||
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
28 | |||
29 | include gdbc6x.inc | ||
30 | |||
31 | KERNEL_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 @@ | |||
1 | SUMMARY = "Library for remotely invoking HW accelerated codecs on IVA-HD" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae" | ||
4 | |||
5 | inherit autotools pkgconfig | ||
6 | |||
7 | DEPENDS = "libdrm ti-ipc" | ||
8 | |||
9 | SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git" | ||
10 | SRCREV = "f72096090e3063e85ea77cae66b2d99a48d91727" | ||
11 | |||
12 | PR = "r1" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm" | ||
16 | |||
17 | COMPATIBLE_HOST ?= "null" | ||
18 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "TI SYS/BIOS v6 Kernel" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | S = "${WORKDIR}/bios_${PV}" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin" | ||
13 | BINFILE="bios_${PV}.bin" | ||
14 | TI_BIN_UNPK_CMDS="Y: q:workdir:Y" | ||
15 | |||
16 | do_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 | |||
22 | ALLOW_EMPTY:${PN} = "1" | ||
23 | FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
24 | |||
25 | INHIBIT_PACKAGE_STRIP = "1" | ||
26 | INHIBIT_SYSROOT_STRIP = "1" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | INSANE_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 @@ | |||
1 | require recipes-ti/bios/ti-sysbios.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "6_76_03_01" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1" | ||
8 | |||
9 | SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9" | ||
10 | SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a" | ||
11 | |||
12 | TI_BIN_UNPK_CMDS = "" | ||
13 | TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}" | ||
14 | |||
15 | BINFILE = "bios_${PV}.run" | ||
16 | SRC_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 @@ | |||
1 | DESCRIPTION = "Codec Engine for TI ARM/DSP processors" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | PV = "3_24_00_08" | ||
10 | PR = "r0" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7" | ||
13 | |||
14 | SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b" | ||
15 | SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1" | ||
16 | |||
17 | S = "${WORKDIR}/codec_engine_${PV}" | ||
18 | |||
19 | SRC_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 | |||
21 | do_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 | |||
28 | ALLOW_EMPTY:${PN} = "1" | ||
29 | FILES:${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 @@ | |||
1 | SUMMARY = "TI Emulation CTools AET library" | ||
2 | DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | |||
6 | PV = "4.19.0.0" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd" | ||
9 | |||
10 | SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build" | ||
11 | SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31" | ||
12 | |||
13 | DEPENDS = "ti-cgt6x-native" | ||
14 | PR = "r0" | ||
15 | |||
16 | S = "${WORKDIR}/git/aet" | ||
17 | |||
18 | DEVICE="" | ||
19 | DEVICE:dra7xx = "DRA7xx" | ||
20 | |||
21 | EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include" | ||
22 | |||
23 | do_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 | |||
31 | COMPATIBLE_MACHINE = "dra7xx" | ||
32 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
33 | |||
34 | FILES:${PN}-dev += "\ | ||
35 | ${datadir}/ti/ctoolslib/aet \ | ||
36 | " | ||
37 | |||
38 | ALLOW_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 @@ | |||
1 | DESCRIPTION = "Baremetal GCC for ARM" | ||
2 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | SRC_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 | |||
10 | SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0" | ||
11 | SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69" | ||
12 | |||
13 | S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update" | ||
14 | |||
15 | # only x86_64 is supported | ||
16 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
17 | COMPATIBLE_HOST:class-target = "null" | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
21 | cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
22 | } | ||
23 | |||
24 | FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" | ||
25 | |||
26 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | |||
29 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI CG_XML" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | require recipes-ti/includes/ti-unpack.inc | ||
9 | |||
10 | PV = "2.61.00" | ||
11 | PE = "1" | ||
12 | S = "${WORKDIR}/cg_xml_${PV}" | ||
13 | |||
14 | SRC_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 | " | ||
17 | LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684" | ||
18 | |||
19 | SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff" | ||
20 | SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9" | ||
21 | |||
22 | BINFILE="cgxml-${PV}-linux-installer.run" | ||
23 | TI_BIN_UNPK_CMDS="" | ||
24 | TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended" | ||
25 | |||
26 | do_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 | |||
32 | FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}" | ||
33 | |||
34 | INSANE_SKIP:${PN} = "arch ldflags file-rdeps" | ||
35 | |||
36 | INHIBIT_PACKAGE_STRIP = "1" | ||
37 | INHIBIT_SYSROOT_STRIP = "1" | ||
38 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
39 | |||
40 | BBCLASSEXTEND = "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 @@ | |||
1 | SUMMARY = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(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 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108" | ||
6 | |||
7 | require recipes-ti/includes/ti-unpack.inc | ||
8 | require recipes-ti/includes/ti-staging.inc | ||
9 | require recipes-ti/includes/ti-paths.inc | ||
10 | |||
11 | S = "${WORKDIR}/ti-cgt-arm-${PV}" | ||
12 | |||
13 | PE = "1" | ||
14 | PR = "r0" | ||
15 | |||
16 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}" | ||
17 | |||
18 | BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin" | ||
19 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
20 | TI_BIN_UNPK_CMDS = "" | ||
21 | |||
22 | # only x86_64 is supported | ||
23 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
24 | COMPATIBLE_HOST:class-target = "null" | ||
25 | |||
26 | do_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 | |||
31 | SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b" | ||
32 | SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4" | ||
33 | |||
34 | BINFILE_NAME = "cgt_arm_installer" | ||
35 | |||
36 | FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | INHIBIT_SYSROOT_STRIP = "1" | ||
40 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
41 | |||
42 | INSANE_SKIP:${PN} += "arch staticdev file-rdeps" | ||
43 | |||
44 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI PRU Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
7 | |||
8 | require recipes-ti/includes/ti-paths.inc | ||
9 | require recipes-ti/includes/ti-unpack.inc | ||
10 | |||
11 | BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" | ||
12 | BINFILE_NAME = "cgt-pru-x86" | ||
13 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
14 | TI_BIN_UNPK_CMDS = "" | ||
15 | |||
16 | BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
17 | BINFILE_NAME:class-target = "cgt-pru-arm" | ||
18 | |||
19 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
20 | |||
21 | SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0" | ||
22 | SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a" | ||
23 | |||
24 | SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58" | ||
25 | SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c" | ||
26 | |||
27 | do_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 | |||
33 | do_install:class-target() { | ||
34 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
35 | } | ||
36 | |||
37 | FILES:${PN} += "${datadir}/ti/*" | ||
38 | |||
39 | FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \ | ||
40 | ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \ | ||
41 | " | ||
42 | |||
43 | INHIBIT_PACKAGE_STRIP = "1" | ||
44 | INHIBIT_SYSROOT_STRIP = "1" | ||
45 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
46 | |||
47 | INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps" | ||
48 | |||
49 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600" | ||
7 | |||
8 | require ../includes/ti-paths.inc | ||
9 | require ../includes/ti-staging.inc | ||
10 | require ../includes/ti-eula-unpack.inc | ||
11 | |||
12 | S = "${WORKDIR}/cgt470_${PV}" | ||
13 | |||
14 | SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin" | ||
15 | |||
16 | BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin" | ||
17 | TI_BIN_UNPK_CMDS="Y:qY:workdir: : " | ||
18 | TI_BIN_UNPK_WDEXT="/cgt470_${PV}" | ||
19 | |||
20 | do_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 @@ | |||
1 | require ti-cgt470.inc | ||
2 | |||
3 | PV = "4_6_6" | ||
4 | PVwithdots = "4.6.6" | ||
5 | |||
6 | SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b" | ||
7 | SRC_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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C6000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | |||
9 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
10 | LICENSE = "TI-TSPA" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" | ||
13 | |||
14 | S = "${WORKDIR}/c6000_7.4.16" | ||
15 | |||
16 | require recipes-ti/includes/ti-paths.inc | ||
17 | require recipes-ti/includes/ti-unpack.inc | ||
18 | |||
19 | BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin" | ||
20 | BINFILE_NAME = "cgt6x_7.4.16_x86_installer" | ||
21 | TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended" | ||
22 | TI_BIN_UNPK_CMDS="" | ||
23 | |||
24 | SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}" | ||
25 | |||
26 | SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513" | ||
27 | SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f" | ||
28 | |||
29 | # only x86_64 is supported | ||
30 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
31 | COMPATIBLE_HOST:class-target = "null" | ||
32 | |||
33 | do_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 | |||
38 | FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
39 | |||
40 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
41 | |||
42 | INHIBIT_PACKAGE_STRIP = "1" | ||
43 | INHIBIT_SYSROOT_STRIP = "1" | ||
44 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
45 | |||
46 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI DSP Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
7 | |||
8 | PE = "1" | ||
9 | |||
10 | require recipes-ti/includes/ti-unpack.inc | ||
11 | |||
12 | COMPATIBLE_HOST:class-target = "arm.*-linux" | ||
13 | |||
14 | # For now we only have hardfp version for target class | ||
15 | python __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 | |||
29 | BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin" | ||
30 | BINFILE_NAME = "cgt6x_x86_installer" | ||
31 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
32 | TI_BIN_UNPK_CMDS = "" | ||
33 | |||
34 | BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
35 | BINFILE_NAME:class-target = "cgt6x_arm_installer" | ||
36 | |||
37 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
38 | |||
39 | SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161" | ||
40 | SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6" | ||
41 | |||
42 | SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9" | ||
43 | SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f" | ||
44 | |||
45 | do_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 | |||
94 | do_install:class-target() { | ||
95 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
96 | } | ||
97 | |||
98 | FILES:${PN} += "${datadir}/ti/*" | ||
99 | |||
100 | FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug" | ||
101 | |||
102 | INSANE_SKIP:${PN} += "staticdev" | ||
103 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a" | ||
104 | |||
105 | BBCLASSEXTEND = "native nativesdk" | ||
106 | |||
107 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C7000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
9 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64" | ||
12 | |||
13 | require recipes-ti/includes/ti-unpack.inc | ||
14 | require recipes-ti/includes/ti-paths.inc | ||
15 | |||
16 | # only x86_64 is supported | ||
17 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
18 | COMPATIBLE_HOST:class-target = "null" | ||
19 | |||
20 | PE = "1" | ||
21 | |||
22 | BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin" | ||
23 | BINFILE_NAME = "cgt7x_x86_installer" | ||
24 | |||
25 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}" | ||
26 | |||
27 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
28 | TI_BIN_UNPK_CMDS = "" | ||
29 | |||
30 | SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb" | ||
31 | SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5" | ||
32 | |||
33 | S = "${WORKDIR}/c7000_${PV}" | ||
34 | |||
35 | do_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 | |||
41 | FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
42 | |||
43 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
44 | |||
45 | INHIBIT_PACKAGE_STRIP = "1" | ||
46 | INHIBIT_SYSROOT_STRIP = "1" | ||
47 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
48 | |||
49 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD & GPLv2" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | do_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 | |||
16 | FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}" | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
19 | |||
20 | INHIBIT_PACKAGE_STRIP = "1" | ||
21 | INHIBIT_SYSROOT_STRIP = "1" | ||
22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
23 | INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps" | ||
24 | |||
25 | # Prevent internal libs from getting picked up | ||
26 | PRIVATE_LIBS = " \ | ||
27 | libncdb.so \ | ||
28 | libcdb.so \ | ||
29 | libjavaplugin_oji.so \ | ||
30 | libjavaplugin_jni.so \ | ||
31 | libjsound.so \ | ||
32 | libinstrument.so \ | ||
33 | libjawt.so \ | ||
34 | libzip.so \ | ||
35 | libjava_crw_demo.so \ | ||
36 | libjavaplugin_nscp_gcc29.so \ | ||
37 | libhprof.so \ | ||
38 | libcmm.so \ | ||
39 | libjdwp.so \ | ||
40 | libmlib_image.so \ | ||
41 | libjpeg.so \ | ||
42 | libverify.so \ | ||
43 | libjavaplugin_nscp.so \ | ||
44 | libmanagement.so \ | ||
45 | libunpack.so \ | ||
46 | librmi.so \ | ||
47 | libJdbcOdbc.so \ | ||
48 | libawt.so \ | ||
49 | libnet.so \ | ||
50 | libjaas_unix.so \ | ||
51 | libnio.so \ | ||
52 | libdcpr.so \ | ||
53 | libioser12.so \ | ||
54 | libjsoundalsa.so \ | ||
55 | libjava.so \ | ||
56 | libfontmanager.so \ | ||
57 | libdt_socket.so \ | ||
58 | libmawt.so \ | ||
59 | libjvm.so \ | ||
60 | libhpi.so \ | ||
61 | lib.so \ | ||
62 | libcairo.so.2 \ | ||
63 | libjli.so \ | ||
64 | libawt_xawt.so \ | ||
65 | " | ||
66 | |||
67 | COMPATIBLE_HOST ?= "null" | ||
68 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
69 | COMPATIBLE_HOST:class-native = "(.*)" | ||
70 | COMPATIBLE_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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | |||
3 | S = "${WORKDIR}/xdctools_${PV}_core" | ||
4 | |||
5 | SRC_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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | require ../includes/ti-eula-unpack.inc | ||
3 | |||
4 | S = "${WORKDIR}/xdctools_${PV}" | ||
5 | |||
6 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin" | ||
7 | |||
8 | BINFILE="xdctools_setuplinux_${PV}.bin" | ||
9 | TI_BIN_UNPK_CMDS="Y:workdir:Y" | ||
10 | TI_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 @@ | |||
1 | require recipes-ti/devtools/ti-xdctools-core.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "3_55_02_22" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8" | ||
8 | |||
9 | SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f" | ||
10 | SRC_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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}" | ||
6 | DSPLIB_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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c66x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c674x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
1 | SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_4_0_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | DSPLIB_GIT_BRANCH = "master" | ||
20 | DSPLIB_GIT_PROTOCOL = "git" | ||
21 | DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git" | ||
22 | DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161" | ||
23 | |||
24 | SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${DSPLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | ||
28 | |||
29 | export DSPLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | ||
37 | |||
38 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
39 | |||
40 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
41 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | ||
42 | |||
43 | export XDCPATH | ||
44 | |||
45 | DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}" | ||
46 | |||
47 | do_compile() { | ||
48 | cd ${DSPLIB_WORK_DIR}/ti/dsplib; | ||
49 | xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
50 | } | ||
51 | |||
52 | do_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 | |||
60 | inherit deploy | ||
61 | addtask deploy before do_build after do_install | ||
62 | |||
63 | do_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 | |||
73 | ALLOW_EMPTY:${PN} = "1" | ||
74 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | ||
75 | |||
76 | INSANE_SKIP:${PN}-dev = "arch" | ||
77 | COMPATIBLE_HOST ?= "null" | ||
78 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "TI Framework Components" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | S = "${WORKDIR}/framework_components_${PV}" | ||
9 | |||
10 | SRC_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 | |||
12 | do_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 | |||
18 | INSANE_SKIP:${PN} = "ldflags" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "2_26_00_01" | ||
4 | PR = "r2" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af" | ||
9 | SRC_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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "3_40_02_07" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e" | ||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs" | ||
2 | HOMEPAGE = "http://www.ti.com/tool/sprc264" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib" | ||
13 | |||
14 | S = "${WORKDIR}/imglib-c66x-${PV}" | ||
15 | |||
16 | BINFILE = "imglib_c66x_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS = "" | ||
19 | |||
20 | do_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 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | |||
33 | RDEPENDS:${PN}-dev += "perl" | ||
34 | INSANE_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 @@ | |||
1 | require imglib-c66x.inc | ||
2 | |||
3 | PV = "3_1_1_0" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667" | ||
7 | |||
8 | SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca" | ||
9 | SRC_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 | |||
12 | require recipes-ti/includes/ti-unpack.inc | ||
13 | |||
14 | TI_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 @@ | |||
1 | installdir = "${datadir}/ti" | ||
2 | |||
3 | export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}" | ||
4 | # This is where do_install will put it | ||
5 | export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree" | ||
6 | export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree" | ||
7 | export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree" | ||
8 | export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree" | ||
9 | export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree" | ||
10 | export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree" | ||
11 | export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree" | ||
12 | export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree" | ||
13 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" | ||
14 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" | ||
15 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" | ||
16 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" | ||
17 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" | ||
18 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" | ||
19 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" | ||
20 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree" | ||
21 | export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree" | ||
22 | export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree" | ||
23 | export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree" | ||
24 | export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree" | ||
25 | export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree" | ||
26 | export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree" | ||
27 | export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree" | ||
28 | export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree" | ||
29 | export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree" | ||
30 | export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree" | ||
31 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
32 | export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree" | ||
33 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" | ||
34 | export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree" | ||
35 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" | ||
36 | export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" | ||
37 | export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" | ||
38 | export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" | ||
39 | export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" | ||
40 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" | ||
41 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
42 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" | ||
43 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" | ||
44 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" | ||
45 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | ||
46 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | ||
47 | export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" | ||
48 | export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree" | ||
49 | export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree" | ||
50 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" | ||
51 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" | ||
52 | export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7" | ||
53 | export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x" | ||
54 | |||
55 | |||
56 | # This is where the tools will end up in sysroot | ||
57 | export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}" | ||
58 | export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}" | ||
59 | export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}" | ||
60 | export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}" | ||
61 | export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}" | ||
62 | export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}" | ||
63 | export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}" | ||
64 | export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}" | ||
65 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" | ||
66 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" | ||
67 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" | ||
68 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" | ||
69 | export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" | ||
70 | export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}" | ||
71 | export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}" | ||
72 | export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}" | ||
73 | export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}" | ||
74 | export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}" | ||
75 | export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}" | ||
76 | export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}" | ||
77 | export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}" | ||
78 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
79 | export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}" | ||
80 | export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" | ||
81 | export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" | ||
82 | export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}" | ||
83 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" | ||
84 | export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}" | ||
85 | export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
86 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" | ||
87 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" | ||
88 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
89 | export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
90 | export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
91 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
92 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
93 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
94 | export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
95 | export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
96 | export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}" | ||
97 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" | ||
98 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" | ||
99 | export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
100 | export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}" | ||
101 | export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}" | ||
102 | export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
103 | |||
104 | |||
105 | DSPSUFFIX:omapl137 = "x674" | ||
106 | DSPSUFFIX:omapl138 = "x674" | ||
107 | DSPSUFFIX_ti816x = "xe674" | ||
108 | DSPSUFFIX_ti814x = "xe674" | ||
109 | DSPSUFFIX ?= "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 @@ | |||
1 | INHIBIT_PACKAGE_STRIP = "1" | ||
2 | |||
3 | ALLOW_EMPTY:${PN} = "1" | ||
4 | ALLOW_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 | |||
13 | python do_unpack () { | ||
14 | bb.build.exec_func('base_do_unpack', d) | ||
15 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
16 | } | ||
17 | |||
18 | TI_BIN_UNPK_WDEXT ?= "" | ||
19 | python 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 | |||
80 | COMPATIBLE_HOST ?= "null" | ||
81 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
82 | COMPATIBLE_HOST:class-native = "(.*)" | ||
83 | COMPATIBLE_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 @@ | |||
1 | From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denis@denix.org> | ||
3 | Date: Mon, 29 Mar 2021 19:42:00 -0400 | ||
4 | Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in | ||
5 | glibc | ||
6 | |||
7 | Use strerror() instead. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-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 | |||
16 | diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c | ||
17 | index 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 | -- | ||
39 | 2.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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples" | ||
5 | |||
6 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
7 | |||
8 | do_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 | |||
30 | do_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 | |||
49 | FILES:${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 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a" | ||
7 | |||
8 | INSANE_SKIP:${PN} += "arch" | ||
9 | |||
10 | ALLOW_EMPTY:${PN} = "1" | ||
11 | |||
12 | IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
13 | |||
14 | do_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 | |||
26 | do_install() { | ||
27 | cd ${S_ipc-examples}/src | ||
28 | IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` | ||
29 | } | ||
30 | |||
31 | INHIBIT_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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
5 | |||
6 | do_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 | |||
24 | do_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 | |||
44 | FILES:${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 @@ | |||
1 | require recipes-ti/includes/ti-paths.inc | ||
2 | |||
3 | TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git" | ||
4 | TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples" | ||
5 | TI_IPC_EXAMPLES_GIT_PROTOCOL = "git" | ||
6 | TI_IPC_EXAMPLES_GIT_BRANCH = "master" | ||
7 | TI_IPC_EXAMPLES_NAME = "ipc-examples" | ||
8 | |||
9 | SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\ | ||
10 | destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\ | ||
11 | protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\ | ||
12 | branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\ | ||
13 | name=${TI_IPC_EXAMPLES_NAME}" | ||
14 | |||
15 | TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git" | ||
16 | TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata" | ||
17 | TI_IPC_METADATA_GIT_PROTOCOL = "git" | ||
18 | TI_IPC_METADATA_GIT_BRANCH = "master" | ||
19 | TI_IPC_METADATA_NAME = "ipc-metadata" | ||
20 | |||
21 | SRC_URI += "${TI_IPC_METADATA_GIT_URI};\ | ||
22 | destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\ | ||
23 | protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\ | ||
24 | branch=${TI_IPC_METADATA_GIT_BRANCH};\ | ||
25 | name=${TI_IPC_METADATA_NAME}" | ||
26 | |||
27 | # Corresponds to tag: 3.51.00.00 | ||
28 | TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2" | ||
29 | # Corresponds to tag: 3.51.00.00 | ||
30 | TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358" | ||
31 | |||
32 | SRCREV_FORMAT = "default" | ||
33 | SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}" | ||
34 | SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}" | ||
35 | |||
36 | S_ipc-examples = "${WORKDIR}/git/ipc-examples" | ||
37 | S_ipc-metadata = "${WORKDIR}/git/ipc-metadata" | ||
38 | |||
39 | RELEASE_TYPE = "GA" | ||
40 | RELEASE_SUFFIX = "" | ||
41 | |||
42 | PR = "${INC_PR}.r0" | ||
43 | |||
44 | DEPENDS:append:omap-a15 = " ti-cgt6x-native \ | ||
45 | ti-cgt-arm-native \ | ||
46 | gcc-arm-baremetal-native \ | ||
47 | " | ||
48 | DEPENDS:append:omapl138 = " ti-cgt6x-native \ | ||
49 | " | ||
50 | |||
51 | IPC_TARGETS = "" | ||
52 | |||
53 | IPC_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 | |||
60 | IPC_TARGETS:omapl138 = "\ | ||
61 | ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ | ||
62 | " | ||
63 | |||
64 | PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}" | ||
65 | EXTRA_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 @@ | |||
1 | require ti-ipc.inc | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | ||
6 | |||
7 | PACKAGES =+ "${PN}-fw" | ||
8 | FILES:${PN}-fw = "${base_libdir}/firmware/*" | ||
9 | FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}" | ||
10 | |||
11 | INSANE_SKIP:${PN}-fw += "arch" | ||
12 | INSANE_SKIP:${PN}-dev += "arch" | ||
13 | |||
14 | ALLOW_EMPTY:${PN} = "1" | ||
15 | |||
16 | IPC_PACKAGE_DIR = "${S}/ipc-package" | ||
17 | |||
18 | do_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 | |||
64 | do_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 | |||
75 | KFDSPNUM = "0" | ||
76 | |||
77 | KFPLAT = "" | ||
78 | |||
79 | ALTERNATIVE_PRIORITY = "5" | ||
80 | |||
81 | pkg_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 | |||
88 | pkg_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 | |||
95 | pkg_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 | |||
99 | pkg_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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c66x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c674x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_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 @@ | |||
1 | SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_1_2_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | MATHLIB_GIT_BRANCH = "master" | ||
20 | MATHLIB_GIT_PROTOCOL = "git" | ||
21 | MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git" | ||
22 | MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951" | ||
23 | |||
24 | SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${MATHLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" | ||
28 | |||
29 | export MATHLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | |||
37 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
38 | |||
39 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
40 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" | ||
41 | |||
42 | export XDCPATH | ||
43 | |||
44 | MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}" | ||
45 | |||
46 | do_compile() { | ||
47 | cd ${MATHLIB_WORK_DIR}/ti/mathlib; | ||
48 | xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
49 | } | ||
50 | |||
51 | do_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 | |||
59 | inherit deploy | ||
60 | addtask deploy before do_build after do_install | ||
61 | |||
62 | do_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 | |||
72 | ALLOW_EMPTY:${PN} = "1" | ||
73 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" | ||
74 | |||
75 | INSANE_SKIP:${PN}-dev = "arch" | ||
76 | COMPATIBLE_HOST ?= "null" | ||
77 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "TI OpenMP RTOS" | ||
2 | HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
3 | LICENSE = "BSD" | ||
4 | |||
5 | require recipes-ti/includes/ti-paths.inc | ||
6 | |||
7 | inherit features_check | ||
8 | |||
9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
10 | REQUIRED_DISTRO_FEATURES = "openmp" | ||
11 | |||
12 | PV = "2_06_03_00" | ||
13 | PR = "r0" | ||
14 | |||
15 | OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
16 | OPENMP_RTOS_GIT_PROTOCOL = "git" | ||
17 | OPENMP_RTOS_GIT_BRANCH = "master" | ||
18 | |||
19 | BRANCH = "${OPENMP_RTOS_GIT_BRANCH}" | ||
20 | SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}" | ||
21 | |||
22 | SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8" | ||
23 | |||
24 | LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee" | ||
25 | |||
26 | DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native" | ||
27 | |||
28 | COMPATIBLE_MACHINE = "omap-a15" | ||
29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
32 | export IPC_DIR = "${IPC_INSTALL_DIR}" | ||
33 | export XDC_DIR = "${XDC_INSTALL_DIR}" | ||
34 | export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" | ||
35 | export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm" | ||
36 | export C6636_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
37 | export AM572_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
38 | export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
39 | |||
40 | export BUILD_AM572 = "0" | ||
41 | |||
42 | BUILD_AM572:omap-a15 = "1" | ||
43 | |||
44 | RELEASE_TARGET = "" | ||
45 | RELEASE_TARGET:omap-a15 = "am57xx" | ||
46 | |||
47 | do_compile() { | ||
48 | make -f utils/product/Makefile .zipfile | ||
49 | } | ||
50 | |||
51 | do_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 | |||
56 | ALLOW_EMPTY:${PN} = "1" | ||
57 | |||
58 | FILES:${PN}-dev += " \ | ||
59 | ${OMP_INSTALL_DIR_RECIPE}/ \ | ||
60 | " | ||
61 | |||
62 | INSANE_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 @@ | |||
1 | DESCRIPTION = "TI Operating System Abstraction Library (OSAL)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal" | ||
3 | LICENSE = "BSD & EPL-1.0" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/osal_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
15 | cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
16 | } | ||
17 | |||
18 | INSANE_SKIP:${PN}-dev = "staticdev" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}" | ||
22 | |||
23 | COMPATIBLE_HOST ?= "null" | ||
24 | COMPATIBLE_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 @@ | |||
1 | require ti-osal.inc | ||
2 | |||
3 | PV = "1_24_00_09" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4" | ||
7 | |||
8 | SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b" | ||
9 | SRC_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 @@ | |||
1 | SUMMARY = "TI Software Tools" | ||
2 | HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d" | ||
6 | |||
7 | require ../includes/ti-paths.inc | ||
8 | |||
9 | DEPENDS = "ti-cgt6x-native \ | ||
10 | ti-sysbios \ | ||
11 | ti-xdctools-native" | ||
12 | |||
13 | PV = "5_0_8" | ||
14 | PR = "r3" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | SWTOOLS_GIT_BRANCH = "master" | ||
18 | SWTOOLS_GIT_PROTOCOL = "git" | ||
19 | SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git" | ||
20 | SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4" | ||
21 | |||
22 | SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}" | ||
23 | SRCREV = "${SWTOOLS_SRCREV}" | ||
24 | |||
25 | |||
26 | export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
27 | export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
28 | export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
29 | |||
30 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
31 | |||
32 | XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
33 | |||
34 | export XDCPATH | ||
35 | |||
36 | do_compile() { | ||
37 | cd ${S}/ti/mas/swtools | ||
38 | xdc | ||
39 | } | ||
40 | |||
41 | do_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 | |||
47 | FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
48 | |||
49 | INSANE_SKIP:${PN}-dev = "arch staticdev" | ||
50 | ALLOW_EMPTY:${PN} = "1" | ||
51 | COMPATIBLE_HOST ?= "null" | ||
52 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "Provides test pruss firmware for uio based tests" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | PV = "1.0.2.0" | ||
4 | require recipes-ti/includes/ti-paths.inc | ||
5 | |||
6 | S = "${WORKDIR}/git" | ||
7 | |||
8 | DEPENDS = "ti-cgt-pru-native" | ||
9 | |||
10 | BRANCH = "master" | ||
11 | LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144" | ||
12 | |||
13 | UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git" | ||
14 | UIO_TEST_PRUSS_GIT_PROTOCOL = "git" | ||
15 | SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}" | ||
16 | |||
17 | # Corresponds to version 01.00.02.00 | ||
18 | UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c" | ||
19 | |||
20 | SRCREV = "${UIO_TEST_PRUSS_SRCREV}" | ||
21 | |||
22 | PR = "r0" | ||
23 | |||
24 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
25 | |||
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
27 | |||
28 | DEVICE_NAME = "" | ||
29 | DEVICE_NAME:append:am57xx-evm = "am57xx" | ||
30 | DEVICE_NAME:append:ti33x = "am33xx" | ||
31 | DEVICE_NAME:append:ti43x = "am43xx" | ||
32 | |||
33 | EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}" | ||
34 | |||
35 | do_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 @@ | |||
1 | DESCRIPTION = "TI Vision Library (VLIB) for C66x" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI-TSPA & BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin" | ||
13 | |||
14 | S = "${WORKDIR}/vlib_c66x_${PV}" | ||
15 | |||
16 | BINFILE="vlib_c66x_obj_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS="" | ||
19 | |||
20 | do_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 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | INSANE_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 @@ | |||
1 | require vlib-c66x.inc | ||
2 | |||
3 | PV = "3_2_1_0" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda" | ||
7 | |||
8 | SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7" | ||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais" | ||
3 | LICENSE = "GPLv2" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/xdais_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball" | ||
12 | |||
13 | do_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 | |||
19 | INHIBIT_PACKAGE_STRIP = "1" | ||
20 | INHIBIT_SYSROOT_STRIP = "1" | ||
21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
22 | INSANE_SKIP:${PN}-dev = "arch" | ||
23 | |||
24 | ALLOW_EMPTY:${PN} = "1" | ||
25 | FILES:${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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "6_26_01_03" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6" | ||
9 | SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d" | ||
10 | |||
11 | INSANE_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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "7_24_00_04" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989" | ||
9 | SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1" | ||