summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-ti
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:45 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:38 -0600
commit20f3191aeb592dd889eeaf96a31526297de95306 (patch)
treeaec879b9855ff8a54df171ee808e30ac26f1c80b /meta-ti-bsp/recipes-ti
parentbea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff)
downloadmeta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-ti')
-rw-r--r--meta-ti-bsp/recipes-ti/README1
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb26
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh14
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service11
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh22
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb21
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb60
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules1
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh46
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh10
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh4
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service11
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service11
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf5
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules2
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service12
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh37
-rw-r--r--meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc28
-rw-r--r--meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb16
-rw-r--r--meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb29
-rw-r--r--meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb38
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb29
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb40
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb44
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc24
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb46
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb107
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc70
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc5
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc10
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb10
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb6
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib.inc78
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc21
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc34
-rw-r--r--meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc15
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-paths.inc109
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-staging.inc6
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-unpack.inc83
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc12
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch40
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc31
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb44
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc73
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb101
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc20
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch112
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf1
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service9
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh25
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb63
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch38
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb13
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc18
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb7
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb5
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb5
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib.inc77
-rw-r--r--meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb62
-rw-r--r--meta-ti-bsp/recipes-ti/osal/ti-osal.inc24
-rw-r--r--meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/swtools/swtools_git.bb52
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty1
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb276
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb47
-rw-r--r--meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb38
-rw-r--r--meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc32
-rw-r--r--meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc25
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb11
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb9
80 files changed, 2629 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-ti/README b/meta-ti-bsp/recipes-ti/README
new file mode 100644
index 00000000..b32c2842
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/README
@@ -0,0 +1 @@
Note: some of the packages in this area are not actively maintained.
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb
new file mode 100644
index 00000000..ceefe0d6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "Userspace setup for beaglebone capes"
2
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5
6PR = "r4"
7
8inherit allarch
9
10SRC_URI = "file://cape.service \
11 file://cape.sh \
12 file://cape-stop.sh \
13 "
14
15do_install() {
16 install -d ${D}${base_libdir}/systemd/system/
17 install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system
18
19 install -d ${D}${base_libdir}/systemd/system/basic.target.wants
20 ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/
21
22 install -d ${D}${bindir}
23 install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
24}
25
26FILES:${PN} += "${base_libdir}/systemd/system"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh
new file mode 100755
index 00000000..222a010d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh
@@ -0,0 +1,14 @@
1#!/bin/sh
2for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
3 PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
4 case $PARTNUMBER in
5 "BB-BONE-LCD3-01.")
6 echo "Turning off backlight for LCD3 cape"
7 i2cset -f -y 1 0x24 0x07 0x00;;
8 "BB-BONE-LCD4"*)
9 echo "Turning off backlight for LCD4 cape"
10 i2cset -f -y 1 0x24 0x07 0x00;;
11 *)
12 echo "unknown cape: $PARTNUMBER";;
13 esac
14done
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service
new file mode 100644
index 00000000..ce0db719
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Beaglebone cape support
3
4[Service]
5Type=oneshot
6RemainAfterExit=yes
7ExecStart=/usr/bin/cape.sh
8ExecStop=/usr/bin/cape-stop.sh
9
10[Install]
11WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh
new file mode 100755
index 00000000..c279349d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh
@@ -0,0 +1,22 @@
1#!/bin/sh
2for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
3 PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
4 case $PARTNUMBER in
5 "BB-BONE-LCD3-01.")
6 echo "Turning on backlight for LCD3 cape"
7 i2cset -f -y 1 0x24 0x07 0x09
8 i2cset -f -y 1 0x24 0x08 0x60;;
9 "BB-BONE-LCD4"*)
10 echo "Turning on backlight for LCD4 cape"
11 i2cset -f -y 1 0x24 0x07 0x09
12 i2cset -f -y 1 0x24 0x08 0x60;;
13 "BB-BONE-WTHR-01.")
14 echo "Initializing I2C devices"
15 echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device
16 echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device
17 echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device
18 echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;;
19 *)
20 echo "unknown cape: $PARTNUMBER";;
21 esac
22done
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb
new file mode 100644
index 00000000..25538ace
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb
@@ -0,0 +1,21 @@
1SUMMARY = "BeagleBone Getting Started Guide"
2
3PR = "r22"
4
5inherit allarch
6
7LICENSE = "CC-BY-SA-3.0 & GPLv3+ & MIT & PD"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa"
9
10SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5"
11SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master"
12
13S = "${WORKDIR}/git"
14
15do_install() {
16 install -d ${D}${datadir}/${PN}
17 cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN}
18}
19
20FILES:${PN} += "${datadir}/${PN}"
21INSANE_SKIP:${PN} = "file-rdeps"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb
new file mode 100644
index 00000000..3ab00ec3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb
@@ -0,0 +1,60 @@
1DESCRIPTION = "Units to initialize usb gadgets"
2
3PR = "r19"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
7
8COMPATIBLE_MACHINE = "(ti33x)"
9PACKAGE_ARCH = "${MACHINE_ARCH}"
10
11SRC_URI = "file://storage-gadget-init.service \
12 file://network-gadget-init.service \
13 file://udhcpd.service \
14 file://udhcpd.conf \
15 file://bone-gmass-eject.rules \
16 file://udhcpd.rules \
17 file://g-storage-reinsert.sh \
18 file://g-ether-start-service.sh \
19 file://g-ether-load.sh \
20 file://update-image-info-on-mmcblk0p1.sh \
21 "
22
23do_install() {
24 install -d ${D}${base_libdir}/systemd/system/basic.target.wants
25 install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
26
27 for i in ${WORKDIR}/storage-gadget-init.service ; do
28 install -m 0644 $i ${D}${base_libdir}/systemd/system
29 ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
30 done
31
32 install -d ${D}${sysconfdir}/udev/rules.d
33 install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
34 install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
35
36 install -d ${D}${bindir}
37 install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
38}
39
40PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"
41
42ALLOW_EMPTY:${PN} = "1"
43
44FILES:${PN}-storage = "${base_libdir}/systemd/system/storage-gadget-init.service \
45 ${base_libdir}/systemd/system/basic.target.wants/storage-gadget-init.service \
46 ${bindir}/g-storage-reinsert.sh \
47 ${bindir}/update-image-info-on-mmcblk0p1.sh \
48 ${sysconfdir}/udev/rules.d/bone-gmass-eject.rules"
49
50FILES:${PN}-network = "${base_libdir}/systemd/system/network-gadget-init.service \
51 ${base_libdir}/systemd/system/basic.target.wants/network-gadget-init.service \
52 ${bindir}/g-ether-load.sh \
53 ${bindir}/g-ether-start-service.sh \
54 ${sysconfdir}/udev/rules.d/udhcpd.rules"
55
56FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \
57 ${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \
58 ${sysconfdir}/udhcpd.conf"
59
60RRECOMMENDS:${PN} = "${PN}-storage ${PN}-network ${PN}-udhcpd"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules
new file mode 100644
index 00000000..ee6f93e2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules
@@ -0,0 +1 @@
SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh
new file mode 100755
index 00000000..f9400649
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh
@@ -0,0 +1,46 @@
1#!/bin/sh
2
3function get_devmem()
4{
5 /usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2
6}
7
8function hex_to_mac_addr()
9{
10 addr=$1
11 n=0
12 mac_addr=$(echo ${addr} | while read -r -n2 c; do
13 if [ ! -z "$c" ]; then
14 if [ $n -ne 0 ] ; then
15 echo -n ":${c}"
16 else
17 echo -n "${c}"
18 fi
19 fi
20 n=$(($n+1))
21 done)
22 echo ${mac_addr}
23}
24
25function reverse_bytes()
26{
27 addr=$1
28 New_addr=$(echo ${addr} | while read -r -n2 c; do
29 if [ ! -z "$c" ]; then
30 New_addr=${c}${New_addr}
31 else echo
32 echo ${New_addr}
33 fi
34 done)
35 echo ${New_addr}
36}
37
38DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
39DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})
40
41DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C)
42DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI})
43
44DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}")
45
46modprobe g_ether host_addr=${DEV_ADDR}
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh
new file mode 100755
index 00000000..6e73b155
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh
@@ -0,0 +1,10 @@
1#!/bin/sh
2if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ]
3then
4 x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file)
5 if [ -z "$x" ]
6 then
7 /bin/systemctl stop storage-gadget-init.service
8 /bin/systemctl start network-gadget-init.service
9 fi
10fi
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh
new file mode 100755
index 00000000..d358640a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh
@@ -0,0 +1,4 @@
1#!/bin/sh
2/bin/systemctl stop storage-gadget-init.service
3/bin/systemctl stop network-gadget-init.service
4/bin/systemctl start storage-gadget-init.service
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
new file mode 100644
index 00000000..0ee29147
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Start USB Ethernet gadget
3Conflicts=storage-gadget-init.service
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/usr/bin/g-ether-load.sh
8ExecStop=/sbin/rmmod g_ether
9
10[Install]
11WantedBy=gether.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service
new file mode 100644
index 00000000..9a8513e8
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Start usb mass storage gadget
3After=dev-mmcblk0p1.device
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
8ExecStop=/sbin/rmmod g_mass_storage
9
10[Install]
11WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf
new file mode 100644
index 00000000..3bcf00f0
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf
@@ -0,0 +1,5 @@
1start 192.168.7.1
2end 192.168.7.1
3interface usb0
4max_leases 1
5option subnet 255.255.255.252
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules
new file mode 100644
index 00000000..db65f9ac
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules
@@ -0,0 +1,2 @@
1SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252",RUN+="/bin/systemctl start udhcpd.service"
2SUBSYSTEM=="net",ACTION=="remove",KERNEL=="usb0",RUN+="/bin/systemctl stop udhcpd.service"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service
new file mode 100644
index 00000000..1f4ac688
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=DHCP server for USB0 network gadget
3After=dev-usb0.device
4Conflicts=storage-gadget-init.service
5
6[Service]
7ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf
8ExecStop=/bin/kill -TERM $MAINPID
9KillSignal=SIGINT
10
11[Install]
12WantedBy=gether.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
new file mode 100755
index 00000000..a4daf734
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
@@ -0,0 +1,37 @@
1#!/bin/sh
2mount /dev/mmcblk0p1 /mnt
3echo "Image info snapshot" > /mnt/info.txt
4
5echo >> /mnt/info.txt
6echo "/etc/angstrom-version:" >> /mnt/info.txt
7cat /etc/angstrom-version >> /mnt/info.txt
8
9echo >> /mnt/info.txt
10echo "/proc/cpuinfo:" >> /mnt/info.txt
11cat /proc/cpuinfo >> /mnt/info.txt
12
13echo >> /mnt/info.txt
14echo "uname -a:" >> /mnt/info.txt
15uname -a >> /mnt/info.txt
16
17echo >> /mnt/info.txt
18echo "/proc/cmdline:" >> /mnt/info.txt
19cat /proc/cmdline >> /mnt/info.txt
20
21echo >> /mnt/info.txt
22echo "ifconfig:" >> /mnt/info.txt
23ifconfig >> /mnt/info.txt
24
25echo >> /mnt/info.txt
26echo "/etc/angstrom-build-info:" >> /mnt/info.txt
27cat /etc/angstrom-build-info >> /mnt/info.txt
28
29echo >> /mnt/info.txt
30echo "/etc/image-version-info:" >> /mnt/info.txt
31cat /etc/image-version-info >> /mnt/info.txt
32
33echo >> /mnt/info.txt
34echo "opkg list-installed:" >> /mnt/info.txt
35opkg list-installed >> /mnt/info.txt
36
37umount /mnt
diff --git a/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc b/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc
new file mode 100644
index 00000000..0009dfcc
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc
@@ -0,0 +1,28 @@
1DESCRIPTION = "TI SYS/BIOS v6 Kernel"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10S = "${WORKDIR}/bios_${PV}"
11
12SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin"
13BINFILE="bios_${PV}.bin"
14TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
15
16do_install() {
17 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
18 install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
19 cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
20}
21
22ALLOW_EMPTY:${PN} = "1"
23FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}"
24
25INHIBIT_PACKAGE_STRIP = "1"
26INHIBIT_SYSROOT_STRIP = "1"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28INSANE_SKIP:${PN}-dev = "arch ldflags staticdev file-rdeps"
diff --git a/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb b/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
new file mode 100644
index 00000000..d242510f
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
@@ -0,0 +1,16 @@
1require recipes-ti/bios/ti-sysbios.inc
2
3PE = "1"
4PV = "6_76_03_01"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1"
8
9SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9"
10SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a"
11
12TI_BIN_UNPK_CMDS = ""
13TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
14
15BINFILE = "bios_${PV}.run"
16SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin"
diff --git a/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb b/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
new file mode 100644
index 00000000..5851b899
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Codec Engine for TI ARM/DSP processors"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9PV = "3_24_00_08"
10PR = "r0"
11
12LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7"
13
14SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b"
15SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1"
16
17S = "${WORKDIR}/codec_engine_${PV}"
18
19SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV},lite.tar.gz;name=cetarball "
20
21do_install() {
22 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
23 # Install/Stage the Source Tree
24 install -d ${D}${CE_INSTALL_DIR_RECIPE}
25 cp ${CP_ARGS} ${S}/* ${D}${CE_INSTALL_DIR_RECIPE}
26}
27
28ALLOW_EMPTY:${PN} = "1"
29FILES:${PN}-dev += "${CE_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb b/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb
new file mode 100644
index 00000000..c15ab229
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb
@@ -0,0 +1,38 @@
1SUMMARY = "TI Emulation CTools AET library"
2DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores"
3
4LICENSE = "BSD"
5
6PV = "4.19.0.0"
7
8LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd"
9
10SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build"
11SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31"
12
13DEPENDS = "ti-cgt6x-native"
14PR = "r0"
15
16S = "${WORKDIR}/git/aet"
17
18DEVICE=""
19DEVICE:dra7xx = "DRA7xx"
20
21EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include"
22
23do_install() {
24 install -d ${D}${datadir}/ti/ctoolslib/aet
25 install -d ${D}${datadir}/ti/ctoolslib/aet/include
26 install -d ${D}${datadir}/ti/ctoolslib/aet/lib
27 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${S}/include/* ${D}${datadir}/ti/ctoolslib/aet/include/
28 install -m 0644 ${S}/build/c66/libaet.ae66 ${D}${datadir}/ti/ctoolslib/aet/lib/
29}
30
31COMPATIBLE_MACHINE = "dra7xx"
32PACKAGE_ARCH = "${MACHINE_ARCH}"
33
34FILES:${PN}-dev += "\
35 ${datadir}/ti/ctoolslib/aet \
36"
37
38ALLOW_EMPTY:${PN} = "1"
diff --git a/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb b/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
new file mode 100644
index 00000000..e0feb02c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Baremetal GCC for ARM"
2LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
3
4LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061"
5
6require recipes-ti/includes/ti-paths.inc
7
8SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2;name=gcc-arm-none"
9
10SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0"
11SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69"
12
13S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update"
14
15# only x86_64 is supported
16COMPATIBLE_HOST = "x86_64.*-linux"
17COMPATIBLE_HOST:class-target = "null"
18
19do_install() {
20 install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
21 cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
22}
23
24FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
25
26INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28
29BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
new file mode 100644
index 00000000..8e36be6d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
@@ -0,0 +1,40 @@
1DESCRIPTION = "TI CG_XML"
2HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8require recipes-ti/includes/ti-unpack.inc
9
10PV = "2.61.00"
11PE = "1"
12S = "${WORKDIR}/cg_xml_${PV}"
13
14SRC_URI = "\
15 http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/cg_xml_v${@'${PV}'.replace('.','_')}/cgxml-${PV}-linux-installer.run;name=cgxmlbin_linux \
16"
17LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684"
18
19SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff"
20SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9"
21
22BINFILE="cgxml-${PV}-linux-installer.run"
23TI_BIN_UNPK_CMDS=""
24TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended"
25
26do_install() {
27 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
28 install -d ${D}${CG_XML_INSTALL_DIR_RECIPE}
29 cp ${CP_ARGS} ${S}/* ${D}${CG_XML_INSTALL_DIR_RECIPE}
30}
31
32FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}"
33
34INSANE_SKIP:${PN} = "arch ldflags file-rdeps"
35
36INHIBIT_PACKAGE_STRIP = "1"
37INHIBIT_SYSROOT_STRIP = "1"
38INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
39
40BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
new file mode 100644
index 00000000..b7b6d9b1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
@@ -0,0 +1,44 @@
1SUMMARY = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108"
6
7require recipes-ti/includes/ti-unpack.inc
8require recipes-ti/includes/ti-staging.inc
9require recipes-ti/includes/ti-paths.inc
10
11S = "${WORKDIR}/ti-cgt-arm-${PV}"
12
13PE = "1"
14PR = "r0"
15
16SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
17
18BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
19TI_BIN_UNPK_ARGS = "--prefix ${S}"
20TI_BIN_UNPK_CMDS = ""
21
22# only x86_64 is supported
23COMPATIBLE_HOST = "x86_64.*-linux"
24COMPATIBLE_HOST:class-target = "null"
25
26do_install() {
27 install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
28 cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
29}
30
31SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b"
32SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4"
33
34BINFILE_NAME = "cgt_arm_installer"
35
36FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
37
38INHIBIT_PACKAGE_STRIP = "1"
39INHIBIT_SYSROOT_STRIP = "1"
40INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
41
42INSANE_SKIP:${PN} += "arch staticdev file-rdeps"
43
44BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
new file mode 100644
index 00000000..8b3e2a07
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI PRU Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
7
8require recipes-ti/includes/ti-paths.inc
9require recipes-ti/includes/ti-unpack.inc
10
11BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin"
12BINFILE_NAME = "cgt-pru-x86"
13TI_BIN_UNPK_ARGS = "--prefix ${S}"
14TI_BIN_UNPK_CMDS = ""
15
16BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh"
17BINFILE_NAME:class-target = "cgt-pru-arm"
18
19SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}"
20
21SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0"
22SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a"
23
24SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58"
25SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c"
26
27do_install() {
28 install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
29 cp -r ${S}/ti-cgt-pru_${PV}/. \
30 ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
31}
32
33do_install:class-target() {
34 ${WORKDIR}/${BINFILE} --prefix ${D}
35}
36
37FILES:${PN} += "${datadir}/ti/*"
38
39FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \
40 ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \
41"
42
43INHIBIT_PACKAGE_STRIP = "1"
44INHIBIT_SYSROOT_STRIP = "1"
45INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
46
47INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc
new file mode 100644
index 00000000..f0992aa7
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm"
3SECTION = "devel"
4LICENSE = "TI"
5
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
7
8require ../includes/ti-paths.inc
9require ../includes/ti-staging.inc
10require ../includes/ti-eula-unpack.inc
11
12S = "${WORKDIR}/cgt470_${PV}"
13
14SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
15
16BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin"
17TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
18TI_BIN_UNPK_WDEXT="/cgt470_${PV}"
19
20do_install() {
21 install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
22 cp -pPrf ${S}/* ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
23}
24
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb
new file mode 100644
index 00000000..6ff2cc48
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb
@@ -0,0 +1,8 @@
1require ti-cgt470.inc
2
3PV = "4_6_6"
4PVwithdots = "4.6.6"
5
6SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b"
7SRC_URI[cgt470bin.sha256sum] = "a17bc7139f450672503c932ef53b00c425522890e031b4a7c9135fdf90815740"
8
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
new file mode 100644
index 00000000..a7de8e38
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
@@ -0,0 +1,46 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C6000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8
9HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
10LICENSE = "TI-TSPA"
11
12LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
13
14S = "${WORKDIR}/c6000_7.4.16"
15
16require recipes-ti/includes/ti-paths.inc
17require recipes-ti/includes/ti-unpack.inc
18
19BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
20BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
21TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
22TI_BIN_UNPK_CMDS=""
23
24SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
25
26SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
27SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
28
29# only x86_64 is supported
30COMPATIBLE_HOST = "x86_64.*-linux"
31COMPATIBLE_HOST:class-target = "null"
32
33do_install() {
34 install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
35 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
36}
37
38FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
39
40INSANE_SKIP:${PN} += "arch staticdev textrel"
41
42INHIBIT_PACKAGE_STRIP = "1"
43INHIBIT_SYSROOT_STRIP = "1"
44INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
45
46BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
new file mode 100644
index 00000000..fd34657a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
@@ -0,0 +1,107 @@
1DESCRIPTION = "TI DSP Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
7
8PE = "1"
9
10require recipes-ti/includes/ti-unpack.inc
11
12COMPATIBLE_HOST:class-target = "arm.*-linux"
13
14# For now we only have hardfp version for target class
15python __anonymous() {
16 c = d.getVar("CLASSOVERRIDE")
17
18 if c == "class-target":
19 tunes = d.getVar("TUNE_FEATURES")
20 if not tunes:
21 return
22 pkgn = d.getVar("PN")
23 pkgv = d.getVar("PV")
24 if "callconvention-hard" not in tunes:
25 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
26 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
27}
28
29BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
30BINFILE_NAME = "cgt6x_x86_installer"
31TI_BIN_UNPK_ARGS = "--prefix ${S}"
32TI_BIN_UNPK_CMDS = ""
33
34BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
35BINFILE_NAME:class-target = "cgt6x_arm_installer"
36
37SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}"
38
39SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161"
40SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6"
41
42SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9"
43SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f"
44
45do_install() {
46 install -d ${D}${bindir}
47 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
48 install -m 755 ${binfile} ${D}${bindir}
49 done
50
51 install -d ${D}${datadir}/ti/cgt-c6x/bin
52 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
53 install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin
54 done
55
56 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
57 cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include
58
59 install -d ${D}${datadir}/ti/cgt-c6x/lib
60 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
61 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
62 done
63
64 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
65 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
66 done
67
68 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
69 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
70 done
71
72 install -d ${D}${datadir}/man/man1
73 for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
74 if [ -e ${manfile} ]; then
75 install -m 644 ${manfile} ${D}${datadir}/man/man1
76 fi
77 done
78
79 install -d ${D}${datadir}/doc/ti/cgt-c6x
80 for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
81 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
82 done
83
84 for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do
85 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
86 done
87
88 for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
89 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
90 done
91
92}
93
94do_install:class-target() {
95 ${WORKDIR}/${BINFILE} --prefix ${D}
96}
97
98FILES:${PN} += "${datadir}/ti/*"
99
100FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug"
101
102INSANE_SKIP:${PN} += "staticdev"
103INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a"
104
105BBCLASSEXTEND = "native nativesdk"
106
107COMPATIBLE_MACHINE:class-target = "(ti-soc)"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
new file mode 100644
index 00000000..b45b52a3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
@@ -0,0 +1,49 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C7000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
9LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
10
11LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64"
12
13require recipes-ti/includes/ti-unpack.inc
14require recipes-ti/includes/ti-paths.inc
15
16# only x86_64 is supported
17COMPATIBLE_HOST = "x86_64.*-linux"
18COMPATIBLE_HOST:class-target = "null"
19
20PE = "1"
21
22BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin"
23BINFILE_NAME = "cgt7x_x86_installer"
24
25SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}"
26
27TI_BIN_UNPK_ARGS = "--prefix ${S}"
28TI_BIN_UNPK_CMDS = ""
29
30SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb"
31SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5"
32
33S = "${WORKDIR}/c7000_${PV}"
34
35do_install() {
36 install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
37 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
38}
39
40
41FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}"
42
43INSANE_SKIP:${PN} += "arch staticdev textrel"
44
45INHIBIT_PACKAGE_STRIP = "1"
46INHIBIT_SYSROOT_STRIP = "1"
47INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc
new file mode 100644
index 00000000..3caf7b8d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc
@@ -0,0 +1,70 @@
1DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc"
3SECTION = "devel"
4LICENSE = "BSD & GPLv2"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9do_install() {
10 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
11
12 install -d ${D}${XDC_INSTALL_DIR_RECIPE}
13 cp ${CP_ARGS} ${S}/* ${D}${XDC_INSTALL_DIR_RECIPE}
14}
15
16FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}"
17
18BBCLASSEXTEND = "native nativesdk"
19
20INHIBIT_PACKAGE_STRIP = "1"
21INHIBIT_SYSROOT_STRIP = "1"
22INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
23INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps"
24
25# Prevent internal libs from getting picked up
26PRIVATE_LIBS = " \
27libncdb.so \
28libcdb.so \
29libjavaplugin_oji.so \
30libjavaplugin_jni.so \
31libjsound.so \
32libinstrument.so \
33libjawt.so \
34libzip.so \
35libjava_crw_demo.so \
36libjavaplugin_nscp_gcc29.so \
37libhprof.so \
38libcmm.so \
39libjdwp.so \
40libmlib_image.so \
41libjpeg.so \
42libverify.so \
43libjavaplugin_nscp.so \
44libmanagement.so \
45libunpack.so \
46librmi.so \
47libJdbcOdbc.so \
48libawt.so \
49libnet.so \
50libjaas_unix.so \
51libnio.so \
52libdcpr.so \
53libioser12.so \
54libjsoundalsa.so \
55libjava.so \
56libfontmanager.so \
57libdt_socket.so \
58libmawt.so \
59libjvm.so \
60libhpi.so \
61lib.so \
62libcairo.so.2 \
63libjli.so \
64libawt_xawt.so \
65"
66
67COMPATIBLE_HOST ?= "null"
68COMPATIBLE_HOST:ti-soc = "(.*)"
69COMPATIBLE_HOST:class-native = "(.*)"
70COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc
new file mode 100644
index 00000000..47f73b6d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc
@@ -0,0 +1,5 @@
1require ti-xdctools-common.inc
2
3S = "${WORKDIR}/xdctools_${PV}_core"
4
5SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdccore/xdctools_${PV}_core_linux.zip;name=xdczip"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc
new file mode 100644
index 00000000..1415f83e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc
@@ -0,0 +1,10 @@
1require ti-xdctools-common.inc
2require ../includes/ti-eula-unpack.inc
3
4S = "${WORKDIR}/xdctools_${PV}"
5
6SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin"
7
8BINFILE="xdctools_setuplinux_${PV}.bin"
9TI_BIN_UNPK_CMDS="Y:workdir:Y"
10TI_BIN_UNPK_WDEXT="/ti"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
new file mode 100644
index 00000000..6c3fdeb2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
@@ -0,0 +1,10 @@
1require recipes-ti/devtools/ti-xdctools-core.inc
2
3PE = "1"
4PV = "3_55_02_22"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8"
8
9SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f"
10SRC_URI[xdczip.sha256sum] = "bf90dfbbe298458c736d81d5631db25b335e79146923a4a50fab217e02723e7b"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 00000000..1550a538
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
@@ -0,0 +1,6 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c64Px"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
new file mode 100644
index 00000000..b28d8df6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c66x"
7
8DEPENDS += "mathlib-c66x"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 00000000..47974ea1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c674x"
7
8DEPENDS += "mathlib-c674x"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 00000000..85d79ae3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,78 @@
1SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_4_0_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19DSPLIB_GIT_BRANCH = "master"
20DSPLIB_GIT_PROTOCOL = "git"
21DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git"
22DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161"
23
24SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}"
25SRCREV = "${DSPLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
28
29export DSPLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36export INCDIR="${MATHLIB_INSTALL_DIR}/"
37
38PATH:append = ":${XDC_INSTALL_DIR}"
39
40XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
41XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
42
43export XDCPATH
44
45DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
46
47do_compile() {
48 cd ${DSPLIB_WORK_DIR}/ti/dsplib;
49 xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
50}
51
52do_install() {
53 install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
54
55 find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
56 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE}
57 rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
58}
59
60inherit deploy
61addtask deploy before do_build after do_install
62
63do_deploy() {
64 install -d ${DEPLOYDIR}
65 # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
66 # and place the zip file in ${DEPLOYDIR}
67 mkdir ./${DSPLIB_PACKAGE_NAME}
68 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/. ./${DSPLIB_PACKAGE_NAME}
69 zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
70 rm -r ./${DSPLIB_PACKAGE_NAME}
71}
72
73ALLOW_EMPTY:${PN} = "1"
74FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
75
76INSANE_SKIP:${PN}-dev = "arch"
77COMPATIBLE_HOST ?= "null"
78COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc
new file mode 100644
index 00000000..e8b7c414
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc
@@ -0,0 +1,21 @@
1DESCRIPTION = "TI Framework Components"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7
8S = "${WORKDIR}/framework_components_${PV}"
9
10SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc/${PV}/exports/framework_components_${PV},lite.tar.gz;name=fctarball"
11
12do_install() {
13 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
14 install -d ${D}${FC_INSTALL_DIR_RECIPE}
15 cp ${CP_ARGS} ${S}/* ${D}${FC_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN} = "ldflags"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${FC_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
new file mode 100644
index 00000000..1ec10b15
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "2_26_00_01"
4PR = "r2"
5
6LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75"
7
8SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af"
9SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
new file mode 100644
index 00000000..56c00283
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "3_40_02_07"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a"
7
8SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e"
9SRC_URI[fctarball.sha256sum] = "69082a0f86d12c24b39a1293ec35cf8007b850479898d5ae485ec1e8cf2e8c72"
diff --git a/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc
new file mode 100644
index 00000000..ab5cbdb6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc
@@ -0,0 +1,34 @@
1DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs"
2HOMEPAGE = "http://www.ti.com/tool/sprc264"
3SECTION = "devel"
4LICENSE = "BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib"
13
14S = "${WORKDIR}/imglib-c66x-${PV}"
15
16BINFILE = "imglib_c66x_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS = ""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32
33RDEPENDS:${PN}-dev += "perl"
34INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
new file mode 100644
index 00000000..e614352c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
@@ -0,0 +1,9 @@
1require imglib-c66x.inc
2
3PV = "3_1_1_0"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667"
7
8SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca"
9SRC_URI[imglib.sha256sum] = "f3153e51530f26cfc638efca7ca6ae1bbaf7736daf287fc972592372a676ed21"
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc b/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc
new file mode 100644
index 00000000..ead06100
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc
@@ -0,0 +1,15 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http and display EULA.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
6# passed while unpacking the bin file. The keyword
7# workdir expands to WORKDIR and commands are appendded
8# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
9# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
10# the output in some internal directory
11
12require recipes-ti/includes/ti-unpack.inc
13
14TI_BIN_UNPK_ARGS = "--mode console"
15
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-paths.inc b/meta-ti-bsp/recipes-ti/includes/ti-paths.inc
new file mode 100644
index 00000000..358d7dfd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-paths.inc
@@ -0,0 +1,109 @@
1installdir = "${datadir}/ti"
2
3export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
4# This is where do_install will put it
5export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree"
6export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree"
7export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree"
8export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree"
9export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree"
10export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree"
11export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree"
12export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree"
13export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
14export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
15export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
16export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
17export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
18export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
19export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
20export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree"
21export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree"
22export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree"
23export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree"
24export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree"
25export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree"
26export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree"
27export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree"
28export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree"
29export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree"
30export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree"
31export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
32export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree"
33export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree"
34export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree"
35export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree"
36export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree"
37export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree"
38export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
39export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree"
40export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree"
41export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
42export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
43export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
44export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
45export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
46export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
47export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
48export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree"
49export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
50export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree"
51export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree"
52export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7"
53export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x"
54
55
56# This is where the tools will end up in sysroot
57export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
58export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}"
59export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}"
60export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}"
61export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}"
62export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}"
63export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}"
64export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}"
65export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}"
66export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}"
67export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
68export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}"
69export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}"
70export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}"
71export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}"
72export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}"
73export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}"
74export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}"
75export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}"
76export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}"
77export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}"
78export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
79export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}"
80export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}"
81export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}"
82export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}"
83export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}"
84export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}"
85export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
86export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
87export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
88export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
89export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
90export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
91export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
92export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
93export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
94export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
95export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
96export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
97export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
98export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
99export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
100export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}"
101export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}"
102export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}"
103
104
105DSPSUFFIX:omapl137 = "x674"
106DSPSUFFIX:omapl138 = "x674"
107DSPSUFFIX_ti816x = "xe674"
108DSPSUFFIX_ti814x = "xe674"
109DSPSUFFIX ?= "x64P"
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-staging.inc b/meta-ti-bsp/recipes-ti/includes/ti-staging.inc
new file mode 100644
index 00000000..f18d017c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-staging.inc
@@ -0,0 +1,6 @@
1INHIBIT_PACKAGE_STRIP = "1"
2
3ALLOW_EMPTY:${PN} = "1"
4ALLOW_EMPTY:${PN}-dev = "1"
5
6
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc b/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc
new file mode 100644
index 00000000..46bfb957
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc
@@ -0,0 +1,83 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
6# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
7# passed while unpacking the bin file. The keyword
8# workdir expands to WORKDIR and commands are appendded
9# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
10# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
11# the output in some internal directory
12
13python do_unpack () {
14 bb.build.exec_func('base_do_unpack', d)
15 bb.build.exec_func('ti_bin_do_unpack', d)
16}
17
18TI_BIN_UNPK_WDEXT ?= ""
19python ti_bin_do_unpack() {
20 import os
21
22 # InstallJammer requires 32bit version of glibc
23 if not os.path.exists('/lib/ld-linux.so.2'):
24 bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
25
26 localdata = bb.data.createCopy(d)
27 bb.data.update_data(localdata)
28
29 binfile = localdata.getVar('BINFILE')
30 binfile = bb.data.expand(binfile, localdata)
31
32 # Change to the working directory
33 save_cwd = os.getcwd()
34 workdir = localdata.getVar('WORKDIR')
35 workdir = bb.data.expand(workdir, localdata)
36 os.chdir(workdir)
37
38 # Get unpack args
39 arg_string = localdata.getVar('TI_BIN_UNPK_ARGS')
40 arg_string = bb.data.expand(arg_string, localdata)
41
42 # Get unpack commands
43 cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS')
44 cmd_list = cmd_string.split( ":" )
45
46 # Make the InstallJammer binary executable so we can run it
47 os.chmod(binfile, 0o755)
48
49 # Run the InstallJammer binary and accept the EULA
50 filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
51
52 # Test executable by printing installer version or help screen (--version currently broken for some installers)
53 # - this is currently broken in some IJ installers - comment out for now
54 #if os.system(filename + " --version") != 0:
55 # print "ERROR: ti-eula-unpack: failed to execute binary installer"
56 # raise bb.build.FuncFailed()
57
58 f = os.popen(filename,'w')
59 for cmd in cmd_list:
60 if cmd == "workdir":
61 wdext = localdata.getVar('TI_BIN_UNPK_WDEXT')
62 wdext = bb.data.expand(wdext, localdata)
63 cmd = workdir+wdext
64 f.write(cmd+'\n');
65 f.close()
66
67 # Expand the tarball that was created if required
68 tarfile = localdata.getVar('TARFILE')
69 if bool(tarfile) == True:
70 tarfile = bb.data.expand(tarfile, localdata)
71 tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
72 if os.system(tcmd) != 0:
73 print("ERROR: ti-eula-unpack: failed to extract tarfile")
74 raise bb.build.FuncFailed()
75
76 # Return to the previous directory
77 os.chdir(save_cwd)
78}
79
80COMPATIBLE_HOST ?= "null"
81COMPATIBLE_HOST:ti-soc = "(.*)"
82COMPATIBLE_HOST:class-native = "(.*)"
83COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc
new file mode 100644
index 00000000..4962a3ec
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc
@@ -0,0 +1,12 @@
1PV = "3.51.00.00"
2INC_PR = "r0"
3
4PACKAGE_ARCH = "${MACHINE_ARCH}"
5COMPATIBLE_HOST ?= "null"
6COMPATIBLE_HOST:ti-soc = "(.*)"
7
8PLATFORM = "UNKNOWN"
9PLATFORM:dra7xx = "DRA7XX"
10PLATFORM:omapl138 = "OMAPL138"
11
12ALT_PLATFORM:am57xx-evm = "AM572X AM571X"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch b/meta-ti-bsp/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-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
@@ -0,0 +1,40 @@
1From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denis@denix.org>
3Date: Mon, 29 Mar 2021 19:42:00 -0400
4Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in
5 glibc
6
7Use strerror() instead.
8
9Upstream-Status: Pending
10
11Signed-off-by: Denys Dmytriyenko <denis@denix.org>
12---
13 src/examples/templates/ex46_graph/manager/ClusterMgr.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
17index 19216c9..a1fa679 100644
18--- a/src/examples/templates/ex46_graph/manager/ClusterMgr.c
19+++ b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
20@@ -714,7 +714,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
21 pid = fork();
22
23 if (pid == -1) {
24- LOG "CM_system: fork error: %s\n", sys_errlist[errno] LOGF
25+ LOG "CM_system: fork error: %s\n", strerror(errno) LOGF
26 status = -1;
27 goto leave;
28 }
29@@ -739,7 +739,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
30 else {
31 /* overlay a new executable */
32 execvp(argv[0], argv);
33- LOG "CM_system: execvp error: %s\n", sys_errlist[errno] LOGF
34+ LOG "CM_system: execvp error: %s\n", strerror(errno) LOGF
35 status = -1;
36 }
37
38--
392.7.4
40
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
new file mode 100644
index 00000000..81706592
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios"
2require ti-ipc-examples.inc
3
4SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples"
5
6DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
7
8do_compile:append() {
9
10 if [ "${PLATFORM}" != "UNKNOWN" ]; then
11 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
12
13 if [ ! -z ${ALT_PLATFORM} ]; then
14 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \
15 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
16 fi
17 oe_runmake -C examples all HOSTOS="linux" \
18 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
20
21 if [ ! -z ${ALT_PLATFORM} ]; then
22 oe_runmake -C examples all HOSTOS="linux" \
23 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
24 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
25 PLATFORM="${ALT_PLATFORM}"
26 fi
27 fi
28}
29
30do_install:append() {
31 cd ${S_ipc-examples}/src
32
33 if [ "${PLATFORM}" != "UNKNOWN" ]; then
34 # Install directory for linux examples
35 install -d ${D}${bindir}/ipc/examples
36 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
37 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
38 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples"
39
40 if [ ! -z ${ALT_PLATFORM} ]; then
41 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
42 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
43 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \
44 PLATFORM="${ALT_PLATFORM}"
45 fi
46 fi
47}
48
49FILES:${PN} += "${bindir}/*"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc
new file mode 100644
index 00000000..66cd5d32
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc
@@ -0,0 +1,31 @@
1HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC"
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a"
7
8INSANE_SKIP:${PN} += "arch"
9
10ALLOW_EMPTY:${PN} = "1"
11
12IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
13
14do_compile() {
15
16 cd ${S_ipc-examples}/src
17 oe_runmake .examples \
18 IPCTOOLS="${S_ipc-metadata}/src/etc"
19
20 for alt_platform in ${ALT_PLATFORM}; do
21 oe_runmake .examples "PLATFORM=${alt_platform}" \
22 IPCTOOLS="${S_ipc-metadata}/src/etc"
23 done
24}
25
26do_install() {
27 cd ${S_ipc-examples}/src
28 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
29}
30
31INHIBIT_PACKAGE_STRIP = "1"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb
new file mode 100644
index 00000000..bcc8674e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb
@@ -0,0 +1,44 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux"
2require ti-ipc-examples.inc
3
4DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
5
6do_compile:append() {
7
8 if [ "${PLATFORM}" != "UNKNOWN" ]; then
9 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
10
11 for alt_platform in ${ALT_PLATFORM}; do
12 oe_runmake extract PLATFORM="${alt_platform}" HOSTOS="bios" \
13 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
14 done
15 oe_runmake -C examples all HOSTOS="bios" \
16 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
17 for alt_platform in ${ALT_PLATFORM}; do
18 oe_runmake -C examples all HOSTOS="bios" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${alt_platform}"
20 done
21 fi
22}
23
24do_install:append() {
25 if [ "${PLATFORM}" != "UNKNOWN" ]; then
26 # Install directory for bios examples
27 install -d ${D}/ipc_${IPC_VERSION}/examples/bios
28 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
29 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
30 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
31 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
32
33 for alt_platform in ${ALT_PLATFORM}; do
34 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
35 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
36 PLATFORM="${alt_platform}"
37 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
38 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
39 PLATFORM="${alt_platform}"
40 done
41 fi
42}
43
44FILES:${PN} += "ipc_*"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc
new file mode 100644
index 00000000..56667ad1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc
@@ -0,0 +1,73 @@
1require recipes-ti/includes/ti-paths.inc
2
3TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git"
4TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples"
5TI_IPC_EXAMPLES_GIT_PROTOCOL = "git"
6TI_IPC_EXAMPLES_GIT_BRANCH = "master"
7TI_IPC_EXAMPLES_NAME = "ipc-examples"
8
9SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\
10destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\
11protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\
12branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\
13name=${TI_IPC_EXAMPLES_NAME}"
14
15TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git"
16TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata"
17TI_IPC_METADATA_GIT_PROTOCOL = "git"
18TI_IPC_METADATA_GIT_BRANCH = "master"
19TI_IPC_METADATA_NAME = "ipc-metadata"
20
21SRC_URI += "${TI_IPC_METADATA_GIT_URI};\
22destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\
23protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\
24branch=${TI_IPC_METADATA_GIT_BRANCH};\
25name=${TI_IPC_METADATA_NAME}"
26
27# Corresponds to tag: 3.51.00.00
28TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2"
29# Corresponds to tag: 3.51.00.00
30TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358"
31
32SRCREV_FORMAT = "default"
33SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}"
34SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}"
35
36S_ipc-examples = "${WORKDIR}/git/ipc-examples"
37S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
38
39RELEASE_TYPE = "GA"
40RELEASE_SUFFIX = ""
41
42PR = "${INC_PR}.r0"
43
44DEPENDS:append:omap-a15 = " ti-cgt6x-native \
45 ti-cgt-arm-native \
46 gcc-arm-baremetal-native \
47"
48DEPENDS:append:omapl138 = " ti-cgt6x-native \
49"
50
51IPC_TARGETS = ""
52
53IPC_TARGETS:omap-a15 = "\
54 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
55 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
56 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
57 ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
58"
59
60IPC_TARGETS:omapl138 = "\
61 ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
62"
63
64PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}"
65EXTRA_OEMAKE = "\
66 PLATFORM=${PLATFORM} \
67 XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
68 BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
69 ${IPC_TARGETS} \
70 ${PARALLEL_XDC} \
71 JAVA_TOOL_OPTIONS=-Xss2560k \
72"
73
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb
new file mode 100644
index 00000000..abef3195
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb
@@ -0,0 +1,101 @@
1require ti-ipc.inc
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native"
6
7PACKAGES =+ "${PN}-fw"
8FILES:${PN}-fw = "${base_libdir}/firmware/*"
9FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}"
10
11INSANE_SKIP:${PN}-fw += "arch"
12INSANE_SKIP:${PN}-dev += "arch"
13
14ALLOW_EMPTY:${PN} = "1"
15
16IPC_PACKAGE_DIR = "${S}/ipc-package"
17
18do_compile() {
19 oe_runmake -f ipc-bios.mak clean
20 oe_runmake -f ipc-bios.mak release
21
22 cd ${S_ipc-metadata}
23 oe_runmake .all-files IPC_INSTALL_DIR="${S}" \
24 BUILD_HOST_OS="linux" \
25 RELEASE_TYPE="${RELEASE_TYPE}"
26
27 cd ${S_ipc-examples}/src
28 oe_runmake .examples \
29 IPCTOOLS="${S_ipc-metadata}/src/etc"
30 for alt_platform in ${ALT_PLATFORM}; do
31 oe_runmake .examples \
32 IPCTOOLS="${S_ipc-metadata}/src/etc" \
33 PLATFORM=${alt_platform}
34 done
35
36 if [ "${PLATFORM}" != "UNKNOWN" ]; then
37 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}"
38 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}"
39
40 for alt_platform in ${ALT_PLATFORM}; do
41 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" IPC_INSTALL_DIR="${S}"
42 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" IPC_INSTALL_DIR="${S}"
43 done
44 fi
45
46 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
47 install -d ${IPC_PACKAGE_DIR}
48 # Copy docs and other meta files
49 cp -pPrf ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d ${IPC_PACKAGE_DIR}
50
51 # Copy example folders corresponding to the platforms
52 if [ "${PLATFORM}" != "UNKNOWN" ]; then
53 install -d ${IPC_PACKAGE_DIR}/examples
54 cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/
55 cp -pPf ${S_ipc-examples}/src/examples/makefile ${IPC_PACKAGE_DIR}/examples/
56 cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* ${IPC_PACKAGE_DIR}/examples/
57 for alt_platform in ${ALT_PLATFORM}; do
58 cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* ${IPC_PACKAGE_DIR}/examples/
59 done
60 find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {}
61 fi
62}
63
64do_install() {
65 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
66 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
67 # Copy docs and other meta files
68 install -d ${D}${IPC_INSTALL_DIR_RECIPE}
69 cp ${CP_ARGS} ${IPC_PACKAGE_DIR}/* -d ${D}${IPC_INSTALL_DIR_RECIPE}
70
71 install -d ${D}${base_libdir}/firmware/ipc
72 cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true
73}
74
75KFDSPNUM = "0"
76
77KFPLAT = ""
78
79ALTERNATIVE_PRIORITY = "5"
80
81pkg_postinst:${PN}-fw:omap-a15 () {
82 update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY}
83 update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY}
84 update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY}
85 update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY}
86}
87
88pkg_postrm:${PN}-fw:omap-a15 () {
89 update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66
90 update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66
91 update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4
92 update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4
93}
94
95pkg_postinst:${PN}-fw:omapl138 () {
96 update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY}
97}
98
99pkg_postrm:${PN}-fw:omapl138 () {
100 update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674
101}
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc
new file mode 100644
index 00000000..34278d4b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc
@@ -0,0 +1,20 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255"
6
7TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git"
8TI_IPC_GIT_PROTOCOL = "git"
9TI_IPC_GIT_BRANCH = "master"
10
11#Corresponds to 3.51.00.00A
12TI_IPC_SRCREV = "7a6e343a208d2849139b7272a67abc01db806e00"
13
14BRANCH = "${TI_IPC_GIT_BRANCH}"
15SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev"
16SRCREV = "${TI_IPC_SRCREV}"
17
18CFLAGS += "-fcommon"
19
20S = "${WORKDIR}/git"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch
new file mode 100644
index 00000000..71d5b2be
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch
@@ -0,0 +1,112 @@
1From c3ada6bf49e6fcf7bc49e5bf09754f384838ca6a Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Mon, 27 Jul 2015 11:51:52 -0400
4Subject: [PATCH] Add kernel build dir
5
6We build kernel outside of the source directory and the generated version.h
7file ends up being in a separate directory from the rest of kernel headers.
8Use another variable to point to the kernel build artifacts.
9
10Signed-off-by: Denys Dmytriyenko <denys@ti.com>
11
12---
13 configure.ac | 6 ++++++
14 ipc-linux.mak | 3 +++
15 linux/src/mm/Makefile.am | 2 +-
16 packages/ti/ipc/mm/MmRpc.c | 4 ++++
17 4 files changed, 14 insertions(+), 1 deletion(-)
18
19diff --git a/configure.ac b/configure.ac
20index 4d4a559..84ac78b 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -71,6 +71,7 @@ AC_SUBST([AM_LDFLAGS])
24 AC_ARG_VAR(PLATFORM, Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E' 'TCI6630' 'TCI6636' 'TCI6638' '66AK2G' 'DRA7XX' and 'AM65XX'. If not defined all platforms will be built.)
25 AC_ARG_VAR(CMEM_INSTALL_DIR, Installation path directory to the CMEM libraries)
26 AC_ARG_VAR(KERNEL_INSTALL_DIR, Installation path to the Linux kernel.)
27+AC_ARG_VAR(KERNEL_BUILD_DIR, Path to the Linux kernel build artifacts.)
28 AC_ARG_VAR(AF_RPMSG, Address Family used by the RPMSG driver)
29 AC_ARG_VAR(DRM_PREFIX, Installation location to the DRM library.)
30
31@@ -113,6 +114,7 @@ AS_IF([test "x$PLATFORM" = "x"], [CMEM_INSTALL_DIR=])
32 AC_SUBST([PLATFORM])
33 AC_SUBST([CMEM_INSTALL_DIR])
34 AC_SUBST([KERNEL_INSTALL_DIR])
35+AC_SUBST([KERNEL_BUILD_DIR])
36 AC_SUBST([AF_RPMSG])
37 AC_SUBST([DRM_PREFIX])
38
39@@ -130,6 +132,7 @@ AM_CONDITIONAL([AM65XX], [test "x$PLATFORM" = "xAM65XX"])
40 AM_CONDITIONAL([CMEM], [test "x$CMEM_INSTALL_DIR" != "x"])
41 AM_CONDITIONAL([KDIR], [test "x$KERNEL_INSTALL_DIR" != "x"])
42 AM_CONDITIONAL([KERNEL_INSTALL_DIR], [test -n "$KERNEL_INSTALL_DIR"])
43+AM_CONDITIONAL([KERNEL_BUILD_DIR], [test -n "$KERNEL_BUILD_DIR"])
44 AM_CONDITIONAL([DRM], [test "x$DRM_PREFIX" != "x"])
45 AM_CONDITIONAL([AF_RPMSG], [test -n "$AF_RPMSG"])
46
47@@ -160,6 +163,9 @@ You have configured to build for the '${PLATFORM}' platform
48 Your KERNEL installation directory is set to:
49 '${KERNEL_INSTALL_DIR}'
50
51+Your KERNEL build artifacts directory is set to:
52+ '${KERNEL_BUILD_DIR}'
53+
54 Your DRM installation directory is set to:
55 '${DRM_PREFIX}'
56
57diff --git a/ipc-linux.mak b/ipc-linux.mak
58index 58a9cea..4e543ff 100644
59--- a/ipc-linux.mak
60+++ b/ipc-linux.mak
61@@ -60,6 +60,7 @@ config:
62 PLATFORM=$(PLATFORM) \
63 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
64 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
65+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
66 DRM_PREFIX=$(DRM_PREFIX) \
67 AF_RPMSG=$(AF_RPMSG)
68
69@@ -72,6 +73,7 @@ config-static:
70 PLATFORM=$(PLATFORM) \
71 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
72 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
73+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
74 DRM_PREFIX=$(DRM_PREFIX) \
75 AF_RPMSG=$(AF_RPMSG)
76
77@@ -84,5 +86,6 @@ config-shared:
78 PLATFORM=$(PLATFORM) \
79 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
80 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
81+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
82 DRM_PREFIX=$(DRM_PREFIX) \
83 AF_RPMSG=$(AF_RPMSG)
84diff --git a/linux/src/mm/Makefile.am b/linux/src/mm/Makefile.am
85index 59aa312..8fb51a3 100644
86--- a/linux/src/mm/Makefile.am
87+++ b/linux/src/mm/Makefile.am
88@@ -32,7 +32,7 @@
89 ##
90
91 # additional include paths necessary to compile the library
92-AM_CFLAGS = -Wall @AM_CFLAGS@ -DKERNEL_INSTALL_DIR="$(KERNEL_INSTALL_DIR)"
93+AM_CFLAGS = -Wall @AM_CFLAGS@ -DKERNEL_INSTALL_DIR="$(KERNEL_INSTALL_DIR)" -DKERNEL_BUILD_DIR="$(KERNEL_BUILD_DIR)"
94
95 ###############################################################################
96 # THE LIBRARIES TO BUILD
97diff --git a/packages/ti/ipc/mm/MmRpc.c b/packages/ti/ipc/mm/MmRpc.c
98index 2df7420..797e100 100644
99--- a/packages/ti/ipc/mm/MmRpc.c
100+++ b/packages/ti/ipc/mm/MmRpc.c
101@@ -56,7 +56,11 @@
102 #endif
103
104 #define linux_version_include(kd) <kd/include/generated/uapi/linux/version.h>
105+#if defined(KERNEL_BUILD_DIR)
106+#include linux_version_include(KERNEL_BUILD_DIR)
107+#else
108 #include linux_version_include(KERNEL_INSTALL_DIR)
109+#endif
110
111 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)
112 #define linux_include(kd,m) <kd/include/linux/m.h>
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
new file mode 100644
index 00000000..6b5034cd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
@@ -0,0 +1 @@
softdep omap_remoteproc pre: virtio_rpmsg_bus
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service
new file mode 100644
index 00000000..ea26845e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=TI IPC Daemon
3
4[Service]
5Type=forking
6ExecStart=/usr/bin/__LAD_DAEMON__ -g -l lad.txt
7
8[Install]
9WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
new file mode 100644
index 00000000..9ebfa35a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
@@ -0,0 +1,25 @@
1#! /bin/sh
2
3tiipclad_daemon=/usr/bin/__LAD_DAEMON__
4tiipclad_params="-g -l lad.txt"
5
6test -x "$tiipclad_daemon" || exit 0
7
8case "$1" in
9 start)
10 echo -n "Starting tiipclad daemon"
11 start-stop-daemon --start --quiet \
12 --exec $tiipclad_daemon -- $tiipclad_params
13 echo "."
14 ;;
15 stop)
16 echo -n "Stopping tiipclad daemon"
17 start-stop-daemon --stop --quiet --pidfile /var/run/tiipclad.pid
18 echo "."
19 ;;
20 *)
21 echo "Usage: /etc/init.d/tiipclad-daemon.sh {start|stop}"
22 exit 1
23esac
24
25exit 0
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb
new file mode 100644
index 00000000..01b857c2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb
@@ -0,0 +1,63 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
3
4require ti-ipc.inc
5require ti-ipc-common.inc
6
7PR = "${INC_PR}.2"
8
9DEPENDS += "virtual/kernel"
10
11SRC_URI += "file://tiipclad-daemon.sh \
12 file://omap_remoteproc.conf \
13 file://tiipclad-daemon.service \
14 file://0001-Add-kernel-build-dir.patch \
15 "
16
17DAEMON = "UNKNOWN"
18DAEMON:dra7xx = "lad_dra7xx"
19DAEMON:omapl138 = "lad_omapl138"
20
21inherit autotools-brokensep pkgconfig update-rc.d systemd
22
23INITSCRIPT_NAME = "tiipclad-daemon.sh"
24INITSCRIPT_PARAMS = "defaults 10"
25
26SYSTEMD_SERVICE:${PN} = "tiipclad-daemon.service"
27
28EXTRA_OECONF += "PLATFORM=${PLATFORM} KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${STAGING_KERNEL_BUILDDIR}"
29
30do_compile[depends] += "virtual/kernel:do_shared_workdir"
31
32do_configure() {
33 ( cd ${S}; autoreconf -f -i -s )
34 oe_runconf
35}
36
37do_install:append() {
38 install -d ${D}${sysconfdir}/init.d/
39
40 # Modify the startup scripts to point to the right
41 # lad daemon executable.
42 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
43 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service
44
45 install -d ${D}${systemd_system_unitdir}
46 install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
47 install -d ${D}${sysconfdir}/init.d/
48 install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
49}
50
51do_install:append:dra7xx() {
52 install -d ${D}${sysconfdir}/modprobe.d/
53 install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
54}
55
56PACKAGES =+ "${PN}-test"
57RDEPENDS:${PN}-test += "${PN}"
58
59FILES:${PN}-test = " \
60 ${bindir}/NameServerApp \
61 ${bindir}/MessageQApp \
62 ${bindir}/MessageQMulti \
63 ${bindir}/ping_rpmsg"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch
new file mode 100644
index 00000000..71fca1b0
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch
@@ -0,0 +1,38 @@
1From 1a26cb577ba54dd9214eeb94fed0ce3a0f4603b6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 24 Oct 2020 23:46:39 -0700
4Subject: [PATCH] examples: Remove use of includedir and libdir
5
6These point to standard include and library paths which already are used
7from sysroot relative paths secondly, they use absolute paths which
8means we are asking to add -I/usr/include which might be ok in a native
9build but not in cross build. This helps mitigate QA errors found with
10OE build system since it finds it adding host include and library search
11paths to linker/compiler commandline
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 examples/Makefile.am | 5 +----
17 1 file changed, 1 insertion(+), 4 deletions(-)
18
19diff --git a/examples/Makefile.am b/examples/Makefile.am
20index 5a9bedb..d547e41 100644
21--- a/examples/Makefile.am
22+++ b/examples/Makefile.am
23@@ -1,6 +1,4 @@
24-INCLUDE = -I${includedir}
25-
26-AM_CFLAGS = -Wall -g -O2 $(INCLUDE)
27+AM_CFLAGS = -Wall -g -O2
28
29 bin_PROGRAMS = rpmsg_char_simple
30
31@@ -8,4 +6,3 @@ bin_PROGRAMS = rpmsg_char_simple
32 rpmsg_char_simple_SOURCES = rpmsg_char_simple.c
33 rpmsg_char_simple_CPPFLAGS = $(AM_CFLAGS)
34 rpmsg_char_simple_LDADD = -lpthread -lti_rpmsg_char
35-rpmsg_char_simple_LDFLAGS = -L${libdir}
36--
372.29.1
38
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
new file mode 100644
index 00000000..cbe4d7fd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
@@ -0,0 +1,13 @@
1SUMMARY = "TI RPMsg Char Sample Applications and Tests"
2
3require ti-rpmsg-char.inc
4
5SRC_URI += "file://0001-examples-Remove-use-of-includedir-and-libdir.patch"
6
7DEPENDS = "ti-rpmsg-char"
8
9inherit autotools pkgconfig
10
11EXTRA_OEMAKE = "-C ${B}/examples"
12
13PR = "r0"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc
new file mode 100644
index 00000000..140536e7
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc
@@ -0,0 +1,18 @@
1SUMMARY = "TI RPMsg Char Utility Library"
2
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
5
6PROTOCOL = "git"
7BRANCH = "master"
8SRC_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};"
9
10# Initial 0.3.1 release
11SRCREV = "0824546f61bda7715519841d9b9f0fb030ddfaf2"
12
13PV = "0.3.1+git${SRCPV}"
14
15S = "${WORKDIR}/git"
16
17COMPATIBLE_HOST ?= "null"
18COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb
new file mode 100644
index 00000000..63711a3b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb
@@ -0,0 +1,7 @@
1SUMMARY = "TI RPMsg Char Utility Library"
2
3require ti-rpmsg-char.inc
4
5inherit autotools pkgconfig
6
7PR = "r0"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb
new file mode 100644
index 00000000..22683855
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c66x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb
new file mode 100644
index 00000000..1654baf2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c674x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc b/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc
new file mode 100644
index 00000000..fe75c099
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc
@@ -0,0 +1,77 @@
1SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_1_2_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19MATHLIB_GIT_BRANCH = "master"
20MATHLIB_GIT_PROTOCOL = "git"
21MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git"
22MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951"
23
24SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}"
25SRCREV = "${MATHLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250"
28
29export MATHLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36
37PATH:append = ":${XDC_INSTALL_DIR}"
38
39XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
40XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};"
41
42export XDCPATH
43
44MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}"
45
46do_compile() {
47 cd ${MATHLIB_WORK_DIR}/ti/mathlib;
48 xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
49}
50
51do_install() {
52 install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE}
53
54 find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \;
55 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE}
56 rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib
57}
58
59inherit deploy
60addtask deploy before do_build after do_install
61
62do_deploy() {
63 install -d ${DEPLOYDIR}
64 # zip up files in ${D}${MATHLIB_INSTALL_DIR_RECIPE}
65 # and place the zip file in ${DEPLOYDIR}
66 mkdir ./${MATHLIB_PACKAGE_NAME}
67 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/. ./${MATHLIB_PACKAGE_NAME}
68 zip -9 -y -r -q ${DEPLOYDIR}/${MATHLIB_PACKAGE_NAME}.zip ./${MATHLIB_PACKAGE_NAME}
69 rm -r ./${MATHLIB_PACKAGE_NAME}
70}
71
72ALLOW_EMPTY:${PN} = "1"
73FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}"
74
75INSANE_SKIP:${PN}-dev = "arch"
76COMPATIBLE_HOST ?= "null"
77COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb b/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb
new file mode 100644
index 00000000..59a9635d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb
@@ -0,0 +1,62 @@
1DESCRIPTION = "TI OpenMP RTOS"
2HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
3LICENSE = "BSD"
4
5require recipes-ti/includes/ti-paths.inc
6
7inherit features_check
8
9REQUIRED_MACHINE_FEATURES = "dsp"
10REQUIRED_DISTRO_FEATURES = "openmp"
11
12PV = "2_06_03_00"
13PR = "r0"
14
15OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
16OPENMP_RTOS_GIT_PROTOCOL = "git"
17OPENMP_RTOS_GIT_BRANCH = "master"
18
19BRANCH = "${OPENMP_RTOS_GIT_BRANCH}"
20SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}"
21
22SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8"
23
24LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee"
25
26DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
27
28COMPATIBLE_MACHINE = "omap-a15"
29PACKAGE_ARCH = "${MACHINE_ARCH}"
30
31S = "${WORKDIR}/git"
32export IPC_DIR = "${IPC_INSTALL_DIR}"
33export XDC_DIR = "${XDC_INSTALL_DIR}"
34export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
35export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm"
36export C6636_PDK_DIR ="${PDK_INSTALL_DIR}"
37export AM572_PDK_DIR ="${PDK_INSTALL_DIR}"
38export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
39
40export BUILD_AM572 = "0"
41
42BUILD_AM572:omap-a15 = "1"
43
44RELEASE_TARGET = ""
45RELEASE_TARGET:omap-a15 = "am57xx"
46
47do_compile() {
48 make -f utils/product/Makefile .zipfile
49}
50
51do_install() {
52 install -d ${D}${OMP_INSTALL_DIR_RECIPE}
53 cp -r ${S}/exports/openmp_dsp_${RELEASE_TARGET}_*/. -d ${D}${OMP_INSTALL_DIR_RECIPE}
54}
55
56ALLOW_EMPTY:${PN} = "1"
57
58FILES:${PN}-dev += " \
59 ${OMP_INSTALL_DIR_RECIPE}/ \
60"
61
62INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-bsp/recipes-ti/osal/ti-osal.inc b/meta-ti-bsp/recipes-ti/osal/ti-osal.inc
new file mode 100644
index 00000000..dbd64f7b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/osal/ti-osal.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI Operating System Abstraction Library (OSAL)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal"
3LICENSE = "BSD & EPL-1.0"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/osal_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball"
12
13do_install() {
14 install -d ${D}${OSAL_INSTALL_DIR_RECIPE}
15 cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN}-dev = "staticdev"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}"
22
23COMPATIBLE_HOST ?= "null"
24COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb b/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb
new file mode 100644
index 00000000..226458be
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb
@@ -0,0 +1,9 @@
1require ti-osal.inc
2
3PV = "1_24_00_09"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4"
7
8SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b"
9SRC_URI[osaltarball.sha256sum] = "d14f1f43c8a7965e86add69bd813cea56ea7e38abeb55de3fdcdaf4a69f19bf3"
diff --git a/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb b/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb
new file mode 100644
index 00000000..d3b9a9b1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb
@@ -0,0 +1,52 @@
1SUMMARY = "TI Software Tools"
2HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools"
3SECTION = "devel"
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d"
6
7require ../includes/ti-paths.inc
8
9DEPENDS = "ti-cgt6x-native \
10 ti-sysbios \
11 ti-xdctools-native"
12
13PV = "5_0_8"
14PR = "r3"
15S = "${WORKDIR}/git"
16
17SWTOOLS_GIT_BRANCH = "master"
18SWTOOLS_GIT_PROTOCOL = "git"
19SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git"
20SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4"
21
22SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}"
23SRCREV = "${SWTOOLS_SRCREV}"
24
25
26export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
27export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
28export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
29
30PATH:append = ":${XDC_INSTALL_DIR}"
31
32XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
33
34export XDCPATH
35
36do_compile() {
37 cd ${S}/ti/mas/swtools
38 xdc
39}
40
41do_install() {
42 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
43 install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
44 cp ${CP_ARGS} ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
45}
46
47FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}"
48
49INSANE_SKIP:${PN}-dev = "arch staticdev"
50ALLOW_EMPTY:${PN} = "1"
51COMPATIBLE_HOST ?= "null"
52COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty b/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty
new file mode 100644
index 00000000..c6cac692
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty
@@ -0,0 +1 @@
empty
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
new file mode 100644
index 00000000..c0beb550
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -0,0 +1,276 @@
1SUMMARY = "TI RTOS prebuilt binary firmware images"
2
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a"
5
6COMPATIBLE_MACHINE = "k3"
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10INHIBIT_DEFAULT_DEPS = "1"
11
12inherit deploy
13inherit update-alternatives
14
15PLAT_SFX = ""
16PLAT_SFX:j7 = "j721e"
17PLAT_SFX:j7200-evm = "j7200"
18PLAT_SFX:j7200-hs-evm = "j7200"
19PLAT_SFX:am65xx = "am65xx"
20PLAT_SFX:am64xx = "am64xx"
21
22FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
23require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
24
25CORESDK_RTOS_VERSION ?= "08.00.00.26"
26PV = "${CORESDK_RTOS_VERSION}"
27
28CLEANBROKEN = "1"
29PR = "${INC_PR}.0"
30
31# Secure Build
32DEPENDS += "openssl-native"
33
34FILES:${PN} += "${base_libdir}"
35
36TI_SECURE_DEV_PKG ?= ""
37
38RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}"
39RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}"
40RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}"
41
42# For back-ward compatability keeping legacy firmware folder name
43# TODO: fix this in next version
44LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/"
45LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
46LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
47
48DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
49
50# J7 HS support
51do_install:prepend:j7-hs-evm() {
52 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
53 ( cd ${RTOS_DM_FW_DIR}; \
54 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
55 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
56 )
57}
58
59# J7 HS support
60do_install:prepend:j7200-hs-evm() {
61 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
62 ( cd ${RTOS_DM_FW_DIR}; \
63 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
64 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
65 )
66}
67
68# Update the am64xx ipc binaries to be consistent with other platforms
69do_install:prepend:am64xx() {
70 ( cd ${RTOS_IPC_FW_DIR}; \
71 mv am64-main-r5f0_0-fw ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f; \
72 mv am64-main-r5f0_1-fw ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f; \
73 mv am64-main-r5f1_0-fw ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f; \
74 mv am64-main-r5f1_1-fw ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f; \
75 mv am64-mcu-m4f0_0-fw ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f; \
76 )
77}
78
79#Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level
80do_install() {
81 :
82}
83
84do_install:j7() {
85 install -d ${LEGACY_IPC_FW_DIR}
86 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
87 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
88 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
89 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
90 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
91 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_1_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
92 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_2_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
93 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR}
94 # DM Firmware
95 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
96 # ETH firmware
97 install -d ${LEGACY_ETH_FW_DIR}
98 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
99}
100
101do_install:j7200-evm() {
102 install -d ${LEGACY_IPC_FW_DIR}
103 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
104 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
105 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
106 # DM Firmware
107 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
108 # ETH firmware
109 install -d ${LEGACY_ETH_FW_DIR}
110 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
111}
112
113do_install:j7200-hs-evm() {
114 install -d ${LEGACY_IPC_FW_DIR}
115 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
116 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
117 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
118 # DM Firmware
119 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
120 # ETH firmware
121 install -d ${LEGACY_ETH_FW_DIR}
122 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
123}
124
125do_install:am65xx() {
126 install -d ${LEGACY_IPC_FW_DIR}
127 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
128 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
129}
130
131do_install:am64xx() {
132 install -d ${LEGACY_IPC_FW_DIR}
133 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
134 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
135 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
136 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
137 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
138}
139
140# Set up names for the firmwares
141ALTERNATIVE:${PN}:am65xx = "\
142 am65x-mcu-r5f0_0-fw \
143 am65x-mcu-r5f0_1-fw \
144 "
145
146ALTERNATIVE:${PN}:am64xx = "\
147 am64-main-r5f0_0-fw \
148 am64-main-r5f0_1-fw \
149 am64-main-r5f1_0-fw \
150 am64-main-r5f1_1-fw \
151 am64-mcu-m4f0_0-fw \
152 "
153
154ALTERNATIVE:${PN}:j7 = "\
155 j7-mcu-r5f0_0-fw \
156 j7-mcu-r5f0_1-fw \
157 j7-main-r5f0_0-fw \
158 j7-main-r5f0_1-fw \
159 j7-main-r5f1_0-fw \
160 j7-main-r5f1_1-fw \
161 j7-c66_0-fw \
162 j7-c66_1-fw \
163 j7-c71_0-fw\
164 "
165
166ALTERNATIVE:${PN}:j7200-evm = "\
167 j7200-mcu-r5f0_0-fw \
168 j7200-mcu-r5f0_1-fw \
169 j7200-main-r5f0_0-fw \
170 j7200-main-r5f0_1-fw \
171 "
172
173ALTERNATIVE:${PN}:j7200-hs-evm = "\
174 j7200-mcu-r5f0_0-fw \
175 j7200-mcu-r5f0_1-fw \
176 j7200-main-r5f0_0-fw \
177 j7200-main-r5f0_1-fw \
178 "
179
180# Set up link names for the firmwares
181
182TARGET_MCU_R5FSS0_0:am65xx = "am65x-mcu-r5f0_0-fw"
183TARGET_MCU_R5FSS0_1:am65xx = "am65x-mcu-r5f0_1-fw"
184
185TARGET_MAIN_R5FSS0_0:am64xx = "am64-main-r5f0_0-fw"
186TARGET_MAIN_R5FSS0_1:am64xx = "am64-main-r5f0_1-fw"
187TARGET_MAIN_R5FSS1_0:am64xx = "am64-main-r5f1_0-fw"
188TARGET_MAIN_R5FSS1_1:am64xx = "am64-main-r5f1_1-fw"
189TARGET_MCU_M4FSS0_0:am64xx = "am64-mcu-m4f0_0-fw"
190
191TARGET_MCU_R5FSS0_0:j7 = "j7-mcu-r5f0_0-fw"
192TARGET_MCU_R5FSS0_1:j7 = "j7-mcu-r5f0_1-fw"
193TARGET_MAIN_R5FSS0_0:j7 = "j7-main-r5f0_0-fw"
194TARGET_MAIN_R5FSS0_1:j7 = "j7-main-r5f0_1-fw"
195TARGET_MAIN_R5FSS1_0:j7 = "j7-main-r5f1_0-fw"
196TARGET_MAIN_R5FSS1_1:j7 = "j7-main-r5f1_1-fw"
197TARGET_C66_0:j7 = "j7-c66_0-fw"
198TARGET_C66_1:j7 = "j7-c66_1-fw"
199TARGET_C7X:j7 = "j7-c71_0-fw"
200
201TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw"
202TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw"
203TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw"
204TARGET_MAIN_R5FSS0_1:j7200-evm = "j7200-main-r5f0_1-fw"
205
206TARGET_MCU_R5FSS0_0:j7200-hs-evm = "j7200-mcu-r5f0_0-fw"
207TARGET_MCU_R5FSS0_1:j7200-hs-evm = "j7200-mcu-r5f0_1-fw"
208TARGET_MAIN_R5FSS0_0:j7200-hs-evm = "j7200-main-r5f0_0-fw"
209TARGET_MAIN_R5FSS0_1:j7200-hs-evm = "j7200-main-r5f0_1-fw"
210
211ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
212ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
213
214ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
215ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
216ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
217ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
218ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_M4FSS0_0}"
219
220ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
221ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
222ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
223ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
224ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
225ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
226ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}"
227ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}"
228ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}"
229
230ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
231ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
232ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
233ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
234
235# Create the firmware alternatives
236
237ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f"
238ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
239
240ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f"
241ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f"
242ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f"
243ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f"
244ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f"
245
246ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
247ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
248ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
249ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
250ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f"
251ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f"
252ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66"
253ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66"
254ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71"
255
256ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
257ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
258ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
259ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
260
261ALTERNATIVE_PRIORITY = "10"
262
263# make sure that lib/firmware, and all its contents are part of the package
264FILES:${PN} += "${base_libdir}/firmware"
265
266# This is used to prevent the build system to_strip the executables
267INHIBIT_PACKAGE_STRIP = "1"
268INHIBIT_SYSROOT_STRIP = "1"
269# This is used to prevent the build system to split the debug info in a separate file
270INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
271# As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP
272INSANE_SKIP:${PN} += "arch"
273
274# we don't want to configure and build the source code
275do_compile[noexec] = "1"
276do_configure[noexec] = "1"
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
new file mode 100644
index 00000000..67b1d2a9
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
@@ -0,0 +1,47 @@
1LICENSE = "BSD-3-Clause"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
3
4COMPATIBLE_MACHINE = "ti-soc"
5
6PACKAGE_ARCH = "${MACHINE_ARCH}"
7
8INHIBIT_DEFAULT_DEPS = "1"
9
10inherit nopackages deploy
11
12PLAT_SFX = ""
13PLAT_SFX:j7 = "/j721e"
14PLAT_SFX:j7200-evm = "/j7200"
15PLAT_SFX:am65xx = "/am65xx"
16PLAT_SFX:am64xx = "/am64x"
17
18# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables
19TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git"
20TI_RTOS_METADATA_PROTOCOL ?= "git"
21TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9"
22TI_RTOS_METADATA_BRANCH ?= "master"
23TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}"
24TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc"
25TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc"
26
27PV = "1.0.0+git${SRCPV}"
28
29S = "${WORKDIR}/git"
30
31SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}"
32SRCREV = "${TI_RTOS_METADATA_SRCREV}"
33
34do_configure[noexec] = "1"
35do_compile[noexec] = "1"
36do_install[noexec] = "1"
37
38do_deploy () {
39 :
40}
41
42do_deploy:k3 () {
43 install -d ${DEPLOYDIR}
44 install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/
45}
46
47addtask deploy before do_build after do_compile
diff --git a/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb b/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
new file mode 100644
index 00000000..59576daa
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
@@ -0,0 +1,38 @@
1DESCRIPTION = "Provides test pruss firmware for uio based tests"
2LICENSE = "BSD-3-Clause"
3PV = "1.0.2.0"
4require recipes-ti/includes/ti-paths.inc
5
6S = "${WORKDIR}/git"
7
8DEPENDS = "ti-cgt-pru-native"
9
10BRANCH = "master"
11LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144"
12
13UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git"
14UIO_TEST_PRUSS_GIT_PROTOCOL = "git"
15SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}"
16
17# Corresponds to version 01.00.02.00
18UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c"
19
20SRCREV = "${UIO_TEST_PRUSS_SRCREV}"
21
22PR = "r0"
23
24COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
25
26PACKAGE_ARCH = "${MACHINE_ARCH}"
27
28DEVICE_NAME = ""
29DEVICE_NAME:append:am57xx-evm = "am57xx"
30DEVICE_NAME:append:ti33x = "am33xx"
31DEVICE_NAME:append:ti43x = "am43xx"
32
33EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}"
34
35do_install() {
36 install -d ${D}${bindir}/
37 cp -r *.bin ${D}${bindir}/
38}
diff --git a/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc
new file mode 100644
index 00000000..460964b3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc
@@ -0,0 +1,32 @@
1DESCRIPTION = "TI Vision Library (VLIB) for C66x"
2HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html"
3SECTION = "devel"
4LICENSE = "TI-TSPA & BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin"
13
14S = "${WORKDIR}/vlib_c66x_${PV}"
15
16BINFILE="vlib_c66x_obj_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS=""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32INSANE_SKIP:${PN}-dev = "installed-vs-shipped arch"
diff --git a/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
new file mode 100644
index 00000000..e3742d10
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
@@ -0,0 +1,9 @@
1require vlib-c66x.inc
2
3PV = "3_2_1_0"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda"
7
8SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7"
9SRC_URI[vlibbin.sha256sum] = "05bf16473d60e0252d3a73a7c3d268e540783a226b4bda930e5f6042e7b01bd8"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc b/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc
new file mode 100644
index 00000000..daa93ddf
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc
@@ -0,0 +1,25 @@
1DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais"
3LICENSE = "GPLv2"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/xdais_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball"
12
13do_install() {
14 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
15 install -d ${D}${XDAIS_INSTALL_DIR_RECIPE}
16 cp ${CP_ARGS} ${S}/* ${D}${XDAIS_INSTALL_DIR_RECIPE}
17}
18
19INHIBIT_PACKAGE_STRIP = "1"
20INHIBIT_SYSROOT_STRIP = "1"
21INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
22INSANE_SKIP:${PN}-dev = "arch"
23
24ALLOW_EMPTY:${PN} = "1"
25FILES:${PN}-dev += "${XDAIS_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
new file mode 100644
index 00000000..9fc4cee1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
@@ -0,0 +1,11 @@
1require ti-xdais.inc
2
3PV = "6_26_01_03"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e"
7
8SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6"
9SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d"
10
11INSANE_SKIP:${PN} = "installed-vs-shipped"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
new file mode 100644
index 00000000..8148f73a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
@@ -0,0 +1,9 @@
1require ti-xdais.inc
2
3PV = "7_24_00_04"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6"
7
8SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989"
9SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1"