From 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd Mon Sep 17 00:00:00 2001 From: ToshikazuOhiwa Date: Mon, 30 Mar 2020 09:24:26 +0900 Subject: agl-basesystem --- ...e-if_arp.h-from-libc-instead-of-linux-hea.patch | 39 ++++++++++++++++++++++ .../meta-oe/recipes-core/ell/ell_0.8.bb | 17 ++++++++++ 2 files changed, 56 insertions(+) create mode 100644 external/meta-openembedded/meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch create mode 100644 external/meta-openembedded/meta-oe/recipes-core/ell/ell_0.8.bb (limited to 'external/meta-openembedded/meta-oe/recipes-core/ell') diff --git a/external/meta-openembedded/meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch b/external/meta-openembedded/meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch new file mode 100644 index 00000000..ada65401 --- /dev/null +++ b/external/meta-openembedded/meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch @@ -0,0 +1,39 @@ +From d8236d1d789f496a193dae5d2a15d706b81f6482 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= +Date: Thu, 12 Jul 2018 10:19:50 +0200 +Subject: [PATCH] dhcp: include if_arp.h from libc instead of linux headers +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +To: ell@lists.01.org + +Compilation with musl libc fails due to redefinition of 'struct +arp{req,req_old,hdr}' in linux/if_arp.h, since it is already defined and +included in net/if_arp.h (through net/ethernet.h -> net/if_ether.h). + +The only symbols used from if_arp.h is ARPHRD_ETHER, so it should be +safe to avoid the compile error by including the if_arp.h header from +the c-library instead. + +Upstream-Status: Backport [https://lists.01.org/pipermail/ell/2018-July/001244.html] +Signed-off-by: Martin Hundebøll +--- + ell/dhcp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ell/dhcp.c b/ell/dhcp.c +index 6c90370..0d99f74 100644 +--- a/ell/dhcp.c ++++ b/ell/dhcp.c +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + +-- +2.18.0 + diff --git a/external/meta-openembedded/meta-oe/recipes-core/ell/ell_0.8.bb b/external/meta-openembedded/meta-oe/recipes-core/ell/ell_0.8.bb new file mode 100644 index 00000000..0428cab2 --- /dev/null +++ b/external/meta-openembedded/meta-oe/recipes-core/ell/ell_0.8.bb @@ -0,0 +1,17 @@ +SUMMARY = "Embedded Linux Library" +DESCRIPTION = "ELL is a DBUS library which provides DBUS bindings." +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" +SECTION = "libs" + +inherit autotools pkgconfig + +S = "${WORKDIR}/git" +SRCREV = "d572281caedef357c392a7c9aa65a3b21a18cfdb" +SRC_URI = "git://git.kernel.org/pub/scm/libs/ell/ell.git" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +DEPENDS = "dbus" -- cgit 1.2.3-korg