1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-21 12:09:15 +00:00
Files
meta-ti/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb
Andrew Davis 9e0fdb560b meta-ti-extras: gdbc6x: Explicitly allow build for AM57x
This recipe builds and runs fine on both DRA7x and AM57x machines.
The COMPATIBLE_MACHINE is set to just DRA7x, but this was okay as AM57x
machines also set themselves as DRA7x family devices. The issue is then
we cannot then differentiate between packages that are actually DRA7x-
only and those that just use that family to mean both machine types. To
fix this when we mean both are allowed use "omap-a15" as done here.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2025-10-12 16:08:45 -05:00

54 lines
1.3 KiB
BlitzBasic

SUMMARY = "GNU debugger for TI C6X DSP."
SECTION = "devel"
LICENSE = "GPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"
DEPENDS = "ncurses bison-native texinfo flex-native gettext"
COMPATIBLE_MACHINE = "omap-a15"
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 -std=gnu11"
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 = ""
# Disable the "buildpaths" check while we figure out how we are
# going to address this issue.
INSANE_SKIP:${PN} += "buildpaths"