Commit Graph

6 Commits

Author SHA1 Message Date
Khem Raj ffc64e9c6f recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
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