Commit Graph

7 Commits

Author SHA1 Message Date
Joao Marcos Costa c72ce4fc7e linuxptp: add missing prefix to CVE ID
The ID should be in the CVE-YYYY-NNNNN format, as in the other
CVE_STATUS[] settings.

Add 'CVE-' to avoid potential parsing errors in tools that provide CVE
scaning/analysis.

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
2026-01-26 10:04:40 +05:30
Gyorgy Sarvari 03f418d36b linuxptp: ignore CVE-2024-42861
Details: https://nvd.nist.gov/vuln/detail/CVE-2024-42861

The vulnerability report is considered to be bogus and a non-issue
(or at least not a security issue) by upstream[1] and by major
Linux distros[2][3][4].

[1]: https://lists.nwtime.org/sympa/arc/linuxptp-devel/2024-09/msg00080.html
[2]: Ubuntu: https://ubuntu.com/security/CVE-2024-42861
[3]: Debian: https://security-tracker.debian.org/tracker/CVE-2024-42861
[4]: Suse: https://bugzilla.suse.com/show_bug.cgi?id=1230935

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
2025-11-17 11:50:20 +05:30
Luca Fancellu c66ec8776e linuxptp: Use templates for the systemd services
Use templates for the systemd services so that sbindir
and sysconfdir can be written into them, improving
portability.

Pass sbindir with EXTRA_OEMAKE and remove 'prefix' which
is redundant since we pass sbindir and mandir already.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-18 08:47:09 -07:00
Luca Fancellu c8316b49ff linuxptp: Drop unneeded downstream patches
Drop Use-cross-cpp-in-incdefs.patch which is "Inappropriate"
but what is fixing can be done in an "Upstreamable" way
by the new downstream patch
0002-linuxptp-Use-CC-in-incdefs.sh.patch.

Drop build-Allow-CC-and-prefix-to-be-overriden.patch that can
be removed by passing CC='${CC}' in EXTRA_OEMAKE and, as already
the case, passing prefix=${prefix} in the oe_runmake command line.

While there, drop ARCH from EXTRA_OEMAKE because it's not used in
the codebase.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-18 08:47:09 -07:00
Luca Fancellu 35bcd8c6dd linuxptp: add systemd services
Add systemd services phc2sys@.service and ptp4l@.service,
these services are taken from the Ubuntu/Debian linuxptp
package.

Update the recipe to install them when needed using the
systemd bbclass, the services are disabled by default.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-13 13:23:50 -07:00
Luca Fancellu 34c5bea19d linuxptp: install default configuration file in sysconfdir
Install a default configuration files to be used in
${sysconfdir}/linuxptp, the default.cfg file from linuxptp
is used.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-13 13:23:50 -07:00
Luca Fancellu da5aaaa1d7 linuxptp: update linuxptp recipe to 4.1
Update linuxptp recipe to the new version, from 3.1.1 to 4.1.

Remove one downstream patch that is already applied and
update the remaining to remove merge issues.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-13 13:23:50 -07:00