[PATCH 16/18] ptpd: Add to build system
Gabriel Moyano
gabriel.moyano at dlr.de
Wed Apr 12 13:54:20 UTC 2023
---
buildset/default.ini | 1 +
libbsd.py | 47 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/buildset/default.ini b/buildset/default.ini
index 88379a96..9145be9b 100644
--- a/buildset/default.ini
+++ b/buildset/default.ini
@@ -40,6 +40,7 @@ iic = on
pinmux = on
display = on
dhcpcd = on
+ptpd = on
dpaa = on
evdev = on
fdt = on
diff --git a/libbsd.py b/libbsd.py
index e3840f37..1e9b60b5 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -88,6 +88,7 @@ _defaults = {
'freebsd/contrib/expat/lib',
'freebsd/contrib/libpcap',
'freebsd/contrib/libxo',
+ 'freebsd/contrib/ptpd/src',
'mDNSResponder/mDNSCore',
'mDNSResponder/mDNSShared',
'mDNSResponder/mDNSPosix',
@@ -5363,6 +5364,51 @@ class regulator(builder.Module):
mm.generator['source']()
)
+#
+# PTPD
+#
+class ptpd(builder.Module):
+
+ def __init__(self, manager):
+ super(ptpd, self).__init__(manager, type(self).__name__)
+
+ def generate(self):
+ mm = self.manager
+ self.addUserSpaceSourceFiles(
+ [
+ 'contrib/ptpd/src/dep/iniparser/dictionary.c',
+ 'contrib/ptpd/src/dep/iniparser/iniparser.c',
+ 'contrib/ptpd/src/dep/ntpengine/ntp_isc_md5.c',
+ 'contrib/ptpd/src/dep/ntpengine/ntpdcontrol.c',
+ 'contrib/ptpd/src/dep/alarms.c',
+ 'contrib/ptpd/src/dep/configdefaults.c',
+ 'contrib/ptpd/src/dep/daemonconfig.c',
+ 'contrib/ptpd/src/dep/eventtimer.c',
+ 'contrib/ptpd/src/dep/eventtimer_kqueue.c',
+ 'contrib/ptpd/src/dep/ipv4_acl.c',
+ 'contrib/ptpd/src/dep/kqueue.c',
+ 'contrib/ptpd/src/dep/msg.c',
+ 'contrib/ptpd/src/dep/net.c',
+ 'contrib/ptpd/src/dep/outlierfilter.c',
+ 'contrib/ptpd/src/dep/servo.c',
+ 'contrib/ptpd/src/dep/startup.c',
+ 'contrib/ptpd/src/dep/statistics.c',
+ 'contrib/ptpd/src/dep/sys.c',
+ 'contrib/ptpd/src/arith.c',
+ 'contrib/ptpd/src/bmc.c',
+ 'contrib/ptpd/src/display.c',
+ 'contrib/ptpd/src/management.c',
+ 'contrib/ptpd/src/protocol.c',
+ 'contrib/ptpd/src/ptp_timers.c',
+ 'contrib/ptpd/src/ptpd.c',
+ 'contrib/ptpd/src/signaling.c',
+ 'contrib/ptpd/src/timingdomain.c',
+ ],
+ mm.generator['source'](['-DPTPD_NO_DAEMON',
+ '-DDATADIR=""',
+ '-DPACKAGE_NAME=""'])
+ )
+
#
# Tests
#
@@ -5546,6 +5592,7 @@ def load(mm):
mm.addModule(dhcpcd(mm))
mm.addModule(mdnsresponder(mm))
+ mm.addModule(ptpd(mm))
mm.addModule(tests(mm))
--
2.25.1
More information about the devel
mailing list