From 1ab2e46e43305bb46658996ef740abbb0a24a65e Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Wed, 1 Feb 2023 18:02:20 -0500 Subject: [PATCH] Add synce4l utility Package the synce4l utility and include it in the system for the PTP notification application. Test Plan: PASS: build package and iso successfully PASS: execute synce4l successfully Story: 2010540 Task: 47261 Signed-off-by: Teresa Ho Change-Id: I459055b99fb01f622bdde36ce3fba766a971bca5 --- base/synce4l/PKG-INFO | 17 ++++++++ base/synce4l/debian/deb_folder/changelog | 5 +++ base/synce4l/debian/deb_folder/control | 16 +++++++ base/synce4l/debian/deb_folder/copyright | 42 +++++++++++++++++++ base/synce4l/debian/deb_folder/rules | 15 +++++++ base/synce4l/debian/deb_folder/source/format | 1 + .../synce4l/debian/deb_folder/synce4l.install | 1 + base/synce4l/debian/meta_data.yaml | 10 +++++ debian_iso_image.inc | 3 ++ debian_pkg_dirs | 1 + 10 files changed, 111 insertions(+) create mode 100644 base/synce4l/PKG-INFO create mode 100644 base/synce4l/debian/deb_folder/changelog create mode 100644 base/synce4l/debian/deb_folder/control create mode 100644 base/synce4l/debian/deb_folder/copyright create mode 100755 base/synce4l/debian/deb_folder/rules create mode 100644 base/synce4l/debian/deb_folder/source/format create mode 100644 base/synce4l/debian/deb_folder/synce4l.install create mode 100644 base/synce4l/debian/meta_data.yaml diff --git a/base/synce4l/PKG-INFO b/base/synce4l/PKG-INFO new file mode 100644 index 000000000..51d065f25 --- /dev/null +++ b/base/synce4l/PKG-INFO @@ -0,0 +1,17 @@ +Metadata-Version: 1.1 +Name: synce4l +Version: 0.8.0 +Summary: synce4l +Home-page: https://github.com/intel/synce4l +Author: +Author-email: +License: GPLv2 + +Description: +synce4l is a software implementation of Synchronous Ethernet (SyncE) +according to ITU-T Recommendation G.8264. The design goal is to provide +logic to supported hardware by processing Ethernet Synchronization +Messaging Channel (ESMC) and control Ethernet Equipment Clock (EEC) on +Network Card Interface (NIC). + +Platform: UNKNOWN diff --git a/base/synce4l/debian/deb_folder/changelog b/base/synce4l/debian/deb_folder/changelog new file mode 100644 index 000000000..70d9e0a2d --- /dev/null +++ b/base/synce4l/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +synce4l (0.8.0) UNRELEASED; urgency=low + + * Initial release + + -- <> Mon, 30 Jan 2023 10:30:12 +0000 diff --git a/base/synce4l/debian/deb_folder/control b/base/synce4l/debian/deb_folder/control new file mode 100644 index 000000000..7e78e18de --- /dev/null +++ b/base/synce4l/debian/deb_folder/control @@ -0,0 +1,16 @@ +Source: synce4l +Section: admin +Priority: optional +Maintainer: Starlingx Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Homepage: https://www.starlingx.io + +Package: synce4l +Architecture: any +Multi-Arch: foreign +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: synce4l is a software implementation of Synchronous Ethernet (SyncE) + according to ITU-T Recommendation G.8264. The design goal is to provide logic to + supported hardware by processing Ethernet Synchronization Messaging Channel (ESMC) + and control Ethernet Equipment Clock (EEC) on Network Card Interface (NIC). diff --git a/base/synce4l/debian/deb_folder/copyright b/base/synce4l/debian/deb_folder/copyright new file mode 100644 index 000000000..81acb3c80 --- /dev/null +++ b/base/synce4l/debian/deb_folder/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: synce4l +Upstream-Contact: https://github.com/intel +Source: https://github.com/intel/synce4l + +Files: * +Copyright: 2022 Intel. +License: GPL-2.0+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + On Debian systems, the complete text of the GNU General Public License + Version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +Files: debian/* +Copyright: (c) 2023 Wind River Systems, Inc. +License: Apache-2 + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. The ASF licenses this + file to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. diff --git a/base/synce4l/debian/deb_folder/rules b/base/synce4l/debian/deb_folder/rules new file mode 100755 index 000000000..865708c6e --- /dev/null +++ b/base/synce4l/debian/deb_folder/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +DEBIAN_DESTDIR := $(CURDIR)/debian/tmp + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install -- prefix=/usr mandir=/usr/share/man + +override_dh_install: + install -d -m 755 ${DEBIAN_DESTDIR}/usr/sbin + install -p -D -m 755 synce4l ${DEBIAN_DESTDIR}/usr/sbin/synce4l + dh_install diff --git a/base/synce4l/debian/deb_folder/source/format b/base/synce4l/debian/deb_folder/source/format new file mode 100644 index 000000000..89ae9db8f --- /dev/null +++ b/base/synce4l/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/base/synce4l/debian/deb_folder/synce4l.install b/base/synce4l/debian/deb_folder/synce4l.install new file mode 100644 index 000000000..c0c03bb1d --- /dev/null +++ b/base/synce4l/debian/deb_folder/synce4l.install @@ -0,0 +1 @@ +usr/sbin/synce4l diff --git a/base/synce4l/debian/meta_data.yaml b/base/synce4l/debian/meta_data.yaml new file mode 100644 index 000000000..a08e3b862 --- /dev/null +++ b/base/synce4l/debian/meta_data.yaml @@ -0,0 +1,10 @@ +--- +debver: 0.8.0 +dl_path: + name: synce4l-0.8.0.tar.gz + url: https://github.com/intel/synce4l/archive/refs/tags/0.8.0.tar.gz + md5sum: e048742e7bf947c41a45414bbecd594d + sha256sum: 1f437775b7957326b37536531fbb3f248abfe8cc227ab54a4c039f44ce70e3f9 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/debian_iso_image.inc b/debian_iso_image.inc index 31ecea752..f4c025258 100644 --- a/debian_iso_image.inc +++ b/debian_iso_image.inc @@ -398,6 +398,9 @@ runc shim-helpers-amd64-signed-template shim-unsigned +#synce4l +synce4l + #systemd libnss-myhostname #libnss-mymachines # not used diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 37a32a069..064a227c3 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -9,6 +9,7 @@ base/linuxptp base/lvm2 base/lsb base/pf-bb-config +base/synce4l base/systemd base/systemd-presets base/watchdog