Complete Yocto mirror with license table for TQMa6UL (2038-compliance)

- 264 license table entries with exact download URLs (224/264 resolved)
- Complete sources/ directory with all BitBake recipes
- Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl)
- Full traceability for Softwarefreigabeantrag
- GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4
- License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
Siggi (OpenClaw Agent)
2026-03-01 20:58:18 +00:00
commit 16accb6b24
15086 changed files with 1292356 additions and 0 deletions

View File

@@ -0,0 +1 @@
Note: some of the packages in this area are not actively maintained.

View File

@@ -0,0 +1,26 @@
DESCRIPTION = "Userspace setup for beaglebone capes"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r4"
inherit allarch
SRC_URI = "file://cape.service \
file://cape.sh \
file://cape-stop.sh \
"
do_install() {
install -d ${D}${base_libdir}/systemd/system/
install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
}
FILES:${PN} += "${base_libdir}/systemd/system"

View File

@@ -0,0 +1,14 @@
#!/bin/sh
for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
case $PARTNUMBER in
"BB-BONE-LCD3-01.")
echo "Turning off backlight for LCD3 cape"
i2cset -f -y 1 0x24 0x07 0x00;;
"BB-BONE-LCD4"*)
echo "Turning off backlight for LCD4 cape"
i2cset -f -y 1 0x24 0x07 0x00;;
*)
echo "unknown cape: $PARTNUMBER";;
esac
done

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Beaglebone cape support
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/cape.sh
ExecStop=/usr/bin/cape-stop.sh
[Install]
WantedBy=basic.target

View File

@@ -0,0 +1,22 @@
#!/bin/sh
for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
case $PARTNUMBER in
"BB-BONE-LCD3-01.")
echo "Turning on backlight for LCD3 cape"
i2cset -f -y 1 0x24 0x07 0x09
i2cset -f -y 1 0x24 0x08 0x60;;
"BB-BONE-LCD4"*)
echo "Turning on backlight for LCD4 cape"
i2cset -f -y 1 0x24 0x07 0x09
i2cset -f -y 1 0x24 0x08 0x60;;
"BB-BONE-WTHR-01.")
echo "Initializing I2C devices"
echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device
echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device
echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device
echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;;
*)
echo "unknown cape: $PARTNUMBER";;
esac
done

View File

@@ -0,0 +1,21 @@
SUMMARY = "BeagleBone Getting Started Guide"
PR = "r22"
inherit allarch
LICENSE = "CC-BY-SA-3.0 & GPL-3.0-or-later & MIT & PD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa"
SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5"
SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${datadir}/${PN}
cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN}
}
FILES:${PN} += "${datadir}/${PN}"
INSANE_SKIP:${PN} = "file-rdeps"

View File

@@ -0,0 +1,60 @@
DESCRIPTION = "Units to initialize usb gadgets"
PR = "r19"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
COMPATIBLE_MACHINE = "(ti33x)"
PACKAGE_ARCH = "${MACHINE_ARCH}"
SRC_URI = "file://storage-gadget-init.service \
file://network-gadget-init.service \
file://udhcpd.service \
file://udhcpd.conf \
file://bone-gmass-eject.rules \
file://udhcpd.rules \
file://g-storage-reinsert.sh \
file://g-ether-start-service.sh \
file://g-ether-load.sh \
file://update-image-info-on-mmcblk0p1.sh \
"
do_install() {
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
for i in ${WORKDIR}/storage-gadget-init.service ; do
install -m 0644 $i ${D}${base_libdir}/systemd/system
ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
done
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
}
PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-storage = "${base_libdir}/systemd/system/storage-gadget-init.service \
${base_libdir}/systemd/system/basic.target.wants/storage-gadget-init.service \
${bindir}/g-storage-reinsert.sh \
${bindir}/update-image-info-on-mmcblk0p1.sh \
${sysconfdir}/udev/rules.d/bone-gmass-eject.rules"
FILES:${PN}-network = "${base_libdir}/systemd/system/network-gadget-init.service \
${base_libdir}/systemd/system/basic.target.wants/network-gadget-init.service \
${bindir}/g-ether-load.sh \
${bindir}/g-ether-start-service.sh \
${sysconfdir}/udev/rules.d/udhcpd.rules"
FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \
${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \
${sysconfdir}/udhcpd.conf"
RRECOMMENDS:${PN} = "${PN}-storage ${PN}-network ${PN}-udhcpd"

View File

@@ -0,0 +1 @@
SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh"

View File

@@ -0,0 +1,46 @@
#!/bin/sh
function get_devmem()
{
/usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2
}
function hex_to_mac_addr()
{
addr=$1
n=0
mac_addr=$(echo ${addr} | while read -r -n2 c; do
if [ ! -z "$c" ]; then
if [ $n -ne 0 ] ; then
echo -n ":${c}"
else
echo -n "${c}"
fi
fi
n=$(($n+1))
done)
echo ${mac_addr}
}
function reverse_bytes()
{
addr=$1
New_addr=$(echo ${addr} | while read -r -n2 c; do
if [ ! -z "$c" ]; then
New_addr=${c}${New_addr}
else echo
echo ${New_addr}
fi
done)
echo ${New_addr}
}
DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})
DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C)
DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI})
DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}")
modprobe g_ether host_addr=${DEV_ADDR}

View File

@@ -0,0 +1,10 @@
#!/bin/sh
if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ]
then
x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file)
if [ -z "$x" ]
then
/bin/systemctl stop storage-gadget-init.service
/bin/systemctl start network-gadget-init.service
fi
fi

View File

@@ -0,0 +1,4 @@
#!/bin/sh
/bin/systemctl stop storage-gadget-init.service
/bin/systemctl stop network-gadget-init.service
/bin/systemctl start storage-gadget-init.service

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Start USB Ethernet gadget
Conflicts=storage-gadget-init.service
[Service]
RemainAfterExit=yes
ExecStart=/usr/bin/g-ether-load.sh
ExecStop=/sbin/rmmod g_ether
[Install]
WantedBy=gether.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Start usb mass storage gadget
After=dev-mmcblk0p1.device
[Service]
RemainAfterExit=yes
ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
ExecStop=/sbin/rmmod g_mass_storage
[Install]
WantedBy=basic.target

View File

@@ -0,0 +1,5 @@
start 192.168.7.1
end 192.168.7.1
interface usb0
max_leases 1
option subnet 255.255.255.252

View File

@@ -0,0 +1,2 @@
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"
SUBSYSTEM=="net",ACTION=="remove",KERNEL=="usb0",RUN+="/bin/systemctl stop udhcpd.service"

View File

@@ -0,0 +1,12 @@
[Unit]
Description=DHCP server for USB0 network gadget
After=dev-usb0.device
Conflicts=storage-gadget-init.service
[Service]
ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf
ExecStop=/bin/kill -TERM $MAINPID
KillSignal=SIGINT
[Install]
WantedBy=gether.target

View File

@@ -0,0 +1,37 @@
#!/bin/sh
mount /dev/mmcblk0p1 /mnt
echo "Image info snapshot" > /mnt/info.txt
echo >> /mnt/info.txt
echo "/etc/angstrom-version:" >> /mnt/info.txt
cat /etc/angstrom-version >> /mnt/info.txt
echo >> /mnt/info.txt
echo "/proc/cpuinfo:" >> /mnt/info.txt
cat /proc/cpuinfo >> /mnt/info.txt
echo >> /mnt/info.txt
echo "uname -a:" >> /mnt/info.txt
uname -a >> /mnt/info.txt
echo >> /mnt/info.txt
echo "/proc/cmdline:" >> /mnt/info.txt
cat /proc/cmdline >> /mnt/info.txt
echo >> /mnt/info.txt
echo "ifconfig:" >> /mnt/info.txt
ifconfig >> /mnt/info.txt
echo >> /mnt/info.txt
echo "/etc/angstrom-build-info:" >> /mnt/info.txt
cat /etc/angstrom-build-info >> /mnt/info.txt
echo >> /mnt/info.txt
echo "/etc/image-version-info:" >> /mnt/info.txt
cat /etc/image-version-info >> /mnt/info.txt
echo >> /mnt/info.txt
echo "opkg list-installed:" >> /mnt/info.txt
opkg list-installed >> /mnt/info.txt
umount /mnt

View File

@@ -0,0 +1,30 @@
DESCRIPTION = "TI SYS/BIOS v6 Kernel"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
require ../includes/ti-eula-unpack.inc
S = "${WORKDIR}/bios_${PV}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin"
BINFILE="bios_${PV}.bin"
TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
rm ${D}${SYSBIOS_INSTALL_DIR_RECIPE}/bios_${PV}*.log
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN}-dev = "arch ldflags staticdev file-rdeps"

View File

@@ -0,0 +1,16 @@
require recipes-ti/bios/ti-sysbios.inc
PE = "1"
PV = "6_76_03_01"
PR = "r0"
LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1"
SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9"
SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a"
TI_BIN_UNPK_CMDS = ""
TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
BINFILE = "bios_${PV}.run"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin"

View File

@@ -0,0 +1,29 @@
DESCRIPTION = "Codec Engine for TI ARM/DSP processors"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-staging.inc
PV = "3_24_00_08"
PR = "r0"
LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7"
SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b"
SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1"
S = "${WORKDIR}/codec_engine_${PV}"
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 "
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
# Install/Stage the Source Tree
install -d ${D}${CE_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${CE_INSTALL_DIR_RECIPE}
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${CE_INSTALL_DIR_RECIPE}"

View File

@@ -0,0 +1,38 @@
SUMMARY = "TI Emulation CTools AET library"
DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores"
LICENSE = "BSD-3-Clause"
PV = "4.19.0.0"
LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd"
SRC_URI = "git://git.ti.com/git/sdo-emu/ctoolslib.git;protocol=https;branch=opencl_aetlib_build"
SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31"
DEPENDS = "ti-cgt6x-native"
PR = "r0"
S = "${WORKDIR}/git/aet"
DEVICE=""
DEVICE:dra7xx = "DRA7xx"
EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include"
do_install() {
install -d ${D}${datadir}/ti/ctoolslib/aet
install -d ${D}${datadir}/ti/ctoolslib/aet/include
install -d ${D}${datadir}/ti/ctoolslib/aet/lib
cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${S}/include/* ${D}${datadir}/ti/ctoolslib/aet/include/
install -m 0644 ${S}/build/c66/libaet.ae66 ${D}${datadir}/ti/ctoolslib/aet/lib/
}
COMPATIBLE_MACHINE = "dra7xx"
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES:${PN}-dev += "\
${datadir}/ti/ctoolslib/aet \
"
ALLOW_EMPTY:${PN} = "1"

View File

@@ -0,0 +1,29 @@
DESCRIPTION = "Baremetal GCC for ARM"
LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061"
require recipes-ti/includes/ti-paths.inc
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"
SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0"
SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69"
S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update"
# only x86_64 is supported
COMPATIBLE_HOST = "x86_64.*-linux"
COMPATIBLE_HOST:class-target = "null"
do_install() {
install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
}
FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps arch"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,40 @@
DESCRIPTION = "TI CG_XML"
HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-staging.inc
require recipes-ti/includes/ti-unpack.inc
PV = "2.61.00"
PE = "1"
S = "${WORKDIR}/cg_xml_${PV}"
SRC_URI = "\
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 \
"
LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684"
SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff"
SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9"
BINFILE="cgxml-${PV}-linux-installer.run"
TI_BIN_UNPK_CMDS=""
TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${CG_XML_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${CG_XML_INSTALL_DIR_RECIPE}
}
FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN} = "arch ldflags file-rdeps"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,44 @@
SUMMARY = "TI ARM Code Generation Tools"
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
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"
LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108"
require recipes-ti/includes/ti-unpack.inc
require recipes-ti/includes/ti-staging.inc
require recipes-ti/includes/ti-paths.inc
S = "${WORKDIR}/ti-cgt-arm-${PV}"
PE = "1"
PR = "r0"
SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
TI_BIN_UNPK_ARGS = "--prefix ${S}"
TI_BIN_UNPK_CMDS = ""
# only x86_64 is supported
COMPATIBLE_HOST = "x86_64.*-linux"
COMPATIBLE_HOST:class-target = "null"
do_install() {
install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
}
SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b"
SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4"
BINFILE_NAME = "cgt_arm_installer"
FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN} += "arch staticdev file-rdeps"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,50 @@
DESCRIPTION = "TI PRU Code Generation Tools"
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-unpack.inc
BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin"
BINFILE_NAME = "cgt-pru-x86"
TI_BIN_UNPK_ARGS = "--prefix ${S}"
TI_BIN_UNPK_CMDS = ""
BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh"
BINFILE_NAME:class-target = "cgt-pru-arm"
SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}"
SRC_URI[cgt-pru-x86.md5sum] = "abb76fac986993aafaf467915985ec4f"
SRC_URI[cgt-pru-x86.sha256sum] = "1f1405167214f2c0ef848591b17a7799fdcd9f55f11bc90db9ace3490d426215"
SRC_URI[cgt-pru-arm.md5sum] = "648a6d7d8162fd6a89f381c7b974e6b0"
SRC_URI[cgt-pru-arm.sha256sum] = "8390cb77b46b728ce2940595b81406f76d86dfed58c21258e3206a7c1232ccf2"
do_install() {
install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
cp -r ${S}/ti-cgt-pru_${PV}/. \
${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
rm ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/*installer_install.log
}
do_install:class-target() {
${WORKDIR}/${BINFILE} --prefix ${D}
}
FILES:${PN} += "${datadir}/ti/*"
FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \
${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \
"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,24 @@
DESCRIPTION = "TI ARM Code Generation Tools"
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm"
SECTION = "devel"
LICENSE = "TI"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
require ../includes/ti-eula-unpack.inc
S = "${WORKDIR}/cgt470_${PV}"
SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin"
TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
TI_BIN_UNPK_WDEXT="/cgt470_${PV}"
do_install() {
install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
}

View File

@@ -0,0 +1,8 @@
require ti-cgt470.inc
PV = "4_6_6"
PVwithdots = "4.6.6"
SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b"
SRC_URI[cgt470bin.sha256sum] = "a17bc7139f450672503c932ef53b00c425522890e031b4a7c9135fdf90815740"

View File

@@ -0,0 +1,46 @@
SUMMARY = "TI DSP Code Generation Tools"
DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \
utilities targeted for TI embedded processors. This Digital Signal \
Processor (DSP) suite contains tools needed to create and debug \
applications for the C6000 DSP family. This includes tools such as: \
compiler, linker, assembler, etc. This also includes C runtime \
libraries and standard header files needed to produce a working DSP application."
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
S = "${WORKDIR}/c6000_7.4.16"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-unpack.inc
BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
TI_BIN_UNPK_CMDS=""
SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
# only x86_64 is supported
COMPATIBLE_HOST = "x86_64.*-linux"
COMPATIBLE_HOST:class-target = "null"
do_install() {
install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
}
FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN} += "arch staticdev textrel"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,107 @@
DESCRIPTION = "TI DSP Code Generation Tools"
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
PE = "1"
require recipes-ti/includes/ti-unpack.inc
COMPATIBLE_HOST:class-target = "arm.*-linux"
# For now we only have hardfp version for target class
python __anonymous() {
c = d.getVar("CLASSOVERRIDE")
if c == "class-target":
tunes = d.getVar("TUNE_FEATURES")
if not tunes:
return
pkgn = d.getVar("PN")
pkgv = d.getVar("PV")
if "callconvention-hard" not in tunes:
bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
}
BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
BINFILE_NAME = "cgt6x_x86_installer"
TI_BIN_UNPK_ARGS = "--prefix ${S}"
TI_BIN_UNPK_CMDS = ""
BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
BINFILE_NAME:class-target = "cgt6x_arm_installer"
SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}"
SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161"
SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6"
SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9"
SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f"
do_install() {
install -d ${D}${bindir}
for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
install -m 755 ${binfile} ${D}${bindir}
done
install -d ${D}${datadir}/ti/cgt-c6x/bin
for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin
done
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include
install -d ${D}${datadir}/ti/cgt-c6x/lib
for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
done
for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
done
for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
done
install -d ${D}${datadir}/man/man1
for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
if [ -e ${manfile} ]; then
install -m 644 ${manfile} ${D}${datadir}/man/man1
fi
done
install -d ${D}${datadir}/doc/ti/cgt-c6x
for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
done
for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do
install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
done
for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
done
}
do_install:class-target() {
${WORKDIR}/${BINFILE} --prefix ${D}
}
FILES:${PN} += "${datadir}/ti/*"
FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug"
INSANE_SKIP:${PN} += "staticdev"
INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a"
BBCLASSEXTEND = "native nativesdk"
COMPATIBLE_MACHINE:class-target = "(ti-soc)"

View File

@@ -0,0 +1,49 @@
SUMMARY = "TI DSP Code Generation Tools"
DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \
utilities targeted for TI embedded processors. This Digital Signal \
Processor (DSP) suite contains tools needed to create and debug \
applications for the C7000 DSP family. This includes tools such as: \
compiler, linker, assembler, etc. This also includes C runtime \
libraries and standard header files needed to produce a working DSP application."
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64"
require recipes-ti/includes/ti-unpack.inc
require recipes-ti/includes/ti-paths.inc
# only x86_64 is supported
COMPATIBLE_HOST = "x86_64.*-linux"
COMPATIBLE_HOST:class-target = "null"
PE = "1"
BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin"
BINFILE_NAME = "cgt7x_x86_installer"
SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}"
TI_BIN_UNPK_ARGS = "--prefix ${S}"
TI_BIN_UNPK_CMDS = ""
SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb"
SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5"
S = "${WORKDIR}/c7000_${PV}"
do_install() {
install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
}
FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN} += "arch staticdev textrel"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,83 @@
DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc"
SECTION = "devel"
LICENSE = "BSD-3-Clause & GPL-2.0-only"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-staging.inc
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${XDC_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${XDC_INSTALL_DIR_RECIPE}
}
FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}"
BBCLASSEXTEND = "native nativesdk"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps"
# Prevent internal libs from getting picked up
PRIVATE_LIBS = " \
libncdb.so \
libcdb.so \
libjavaplugin_oji.so \
libjavaplugin_jni.so \
libjsound.so \
libinstrument.so \
libjawt.so \
libzip.so \
libjava_crw_demo.so \
libjavaplugin_nscp_gcc29.so \
libhprof.so \
libcmm.so \
libjdwp.so \
libmlib_image.so \
libjpeg.so \
libverify.so \
libjavaplugin_nscp.so \
libmanagement.so \
libunpack.so \
librmi.so \
libJdbcOdbc.so \
libawt.so \
libnet.so \
libjaas_unix.so \
libnio.so \
libdcpr.so \
libioser12.so \
libjsoundalsa.so \
libjava.so \
libfontmanager.so \
libdt_socket.so \
libmawt.so \
libjvm.so \
libhpi.so \
lib.so \
libcairo.so.2 \
libjli.so \
libawt_xawt.so \
"
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST:ti-soc = "(.*)"
COMPATIBLE_HOST:class-native = "(.*)"
COMPATIBLE_HOST:class-nativesdk = "(.*)"
S = "${WORKDIR}/xdctools_${PV}_core"
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"
PE = "1"
PV = "3_55_02_22"
PR = "r0"
LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8"
SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f"
SRC_URI[xdczip.sha256sum] = "bf90dfbbe298458c736d81d5631db25b335e79146923a4a50fab217e02723e7b"

View File

@@ -0,0 +1,6 @@
include dsplib.inc
MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
DSPLIB_BUILD_TARGET = "c64Px"

View File

@@ -0,0 +1,8 @@
include dsplib.inc
MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
DSPLIB_BUILD_TARGET = "c66x"
DEPENDS += "mathlib-c66x"

View File

@@ -0,0 +1,8 @@
include dsplib.inc
MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
DSPLIB_BUILD_TARGET = "c674x"
DEPENDS += "mathlib-c674x"

View File

@@ -0,0 +1,64 @@
SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
LICENSE = "BSD-3-Clause"
require ../includes/ti-paths.inc
PV = "3_4_0_4"
PR = "r2"
DEPENDS = "ti-cgt6x-native \
ti-xdctools-native \
ti-sysbios \
doxygen-native \
swtools"
S = "${WORKDIR}/git"
DSPLIB_GIT_BRANCH = "master"
DSPLIB_GIT_PROTOCOL = "https"
DSPLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/dsplib.git"
DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161"
SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}"
SRCREV = "${DSPLIB_SRCREV}"
LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
export DSPLIB_WORK_DIR="${S}"
export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
export INCDIR="${MATHLIB_INSTALL_DIR}/"
PATH:append = ":${XDC_INSTALL_DIR}"
XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
export XDCPATH
DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
do_compile() {
cd ${DSPLIB_WORK_DIR}/ti/dsplib;
xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
}
do_install() {
install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE}
rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN}-dev = "arch"
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST:ti-soc = "(.*)"

View File

@@ -0,0 +1,21 @@
DESCRIPTION = "TI Framework Components"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
require recipes-ti/includes/ti-paths.inc
S = "${WORKDIR}/framework_components_${PV}"
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"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${FC_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${FC_INSTALL_DIR_RECIPE}
}
INSANE_SKIP:${PN} = "ldflags"
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${FC_INSTALL_DIR_RECIPE}"

View File

@@ -0,0 +1,9 @@
require ti-framework-components.inc
PV = "2_26_00_01"
PR = "r2"
LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75"
SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af"
SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048"

View File

@@ -0,0 +1,9 @@
require ti-framework-components.inc
PV = "3_40_02_07"
PR = "r0"
LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a"
SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e"
SRC_URI[fctarball.sha256sum] = "69082a0f86d12c24b39a1293ec35cf8007b850479898d5ae485ec1e8cf2e8c72"

View File

@@ -0,0 +1,34 @@
DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs"
HOMEPAGE = "http://www.ti.com/tool/sprc264"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
require ../includes/ti-unpack.inc
COMPATIBLE_MACHINE = "omap-a15"
SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib"
S = "${WORKDIR}/imglib-c66x-${PV}"
BINFILE = "imglib_c66x_${PV}_Linux.bin"
TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
TI_BIN_UNPK_CMDS = ""
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
RDEPENDS:${PN}-dev += "perl"
INSANE_SKIP:${PN}-dev = "arch"

View File

@@ -0,0 +1,9 @@
require imglib-c66x.inc
PV = "3_1_1_0"
PR = "r1"
LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667"
SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca"
SRC_URI[imglib.sha256sum] = "f3153e51530f26cfc638efca7ca6ae1bbaf7736daf287fc972592372a676ed21"

View File

@@ -0,0 +1,15 @@
# This file defines function used for unpacking the .bin file downloaded over
# the http and display EULA.
# BINFILE - name of the install jammer .bin file
# TARFILE - name of the tar file inside the install jammer
# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
# passed while unpacking the bin file. The keyword
# workdir expands to WORKDIR and commands are appendded
# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
# the output in some internal directory
require recipes-ti/includes/ti-unpack.inc
TI_BIN_UNPK_ARGS = "--mode console"

View File

@@ -0,0 +1,58 @@
installdir = "${datadir}/ti"
export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
# This is where do_install will put it
export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree"
export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree"
export CODEGEN_ARM_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt470-tree"
export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree"
export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree"
export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree"
export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree"
export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree"
export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree"
export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree"
export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7"
export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x"
export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree"
export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree"
# This is where the tools will end up in sysroot
export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}"
export CODEGEN_ARM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}"
export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}"
export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}"
export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}"
export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}"
export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}"
export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}"

View File

@@ -0,0 +1,6 @@
INHIBIT_PACKAGE_STRIP = "1"
ALLOW_EMPTY:${PN} = "1"
ALLOW_EMPTY:${PN}-dev = "1"

View File

@@ -0,0 +1,82 @@
# This file defines function used for unpacking the .bin file downloaded over
# the http.
# BINFILE - name of the install jammer .bin file
# TARFILE - name of the tar file inside the install jammer
# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
# passed while unpacking the bin file. The keyword
# workdir expands to WORKDIR and commands are appendded
# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
# the output in some internal directory
python do_unpack () {
bb.build.exec_func('base_do_unpack', d)
bb.build.exec_func('ti_bin_do_unpack', d)
}
TI_BIN_UNPK_WDEXT ?= ""
python ti_bin_do_unpack() {
import os
# InstallJammer requires 32bit version of glibc
if not os.path.exists('/lib/ld-linux.so.2'):
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")
localdata = bb.data.createCopy(d)
binfile = localdata.getVar('BINFILE')
binfile = bb.data.expand(binfile, localdata)
# Change to the working directory
save_cwd = os.getcwd()
workdir = localdata.getVar('WORKDIR')
workdir = bb.data.expand(workdir, localdata)
os.chdir(workdir)
# Get unpack args
arg_string = localdata.getVar('TI_BIN_UNPK_ARGS')
arg_string = bb.data.expand(arg_string, localdata)
# Get unpack commands
cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS')
cmd_list = cmd_string.split( ":" )
# Make the InstallJammer binary executable so we can run it
os.chmod(binfile, 0o755)
# Run the InstallJammer binary and accept the EULA
filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
# Test executable by printing installer version or help screen (--version currently broken for some installers)
# - this is currently broken in some IJ installers - comment out for now
#if os.system(filename + " --version") != 0:
# print "ERROR: ti-eula-unpack: failed to execute binary installer"
# raise bb.build.FuncFailed()
f = os.popen(filename,'w')
for cmd in cmd_list:
if cmd == "workdir":
wdext = localdata.getVar('TI_BIN_UNPK_WDEXT')
wdext = bb.data.expand(wdext, localdata)
cmd = workdir+wdext
f.write(cmd+'\n');
f.close()
# Expand the tarball that was created if required
tarfile = localdata.getVar('TARFILE')
if bool(tarfile) == True:
tarfile = bb.data.expand(tarfile, localdata)
tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
if os.system(tcmd) != 0:
print("ERROR: ti-eula-unpack: failed to extract tarfile")
raise bb.build.FuncFailed()
# Return to the previous directory
os.chdir(save_cwd)
}
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST:ti-soc = "(.*)"
COMPATIBLE_HOST:class-native = "(.*)"
COMPATIBLE_HOST:class-nativesdk = "(.*)"

View File

@@ -0,0 +1,73 @@
require recipes-ti/includes/ti-paths.inc
TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/git/ipc/ipc-examples.git"
TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples"
TI_IPC_EXAMPLES_GIT_PROTOCOL = "https"
TI_IPC_EXAMPLES_GIT_BRANCH = "master"
TI_IPC_EXAMPLES_NAME = "ipc-examples"
SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\
destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\
protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\
branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\
name=${TI_IPC_EXAMPLES_NAME}"
TI_IPC_METADATA_GIT_URI = "git://git.ti.com/git/ipc/ipc-metadata.git"
TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata"
TI_IPC_METADATA_GIT_PROTOCOL = "https"
TI_IPC_METADATA_GIT_BRANCH = "master"
TI_IPC_METADATA_NAME = "ipc-metadata"
SRC_URI += "${TI_IPC_METADATA_GIT_URI};\
destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\
protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\
branch=${TI_IPC_METADATA_GIT_BRANCH};\
name=${TI_IPC_METADATA_NAME}"
# Corresponds to tag: 3.51.00.00
TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2"
# Corresponds to tag: 3.51.00.00
TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358"
SRCREV_FORMAT = "default"
SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}"
SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}"
S_ipc-examples = "${WORKDIR}/git/ipc-examples"
S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
RELEASE_TYPE = "GA"
RELEASE_SUFFIX = ""
PR = "${INC_PR}.r0"
DEPENDS:append:omap-a15 = " ti-cgt6x-native \
ti-cgt-arm-native \
gcc-arm-baremetal-native \
"
DEPENDS:append:omapl138 = " ti-cgt6x-native \
"
IPC_TARGETS = ""
IPC_TARGETS:omap-a15 = "\
gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
"
IPC_TARGETS:omapl138 = "\
ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
"
PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}"
EXTRA_OEMAKE = "\
PLATFORM=${PLATFORM} \
XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
${IPC_TARGETS} \
${PARALLEL_XDC} \
JAVA_TOOL_OPTIONS=-Xss2560k \
"

View File

@@ -0,0 +1,123 @@
require recipes-ti/ipc/ti-ipc.inc
require recipes-ti/ipc/ti-ipc-common.inc
require ti-ipc-rtos.inc
inherit deploy
inherit update-alternatives
DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native"
PACKAGES =+ "${PN}-fw"
FILES:${PN}-fw = "${nonarch_base_libdir}/firmware/*"
FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN}-fw += "arch"
INSANE_SKIP:${PN}-dev += "arch"
ALLOW_EMPTY:${PN} = "1"
IPC_PACKAGE_DIR = "${S}/ipc-package"
do_compile() {
oe_runmake -f ipc-bios.mak clean
oe_runmake -f ipc-bios.mak release
cd ${S_ipc-metadata}
oe_runmake .all-files IPC_INSTALL_DIR="${S}" \
BUILD_HOST_OS="linux" \
RELEASE_TYPE="${RELEASE_TYPE}"
cd ${S_ipc-examples}/src
oe_runmake .examples \
IPCTOOLS="${S_ipc-metadata}/src/etc"
for alt_platform in ${ALT_PLATFORM}; do
oe_runmake .examples \
IPCTOOLS="${S_ipc-metadata}/src/etc" \
PLATFORM=${alt_platform}
done
if [ "${PLATFORM}" != "UNKNOWN" ]; then
oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}"
oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}"
for alt_platform in ${ALT_PLATFORM}; do
oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" IPC_INSTALL_DIR="${S}"
oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" IPC_INSTALL_DIR="${S}"
done
fi
IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
install -d ${IPC_PACKAGE_DIR}
# Copy docs and other meta files
cp -pPrf ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d ${IPC_PACKAGE_DIR}
# Copy example folders corresponding to the platforms
if [ "${PLATFORM}" != "UNKNOWN" ]; then
install -d ${IPC_PACKAGE_DIR}/examples
cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/
cp -pPf ${S_ipc-examples}/src/examples/makefile ${IPC_PACKAGE_DIR}/examples/
cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* ${IPC_PACKAGE_DIR}/examples/
for alt_platform in ${ALT_PLATFORM}; do
cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* ${IPC_PACKAGE_DIR}/examples/
done
find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {}
fi
}
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
# Copy docs and other meta files
install -d ${D}${IPC_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${IPC_PACKAGE_DIR}/* -d ${D}${IPC_INSTALL_DIR_RECIPE}
install -d ${D}${nonarch_base_libdir}/firmware/ipc
cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${nonarch_base_libdir}/firmware/ipc || true
}
KFDSPNUM = "0"
KFPLAT = ""
ALTERNATIVE_PRIORITY = "5"
ALTERNATIVE:${PN}-fw:omapl138 = "rproc-dsp-fw"
ALTERNATIVE:${PN}-fw:omap-a15 = "dra7-dsp1-fw.xe66 \
dra7-dsp2-fw.xe66 \
dra7-ipu1-fw.xem4 \
dra7-ipu2-fw.xem4 \
"
ALTERNATIVE_LINK_NAME[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/rproc-dsp-fw"
ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp1-fw.xe66"
ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp2-fw.xe66"
ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu1-fw.xem4"
ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu2-fw.xem4"
ALTERNATIVE_TARGET[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674"
ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66"
ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66"
ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4"
ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4"
do_deploy() {
install -d ${DEPLOYDIR}
}
do_deploy:append:omap-a15() {
install -d ${DEPLOYDIR}/ipc
install -m 0644 ${S}/packages/ti/ipc/tests/bin/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${DEPLOYDIR}/ipc/dra7-ipu1-fw.xem4
}
addtask deploy after do_install
# Disable the "buildpaths" check while we figure out how we are
# going to address this issue.
#
# The ti-cgt6x compiler is a custom TI compiler for the TI C6000
# Digital Signal Processor(DSP) platform. It does not currently
# support reproducible builds and is provided via a binary blob
# download that we cannot patch in the recipe to address the
# issue.
INSANE_SKIP:${PN}-dev += "buildpaths"
INSANE_SKIP:${PN}-fw += "buildpaths"

View File

@@ -0,0 +1,12 @@
require ti-jailhouse.inc
do_install() {
install -d ${D}${bindir}
install -m 0755 ${TOOLS_SRC_DIR}/demos/ivshmem-demo ${D}${bindir}
}
FILES:${PN} = " \
${bindir}/ivshmem-demo \
"

View File

@@ -0,0 +1,128 @@
require ti-jailhouse.inc
RDEPENDS:${PN} += "\
python3-curses\
python3-datetime\
python3-mmap\
"
JH_CELL_FILES ?= "*.cell"
JH_CELL_FILES:k3 ?= "k3-*.cell"
JH_CELL_FILES:am62xx ?= "k3-am625-*.cell"
JH_CELL_FILES:am62pxx ?= "k3-am62p5-*.cell"
JH_CELL_FILES:am62lxx ?= "k3-am62l*.cell"
JH_INMATE_DTB ?= ""
JH_INMATE_DTB:am62xx ?= "inmate-k3-am625-sk.dtb"
JH_INMATE_DTB:am65xx ?= "inmate-k3-am654-idk.dtb"
JH_INMATE_DTB:am62pxx ?= "inmate-k3-am62p5-sk.dtb"
JH_INMATE_DTB:am62lxx ?= "inmate-k3-am62l3-evm.dtb"
JH_INMATE_DTB:j7 ?= "inmate-k3-j721e-evm.dtb"
JH_INMATE_DTB:j7200-evm ?= "inmate-k3-j7200-evm.dtb"
JH_LINUX_DEMO_CELL ?= ""
JH_LINUX_DEMO_CELL:am62xx ?= "k3-am625-sk-linux-demo.cell"
JH_LINUX_DEMO_CELL:am65xx ?= "k3-am654-idk-linux-demo.cell"
JH_LINUX_DEMO_CELL:am62pxx ?= "k3-am62p5-sk-linux-demo.cell"
JH_LINUX_DEMO_CELL:am62lxx ?= "k3-am62l3-evm-linux-demo.cell"
JH_LINUX_DEMO_CELL:j7 ?= "k3-j721e-evm-linux-demo.cell"
JH_LINUX_DEMO_CELL:j7200-evm ?= "k3-j7200-evm-linux-demo.cell"
INITRAMFS_IMAGE ?= ""
JH_RAMFS_IMAGE ?= "${INITRAMFS_IMAGE}"
JH_CMDLINE ?= ""
JH_CMDLINE:am62xx ?= "console=ttyS3,115200n8 earlycon=ns16550a,mmio32,0x02810000"
JH_CMDLINE:am62pxx ?= "console=ttyS1,115200n8"
JH_CMDLINE:am62lxx ?= "console=ttyS3,115200n8"
JH_CMDLINE:am65xx ?= "console=ttyS1,115200n8"
JH_CMDLINE:j7 ?= "console=ttyS3,115200n8"
JH_CMDLINE:j7200-evm ?= "console=ttyS3,115200n8"
do_install() {
# We want to install the python tools, but we do not want to use pip...
# At least with v0.10, we can work around this with
# 'PIP=":" PYTHON_PIP_USEABLE=yes'
oe_runmake PIP=: PYTHON=python3 PYTHON_PIP_USEABLE=yes DESTDIR=${D} install
install -d ${D}${CELL_DIR}
install -m 0644 ${B}/configs/${JH_ARCH}/${JH_CELL_FILES} ${D}${CELL_DIR}/
install -d ${D}${INMATES_DIR}
install -m 0644 ${B}/inmates/demos/${JH_ARCH}/*.bin ${D}${INMATES_DIR}
install -d ${D}/boot
if [ -n "${JH_RAMFS_IMAGE}" ]
then
if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ]
then
install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ${D}/boot
else
bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio)!"
bberror "Please make sure that \"cpio\" is in IMAGE_FSTYPES."
fi
fi
if [ -n "${JH_INMATE_DTB}" -a -n "${JH_LINUX_DEMO_CELL}" ]; then
cd ${TOOLS_SRC_DIR}
echo "#! /bin/sh" > ${D}${JH_DATADIR}/linux-demo.sh
echo "jailhouse enable ${CELL_DIR}/${JH_SYSCONFIG_CELL}" >> ${D}${JH_DATADIR}/linux-demo.sh
./jailhouse-cell-linux -w ${D}${JH_DATADIR}/${JH_INMATE_DTB} \
-a ${JH_ARCH} -c "${JH_CMDLINE}" \
-d ../configs/${JH_ARCH}/dts/${JH_INMATE_DTB} \
-i ${D}/boot/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio \
${D}${CELL_DIR}/${JH_LINUX_DEMO_CELL} \
${DEPLOY_DIR_IMAGE}/Image \
| tr -cd '\11\12\15\40-\176' \
>> ${D}${JH_DATADIR}/linux-demo.sh
sed -i -e 's,^Modified device tree written.*,,g' ${D}${JH_DATADIR}/linux-demo.sh
sed -i -e 's,\${D},,g' ${D}${JH_DATADIR}/linux-demo.sh
sed -i -e 's, linux-loader.bin, ${JH_EXEC_DIR}/linux-loader.bin,g' ${D}${JH_DATADIR}/linux-demo.sh
sed -i -e 's,\${DEPLOY_DIR_IMAGE},/boot,g' ${D}${JH_DATADIR}/linux-demo.sh
sed -i -e '/^\s*$/d' ${D}${JH_DATADIR}/linux-demo.sh
chmod +x ${D}${JH_DATADIR}/linux-demo.sh
fi
rm ${D}${JH_DATADIR}/root-cell-config.c.tmpl
rm ${D}${JH_DATADIR}/jailhouse-config-collect.tmpl
}
PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse ${PN}-tools"
FILES:pyjailhouse = "${PYTHON_SITEPACKAGES_DIR}"
FILES:${PN}-tools = "${libexecdir}/${BPN}/${BPN}-*"
RDEPENDS:${PN}-tools = "pyjailhouse python3-mmap python3-math python3-datetime python3-curses python3-compression"
RDEPENDS:pyjailhouse = "python3-core python3-ctypes python3-fcntl python3-shell"
RRECOMMENDS:${PN} = "${PN}-tools"
INSANE_SKIP:${PN} = "ldflags usrmerge"
INSANE_SKIP:${PN}-dbg = "usrmerge buildpaths"
KERNEL_MODULE_AUTOLOAD += "jailhouse"
# Any extra cells/inmates from external recipes/packages
CELLS = ""
python __anonymous () {
d.appendVarFlag('do_install', 'depends', ' virtual/kernel:do_deploy')
ramfs = d.getVar('JH_RAMFS_IMAGE', True)
if ramfs:
d.appendVarFlag('do_install', 'depends', ' ${JH_RAMFS_IMAGE}:do_image_complete')
# Setup DEPENDS and RDEPENDS to included cells
cells = d.getVar('CELLS', True) or ""
for cell in cells.split():
d.appendVar('DEPENDS', ' ' + cell)
d.appendVar('RDEPENDS_${PN}', ' ' + cell)
}
FILES:${PN} = " \
/boot \
/usr \
/lib \
"

View File

@@ -0,0 +1,88 @@
SUMMARY = "Linux-based partitioning hypervisor"
DESCRIPTION = "Jailhouse is a partitioning Hypervisor based on Linux. It is able to run bare-metal applications or (adapted) \
operating systems besides Linux. For this purpose, it configures CPU and device virtualization features of the hardware \
platform in a way that none of these domains, called 'cells' here, can interfere with each other in an unacceptable way."
HOMEPAGE = "https://github.com/siemens/jailhouse"
SECTION = "jailhouse"
LICENSE = "GPL-2.0-only & BSD-2-Clause"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=9fa7f895f96bde2d47fd5b7d95b6ba4d \
"
COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx"
TARGET_CC_ARCH += "${LDFLAGS}"
PV = "0.12+git"
SRCREV = "ef512f9591febed854d8f07ad8c1fa731c2d3c69"
BRANCH = "master"
SRC_URI = " \
git://git.ti.com/git/jailhouse/ti-jailhouse.git;protocol=https;branch=${BRANCH} \
"
# Set jailhouse architecture JH_ARCH variable
#
# return value must match one of architectures supported by jailhouse
#
valid_jh_archs = "x86 arm"
def map_jh_arch(a, d):
import re
valid_jh_archs = d.getVar('valid_jh_archs', True).split()
if re.match('(i.86|athlon|x86.64)$', a): return 'x86'
elif re.match('armeb$', a): return 'arm'
elif re.match('aarch64$', a): return 'arm64'
elif re.match('aarch64_be$', a): return 'arm64'
elif a in valid_jh_archs: return a
else:
bb.error("cannot map '%s' to a jailhouse supported architecture" % a)
export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}"
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
S = "${WORKDIR}/git"
B = "${S}"
DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native"
inherit module python3native bash-completion deploy setuptools3
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(ti-soc)"
JH_DATADIR ?= "${datadir}/jailhouse"
JH_EXEC_DIR ?= "${libexecdir}/jailhouse"
CELL_DIR ?= "${JH_DATADIR}/cells"
CELLCONF_DIR ?= "${JH_DATADIR}/configs"
INMATES_DIR ?= "${JH_DATADIR}/inmates"
JH_SYSCONFIG_CELL ?= ""
JH_SYSCONFIG_CELL:am62xx ?= "k3-am625-sk.cell"
JH_SYSCONFIG_CELL:am65xx ?= "k3-am654-idk.cell"
JH_SYSCONFIG_CELL:am62pxx ?= "k3-am62p5-sk.cell"
JH_SYSCONFIG_CELL:am62lxx ?= "k3-am62l3-evm.cell"
JH_SYSCONFIG_CELL:j7 ?= "k3-j721e-evm.cell"
JH_SYSCONFIG_CELL:j7200-evm ?= "k3-j7200-evm.cell"
do_configure() {
if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ];
then
cp ${STAGING_DIR_HOST}/${CELLCONF_DIR}/*.c ${S}/configs/
fi
}
USER_SPACE_CFLAGS = '${CFLAGS} -DLIBEXECDIR=\\\"${libexecdir}\\\" \
-DJAILHOUSE_VERSION=\\\"$JAILHOUSE_VERSION\\\" \
-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \
-I../driver'
TOOLS_SRC_DIR = "${S}/tools"
EXTRA_OEMAKE = "ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" KDIR=${STAGING_KERNEL_BUILDDIR}"
do_compile() {
oe_runmake V=1
}

View File

@@ -0,0 +1,5 @@
include mathlib.inc
MATHLIB_BUILD_TARGET = "c66x"
MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}"
MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}"

View File

@@ -0,0 +1,5 @@
include mathlib.inc
MATHLIB_BUILD_TARGET = "c674x"
MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}"
MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}"

View File

@@ -0,0 +1,63 @@
SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs"
HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib"
LICENSE = "BSD-3-Clause"
require ../includes/ti-paths.inc
PV = "3_1_2_4"
PR = "r2"
DEPENDS = "ti-cgt6x-native \
ti-xdctools-native \
ti-sysbios \
doxygen-native \
swtools"
S = "${WORKDIR}/git"
MATHLIB_GIT_BRANCH = "master"
MATHLIB_GIT_PROTOCOL = "https"
MATHLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/mathlib.git"
MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951"
SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}"
SRCREV = "${MATHLIB_SRCREV}"
LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250"
export MATHLIB_WORK_DIR="${S}"
export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
PATH:append = ":${XDC_INSTALL_DIR}"
XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};"
export XDCPATH
MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}"
do_compile() {
cd ${MATHLIB_WORK_DIR}/ti/mathlib;
xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
}
do_install() {
install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE}
find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \;
cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE}
rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN}-dev = "arch"
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST:ti-soc = "(.*)"

View File

@@ -0,0 +1,52 @@
SUMMARY = "TI Software Tools"
HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools"
SECTION = "devel"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d"
require ../includes/ti-paths.inc
DEPENDS = "ti-cgt6x-native \
ti-sysbios \
ti-xdctools-native"
PV = "5_0_8"
PR = "r3"
S = "${WORKDIR}/git"
SWTOOLS_GIT_BRANCH = "master"
SWTOOLS_GIT_PROTOCOL = "https"
SWTOOLS_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/swtools.git"
SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4"
SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}"
SRCREV = "${SWTOOLS_SRCREV}"
export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
PATH:append = ":${XDC_INSTALL_DIR}"
XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
export XDCPATH
do_compile() {
cd ${S}/ti/mas/swtools
xdc
}
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
}
FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}"
INSANE_SKIP:${PN}-dev = "arch staticdev"
ALLOW_EMPTY:${PN} = "1"
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST:ti-soc = "(.*)"

View File

@@ -0,0 +1,32 @@
DESCRIPTION = "TI Vision Library (VLIB) for C66x"
HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html"
SECTION = "devel"
LICENSE = "TI-TSPA & BSD-3-Clause"
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
require ../includes/ti-eula-unpack.inc
COMPATIBLE_MACHINE = "omap-a15"
SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin"
S = "${WORKDIR}/vlib_c66x_${PV}"
BINFILE="vlib_c66x_obj_${PV}_Linux.bin"
TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
TI_BIN_UNPK_CMDS=""
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
}
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN}-dev = "arch"

View File

@@ -0,0 +1,9 @@
require vlib-c66x.inc
PV = "3_2_1_0"
PR = "r0"
LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda"
SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7"
SRC_URI[vlibbin.sha256sum] = "05bf16473d60e0252d3a73a7c3d268e540783a226b4bda930e5f6042e7b01bd8"

View File

@@ -0,0 +1,25 @@
DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais"
LICENSE = "GPL-2.0-only"
SECTION = "devel"
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
S = "${WORKDIR}/xdais_${PV}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
install -d ${D}${XDAIS_INSTALL_DIR_RECIPE}
cp ${CP_ARGS} ${S}/* ${D}${XDAIS_INSTALL_DIR_RECIPE}
}
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN}-dev = "arch"
ALLOW_EMPTY:${PN} = "1"
FILES:${PN}-dev += "${XDAIS_INSTALL_DIR_RECIPE}"

View File

@@ -0,0 +1,9 @@
require ti-xdais.inc
PV = "6_26_01_03"
PR = "r1"
LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e"
SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6"
SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d"

View File

@@ -0,0 +1,9 @@
require ti-xdais.inc
PV = "7_24_00_04"
PR = "r1"
LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6"
SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989"
SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1"