1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-01-12 01:20:20 +00:00
Files
meta-ti/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb
Andrew Davis 3a9e75ebba meta-ti/all: Make DRA7xx support a subset of AM57xx support
As AM57xx already defined both "dra7xx" and "am57xx" as SOC_FAMILY the
AM57xx was effectively a superset MACHINE. Although not all features of
AM57xx are needed for DRA7xx, make DRA7xx-EVM use the AM57xx definition.
This allows us to still support DRA7xx as the only differences that
impact device function are the selection of U-Boot defconfig, DTBs, and
OPTEE, all handled by the MACHINE conf file which is left unchanged.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2025-12-19 09:57:39 -06:00

71 lines
2.4 KiB
BlitzBasic

SUMMARY = "TI Inter Process Communication (IPC) Mechanisms"
DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC"
require ti-ipc.inc
require ti-ipc-common.inc
PR = "${INC_PR}.2"
DEPENDS += "virtual/kernel"
SRC_URI:append = " https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/plain/include/uapi/linux/rpmsg_rpc.h?h=ti-linux-5.10.y;name=rpmsg_rpc;subdir=linux;downloadfilename=rpmsg_rpc.h"
SRC_URI[rpmsg_rpc.sha256sum] = "cd237f40a37520a1f2df19fbfeefd00c0a5ad68efeaba9ba0fba60ca16ea09be"
SRC_URI += "file://tiipclad-daemon.sh \
file://omap_remoteproc.conf \
file://tiipclad-daemon.service \
file://0001-Add-kernel-build-dir.patch \
file://0001-MmRpc-Stop-looking-for-rpmsg_rpc.h-in-the-kernel.patch \
"
CFLAGS += "-I${UNPACKDIR} -fdebug-prefix-map=${UNPACKDIR}=${TARGET_DBGSRC_DIR}"
DAEMON = "UNKNOWN"
DAEMON:am57xx = "lad_dra7xx"
DAEMON:omapl138 = "lad_omapl138"
inherit autotools-brokensep pkgconfig update-rc.d systemd
INITSCRIPT_NAME = "tiipclad-daemon.sh"
INITSCRIPT_PARAMS = "defaults 10"
SYSTEMD_SERVICE:${PN} = "tiipclad-daemon.service"
EXTRA_OECONF += "PLATFORM=${PLATFORM} KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${STAGING_KERNEL_BUILDDIR}"
do_compile[depends] += "virtual/kernel:do_shared_workdir"
do_configure() {
( cd ${S}; autoreconf -f -i -s )
oe_runconf
}
do_install:append() {
install -d ${D}${sysconfdir}/init.d/
# Modify the startup scripts to point to the right
# lad daemon executable.
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.sh
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.service
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
install -d ${D}${sysconfdir}/init.d/
install -c -m 755 ${UNPACKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
}
do_install:append:am57xx() {
install -d ${D}${sysconfdir}/modprobe.d/
install -c -m 644 ${UNPACKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
}
PACKAGES =+ "${PN}-test"
RDEPENDS:${PN}-test += "${PN}"
FILES:${PN}-test = " \
${bindir}/NameServerApp \
${bindir}/MessageQApp \
${bindir}/MessageQMulti \
${bindir}/ping_rpmsg"