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:
@@ -0,0 +1,26 @@
|
||||
From 6120cee594c543d17ae015bc601012debcf57177 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 23 Oct 2023 10:43:42 +0100
|
||||
Subject: [PATCH] include string.h for strncpy()
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Backport [master: 6120cee594c543d17ae015bc601012debcf57177]
|
||||
---
|
||||
interface.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/interface.c b/interface.c
|
||||
index 29229ad6f53d..9a83c36933e7 100644
|
||||
--- a/interface.c
|
||||
+++ b/interface.c
|
||||
@@ -5,6 +5,7 @@
|
||||
* @note SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include "interface.h"
|
||||
|
||||
struct interface {
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
From cffb4807ac0b9ff7aea2aa4f3842985b5363d184 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Fancellu <luca.fancellu@arm.com>
|
||||
Date: Mon, 23 Oct 2023 10:43:43 +0100
|
||||
Subject: [PATCH] linuxptp: Use ${CC} in incdefs.sh
|
||||
|
||||
The Makefile is defining CC and incdefs.sh is using
|
||||
${CROSS_COMPILE}cpp inside it, allowing both to use different
|
||||
compilers depending on what the user pass during make invocation
|
||||
as CC.
|
||||
|
||||
Align them using ${CC} also inside incdefs.sh.
|
||||
|
||||
Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
|
||||
Upstream-Status: Backport [master: cffb4807ac0b9ff7aea2aa4f3842985b5363d184]
|
||||
---
|
||||
incdefs.sh | 2 +-
|
||||
makefile | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/incdefs.sh b/incdefs.sh
|
||||
index a9e94f777f6b..391e63c7fac6 100755
|
||||
--- a/incdefs.sh
|
||||
+++ b/incdefs.sh
|
||||
@@ -27,7 +27,7 @@ user_flags()
|
||||
printf " -D_GNU_SOURCE"
|
||||
|
||||
# Get list of directories searched for header files.
|
||||
- dirs=$(echo "" | ${CROSS_COMPILE}cpp -Wp,-v 2>&1 >/dev/null | grep ^" /")
|
||||
+ dirs=$(${CC} -E -Wp,-v -xc /dev/null 2>&1 >/dev/null | grep ^" /")
|
||||
|
||||
# Look for clock_adjtime().
|
||||
for d in $dirs; do
|
||||
diff --git a/makefile b/makefile
|
||||
index 3e3b8b35fc96..7fc5f6fb8fa8 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -39,7 +39,7 @@ OBJECTS = $(OBJ) hwstamp_ctl.o nsm.o phc2sys.o phc_ctl.o pmc.o pmc_agent.o \
|
||||
SRC = $(OBJECTS:.o=.c)
|
||||
DEPEND = $(OBJECTS:.o=.d)
|
||||
srcdir := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
-incdefs := $(shell $(srcdir)/incdefs.sh)
|
||||
+incdefs := $(shell CC="$(CC)" $(srcdir)/incdefs.sh)
|
||||
version := $(shell $(srcdir)/version.sh $(srcdir))
|
||||
VPATH = $(srcdir)
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Synchronize system clock or PTP hardware clock (PHC)
|
||||
Documentation=man:phc2sys
|
||||
Requires=ptp4l.service
|
||||
After=ptp4l.service
|
||||
Before=time-sync.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@SBINDIR@/phc2sys -w -s %I
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Precision Time Protocol (PTP) service for %I
|
||||
Documentation=man:ptp4l
|
||||
After=sys-subsystem-net-devices-%i.device
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@SBINDIR@/ptp4l -f @SYSCONFDIR@/linuxptp/ptp4l.conf -i %I
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,62 @@
|
||||
SUMMARY = "linuxptp package for linux"
|
||||
DESCRIPTION = "Precision Time Protocol (PTP) according to IEEE standard 1588 \
|
||||
for Linux"
|
||||
HOMEPAGE = "http://linuxptp.sourceforge.net/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
LINUXPTP_SRC_URI = "http://sourceforge.net/projects/linuxptp"
|
||||
|
||||
SRC_URI = "${LINUXPTP_SRC_URI}/files/v4.1/linuxptp-${PV}.tgz \
|
||||
file://0001-include-string.h-for-strncpy.patch \
|
||||
file://0002-linuxptp-Use-CC-in-incdefs.sh.patch \
|
||||
file://systemd/phc2sys@.service.in \
|
||||
file://systemd/ptp4l@.service.in \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "1db8699fc155965341759be5e5aad938"
|
||||
SRC_URI[sha256sum] = "e1743d44f8208897e30895da3579e670ff919b914feb4b5a949f3e421ddde535"
|
||||
|
||||
inherit systemd
|
||||
|
||||
UPSTREAM_CHECK_URI = "${LINUXPTP_SRC_URI}/files/"
|
||||
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
|
||||
|
||||
EXTRA_OEMAKE = "CC='${CC}' EXTRA_CFLAGS='${CFLAGS}' mandir='${mandir}' \
|
||||
sbindir='${sbindir}'"
|
||||
|
||||
export KBUILD_OUTPUT="${RECIPE_SYSROOT}"
|
||||
|
||||
LINUXPTP_SYSTEMD_SERVICES = "phc2sys@.service ptp4l@.service"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
|
||||
# Install example configs from source tree
|
||||
install -d ${D}${docdir}/${PN}
|
||||
cp -R --no-dereference --preserve=mode,links ${S}/configs \
|
||||
${D}${docdir}/${PN}
|
||||
|
||||
# Install default configuration files
|
||||
install -d ${D}/${sysconfdir}/linuxptp/
|
||||
install -m 644 ${S}/configs/default.cfg \
|
||||
${D}${sysconfdir}/linuxptp/ptp4l.conf
|
||||
|
||||
# Install systemd services
|
||||
install -d ${D}/${systemd_unitdir}/system/
|
||||
for service in ${LINUXPTP_SYSTEMD_SERVICES}; do
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' \
|
||||
${WORKDIR}/systemd/$service.in
|
||||
sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
||||
${WORKDIR}/systemd/$service.in
|
||||
install -m 644 ${WORKDIR}/systemd/$service.in \
|
||||
${D}/${systemd_unitdir}/system/$service
|
||||
done
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "${LINUXPTP_SYSTEMD_SERVICES}"
|
||||
SYSTEMD_AUTO_ENABLE:${PN} = "disable"
|
||||
|
||||
PACKAGES =+ "${PN}-configs"
|
||||
|
||||
FILES:${PN}-configs += "${docdir}"
|
||||
Reference in New Issue
Block a user