Files
Khem Raj 69631d19d6 rtc-testbench: Fix build with musl
Cast socket addresses to struct sockaddr * for bind() and sendto(), since
musl has no transparent union for them like glibc, and pin threads with
pthread_setaffinity_np() after creation where
pthread_attr_setaffinity_np() is not available.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-29 15:35:17 -07:00

42 lines
1.5 KiB
BlitzBasic

SUMMARY = "Real-time and non-real-time traffic validation tool for converged TSN networks"
DESCRIPTION = "The Linux RealTime Communication Testbench validates real-time \
performance and robustness of hardware, drivers, and the Linux network stack on \
TSN-enabled Ethernet networks. It generates and mirrors cyclic traffic using \
AF_PACKET or AF_XDP with eBPF, supporting protocols like PROFINET and OPC UA PubSub."
HOMEPAGE = "https://github.com/Linutronix/RTC-Testbench"
LICENSE = "BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-only)"
LIC_FILES_CHKSUM = " \
file://LICENSE;md5=f39e57686080f8752e19c4cd3e04e351 \
file://LICENSES/BSD-2-Clause.txt;md5=9e16594a228301089d759b4f178db91f \
file://LICENSES/GPL-2.0-only.txt;md5=3d26203303a722dedc6bf909d95ba815 \
"
SRC_URI = " \
git://github.com/Linutronix/RTC-Testbench.git;tag=v${PV};nobranch=1;protocol=https \
file://0001-CMakeLists.txt-make-BPF-clang-and-include-paths-conf.patch \
file://0002-Fix-build-with-musl.patch \
"
SRCREV = "b7541b4b93b4d9fe6f395bc53d3cb50401d406a4"
DEPENDS += " \
libyaml \
libbpf \
xdp-tools \
openssl \
clang-native \
"
inherit cmake pkgconfig
EXTRA_OECMAKE += " \
-DRX_TIMESTAMP=ON \
-DTX_TIMESTAMP=ON \
-DCLANG=${STAGING_BINDIR_NATIVE}/clang \
-DBPF_INCLUDE_DIRS=${STAGING_INCDIR} \
-DBPF_EXTRA_FLAGS='-D__${TARGET_ARCH}__ -ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR} -ffile-prefix-map=${STAGING_DIR_HOST}=' \
"
# Require bash since installed scripts use /bin/bash shebang
RDEPENDS:${PN} += "bash"