diff mbox series

[meta-oe] xl4-gptp: add new recipe for version 1.2.3

Message ID 20230502105726.634987-1-j.zink@pengutronix.de
State Under Review
Headers show
Series [meta-oe] xl4-gptp: add new recipe for version 1.2.3 | expand

Commit Message

Johannes Zink May 2, 2023, 10:57 a.m. UTC
The xl4-gptp stack is a 802.1AS (including 802.1AS-REV) gPTP Stack for
bridge and endpoint mode, supporting single and multiple domains.

Also add the recipes for the required dependencies xl4-combase and
xl4-unibase.

Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
---
 ...ls-avoid-errors-due-to-missing-files.patch | 32 +++++++++++++++++++
 .../xl4-gptp/xl4-combase_1.1.3.bb             | 23 +++++++++++++
 .../xl4-gptp/xl4-gptp_1.2.3.bb                | 17 ++++++++++
 ...ls-avoid-errors-due-to-missing-files.patch | 32 +++++++++++++++++++
 .../xl4-gptp/xl4-unibase_1.4.4.bb             | 23 +++++++++++++
 5 files changed, 127 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb

Comments

Khem Raj May 2, 2023, 7:17 p.m. UTC | #1
fails on musl

https://errors.yoctoproject.org/Errors/Details/702712/

On Tue, May 2, 2023 at 3:57 AM Johannes Zink <j.zink@pengutronix.de> wrote:
>
> The xl4-gptp stack is a 802.1AS (including 802.1AS-REV) gPTP Stack for
> bridge and endpoint mode, supporting single and multiple domains.
>
> Also add the recipes for the required dependencies xl4-combase and
> xl4-unibase.
>
> Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
> ---
>  ...ls-avoid-errors-due-to-missing-files.patch | 32 +++++++++++++++++++
>  .../xl4-gptp/xl4-combase_1.1.3.bb             | 23 +++++++++++++
>  .../xl4-gptp/xl4-gptp_1.2.3.bb                | 17 ++++++++++
>  ...ls-avoid-errors-due-to-missing-files.patch | 32 +++++++++++++++++++
>  .../xl4-gptp/xl4-unibase_1.4.4.bb             | 23 +++++++++++++
>  5 files changed, 127 insertions(+)
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
>
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
> new file mode 100644
> index 000000000000..8dffec233c79
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
> @@ -0,0 +1,32 @@
> +From c4ccf4a32166a96d0f78dc74dac5b9abf40431c1 Mon Sep 17 00:00:00 2001
> +From: Johannes Zink <j.zink@pengutronix.de>
> +Date: Tue, 25 Apr 2023 10:53:55 +0200
> +Subject: [PATCH] autotools: avoid errors due to missing files
> +
> +without setting foreign in AM_INIT_AUTOMAKE autotools will complain
> +if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
> +with a custom tool, just use the non-gnu foreign setting.
> +
> +This facilitates build system integration
> +
> +Upstream-Status: Submitted
> +[https://github.com/xl4-shiro/xl4combase/pull/1]
> +
> +Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 9622a26226fa..fde567a3d21e 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
> + AC_INIT([xl4combase], [1.1.3], [shiro@excelfore.com])
> + AC_SUBST(PACKAGE_DESC,"Excelfore communication base library")
> +
> +-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
> ++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
> + AM_PROG_AR
> + LT_PREREQ([2.2])
> + LT_INIT([static])
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
> new file mode 100644
> index 000000000000..57fd76392142
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION="Communication Base Library for the Excelfore gPTP Stack"
> +HOMEPAGE="https://github.com/xl4-shiro/xl4combase"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "\
> +       git://git@github.com/xl4-shiro/xl4combase.git;protocol=ssh;branch=master \
> +        file://0001-autotools-avoid-errors-due-to-missing-files.patch \
> +"
> +
> +SRCREV = "08b38bc8fd074d261a604d5e08d5ee91c8edde28"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--disable-unittest"
> +
> +DEPENDS += "xl4-unibase"
> +
> +do_install:append() {
> +       rm -rf ${D}/${libdir}/python3
> +}
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
> new file mode 100644
> index 000000000000..0c4edb546095
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
> @@ -0,0 +1,17 @@
> +DESCRIPTION = "Excelfore gPTP (IEEE802.1as) Stack"
> +HOMEPAGE = "https://github.com/xl4-shiro/excelfore-gptp"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "git://github.com/xl4-shiro/excelfore-gptp.git;protocol=https;branch=master"
> +SRC_URI[sha256sum] = "9c50427a16785f1998186b1d4882e7de5bdf6c3884775d7ff4291efdbbdfbc38"
> +SRCREV = "ab6bafe44f367a92fb44c6bce84746d96ddfaa9e"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--disable-unittest --disable-understpl"
> +EXTRA_OEMAKE = "STAGING_DIR_HOST=${STAGING_DIR_HOST}"
> +
> +DEPENDS += "xl4-unibase xl4-combase"
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
> new file mode 100644
> index 000000000000..b67142414021
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
> @@ -0,0 +1,32 @@
> +From 5b48693dec6fe688aabdef539e2849458d51a8de Mon Sep 17 00:00:00 2001
> +From: Johannes Zink <j.zink@pengutronix.de>
> +Date: Tue, 25 Apr 2023 09:48:18 +0200
> +Subject: [PATCH] autotools: avoid errors due to missing files
> +
> +without setting foreign in AM_INIT_AUTOMAKE autotools will complain
> +if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
> +with a custom tool, just use the non-gnu foreign setting.
> +
> +This facilitates build system integration
> +
> +Upstream-Status: Submitted
> +[https://github.com/xl4-shiro/xl4unibase/pull/1]
> +
> +Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 5992aa8ba7c1..d720605836c5 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
> + AC_INIT([xl4unibase], [1.1.4], [shiro@excelfore.com])
> + AC_SUBST(PACKAGE_DESC,"Excelfore universal base library")
> +
> +-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
> ++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
> + AM_PROG_AR
> + LT_PREREQ([2.2])
> + LT_INIT([static])
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
> new file mode 100644
> index 000000000000..3363eb28f13f
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION="Excelfore Universal Base Library"
> +HOMEPAGE="https://github.com/xl4-shiro/xl4unibase"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "\
> +       git://git@github.com/xl4-shiro/xl4unibase.git;protocol=ssh;branch=master \
> +        file://0001-autotools-avoid-errors-due-to-missing-files.patch \
> +"
> +
> +SRCREV = "44211453ebfa9d1d139ec4860cb51473bba9add0"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--disable-unittest"
> +
> +DEPENDS += "python3"
> +
> +FILES:${PN}-dev += "\
> +       ${datadir} \
> +"
> --
> 2.39.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#102259): https://lists.openembedded.org/g/openembedded-devel/message/102259
> Mute This Topic: https://lists.openembedded.org/mt/98636000/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
new file mode 100644
index 000000000000..8dffec233c79
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
@@ -0,0 +1,32 @@ 
+From c4ccf4a32166a96d0f78dc74dac5b9abf40431c1 Mon Sep 17 00:00:00 2001
+From: Johannes Zink <j.zink@pengutronix.de>
+Date: Tue, 25 Apr 2023 10:53:55 +0200
+Subject: [PATCH] autotools: avoid errors due to missing files
+
+without setting foreign in AM_INIT_AUTOMAKE autotools will complain
+if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
+with a custom tool, just use the non-gnu foreign setting.
+
+This facilitates build system integration
+
+Upstream-Status: Submitted
+[https://github.com/xl4-shiro/xl4combase/pull/1]
+
+Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9622a26226fa..fde567a3d21e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
+ AC_INIT([xl4combase], [1.1.3], [shiro@excelfore.com])
+ AC_SUBST(PACKAGE_DESC,"Excelfore communication base library")
+ 
+-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
+ AM_PROG_AR
+ LT_PREREQ([2.2])
+ LT_INIT([static])
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
new file mode 100644
index 000000000000..57fd76392142
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
@@ -0,0 +1,23 @@ 
+DESCRIPTION="Communication Base Library for the Excelfore gPTP Stack"
+HOMEPAGE="https://github.com/xl4-shiro/xl4combase"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "\
+	git://git@github.com/xl4-shiro/xl4combase.git;protocol=ssh;branch=master \
+        file://0001-autotools-avoid-errors-due-to-missing-files.patch \
+"
+
+SRCREV = "08b38bc8fd074d261a604d5e08d5ee91c8edde28"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-unittest"
+
+DEPENDS += "xl4-unibase"
+
+do_install:append() {
+	rm -rf ${D}/${libdir}/python3
+}
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
new file mode 100644
index 000000000000..0c4edb546095
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
@@ -0,0 +1,17 @@ 
+DESCRIPTION = "Excelfore gPTP (IEEE802.1as) Stack"
+HOMEPAGE = "https://github.com/xl4-shiro/excelfore-gptp"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "git://github.com/xl4-shiro/excelfore-gptp.git;protocol=https;branch=master"
+SRC_URI[sha256sum] = "9c50427a16785f1998186b1d4882e7de5bdf6c3884775d7ff4291efdbbdfbc38"
+SRCREV = "ab6bafe44f367a92fb44c6bce84746d96ddfaa9e"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-unittest --disable-understpl"
+EXTRA_OEMAKE = "STAGING_DIR_HOST=${STAGING_DIR_HOST}"
+
+DEPENDS += "xl4-unibase xl4-combase"
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
new file mode 100644
index 000000000000..b67142414021
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
@@ -0,0 +1,32 @@ 
+From 5b48693dec6fe688aabdef539e2849458d51a8de Mon Sep 17 00:00:00 2001
+From: Johannes Zink <j.zink@pengutronix.de>
+Date: Tue, 25 Apr 2023 09:48:18 +0200
+Subject: [PATCH] autotools: avoid errors due to missing files
+
+without setting foreign in AM_INIT_AUTOMAKE autotools will complain
+if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
+with a custom tool, just use the non-gnu foreign setting.
+
+This facilitates build system integration
+
+Upstream-Status: Submitted
+[https://github.com/xl4-shiro/xl4unibase/pull/1]
+
+Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 5992aa8ba7c1..d720605836c5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
+ AC_INIT([xl4unibase], [1.1.4], [shiro@excelfore.com])
+ AC_SUBST(PACKAGE_DESC,"Excelfore universal base library")
+ 
+-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
+ AM_PROG_AR
+ LT_PREREQ([2.2])
+ LT_INIT([static])
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
new file mode 100644
index 000000000000..3363eb28f13f
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
@@ -0,0 +1,23 @@ 
+DESCRIPTION="Excelfore Universal Base Library"
+HOMEPAGE="https://github.com/xl4-shiro/xl4unibase"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "\
+	git://git@github.com/xl4-shiro/xl4unibase.git;protocol=ssh;branch=master \
+        file://0001-autotools-avoid-errors-due-to-missing-files.patch \
+"
+
+SRCREV = "44211453ebfa9d1d139ec4860cb51473bba9add0"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-unittest"
+
+DEPENDS += "python3"
+
+FILES:${PN}-dev += "\
+	${datadir} \
+"