diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:45 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:38 -0600 |
commit | 20f3191aeb592dd889eeaf96a31526297de95306 (patch) | |
tree | aec879b9855ff8a54df171ee808e30ac26f1c80b /meta-ti-bsp/recipes-ti | |
parent | bea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff) | |
download | meta-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')
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 @@ | |||
1 | DESCRIPTION = "Userspace setup for beaglebone capes" | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
5 | |||
6 | PR = "r4" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | SRC_URI = "file://cape.service \ | ||
11 | file://cape.sh \ | ||
12 | file://cape-stop.sh \ | ||
13 | " | ||
14 | |||
15 | do_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 | |||
26 | FILES:${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 | ||
2 | for 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 | ||
14 | done | ||
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] | ||
2 | Description=Beaglebone cape support | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/usr/bin/cape.sh | ||
8 | ExecStop=/usr/bin/cape-stop.sh | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 | ||
2 | for 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 | ||
22 | done | ||
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 @@ | |||
1 | SUMMARY = "BeagleBone Getting Started Guide" | ||
2 | |||
3 | PR = "r22" | ||
4 | |||
5 | inherit allarch | ||
6 | |||
7 | LICENSE = "CC-BY-SA-3.0 & GPLv3+ & MIT & PD" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa" | ||
9 | |||
10 | SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5" | ||
11 | SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_install() { | ||
16 | install -d ${D}${datadir}/${PN} | ||
17 | cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN} | ||
18 | } | ||
19 | |||
20 | FILES:${PN} += "${datadir}/${PN}" | ||
21 | INSANE_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 @@ | |||
1 | DESCRIPTION = "Units to initialize usb gadgets" | ||
2 | |||
3 | PR = "r19" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "(ti33x)" | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
10 | |||
11 | SRC_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 | |||
23 | do_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 | |||
40 | PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd" | ||
41 | |||
42 | ALLOW_EMPTY:${PN} = "1" | ||
43 | |||
44 | FILES:${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 | |||
50 | FILES:${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 | |||
56 | FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \ | ||
57 | ${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \ | ||
58 | ${sysconfdir}/udhcpd.conf" | ||
59 | |||
60 | RRECOMMENDS:${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 | |||
3 | function get_devmem() | ||
4 | { | ||
5 | /usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2 | ||
6 | } | ||
7 | |||
8 | function 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 | |||
25 | function 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 | |||
38 | DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc) | ||
39 | DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO}) | ||
40 | |||
41 | DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C) | ||
42 | DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI}) | ||
43 | |||
44 | DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}") | ||
45 | |||
46 | modprobe 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 | ||
2 | if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ] | ||
3 | then | ||
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 | ||
10 | fi | ||
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] | ||
2 | Description=Start USB Ethernet gadget | ||
3 | Conflicts=storage-gadget-init.service | ||
4 | |||
5 | [Service] | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/usr/bin/g-ether-load.sh | ||
8 | ExecStop=/sbin/rmmod g_ether | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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] | ||
2 | Description=Start usb mass storage gadget | ||
3 | After=dev-mmcblk0p1.device | ||
4 | |||
5 | [Service] | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1 | ||
8 | ExecStop=/sbin/rmmod g_mass_storage | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 @@ | |||
1 | start 192.168.7.1 | ||
2 | end 192.168.7.1 | ||
3 | interface usb0 | ||
4 | max_leases 1 | ||
5 | option 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 @@ | |||
1 | SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252",RUN+="/bin/systemctl start udhcpd.service" | ||
2 | SUBSYSTEM=="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] | ||
2 | Description=DHCP server for USB0 network gadget | ||
3 | After=dev-usb0.device | ||
4 | Conflicts=storage-gadget-init.service | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf | ||
8 | ExecStop=/bin/kill -TERM $MAINPID | ||
9 | KillSignal=SIGINT | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=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 | ||
2 | mount /dev/mmcblk0p1 /mnt | ||
3 | echo "Image info snapshot" > /mnt/info.txt | ||
4 | |||
5 | echo >> /mnt/info.txt | ||
6 | echo "/etc/angstrom-version:" >> /mnt/info.txt | ||
7 | cat /etc/angstrom-version >> /mnt/info.txt | ||
8 | |||
9 | echo >> /mnt/info.txt | ||
10 | echo "/proc/cpuinfo:" >> /mnt/info.txt | ||
11 | cat /proc/cpuinfo >> /mnt/info.txt | ||
12 | |||
13 | echo >> /mnt/info.txt | ||
14 | echo "uname -a:" >> /mnt/info.txt | ||
15 | uname -a >> /mnt/info.txt | ||
16 | |||
17 | echo >> /mnt/info.txt | ||
18 | echo "/proc/cmdline:" >> /mnt/info.txt | ||
19 | cat /proc/cmdline >> /mnt/info.txt | ||
20 | |||
21 | echo >> /mnt/info.txt | ||
22 | echo "ifconfig:" >> /mnt/info.txt | ||
23 | ifconfig >> /mnt/info.txt | ||
24 | |||
25 | echo >> /mnt/info.txt | ||
26 | echo "/etc/angstrom-build-info:" >> /mnt/info.txt | ||
27 | cat /etc/angstrom-build-info >> /mnt/info.txt | ||
28 | |||
29 | echo >> /mnt/info.txt | ||
30 | echo "/etc/image-version-info:" >> /mnt/info.txt | ||
31 | cat /etc/image-version-info >> /mnt/info.txt | ||
32 | |||
33 | echo >> /mnt/info.txt | ||
34 | echo "opkg list-installed:" >> /mnt/info.txt | ||
35 | opkg list-installed >> /mnt/info.txt | ||
36 | |||
37 | umount /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 @@ | |||
1 | DESCRIPTION = "TI SYS/BIOS v6 Kernel" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | S = "${WORKDIR}/bios_${PV}" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin" | ||
13 | BINFILE="bios_${PV}.bin" | ||
14 | TI_BIN_UNPK_CMDS="Y: q:workdir:Y" | ||
15 | |||
16 | do_install() { | ||
17 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
18 | install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE} | ||
19 | cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE} | ||
20 | } | ||
21 | |||
22 | ALLOW_EMPTY:${PN} = "1" | ||
23 | FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
24 | |||
25 | INHIBIT_PACKAGE_STRIP = "1" | ||
26 | INHIBIT_SYSROOT_STRIP = "1" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | INSANE_SKIP:${PN}-dev = "arch ldflags staticdev file-rdeps" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require recipes-ti/bios/ti-sysbios.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "6_76_03_01" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1" | ||
8 | |||
9 | SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9" | ||
10 | SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a" | ||
11 | |||
12 | TI_BIN_UNPK_CMDS = "" | ||
13 | TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}" | ||
14 | |||
15 | BINFILE = "bios_${PV}.run" | ||
16 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "Codec Engine for TI ARM/DSP processors" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | PV = "3_24_00_08" | ||
10 | PR = "r0" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7" | ||
13 | |||
14 | SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b" | ||
15 | SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1" | ||
16 | |||
17 | S = "${WORKDIR}/codec_engine_${PV}" | ||
18 | |||
19 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV},lite.tar.gz;name=cetarball " | ||
20 | |||
21 | do_install() { | ||
22 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
23 | # Install/Stage the Source Tree | ||
24 | install -d ${D}${CE_INSTALL_DIR_RECIPE} | ||
25 | cp ${CP_ARGS} ${S}/* ${D}${CE_INSTALL_DIR_RECIPE} | ||
26 | } | ||
27 | |||
28 | ALLOW_EMPTY:${PN} = "1" | ||
29 | FILES:${PN}-dev += "${CE_INSTALL_DIR_RECIPE}" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI Emulation CTools AET library" | ||
2 | DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | |||
6 | PV = "4.19.0.0" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd" | ||
9 | |||
10 | SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build" | ||
11 | SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31" | ||
12 | |||
13 | DEPENDS = "ti-cgt6x-native" | ||
14 | PR = "r0" | ||
15 | |||
16 | S = "${WORKDIR}/git/aet" | ||
17 | |||
18 | DEVICE="" | ||
19 | DEVICE:dra7xx = "DRA7xx" | ||
20 | |||
21 | EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include" | ||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}${datadir}/ti/ctoolslib/aet | ||
25 | install -d ${D}${datadir}/ti/ctoolslib/aet/include | ||
26 | install -d ${D}${datadir}/ti/ctoolslib/aet/lib | ||
27 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${S}/include/* ${D}${datadir}/ti/ctoolslib/aet/include/ | ||
28 | install -m 0644 ${S}/build/c66/libaet.ae66 ${D}${datadir}/ti/ctoolslib/aet/lib/ | ||
29 | } | ||
30 | |||
31 | COMPATIBLE_MACHINE = "dra7xx" | ||
32 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
33 | |||
34 | FILES:${PN}-dev += "\ | ||
35 | ${datadir}/ti/ctoolslib/aet \ | ||
36 | " | ||
37 | |||
38 | ALLOW_EMPTY:${PN} = "1" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "Baremetal GCC for ARM" | ||
2 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2;name=gcc-arm-none" | ||
9 | |||
10 | SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0" | ||
11 | SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69" | ||
12 | |||
13 | S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update" | ||
14 | |||
15 | # only x86_64 is supported | ||
16 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
17 | COMPATIBLE_HOST:class-target = "null" | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
21 | cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
22 | } | ||
23 | |||
24 | FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" | ||
25 | |||
26 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI CG_XML" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | require recipes-ti/includes/ti-unpack.inc | ||
9 | |||
10 | PV = "2.61.00" | ||
11 | PE = "1" | ||
12 | S = "${WORKDIR}/cg_xml_${PV}" | ||
13 | |||
14 | SRC_URI = "\ | ||
15 | http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/cg_xml_v${@'${PV}'.replace('.','_')}/cgxml-${PV}-linux-installer.run;name=cgxmlbin_linux \ | ||
16 | " | ||
17 | LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684" | ||
18 | |||
19 | SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff" | ||
20 | SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9" | ||
21 | |||
22 | BINFILE="cgxml-${PV}-linux-installer.run" | ||
23 | TI_BIN_UNPK_CMDS="" | ||
24 | TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended" | ||
25 | |||
26 | do_install() { | ||
27 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
28 | install -d ${D}${CG_XML_INSTALL_DIR_RECIPE} | ||
29 | cp ${CP_ARGS} ${S}/* ${D}${CG_XML_INSTALL_DIR_RECIPE} | ||
30 | } | ||
31 | |||
32 | FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}" | ||
33 | |||
34 | INSANE_SKIP:${PN} = "arch ldflags file-rdeps" | ||
35 | |||
36 | INHIBIT_PACKAGE_STRIP = "1" | ||
37 | INHIBIT_SYSROOT_STRIP = "1" | ||
38 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
39 | |||
40 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108" | ||
6 | |||
7 | require recipes-ti/includes/ti-unpack.inc | ||
8 | require recipes-ti/includes/ti-staging.inc | ||
9 | require recipes-ti/includes/ti-paths.inc | ||
10 | |||
11 | S = "${WORKDIR}/ti-cgt-arm-${PV}" | ||
12 | |||
13 | PE = "1" | ||
14 | PR = "r0" | ||
15 | |||
16 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}" | ||
17 | |||
18 | BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin" | ||
19 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
20 | TI_BIN_UNPK_CMDS = "" | ||
21 | |||
22 | # only x86_64 is supported | ||
23 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
24 | COMPATIBLE_HOST:class-target = "null" | ||
25 | |||
26 | do_install() { | ||
27 | install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE} | ||
28 | cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE} | ||
29 | } | ||
30 | |||
31 | SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b" | ||
32 | SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4" | ||
33 | |||
34 | BINFILE_NAME = "cgt_arm_installer" | ||
35 | |||
36 | FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | INHIBIT_SYSROOT_STRIP = "1" | ||
40 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
41 | |||
42 | INSANE_SKIP:${PN} += "arch staticdev file-rdeps" | ||
43 | |||
44 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI PRU Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
7 | |||
8 | require recipes-ti/includes/ti-paths.inc | ||
9 | require recipes-ti/includes/ti-unpack.inc | ||
10 | |||
11 | BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" | ||
12 | BINFILE_NAME = "cgt-pru-x86" | ||
13 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
14 | TI_BIN_UNPK_CMDS = "" | ||
15 | |||
16 | BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
17 | BINFILE_NAME:class-target = "cgt-pru-arm" | ||
18 | |||
19 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
20 | |||
21 | SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0" | ||
22 | SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a" | ||
23 | |||
24 | SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58" | ||
25 | SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c" | ||
26 | |||
27 | do_install() { | ||
28 | install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE} | ||
29 | cp -r ${S}/ti-cgt-pru_${PV}/. \ | ||
30 | ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/ | ||
31 | } | ||
32 | |||
33 | do_install:class-target() { | ||
34 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
35 | } | ||
36 | |||
37 | FILES:${PN} += "${datadir}/ti/*" | ||
38 | |||
39 | FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \ | ||
40 | ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \ | ||
41 | " | ||
42 | |||
43 | INHIBIT_PACKAGE_STRIP = "1" | ||
44 | INHIBIT_SYSROOT_STRIP = "1" | ||
45 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
46 | |||
47 | INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps" | ||
48 | |||
49 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600" | ||
7 | |||
8 | require ../includes/ti-paths.inc | ||
9 | require ../includes/ti-staging.inc | ||
10 | require ../includes/ti-eula-unpack.inc | ||
11 | |||
12 | S = "${WORKDIR}/cgt470_${PV}" | ||
13 | |||
14 | SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin" | ||
15 | |||
16 | BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin" | ||
17 | TI_BIN_UNPK_CMDS="Y:qY:workdir: : " | ||
18 | TI_BIN_UNPK_WDEXT="/cgt470_${PV}" | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE} | ||
22 | cp -pPrf ${S}/* ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE} | ||
23 | } | ||
24 | |||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-cgt470.inc | ||
2 | |||
3 | PV = "4_6_6" | ||
4 | PVwithdots = "4.6.6" | ||
5 | |||
6 | SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b" | ||
7 | SRC_URI[cgt470bin.sha256sum] = "a17bc7139f450672503c932ef53b00c425522890e031b4a7c9135fdf90815740" | ||
8 | |||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C6000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | |||
9 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
10 | LICENSE = "TI-TSPA" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" | ||
13 | |||
14 | S = "${WORKDIR}/c6000_7.4.16" | ||
15 | |||
16 | require recipes-ti/includes/ti-paths.inc | ||
17 | require recipes-ti/includes/ti-unpack.inc | ||
18 | |||
19 | BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin" | ||
20 | BINFILE_NAME = "cgt6x_7.4.16_x86_installer" | ||
21 | TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended" | ||
22 | TI_BIN_UNPK_CMDS="" | ||
23 | |||
24 | SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}" | ||
25 | |||
26 | SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513" | ||
27 | SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f" | ||
28 | |||
29 | # only x86_64 is supported | ||
30 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
31 | COMPATIBLE_HOST:class-target = "null" | ||
32 | |||
33 | do_install() { | ||
34 | install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE} | ||
35 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE} | ||
36 | } | ||
37 | |||
38 | FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
39 | |||
40 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
41 | |||
42 | INHIBIT_PACKAGE_STRIP = "1" | ||
43 | INHIBIT_SYSROOT_STRIP = "1" | ||
44 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
45 | |||
46 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI DSP Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
7 | |||
8 | PE = "1" | ||
9 | |||
10 | require recipes-ti/includes/ti-unpack.inc | ||
11 | |||
12 | COMPATIBLE_HOST:class-target = "arm.*-linux" | ||
13 | |||
14 | # For now we only have hardfp version for target class | ||
15 | python __anonymous() { | ||
16 | c = d.getVar("CLASSOVERRIDE") | ||
17 | |||
18 | if c == "class-target": | ||
19 | tunes = d.getVar("TUNE_FEATURES") | ||
20 | if not tunes: | ||
21 | return | ||
22 | pkgn = d.getVar("PN") | ||
23 | pkgv = d.getVar("PV") | ||
24 | if "callconvention-hard" not in tunes: | ||
25 | bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
26 | raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
27 | } | ||
28 | |||
29 | BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin" | ||
30 | BINFILE_NAME = "cgt6x_x86_installer" | ||
31 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
32 | TI_BIN_UNPK_CMDS = "" | ||
33 | |||
34 | BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
35 | BINFILE_NAME:class-target = "cgt6x_arm_installer" | ||
36 | |||
37 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
38 | |||
39 | SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161" | ||
40 | SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6" | ||
41 | |||
42 | SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9" | ||
43 | SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f" | ||
44 | |||
45 | do_install() { | ||
46 | install -d ${D}${bindir} | ||
47 | for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do | ||
48 | install -m 755 ${binfile} ${D}${bindir} | ||
49 | done | ||
50 | |||
51 | install -d ${D}${datadir}/ti/cgt-c6x/bin | ||
52 | for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do | ||
53 | install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin | ||
54 | done | ||
55 | |||
56 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
57 | cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include | ||
58 | |||
59 | install -d ${D}${datadir}/ti/cgt-c6x/lib | ||
60 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do | ||
61 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
62 | done | ||
63 | |||
64 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do | ||
65 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
66 | done | ||
67 | |||
68 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do | ||
69 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
70 | done | ||
71 | |||
72 | install -d ${D}${datadir}/man/man1 | ||
73 | for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do | ||
74 | if [ -e ${manfile} ]; then | ||
75 | install -m 644 ${manfile} ${D}${datadir}/man/man1 | ||
76 | fi | ||
77 | done | ||
78 | |||
79 | install -d ${D}${datadir}/doc/ti/cgt-c6x | ||
80 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do | ||
81 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
82 | done | ||
83 | |||
84 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do | ||
85 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
86 | done | ||
87 | |||
88 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do | ||
89 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
90 | done | ||
91 | |||
92 | } | ||
93 | |||
94 | do_install:class-target() { | ||
95 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
96 | } | ||
97 | |||
98 | FILES:${PN} += "${datadir}/ti/*" | ||
99 | |||
100 | FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug" | ||
101 | |||
102 | INSANE_SKIP:${PN} += "staticdev" | ||
103 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a" | ||
104 | |||
105 | BBCLASSEXTEND = "native nativesdk" | ||
106 | |||
107 | COMPATIBLE_MACHINE:class-target = "(ti-soc)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C7000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
9 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64" | ||
12 | |||
13 | require recipes-ti/includes/ti-unpack.inc | ||
14 | require recipes-ti/includes/ti-paths.inc | ||
15 | |||
16 | # only x86_64 is supported | ||
17 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
18 | COMPATIBLE_HOST:class-target = "null" | ||
19 | |||
20 | PE = "1" | ||
21 | |||
22 | BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin" | ||
23 | BINFILE_NAME = "cgt7x_x86_installer" | ||
24 | |||
25 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}" | ||
26 | |||
27 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
28 | TI_BIN_UNPK_CMDS = "" | ||
29 | |||
30 | SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb" | ||
31 | SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5" | ||
32 | |||
33 | S = "${WORKDIR}/c7000_${PV}" | ||
34 | |||
35 | do_install() { | ||
36 | install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE} | ||
37 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE} | ||
38 | } | ||
39 | |||
40 | |||
41 | FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
42 | |||
43 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
44 | |||
45 | INHIBIT_PACKAGE_STRIP = "1" | ||
46 | INHIBIT_SYSROOT_STRIP = "1" | ||
47 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
48 | |||
49 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD & GPLv2" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | do_install() { | ||
10 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
11 | |||
12 | install -d ${D}${XDC_INSTALL_DIR_RECIPE} | ||
13 | cp ${CP_ARGS} ${S}/* ${D}${XDC_INSTALL_DIR_RECIPE} | ||
14 | } | ||
15 | |||
16 | FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}" | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
19 | |||
20 | INHIBIT_PACKAGE_STRIP = "1" | ||
21 | INHIBIT_SYSROOT_STRIP = "1" | ||
22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
23 | INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps" | ||
24 | |||
25 | # Prevent internal libs from getting picked up | ||
26 | PRIVATE_LIBS = " \ | ||
27 | libncdb.so \ | ||
28 | libcdb.so \ | ||
29 | libjavaplugin_oji.so \ | ||
30 | libjavaplugin_jni.so \ | ||
31 | libjsound.so \ | ||
32 | libinstrument.so \ | ||
33 | libjawt.so \ | ||
34 | libzip.so \ | ||
35 | libjava_crw_demo.so \ | ||
36 | libjavaplugin_nscp_gcc29.so \ | ||
37 | libhprof.so \ | ||
38 | libcmm.so \ | ||
39 | libjdwp.so \ | ||
40 | libmlib_image.so \ | ||
41 | libjpeg.so \ | ||
42 | libverify.so \ | ||
43 | libjavaplugin_nscp.so \ | ||
44 | libmanagement.so \ | ||
45 | libunpack.so \ | ||
46 | librmi.so \ | ||
47 | libJdbcOdbc.so \ | ||
48 | libawt.so \ | ||
49 | libnet.so \ | ||
50 | libjaas_unix.so \ | ||
51 | libnio.so \ | ||
52 | libdcpr.so \ | ||
53 | libioser12.so \ | ||
54 | libjsoundalsa.so \ | ||
55 | libjava.so \ | ||
56 | libfontmanager.so \ | ||
57 | libdt_socket.so \ | ||
58 | libmawt.so \ | ||
59 | libjvm.so \ | ||
60 | libhpi.so \ | ||
61 | lib.so \ | ||
62 | libcairo.so.2 \ | ||
63 | libjli.so \ | ||
64 | libawt_xawt.so \ | ||
65 | " | ||
66 | |||
67 | COMPATIBLE_HOST ?= "null" | ||
68 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
69 | COMPATIBLE_HOST:class-native = "(.*)" | ||
70 | COMPATIBLE_HOST:class-nativesdk = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | |||
3 | S = "${WORKDIR}/xdctools_${PV}_core" | ||
4 | |||
5 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdccore/xdctools_${PV}_core_linux.zip;name=xdczip" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | require ../includes/ti-eula-unpack.inc | ||
3 | |||
4 | S = "${WORKDIR}/xdctools_${PV}" | ||
5 | |||
6 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin" | ||
7 | |||
8 | BINFILE="xdctools_setuplinux_${PV}.bin" | ||
9 | TI_BIN_UNPK_CMDS="Y:workdir:Y" | ||
10 | TI_BIN_UNPK_WDEXT="/ti" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require recipes-ti/devtools/ti-xdctools-core.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "3_55_02_22" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8" | ||
8 | |||
9 | SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f" | ||
10 | SRC_URI[xdczip.sha256sum] = "bf90dfbbe298458c736d81d5631db25b335e79146923a4a50fab217e02723e7b" | ||
diff --git a/meta-ti-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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c64Px" | ||
diff --git a/meta-ti-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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c66x" | ||
7 | |||
8 | DEPENDS += "mathlib-c66x" | ||
diff --git a/meta-ti-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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c674x" | ||
7 | |||
8 | DEPENDS += "mathlib-c674x" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_4_0_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | DSPLIB_GIT_BRANCH = "master" | ||
20 | DSPLIB_GIT_PROTOCOL = "git" | ||
21 | DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git" | ||
22 | DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161" | ||
23 | |||
24 | SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${DSPLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | ||
28 | |||
29 | export DSPLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | ||
37 | |||
38 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
39 | |||
40 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
41 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | ||
42 | |||
43 | export XDCPATH | ||
44 | |||
45 | DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}" | ||
46 | |||
47 | do_compile() { | ||
48 | cd ${DSPLIB_WORK_DIR}/ti/dsplib; | ||
49 | xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
50 | } | ||
51 | |||
52 | do_install() { | ||
53 | install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} | ||
54 | |||
55 | find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \; | ||
56 | cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE} | ||
57 | rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib | ||
58 | } | ||
59 | |||
60 | inherit deploy | ||
61 | addtask deploy before do_build after do_install | ||
62 | |||
63 | do_deploy() { | ||
64 | install -d ${DEPLOYDIR} | ||
65 | # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE} | ||
66 | # and place the zip file in ${DEPLOYDIR} | ||
67 | mkdir ./${DSPLIB_PACKAGE_NAME} | ||
68 | cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/. ./${DSPLIB_PACKAGE_NAME} | ||
69 | zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME} | ||
70 | rm -r ./${DSPLIB_PACKAGE_NAME} | ||
71 | } | ||
72 | |||
73 | ALLOW_EMPTY:${PN} = "1" | ||
74 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | ||
75 | |||
76 | INSANE_SKIP:${PN}-dev = "arch" | ||
77 | COMPATIBLE_HOST ?= "null" | ||
78 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Framework Components" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | S = "${WORKDIR}/framework_components_${PV}" | ||
9 | |||
10 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc/${PV}/exports/framework_components_${PV},lite.tar.gz;name=fctarball" | ||
11 | |||
12 | do_install() { | ||
13 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
14 | install -d ${D}${FC_INSTALL_DIR_RECIPE} | ||
15 | cp ${CP_ARGS} ${S}/* ${D}${FC_INSTALL_DIR_RECIPE} | ||
16 | } | ||
17 | |||
18 | INSANE_SKIP:${PN} = "ldflags" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${PN}-dev += "${FC_INSTALL_DIR_RECIPE}" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "2_26_00_01" | ||
4 | PR = "r2" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af" | ||
9 | SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "3_40_02_07" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e" | ||
9 | SRC_URI[fctarball.sha256sum] = "69082a0f86d12c24b39a1293ec35cf8007b850479898d5ae485ec1e8cf2e8c72" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs" | ||
2 | HOMEPAGE = "http://www.ti.com/tool/sprc264" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib" | ||
13 | |||
14 | S = "${WORKDIR}/imglib-c66x-${PV}" | ||
15 | |||
16 | BINFILE = "imglib_c66x_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS = "" | ||
19 | |||
20 | do_install() { | ||
21 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
22 | install -d ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE} | ||
23 | cp ${CP_ARGS} ${S}/* ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE} | ||
24 | } | ||
25 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | |||
33 | RDEPENDS:${PN}-dev += "perl" | ||
34 | INSANE_SKIP:${PN}-dev = "arch" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require imglib-c66x.inc | ||
2 | |||
3 | PV = "3_1_1_0" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667" | ||
7 | |||
8 | SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca" | ||
9 | SRC_URI[imglib.sha256sum] = "f3153e51530f26cfc638efca7ca6ae1bbaf7736daf287fc972592372a676ed21" | ||
diff --git a/meta-ti-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 | |||
12 | require recipes-ti/includes/ti-unpack.inc | ||
13 | |||
14 | TI_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 @@ | |||
1 | installdir = "${datadir}/ti" | ||
2 | |||
3 | export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}" | ||
4 | # This is where do_install will put it | ||
5 | export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree" | ||
6 | export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree" | ||
7 | export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree" | ||
8 | export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree" | ||
9 | export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree" | ||
10 | export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree" | ||
11 | export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree" | ||
12 | export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree" | ||
13 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" | ||
14 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" | ||
15 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" | ||
16 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" | ||
17 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" | ||
18 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" | ||
19 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" | ||
20 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree" | ||
21 | export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree" | ||
22 | export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree" | ||
23 | export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree" | ||
24 | export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree" | ||
25 | export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree" | ||
26 | export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree" | ||
27 | export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree" | ||
28 | export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree" | ||
29 | export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree" | ||
30 | export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree" | ||
31 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
32 | export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree" | ||
33 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" | ||
34 | export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree" | ||
35 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" | ||
36 | export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" | ||
37 | export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" | ||
38 | export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" | ||
39 | export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" | ||
40 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" | ||
41 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
42 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" | ||
43 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" | ||
44 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" | ||
45 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | ||
46 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | ||
47 | export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" | ||
48 | export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree" | ||
49 | export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree" | ||
50 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" | ||
51 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" | ||
52 | export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7" | ||
53 | export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x" | ||
54 | |||
55 | |||
56 | # This is where the tools will end up in sysroot | ||
57 | export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}" | ||
58 | export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}" | ||
59 | export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}" | ||
60 | export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}" | ||
61 | export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}" | ||
62 | export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}" | ||
63 | export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}" | ||
64 | export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}" | ||
65 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" | ||
66 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" | ||
67 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" | ||
68 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" | ||
69 | export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" | ||
70 | export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}" | ||
71 | export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}" | ||
72 | export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}" | ||
73 | export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}" | ||
74 | export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}" | ||
75 | export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}" | ||
76 | export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}" | ||
77 | export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}" | ||
78 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
79 | export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}" | ||
80 | export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" | ||
81 | export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" | ||
82 | export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}" | ||
83 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" | ||
84 | export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}" | ||
85 | export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
86 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" | ||
87 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" | ||
88 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
89 | export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
90 | export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
91 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
92 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
93 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
94 | export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
95 | export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
96 | export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}" | ||
97 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" | ||
98 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" | ||
99 | export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
100 | export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}" | ||
101 | export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}" | ||
102 | export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
103 | |||
104 | |||
105 | DSPSUFFIX:omapl137 = "x674" | ||
106 | DSPSUFFIX:omapl138 = "x674" | ||
107 | DSPSUFFIX_ti816x = "xe674" | ||
108 | DSPSUFFIX_ti814x = "xe674" | ||
109 | DSPSUFFIX ?= "x64P" | ||
diff --git a/meta-ti-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 @@ | |||
1 | INHIBIT_PACKAGE_STRIP = "1" | ||
2 | |||
3 | ALLOW_EMPTY:${PN} = "1" | ||
4 | ALLOW_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 | |||
13 | python do_unpack () { | ||
14 | bb.build.exec_func('base_do_unpack', d) | ||
15 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
16 | } | ||
17 | |||
18 | TI_BIN_UNPK_WDEXT ?= "" | ||
19 | python ti_bin_do_unpack() { | ||
20 | import os | ||
21 | |||
22 | # InstallJammer requires 32bit version of glibc | ||
23 | if not os.path.exists('/lib/ld-linux.so.2'): | ||
24 | bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian") | ||
25 | |||
26 | localdata = bb.data.createCopy(d) | ||
27 | bb.data.update_data(localdata) | ||
28 | |||
29 | binfile = localdata.getVar('BINFILE') | ||
30 | binfile = bb.data.expand(binfile, localdata) | ||
31 | |||
32 | # Change to the working directory | ||
33 | save_cwd = os.getcwd() | ||
34 | workdir = localdata.getVar('WORKDIR') | ||
35 | workdir = bb.data.expand(workdir, localdata) | ||
36 | os.chdir(workdir) | ||
37 | |||
38 | # Get unpack args | ||
39 | arg_string = localdata.getVar('TI_BIN_UNPK_ARGS') | ||
40 | arg_string = bb.data.expand(arg_string, localdata) | ||
41 | |||
42 | # Get unpack commands | ||
43 | cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS') | ||
44 | cmd_list = cmd_string.split( ":" ) | ||
45 | |||
46 | # Make the InstallJammer binary executable so we can run it | ||
47 | os.chmod(binfile, 0o755) | ||
48 | |||
49 | # Run the InstallJammer binary and accept the EULA | ||
50 | filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string) | ||
51 | |||
52 | # Test executable by printing installer version or help screen (--version currently broken for some installers) | ||
53 | # - this is currently broken in some IJ installers - comment out for now | ||
54 | #if os.system(filename + " --version") != 0: | ||
55 | # print "ERROR: ti-eula-unpack: failed to execute binary installer" | ||
56 | # raise bb.build.FuncFailed() | ||
57 | |||
58 | f = os.popen(filename,'w') | ||
59 | for cmd in cmd_list: | ||
60 | if cmd == "workdir": | ||
61 | wdext = localdata.getVar('TI_BIN_UNPK_WDEXT') | ||
62 | wdext = bb.data.expand(wdext, localdata) | ||
63 | cmd = workdir+wdext | ||
64 | f.write(cmd+'\n'); | ||
65 | f.close() | ||
66 | |||
67 | # Expand the tarball that was created if required | ||
68 | tarfile = localdata.getVar('TARFILE') | ||
69 | if bool(tarfile) == True: | ||
70 | tarfile = bb.data.expand(tarfile, localdata) | ||
71 | tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir) | ||
72 | if os.system(tcmd) != 0: | ||
73 | print("ERROR: ti-eula-unpack: failed to extract tarfile") | ||
74 | raise bb.build.FuncFailed() | ||
75 | |||
76 | # Return to the previous directory | ||
77 | os.chdir(save_cwd) | ||
78 | } | ||
79 | |||
80 | COMPATIBLE_HOST ?= "null" | ||
81 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
82 | COMPATIBLE_HOST:class-native = "(.*)" | ||
83 | COMPATIBLE_HOST:class-nativesdk = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | PV = "3.51.00.00" | ||
2 | INC_PR = "r0" | ||
3 | |||
4 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
5 | COMPATIBLE_HOST ?= "null" | ||
6 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
7 | |||
8 | PLATFORM = "UNKNOWN" | ||
9 | PLATFORM:dra7xx = "DRA7XX" | ||
10 | PLATFORM:omapl138 = "OMAPL138" | ||
11 | |||
12 | ALT_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 @@ | |||
1 | From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denis@denix.org> | ||
3 | Date: Mon, 29 Mar 2021 19:42:00 -0400 | ||
4 | Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in | ||
5 | glibc | ||
6 | |||
7 | Use strerror() instead. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Denys Dmytriyenko <denis@denix.org> | ||
12 | --- | ||
13 | src/examples/templates/ex46_graph/manager/ClusterMgr.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c | ||
17 | index 19216c9..a1fa679 100644 | ||
18 | --- a/src/examples/templates/ex46_graph/manager/ClusterMgr.c | ||
19 | +++ b/src/examples/templates/ex46_graph/manager/ClusterMgr.c | ||
20 | @@ -714,7 +714,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait) | ||
21 | pid = fork(); | ||
22 | |||
23 | if (pid == -1) { | ||
24 | - LOG "CM_system: fork error: %s\n", sys_errlist[errno] LOGF | ||
25 | + LOG "CM_system: fork error: %s\n", strerror(errno) LOGF | ||
26 | status = -1; | ||
27 | goto leave; | ||
28 | } | ||
29 | @@ -739,7 +739,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait) | ||
30 | else { | ||
31 | /* overlay a new executable */ | ||
32 | execvp(argv[0], argv); | ||
33 | - LOG "CM_system: execvp error: %s\n", sys_errlist[errno] LOGF | ||
34 | + LOG "CM_system: execvp error: %s\n", strerror(errno) LOGF | ||
35 | status = -1; | ||
36 | } | ||
37 | |||
38 | -- | ||
39 | 2.7.4 | ||
40 | |||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples" | ||
5 | |||
6 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
7 | |||
8 | do_compile:append() { | ||
9 | |||
10 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
11 | oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
12 | |||
13 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
14 | oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \ | ||
15 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
16 | fi | ||
17 | oe_runmake -C examples all HOSTOS="linux" \ | ||
18 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
19 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
20 | |||
21 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
22 | oe_runmake -C examples all HOSTOS="linux" \ | ||
23 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
24 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
25 | PLATFORM="${ALT_PLATFORM}" | ||
26 | fi | ||
27 | fi | ||
28 | } | ||
29 | |||
30 | do_install:append() { | ||
31 | cd ${S_ipc-examples}/src | ||
32 | |||
33 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
34 | # Install directory for linux examples | ||
35 | install -d ${D}${bindir}/ipc/examples | ||
36 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
37 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
38 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" | ||
39 | |||
40 | if [ ! -z ${ALT_PLATFORM} ]; then | ||
41 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
42 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | ||
43 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \ | ||
44 | PLATFORM="${ALT_PLATFORM}" | ||
45 | fi | ||
46 | fi | ||
47 | } | ||
48 | |||
49 | FILES:${PN} += "${bindir}/*" | ||
diff --git a/meta-ti-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 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a" | ||
7 | |||
8 | INSANE_SKIP:${PN} += "arch" | ||
9 | |||
10 | ALLOW_EMPTY:${PN} = "1" | ||
11 | |||
12 | IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
13 | |||
14 | do_compile() { | ||
15 | |||
16 | cd ${S_ipc-examples}/src | ||
17 | oe_runmake .examples \ | ||
18 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
19 | |||
20 | for alt_platform in ${ALT_PLATFORM}; do | ||
21 | oe_runmake .examples "PLATFORM=${alt_platform}" \ | ||
22 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
23 | done | ||
24 | } | ||
25 | |||
26 | do_install() { | ||
27 | cd ${S_ipc-examples}/src | ||
28 | IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` | ||
29 | } | ||
30 | |||
31 | INHIBIT_PACKAGE_STRIP = "1" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
5 | |||
6 | do_compile:append() { | ||
7 | |||
8 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
9 | oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
10 | |||
11 | for alt_platform in ${ALT_PLATFORM}; do | ||
12 | oe_runmake extract PLATFORM="${alt_platform}" HOSTOS="bios" \ | ||
13 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
14 | done | ||
15 | oe_runmake -C examples all HOSTOS="bios" \ | ||
16 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | ||
17 | for alt_platform in ${ALT_PLATFORM}; do | ||
18 | oe_runmake -C examples all HOSTOS="bios" \ | ||
19 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${alt_platform}" | ||
20 | done | ||
21 | fi | ||
22 | } | ||
23 | |||
24 | do_install:append() { | ||
25 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
26 | # Install directory for bios examples | ||
27 | install -d ${D}/ipc_${IPC_VERSION}/examples/bios | ||
28 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
29 | HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" | ||
30 | oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
31 | HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" | ||
32 | |||
33 | for alt_platform in ${ALT_PLATFORM}; do | ||
34 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
35 | HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \ | ||
36 | PLATFORM="${alt_platform}" | ||
37 | oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | ||
38 | HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \ | ||
39 | PLATFORM="${alt_platform}" | ||
40 | done | ||
41 | fi | ||
42 | } | ||
43 | |||
44 | FILES:${PN} += "ipc_*" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require recipes-ti/includes/ti-paths.inc | ||
2 | |||
3 | TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git" | ||
4 | TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples" | ||
5 | TI_IPC_EXAMPLES_GIT_PROTOCOL = "git" | ||
6 | TI_IPC_EXAMPLES_GIT_BRANCH = "master" | ||
7 | TI_IPC_EXAMPLES_NAME = "ipc-examples" | ||
8 | |||
9 | SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\ | ||
10 | destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\ | ||
11 | protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\ | ||
12 | branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\ | ||
13 | name=${TI_IPC_EXAMPLES_NAME}" | ||
14 | |||
15 | TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git" | ||
16 | TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata" | ||
17 | TI_IPC_METADATA_GIT_PROTOCOL = "git" | ||
18 | TI_IPC_METADATA_GIT_BRANCH = "master" | ||
19 | TI_IPC_METADATA_NAME = "ipc-metadata" | ||
20 | |||
21 | SRC_URI += "${TI_IPC_METADATA_GIT_URI};\ | ||
22 | destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\ | ||
23 | protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\ | ||
24 | branch=${TI_IPC_METADATA_GIT_BRANCH};\ | ||
25 | name=${TI_IPC_METADATA_NAME}" | ||
26 | |||
27 | # Corresponds to tag: 3.51.00.00 | ||
28 | TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2" | ||
29 | # Corresponds to tag: 3.51.00.00 | ||
30 | TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358" | ||
31 | |||
32 | SRCREV_FORMAT = "default" | ||
33 | SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}" | ||
34 | SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}" | ||
35 | |||
36 | S_ipc-examples = "${WORKDIR}/git/ipc-examples" | ||
37 | S_ipc-metadata = "${WORKDIR}/git/ipc-metadata" | ||
38 | |||
39 | RELEASE_TYPE = "GA" | ||
40 | RELEASE_SUFFIX = "" | ||
41 | |||
42 | PR = "${INC_PR}.r0" | ||
43 | |||
44 | DEPENDS:append:omap-a15 = " ti-cgt6x-native \ | ||
45 | ti-cgt-arm-native \ | ||
46 | gcc-arm-baremetal-native \ | ||
47 | " | ||
48 | DEPENDS:append:omapl138 = " ti-cgt6x-native \ | ||
49 | " | ||
50 | |||
51 | IPC_TARGETS = "" | ||
52 | |||
53 | IPC_TARGETS:omap-a15 = "\ | ||
54 | gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \ | ||
55 | ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ | ||
56 | ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ | ||
57 | ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \ | ||
58 | " | ||
59 | |||
60 | IPC_TARGETS:omapl138 = "\ | ||
61 | ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ | ||
62 | " | ||
63 | |||
64 | PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}" | ||
65 | EXTRA_OEMAKE = "\ | ||
66 | PLATFORM=${PLATFORM} \ | ||
67 | XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ | ||
68 | BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \ | ||
69 | ${IPC_TARGETS} \ | ||
70 | ${PARALLEL_XDC} \ | ||
71 | JAVA_TOOL_OPTIONS=-Xss2560k \ | ||
72 | " | ||
73 | |||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-ipc.inc | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | ||
6 | |||
7 | PACKAGES =+ "${PN}-fw" | ||
8 | FILES:${PN}-fw = "${base_libdir}/firmware/*" | ||
9 | FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}" | ||
10 | |||
11 | INSANE_SKIP:${PN}-fw += "arch" | ||
12 | INSANE_SKIP:${PN}-dev += "arch" | ||
13 | |||
14 | ALLOW_EMPTY:${PN} = "1" | ||
15 | |||
16 | IPC_PACKAGE_DIR = "${S}/ipc-package" | ||
17 | |||
18 | do_compile() { | ||
19 | oe_runmake -f ipc-bios.mak clean | ||
20 | oe_runmake -f ipc-bios.mak release | ||
21 | |||
22 | cd ${S_ipc-metadata} | ||
23 | oe_runmake .all-files IPC_INSTALL_DIR="${S}" \ | ||
24 | BUILD_HOST_OS="linux" \ | ||
25 | RELEASE_TYPE="${RELEASE_TYPE}" | ||
26 | |||
27 | cd ${S_ipc-examples}/src | ||
28 | oe_runmake .examples \ | ||
29 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
30 | for alt_platform in ${ALT_PLATFORM}; do | ||
31 | oe_runmake .examples \ | ||
32 | IPCTOOLS="${S_ipc-metadata}/src/etc" \ | ||
33 | PLATFORM=${alt_platform} | ||
34 | done | ||
35 | |||
36 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
37 | oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}" | ||
38 | oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}" | ||
39 | |||
40 | for alt_platform in ${ALT_PLATFORM}; do | ||
41 | oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" IPC_INSTALL_DIR="${S}" | ||
42 | oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" IPC_INSTALL_DIR="${S}" | ||
43 | done | ||
44 | fi | ||
45 | |||
46 | IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` | ||
47 | install -d ${IPC_PACKAGE_DIR} | ||
48 | # Copy docs and other meta files | ||
49 | cp -pPrf ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d ${IPC_PACKAGE_DIR} | ||
50 | |||
51 | # Copy example folders corresponding to the platforms | ||
52 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | ||
53 | install -d ${IPC_PACKAGE_DIR}/examples | ||
54 | cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/ | ||
55 | cp -pPf ${S_ipc-examples}/src/examples/makefile ${IPC_PACKAGE_DIR}/examples/ | ||
56 | cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* ${IPC_PACKAGE_DIR}/examples/ | ||
57 | for alt_platform in ${ALT_PLATFORM}; do | ||
58 | cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* ${IPC_PACKAGE_DIR}/examples/ | ||
59 | done | ||
60 | find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {} | ||
61 | fi | ||
62 | } | ||
63 | |||
64 | do_install() { | ||
65 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
66 | IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` | ||
67 | # Copy docs and other meta files | ||
68 | install -d ${D}${IPC_INSTALL_DIR_RECIPE} | ||
69 | cp ${CP_ARGS} ${IPC_PACKAGE_DIR}/* -d ${D}${IPC_INSTALL_DIR_RECIPE} | ||
70 | |||
71 | install -d ${D}${base_libdir}/firmware/ipc | ||
72 | cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true | ||
73 | } | ||
74 | |||
75 | KFDSPNUM = "0" | ||
76 | |||
77 | KFPLAT = "" | ||
78 | |||
79 | ALTERNATIVE_PRIORITY = "5" | ||
80 | |||
81 | pkg_postinst:${PN}-fw:omap-a15 () { | ||
82 | update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY} | ||
83 | update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY} | ||
84 | update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY} | ||
85 | update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY} | ||
86 | } | ||
87 | |||
88 | pkg_postrm:${PN}-fw:omap-a15 () { | ||
89 | update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 | ||
90 | update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 | ||
91 | update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 | ||
92 | update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 | ||
93 | } | ||
94 | |||
95 | pkg_postinst:${PN}-fw:omapl138 () { | ||
96 | update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY} | ||
97 | } | ||
98 | |||
99 | pkg_postrm:${PN}-fw:omapl138 () { | ||
100 | update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 | ||
101 | } | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | ||
2 | HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255" | ||
6 | |||
7 | TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git" | ||
8 | TI_IPC_GIT_PROTOCOL = "git" | ||
9 | TI_IPC_GIT_BRANCH = "master" | ||
10 | |||
11 | #Corresponds to 3.51.00.00A | ||
12 | TI_IPC_SRCREV = "7a6e343a208d2849139b7272a67abc01db806e00" | ||
13 | |||
14 | BRANCH = "${TI_IPC_GIT_BRANCH}" | ||
15 | SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev" | ||
16 | SRCREV = "${TI_IPC_SRCREV}" | ||
17 | |||
18 | CFLAGS += "-fcommon" | ||
19 | |||
20 | S = "${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 @@ | |||
1 | From c3ada6bf49e6fcf7bc49e5bf09754f384838ca6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Mon, 27 Jul 2015 11:51:52 -0400 | ||
4 | Subject: [PATCH] Add kernel build dir | ||
5 | |||
6 | We build kernel outside of the source directory and the generated version.h | ||
7 | file ends up being in a separate directory from the rest of kernel headers. | ||
8 | Use another variable to point to the kernel build artifacts. | ||
9 | |||
10 | Signed-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 | |||
19 | diff --git a/configure.ac b/configure.ac | ||
20 | index 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 | |||
57 | diff --git a/ipc-linux.mak b/ipc-linux.mak | ||
58 | index 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) | ||
84 | diff --git a/linux/src/mm/Makefile.am b/linux/src/mm/Makefile.am | ||
85 | index 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 | ||
97 | diff --git a/packages/ti/ipc/mm/MmRpc.c b/packages/ti/ipc/mm/MmRpc.c | ||
98 | index 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] | ||
2 | Description=TI IPC Daemon | ||
3 | |||
4 | [Service] | ||
5 | Type=forking | ||
6 | ExecStart=/usr/bin/__LAD_DAEMON__ -g -l lad.txt | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=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 | |||
3 | tiipclad_daemon=/usr/bin/__LAD_DAEMON__ | ||
4 | tiipclad_params="-g -l lad.txt" | ||
5 | |||
6 | test -x "$tiipclad_daemon" || exit 0 | ||
7 | |||
8 | case "$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 | ||
23 | esac | ||
24 | |||
25 | exit 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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | ||
2 | HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" | ||
3 | |||
4 | require ti-ipc.inc | ||
5 | require ti-ipc-common.inc | ||
6 | |||
7 | PR = "${INC_PR}.2" | ||
8 | |||
9 | DEPENDS += "virtual/kernel" | ||
10 | |||
11 | SRC_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 | |||
17 | DAEMON = "UNKNOWN" | ||
18 | DAEMON:dra7xx = "lad_dra7xx" | ||
19 | DAEMON:omapl138 = "lad_omapl138" | ||
20 | |||
21 | inherit autotools-brokensep pkgconfig update-rc.d systemd | ||
22 | |||
23 | INITSCRIPT_NAME = "tiipclad-daemon.sh" | ||
24 | INITSCRIPT_PARAMS = "defaults 10" | ||
25 | |||
26 | SYSTEMD_SERVICE:${PN} = "tiipclad-daemon.service" | ||
27 | |||
28 | EXTRA_OECONF += "PLATFORM=${PLATFORM} KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${STAGING_KERNEL_BUILDDIR}" | ||
29 | |||
30 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | ||
31 | |||
32 | do_configure() { | ||
33 | ( cd ${S}; autoreconf -f -i -s ) | ||
34 | oe_runconf | ||
35 | } | ||
36 | |||
37 | do_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 | |||
51 | do_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 | |||
56 | PACKAGES =+ "${PN}-test" | ||
57 | RDEPENDS:${PN}-test += "${PN}" | ||
58 | |||
59 | FILES:${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 @@ | |||
1 | From 1a26cb577ba54dd9214eeb94fed0ce3a0f4603b6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 24 Oct 2020 23:46:39 -0700 | ||
4 | Subject: [PATCH] examples: Remove use of includedir and libdir | ||
5 | |||
6 | These point to standard include and library paths which already are used | ||
7 | from sysroot relative paths secondly, they use absolute paths which | ||
8 | means we are asking to add -I/usr/include which might be ok in a native | ||
9 | build but not in cross build. This helps mitigate QA errors found with | ||
10 | OE build system since it finds it adding host include and library search | ||
11 | paths to linker/compiler commandline | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | examples/Makefile.am | 5 +---- | ||
17 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
18 | |||
19 | diff --git a/examples/Makefile.am b/examples/Makefile.am | ||
20 | index 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 | -- | ||
37 | 2.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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Sample Applications and Tests" | ||
2 | |||
3 | require ti-rpmsg-char.inc | ||
4 | |||
5 | SRC_URI += "file://0001-examples-Remove-use-of-includedir-and-libdir.patch" | ||
6 | |||
7 | DEPENDS = "ti-rpmsg-char" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
10 | |||
11 | EXTRA_OEMAKE = "-C ${B}/examples" | ||
12 | |||
13 | PR = "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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Utility Library" | ||
2 | |||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58" | ||
5 | |||
6 | PROTOCOL = "git" | ||
7 | BRANCH = "master" | ||
8 | SRC_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};" | ||
9 | |||
10 | # Initial 0.3.1 release | ||
11 | SRCREV = "0824546f61bda7715519841d9b9f0fb030ddfaf2" | ||
12 | |||
13 | PV = "0.3.1+git${SRCPV}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | COMPATIBLE_HOST ?= "null" | ||
18 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Utility Library" | ||
2 | |||
3 | require ti-rpmsg-char.inc | ||
4 | |||
5 | inherit autotools pkgconfig | ||
6 | |||
7 | PR = "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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c66x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}" | ||
diff --git a/meta-ti-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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c674x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_1_2_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | MATHLIB_GIT_BRANCH = "master" | ||
20 | MATHLIB_GIT_PROTOCOL = "git" | ||
21 | MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git" | ||
22 | MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951" | ||
23 | |||
24 | SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${MATHLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" | ||
28 | |||
29 | export MATHLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | |||
37 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
38 | |||
39 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
40 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" | ||
41 | |||
42 | export XDCPATH | ||
43 | |||
44 | MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}" | ||
45 | |||
46 | do_compile() { | ||
47 | cd ${MATHLIB_WORK_DIR}/ti/mathlib; | ||
48 | xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
49 | } | ||
50 | |||
51 | do_install() { | ||
52 | install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
53 | |||
54 | find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \; | ||
55 | cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
56 | rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib | ||
57 | } | ||
58 | |||
59 | inherit deploy | ||
60 | addtask deploy before do_build after do_install | ||
61 | |||
62 | do_deploy() { | ||
63 | install -d ${DEPLOYDIR} | ||
64 | # zip up files in ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
65 | # and place the zip file in ${DEPLOYDIR} | ||
66 | mkdir ./${MATHLIB_PACKAGE_NAME} | ||
67 | cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/. ./${MATHLIB_PACKAGE_NAME} | ||
68 | zip -9 -y -r -q ${DEPLOYDIR}/${MATHLIB_PACKAGE_NAME}.zip ./${MATHLIB_PACKAGE_NAME} | ||
69 | rm -r ./${MATHLIB_PACKAGE_NAME} | ||
70 | } | ||
71 | |||
72 | ALLOW_EMPTY:${PN} = "1" | ||
73 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" | ||
74 | |||
75 | INSANE_SKIP:${PN}-dev = "arch" | ||
76 | COMPATIBLE_HOST ?= "null" | ||
77 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI OpenMP RTOS" | ||
2 | HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
3 | LICENSE = "BSD" | ||
4 | |||
5 | require recipes-ti/includes/ti-paths.inc | ||
6 | |||
7 | inherit features_check | ||
8 | |||
9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
10 | REQUIRED_DISTRO_FEATURES = "openmp" | ||
11 | |||
12 | PV = "2_06_03_00" | ||
13 | PR = "r0" | ||
14 | |||
15 | OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
16 | OPENMP_RTOS_GIT_PROTOCOL = "git" | ||
17 | OPENMP_RTOS_GIT_BRANCH = "master" | ||
18 | |||
19 | BRANCH = "${OPENMP_RTOS_GIT_BRANCH}" | ||
20 | SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}" | ||
21 | |||
22 | SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8" | ||
23 | |||
24 | LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee" | ||
25 | |||
26 | DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native" | ||
27 | |||
28 | COMPATIBLE_MACHINE = "omap-a15" | ||
29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
32 | export IPC_DIR = "${IPC_INSTALL_DIR}" | ||
33 | export XDC_DIR = "${XDC_INSTALL_DIR}" | ||
34 | export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" | ||
35 | export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm" | ||
36 | export C6636_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
37 | export AM572_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
38 | export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
39 | |||
40 | export BUILD_AM572 = "0" | ||
41 | |||
42 | BUILD_AM572:omap-a15 = "1" | ||
43 | |||
44 | RELEASE_TARGET = "" | ||
45 | RELEASE_TARGET:omap-a15 = "am57xx" | ||
46 | |||
47 | do_compile() { | ||
48 | make -f utils/product/Makefile .zipfile | ||
49 | } | ||
50 | |||
51 | do_install() { | ||
52 | install -d ${D}${OMP_INSTALL_DIR_RECIPE} | ||
53 | cp -r ${S}/exports/openmp_dsp_${RELEASE_TARGET}_*/. -d ${D}${OMP_INSTALL_DIR_RECIPE} | ||
54 | } | ||
55 | |||
56 | ALLOW_EMPTY:${PN} = "1" | ||
57 | |||
58 | FILES:${PN}-dev += " \ | ||
59 | ${OMP_INSTALL_DIR_RECIPE}/ \ | ||
60 | " | ||
61 | |||
62 | INSANE_SKIP:${PN}-dev = "arch" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Operating System Abstraction Library (OSAL)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal" | ||
3 | LICENSE = "BSD & EPL-1.0" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/osal_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
15 | cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
16 | } | ||
17 | |||
18 | INSANE_SKIP:${PN}-dev = "staticdev" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}" | ||
22 | |||
23 | COMPATIBLE_HOST ?= "null" | ||
24 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-osal.inc | ||
2 | |||
3 | PV = "1_24_00_09" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4" | ||
7 | |||
8 | SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b" | ||
9 | SRC_URI[osaltarball.sha256sum] = "d14f1f43c8a7965e86add69bd813cea56ea7e38abeb55de3fdcdaf4a69f19bf3" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI Software Tools" | ||
2 | HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d" | ||
6 | |||
7 | require ../includes/ti-paths.inc | ||
8 | |||
9 | DEPENDS = "ti-cgt6x-native \ | ||
10 | ti-sysbios \ | ||
11 | ti-xdctools-native" | ||
12 | |||
13 | PV = "5_0_8" | ||
14 | PR = "r3" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | SWTOOLS_GIT_BRANCH = "master" | ||
18 | SWTOOLS_GIT_PROTOCOL = "git" | ||
19 | SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git" | ||
20 | SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4" | ||
21 | |||
22 | SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}" | ||
23 | SRCREV = "${SWTOOLS_SRCREV}" | ||
24 | |||
25 | |||
26 | export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
27 | export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
28 | export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
29 | |||
30 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
31 | |||
32 | XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
33 | |||
34 | export XDCPATH | ||
35 | |||
36 | do_compile() { | ||
37 | cd ${S}/ti/mas/swtools | ||
38 | xdc | ||
39 | } | ||
40 | |||
41 | do_install() { | ||
42 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
43 | install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE} | ||
44 | cp ${CP_ARGS} ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE} | ||
45 | } | ||
46 | |||
47 | FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
48 | |||
49 | INSANE_SKIP:${PN}-dev = "arch staticdev" | ||
50 | ALLOW_EMPTY:${PN} = "1" | ||
51 | COMPATIBLE_HOST ?= "null" | ||
52 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-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 @@ | |||
1 | SUMMARY = "TI RTOS prebuilt binary firmware images" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "k3" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
12 | inherit deploy | ||
13 | inherit update-alternatives | ||
14 | |||
15 | PLAT_SFX = "" | ||
16 | PLAT_SFX:j7 = "j721e" | ||
17 | PLAT_SFX:j7200-evm = "j7200" | ||
18 | PLAT_SFX:j7200-hs-evm = "j7200" | ||
19 | PLAT_SFX:am65xx = "am65xx" | ||
20 | PLAT_SFX:am64xx = "am64xx" | ||
21 | |||
22 | FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" | ||
23 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
24 | |||
25 | CORESDK_RTOS_VERSION ?= "08.00.00.26" | ||
26 | PV = "${CORESDK_RTOS_VERSION}" | ||
27 | |||
28 | CLEANBROKEN = "1" | ||
29 | PR = "${INC_PR}.0" | ||
30 | |||
31 | # Secure Build | ||
32 | DEPENDS += "openssl-native" | ||
33 | |||
34 | FILES:${PN} += "${base_libdir}" | ||
35 | |||
36 | TI_SECURE_DEV_PKG ?= "" | ||
37 | |||
38 | RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" | ||
39 | RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}" | ||
40 | RTOS_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 | ||
44 | LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/" | ||
45 | LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" | ||
46 | LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" | ||
47 | |||
48 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
49 | |||
50 | # J7 HS support | ||
51 | do_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 | ||
60 | do_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 | ||
69 | do_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 | ||
80 | do_install() { | ||
81 | : | ||
82 | } | ||
83 | |||
84 | do_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 | |||
101 | do_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 | |||
113 | do_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 | |||
125 | do_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 | |||
131 | do_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 | ||
141 | ALTERNATIVE:${PN}:am65xx = "\ | ||
142 | am65x-mcu-r5f0_0-fw \ | ||
143 | am65x-mcu-r5f0_1-fw \ | ||
144 | " | ||
145 | |||
146 | ALTERNATIVE:${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 | |||
154 | ALTERNATIVE:${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 | |||
166 | ALTERNATIVE:${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 | |||
173 | ALTERNATIVE:${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 | |||
182 | TARGET_MCU_R5FSS0_0:am65xx = "am65x-mcu-r5f0_0-fw" | ||
183 | TARGET_MCU_R5FSS0_1:am65xx = "am65x-mcu-r5f0_1-fw" | ||
184 | |||
185 | TARGET_MAIN_R5FSS0_0:am64xx = "am64-main-r5f0_0-fw" | ||
186 | TARGET_MAIN_R5FSS0_1:am64xx = "am64-main-r5f0_1-fw" | ||
187 | TARGET_MAIN_R5FSS1_0:am64xx = "am64-main-r5f1_0-fw" | ||
188 | TARGET_MAIN_R5FSS1_1:am64xx = "am64-main-r5f1_1-fw" | ||
189 | TARGET_MCU_M4FSS0_0:am64xx = "am64-mcu-m4f0_0-fw" | ||
190 | |||
191 | TARGET_MCU_R5FSS0_0:j7 = "j7-mcu-r5f0_0-fw" | ||
192 | TARGET_MCU_R5FSS0_1:j7 = "j7-mcu-r5f0_1-fw" | ||
193 | TARGET_MAIN_R5FSS0_0:j7 = "j7-main-r5f0_0-fw" | ||
194 | TARGET_MAIN_R5FSS0_1:j7 = "j7-main-r5f0_1-fw" | ||
195 | TARGET_MAIN_R5FSS1_0:j7 = "j7-main-r5f1_0-fw" | ||
196 | TARGET_MAIN_R5FSS1_1:j7 = "j7-main-r5f1_1-fw" | ||
197 | TARGET_C66_0:j7 = "j7-c66_0-fw" | ||
198 | TARGET_C66_1:j7 = "j7-c66_1-fw" | ||
199 | TARGET_C7X:j7 = "j7-c71_0-fw" | ||
200 | |||
201 | TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw" | ||
202 | TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" | ||
203 | TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" | ||
204 | TARGET_MAIN_R5FSS0_1:j7200-evm = "j7200-main-r5f0_1-fw" | ||
205 | |||
206 | TARGET_MCU_R5FSS0_0:j7200-hs-evm = "j7200-mcu-r5f0_0-fw" | ||
207 | TARGET_MCU_R5FSS0_1:j7200-hs-evm = "j7200-mcu-r5f0_1-fw" | ||
208 | TARGET_MAIN_R5FSS0_0:j7200-hs-evm = "j7200-main-r5f0_0-fw" | ||
209 | TARGET_MAIN_R5FSS0_1:j7200-hs-evm = "j7200-main-r5f0_1-fw" | ||
210 | |||
211 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
212 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
213 | |||
214 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
215 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
216 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
217 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
218 | ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_M4FSS0_0}" | ||
219 | |||
220 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
221 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
222 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
223 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
224 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
225 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
226 | ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}" | ||
227 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}" | ||
228 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}" | ||
229 | |||
230 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
231 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
232 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
233 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
234 | |||
235 | # Create the firmware alternatives | ||
236 | |||
237 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" | ||
238 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
239 | |||
240 | ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f" | ||
241 | ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f" | ||
242 | ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f" | ||
243 | ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f" | ||
244 | ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f" | ||
245 | |||
246 | ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
247 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
248 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
249 | ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
250 | ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f" | ||
251 | ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f" | ||
252 | ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66" | ||
253 | ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" | ||
254 | ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" | ||
255 | |||
256 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
257 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
258 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
259 | ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
260 | |||
261 | ALTERNATIVE_PRIORITY = "10" | ||
262 | |||
263 | # make sure that lib/firmware, and all its contents are part of the package | ||
264 | FILES:${PN} += "${base_libdir}/firmware" | ||
265 | |||
266 | # This is used to prevent the build system to_strip the executables | ||
267 | INHIBIT_PACKAGE_STRIP = "1" | ||
268 | INHIBIT_SYSROOT_STRIP = "1" | ||
269 | # This is used to prevent the build system to split the debug info in a separate file | ||
270 | INHIBIT_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 | ||
272 | INSANE_SKIP:${PN} += "arch" | ||
273 | |||
274 | # we don't want to configure and build the source code | ||
275 | do_compile[noexec] = "1" | ||
276 | do_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 @@ | |||
1 | LICENSE = "BSD-3-Clause" | ||
2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" | ||
3 | |||
4 | COMPATIBLE_MACHINE = "ti-soc" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | inherit nopackages deploy | ||
11 | |||
12 | PLAT_SFX = "" | ||
13 | PLAT_SFX:j7 = "/j721e" | ||
14 | PLAT_SFX:j7200-evm = "/j7200" | ||
15 | PLAT_SFX:am65xx = "/am65xx" | ||
16 | PLAT_SFX:am64xx = "/am64x" | ||
17 | |||
18 | # Use weak assignment to set defaults to TI_RTOS_METADATA_* variables | ||
19 | TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" | ||
20 | TI_RTOS_METADATA_PROTOCOL ?= "git" | ||
21 | TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9" | ||
22 | TI_RTOS_METADATA_BRANCH ?= "master" | ||
23 | TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" | ||
24 | TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" | ||
25 | TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc" | ||
26 | |||
27 | PV = "1.0.0+git${SRCPV}" | ||
28 | |||
29 | S = "${WORKDIR}/git" | ||
30 | |||
31 | SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" | ||
32 | SRCREV = "${TI_RTOS_METADATA_SRCREV}" | ||
33 | |||
34 | do_configure[noexec] = "1" | ||
35 | do_compile[noexec] = "1" | ||
36 | do_install[noexec] = "1" | ||
37 | |||
38 | do_deploy () { | ||
39 | : | ||
40 | } | ||
41 | |||
42 | do_deploy:k3 () { | ||
43 | install -d ${DEPLOYDIR} | ||
44 | install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ | ||
45 | } | ||
46 | |||
47 | addtask 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 @@ | |||
1 | DESCRIPTION = "Provides test pruss firmware for uio based tests" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | PV = "1.0.2.0" | ||
4 | require recipes-ti/includes/ti-paths.inc | ||
5 | |||
6 | S = "${WORKDIR}/git" | ||
7 | |||
8 | DEPENDS = "ti-cgt-pru-native" | ||
9 | |||
10 | BRANCH = "master" | ||
11 | LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144" | ||
12 | |||
13 | UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git" | ||
14 | UIO_TEST_PRUSS_GIT_PROTOCOL = "git" | ||
15 | SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}" | ||
16 | |||
17 | # Corresponds to version 01.00.02.00 | ||
18 | UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c" | ||
19 | |||
20 | SRCREV = "${UIO_TEST_PRUSS_SRCREV}" | ||
21 | |||
22 | PR = "r0" | ||
23 | |||
24 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
25 | |||
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
27 | |||
28 | DEVICE_NAME = "" | ||
29 | DEVICE_NAME:append:am57xx-evm = "am57xx" | ||
30 | DEVICE_NAME:append:ti33x = "am33xx" | ||
31 | DEVICE_NAME:append:ti43x = "am43xx" | ||
32 | |||
33 | EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}" | ||
34 | |||
35 | do_install() { | ||
36 | install -d ${D}${bindir}/ | ||
37 | cp -r *.bin ${D}${bindir}/ | ||
38 | } | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI Vision Library (VLIB) for C66x" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI-TSPA & BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin" | ||
13 | |||
14 | S = "${WORKDIR}/vlib_c66x_${PV}" | ||
15 | |||
16 | BINFILE="vlib_c66x_obj_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS="" | ||
19 | |||
20 | do_install() { | ||
21 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
22 | install -d ${D}${VLIB_C66_INSTALL_DIR_RECIPE} | ||
23 | cp ${CP_ARGS} ${S}/* ${D}${VLIB_C66_INSTALL_DIR_RECIPE} | ||
24 | } | ||
25 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | INSANE_SKIP:${PN}-dev = "installed-vs-shipped arch" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require vlib-c66x.inc | ||
2 | |||
3 | PV = "3_2_1_0" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda" | ||
7 | |||
8 | SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7" | ||
9 | SRC_URI[vlibbin.sha256sum] = "05bf16473d60e0252d3a73a7c3d268e540783a226b4bda930e5f6042e7b01bd8" | ||
diff --git a/meta-ti-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 @@ | |||
1 | DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais" | ||
3 | LICENSE = "GPLv2" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/xdais_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball" | ||
12 | |||
13 | do_install() { | ||
14 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
15 | install -d ${D}${XDAIS_INSTALL_DIR_RECIPE} | ||
16 | cp ${CP_ARGS} ${S}/* ${D}${XDAIS_INSTALL_DIR_RECIPE} | ||
17 | } | ||
18 | |||
19 | INHIBIT_PACKAGE_STRIP = "1" | ||
20 | INHIBIT_SYSROOT_STRIP = "1" | ||
21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
22 | INSANE_SKIP:${PN}-dev = "arch" | ||
23 | |||
24 | ALLOW_EMPTY:${PN} = "1" | ||
25 | FILES:${PN}-dev += "${XDAIS_INSTALL_DIR_RECIPE}" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "6_26_01_03" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6" | ||
9 | SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d" | ||
10 | |||
11 | INSANE_SKIP:${PN} = "installed-vs-shipped" | ||
diff --git a/meta-ti-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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "7_24_00_04" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989" | ||
9 | SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1" | ||