add support for virtual clocks (#2066452)

Resolves: #2066452
This commit is contained in:
Miroslav Lichvar 2022-06-09 15:04:02 +02:00
parent 68ba545d77
commit e3c74a41a6
4 changed files with 1513 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
/linuxptp-3.1.1.tgz
/linuxptp-testsuite-c66922.tar.gz
/clknetsim-ce3c4a.tar.gz
/clknetsim-c63e22.tar.gz

1507
linuxptp-vclock.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
%global _hardened_build 1
%global testsuite_ver c66922
%global clknetsim_ver ce3c4a
%global clknetsim_ver c63e22
Name: linuxptp
Version: 3.1.1
@ -41,6 +41,8 @@ Patch9: linuxptp-zerolength.patch
Patch10: linuxptp-packalign.patch
# make sanity clock check more reliable
Patch11: linuxptp-clockcheck.patch
# add support for virtual clocks
Patch12: linuxptp-vclock.patch
BuildRequires: gcc gcc-c++ make systemd
@ -65,6 +67,7 @@ Supporting legacy APIs and other platforms is not a goal.
%patch9 -p1 -b .zerolength
%patch10 -p1 -b .packalign
%patch11 -p1 -b .clockcheck
%patch12 -p1 -b .vclock
mv linuxptp-testsuite-%{testsuite_ver}* testsuite
mv clknetsim-%{clknetsim_ver}* testsuite/clknetsim

View File

@ -1,3 +1,3 @@
SHA512 (linuxptp-3.1.1.tgz) = c3c40987fe68480a8473097ebc3c506fb4f8f3b6456bbe637b2b3cb0b3e0182f1513b511fdc04b3607d5f7d8bd1bd22502bb86eb13f9fa4fa63a3331846b33ec
SHA512 (linuxptp-testsuite-c66922.tar.gz) = 1cf30348bb72768e4de59c363f57b56257b01e5306e27b3d243418572ebfbf324c4cc9cb4f74cac04f8408223b501105aeec70a509cf76ae8e0945a01bc70dd6
SHA512 (clknetsim-ce3c4a.tar.gz) = 2cc17cbb0a45ffc17cd79027e433afb727e712d9ea77c5f87b71fe170df1f7c99a25fca16619d34f3627b588427077ffbdc566ac45eb789eae86293aca573c56
SHA512 (clknetsim-c63e22.tar.gz) = 000b15b7877c32da06ea93d46dfc41bee51e13e7c3d9b64cfd660527f7ffdfefc5a3f49cc621512cd9f1bc28312113892630b2b6d06a2f3ee41cb4cb859219cd