mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-05-07 03:49:20 +00:00
meta-ti: move BIOS,XDC,XDAIS, CGT,DSP libs and components to meta-ti-extras
Legacy platforms AM3/4/5/J6 build components for multimedia acceleration and other DSP showcasing using SYS/BIOS, XDC, XDAIS, CodeGen Tools and different DSP libraries. Move all of them to meta-ti-extras. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
committed by
Ryan Eatmon
parent
c300766506
commit
37ef6ae6fe
@@ -0,0 +1,9 @@
|
||||
# This corresponds to version 1.1.0
|
||||
SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
|
||||
|
||||
PV = "1.1.0"
|
||||
INC_PR = "r7"
|
||||
|
||||
SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
BRANCH = "master"
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001
|
||||
From: Denys Dmytriyenko <denys@ti.com>
|
||||
Date: Sat, 15 Feb 2020 15:59:37 -0500
|
||||
Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
|
||||
---
|
||||
gdbc6x/bfd/libbfd.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h
|
||||
index 72d3c50..3465f89 100644
|
||||
--- a/gdbc6x/bfd/libbfd.h
|
||||
+++ b/gdbc6x/bfd/libbfd.h
|
||||
@@ -34,6 +34,10 @@
|
||||
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||
#endif
|
||||
|
||||
+#if __GNUC__ >= 9
|
||||
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
||||
+#endif
|
||||
+
|
||||
#include "hashtab.h"
|
||||
|
||||
/* Align an address upward to a boundary, expressed as a number of bytes.
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
GDB_DEVICE_NAME='/dev/gdbtty$i'
|
||||
DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66'
|
||||
|
||||
DSP_L2_GLOBAL_OFFSET="40000000"
|
||||
DSP_L2_GLOBAL_SHIFT="00800000"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET
|
||||
|
||||
i=0
|
||||
while [ -c "`eval echo $GDB_DEVICE_NAME`" ]
|
||||
do
|
||||
dsp_firmware=`eval echo $DSP_FIRMWARE_NAME`
|
||||
|
||||
if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ]
|
||||
then
|
||||
eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..."
|
||||
|
||||
gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \
|
||||
grep 'gdb_globalData' | \
|
||||
awk '{print $2}'`
|
||||
|
||||
echo "gdb_globalData (local) = $gdb_data_local"
|
||||
printf "gdb_globalData (global) = %X\n" \
|
||||
$[0x$gdb_data_local + 0x$dsp_core_l2_offset]
|
||||
|
||||
|
||||
printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \
|
||||
>> `eval echo $GDB_DEVICE_NAME`
|
||||
fi
|
||||
i=$[$i + 1]
|
||||
dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]`
|
||||
done
|
||||
;;
|
||||
stop)
|
||||
# Nothing to be done.
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
DESCRIPTION = "GNU debugger for TI C6X DSP."
|
||||
SECTION = "devel"
|
||||
LICENSE = "GPLv3+"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"
|
||||
|
||||
DEPENDS = "ncurses bison-native texinfo flex-native gettext"
|
||||
|
||||
COMPATIBLE_MACHINE = "dra7xx"
|
||||
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI:append = " \
|
||||
file://init \
|
||||
file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git/gdbc6x"
|
||||
|
||||
inherit update-rc.d
|
||||
inherit gettext
|
||||
|
||||
CFLAGS += "-fcommon"
|
||||
|
||||
do_configure () {
|
||||
cd ${S}
|
||||
./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb
|
||||
}
|
||||
|
||||
do_install () {
|
||||
make install
|
||||
|
||||
# Custom install to prevent conflict with standard GDB.
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${includedir}
|
||||
install -m 755 ${S}/install_gdb/bin/gdbc6x ${D}${bindir}
|
||||
cp -rf ${S}/install_gdb/include/* ${D}${includedir}
|
||||
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "gdbserverproxy-module-drv bash"
|
||||
|
||||
include gdbc6x.inc
|
||||
|
||||
INITSCRIPT_NAME = "gdbserverproxy"
|
||||
INITSCRIPT_PARAMS = "defaults 95"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
@@ -0,0 +1,49 @@
|
||||
DESCRIPTION = "TI gdb-server to be used with c6xgdb."
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495"
|
||||
|
||||
DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools-native"
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
S = "${WORKDIR}/git/gdbserver-c6x/src"
|
||||
|
||||
PLATFORM = ""
|
||||
PLATFORM:dra7xx = "DRA7xx_PLATFORM"
|
||||
|
||||
EXTRA_OEMAKE = "PLATFORM=${PLATFORM}"
|
||||
|
||||
export XDAIS_DIR = "${XDAIS_INSTALL_DIR}"
|
||||
export FC_DIR = "${FC_INSTALL_DIR}"
|
||||
export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
|
||||
export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
|
||||
export XDC_DIR = "${XDC_INSTALL_DIR}"
|
||||
|
||||
# The following is to prevent an unused configure.ac from erroneously
|
||||
# triggering the QA check for gettext.
|
||||
EXTRA_OECONF = "--disable-nls"
|
||||
do_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${datadir}/ti/gdbc6x/include
|
||||
install -d ${D}${datadir}/ti/gdbc6x/lib
|
||||
cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include
|
||||
cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "dra7xx"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
FILES:${PN}-dev += "\
|
||||
${datadir}/ti/gdbc6x \
|
||||
"
|
||||
|
||||
include gdbc6x.inc
|
||||
|
||||
require recipes-ti/includes/ti-paths.inc
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
@@ -0,0 +1,31 @@
|
||||
DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
|
||||
|
||||
# This package builds a kernel module, use kernel PR as base and append a local
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
PV:append = "+git${SRCPV}"
|
||||
|
||||
S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
|
||||
|
||||
inherit module
|
||||
|
||||
PLATFORM = ""
|
||||
PLATFORM:dra7xx = "DRA7xx_PLATFORM"
|
||||
|
||||
EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
|
||||
|
||||
# The following is to prevent an unused configure.ac from erroneously
|
||||
# triggering the QA check for gettext.
|
||||
EXTRA_OECONF = "--disable-nls"
|
||||
do_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "dra7xx"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
include gdbc6x.inc
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD += "gdbserverproxy"
|
||||
Reference in New Issue
Block a user