edgeos: add synce4l package

This is an open source package we are currently installing via
google3/third_party. It is not available from Gentoo upstream, so I
manually uploaded it to the mirror and wrote a simple ebuild.

Installs to /usr/sbin because the Makefile's default /usr/local/sbin is
a stateful_overlay in our image, so any packages we installed there
would get messed up when we mount the overlayfs.

Note that the google3 code will overwrite this version with the one we
compiled from google3/third_party imports. I will send a followup
google3 CL to reveal this package in the image.

BUG=b/282240260
TEST=built a baseimage and verified the package installed to /usr/sbin
TEST=built a google3 release image and verified this version was overwritten for now
RELEASE_NOTE=add synce4l package

Change-Id: I2ffd96aa240161e3b4706daa0cd3c46a438643a9
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/49810
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Joshua Emele <jemele@google.com>
diff --git a/project-edgeos/net-misc/synce4l/Manifest b/project-edgeos/net-misc/synce4l/Manifest
new file mode 100644
index 0000000..9d9c133
--- /dev/null
+++ b/project-edgeos/net-misc/synce4l/Manifest
@@ -0,0 +1 @@
+DIST synce4l-0.8.0.tar.gz 48985 BLAKE2B 398921ff8af680b23b4dda65c71d0a884849a349d97baac47b1ddfc7d1553235fa10fc5865c85edf4c4ce64a209595f90b21c82e27488484a7f7eb536783301e SHA512 62be68c7c4b0476b8e7eb217fe90f5688db7415d4983abcb934c7ea1733918551228041816ce3525a8d59b294a15b8c60d0eca81ff425ff48fce7839bcde8dff
diff --git a/project-edgeos/net-misc/synce4l/metadata.xml b/project-edgeos/net-misc/synce4l/metadata.xml
new file mode 100644
index 0000000..2b97d56
--- /dev/null
+++ b/project-edgeos/net-misc/synce4l/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <longdescription>
+    synce4l contains a software implmementation of Synchronous Ethernet (SyncE)
+    according to ITU-T Recommendation G.8264. The design goal is to provide
+    logic to supported hardware by processes Ethernet Synchronization Messaging
+    Channel (ESMC) and control Ethernet Equipment Clock (ECC) on the
+    Network Interface Card (NIC).
+  </longdescription>
+</pkgmetadata>
diff --git a/project-edgeos/net-misc/synce4l/synce4l-0.8.0-r1.ebuild b/project-edgeos/net-misc/synce4l/synce4l-0.8.0-r1.ebuild
new file mode 120000
index 0000000..1ec5b96
--- /dev/null
+++ b/project-edgeos/net-misc/synce4l/synce4l-0.8.0-r1.ebuild
@@ -0,0 +1 @@
+synce4l-0.8.0.ebuild
\ No newline at end of file
diff --git a/project-edgeos/net-misc/synce4l/synce4l-0.8.0.ebuild b/project-edgeos/net-misc/synce4l/synce4l-0.8.0.ebuild
new file mode 100644
index 0000000..231196a
--- /dev/null
+++ b/project-edgeos/net-misc/synce4l/synce4l-0.8.0.ebuild
@@ -0,0 +1,34 @@
+#
+# Copyright 2023 Google LLC
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# version 2 as published by the Free Software Foundation.
+#
+# 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.
+#
+
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Intel Synchronous Ethernet (SyncE) implementation"
+HOMEPAGE="https://github.com/intel/synce4l"
+SRC_URI="gs://chromeos-localmirror/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+IUSE=""
+
+src_compile() {
+	emake CC="$(tc-getCC)"
+}
+
+src_install() {
+	emake CC="$(tc-getCC)" DESTDIR="${ED}" prefix=/usr mandir=/usr/local install
+}
diff --git a/project-edgeos/virtual/target-edgeos/target-edgeos-1.5-r15.ebuild b/project-edgeos/virtual/target-edgeos/target-edgeos-1.5-r16.ebuild
similarity index 100%
rename from project-edgeos/virtual/target-edgeos/target-edgeos-1.5-r15.ebuild
rename to project-edgeos/virtual/target-edgeos/target-edgeos-1.5-r16.ebuild
diff --git a/project-edgeos/virtual/target-edgeos/target-edgeos-1.5.ebuild b/project-edgeos/virtual/target-edgeos/target-edgeos-1.5.ebuild
index 3a04442..3b7bdee 100644
--- a/project-edgeos/virtual/target-edgeos/target-edgeos-1.5.ebuild
+++ b/project-edgeos/virtual/target-edgeos/target-edgeos-1.5.ebuild
@@ -126,6 +126,7 @@
 	app-misc/screen
 	dev-util/rt-tests
 	net-dns/bind-tools
+	net-misc/synce4l
 	sys-apps/hdparm
 	sys-apps/irqbalance
 	sys-apps/lshw