[oe] [meta-oe][PATCH 1/1] open-lldp: Add initial version 1.0.1

2020-02-25 Thread Jonathan Richardson via Openembedded-devel
Open-LLDP provides a Link Layer Discovery Protocol agent that supports
DCB (Data Center Bridging). The tc utility from iproute is needed to
manipulate  traffic control settings in the kernel.

Signed-off-by: Jonathan Richardson 
---
 ...tion-to-disable-installation-of-syst.patch | 57 +++
 .../openlldp/openlldp_1.0.1.bb| 37 
 2 files changed, 94 insertions(+)
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 create mode 100644 meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb

diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
new file mode 100644
index 0..86c9f4463
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
@@ -0,0 +1,57 @@
+From 1c1e01b2414ca5b3cf5a21b6e6389f9ca82fd7e9 Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Fri, 6 Apr 2018 10:49:04 -0700
+Subject: [PATCH 1/1] autotools: Add option to disable installation of systemd
+ conf files
+
+Add option to configure.ac to enable or disable install of systemd conf
+files. If --with-systemdsystemunitdir is passed to configure then the
+files will be installed to the provided directory. If the option isn't
+provided then the value is determined from the systemd pkgconfig file,
+if found in PKG_CONFIG_PATH.
+
+This change is required because Makefile.am always installed the files
+to a hard coded path that couldn't be changed.
+---
+ Makefile.am  | 3 ++-
+ configure.ac | 9 +
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 551d4c7..5491c61 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -133,8 +133,9 @@ install-data-hook: installdirs-local
+ pkgconfigdir = ${libdir}/pkgconfig
+ pkgconfig_DATA = lldpad.pc liblldp_clif.pc
+ 
+-systemdsystemunitdir = $(prefix)/lib/systemd/system
++if HAVE_SYSTEMD
+ dist_systemdsystemunit_DATA = lldpad.service lldpad.socket
++endif
+ 
+ bashcompletiondir = $(sysconfdir)/bash_completion.d
+ dist_bashcompletion_DATA = contrib/bash_completion/lldpad 
contrib/bash_completion/lldptool
+diff --git a/configure.ac b/configure.ac
+index 0667446..f75f433 100644
+--- a/configure.ac
 b/configure.ac
+@@ -95,6 +95,15 @@ AC_TYPE_UINT16_T
+ AC_TYPE_UINT32_T
+ AC_TYPE_UINT8_T
+ 
++# Support for systemd unit files.
++AC_ARG_WITH([systemdsystemunitdir],
++AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for 
systemd service files]),
++[], [with_systemdsystemunitdir=$($PKG_CONFIG 
--variable=systemdsystemunitdir systemd)])
++if test "x$with_systemdsystemunitdir" != xno; then
++AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
++fi
++AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a 
"x$with_systemdsystemunitdir" != xno ])
++
+ AC_CONFIG_FILES([Makefile include/version.h lldpad.spec lldpad.pc 
liblldp_clif.pc])
+ AC_CONFIG_MACRO_DIR([m4])
+ AC_OUTPUT
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb 
b/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb
new file mode 100644
index 0..7fa3429cc
--- /dev/null
+++ b/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb
@@ -0,0 +1,37 @@
+SUMMARY = "Open-LLDP"
+DESCRIPTION = "Link Layer Discovery Protocol for Linux that includes support 
for DCBX"
+HOMEPAGE = "http://open-lldp.org/start;
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8c2bc283e65df398ced5f5b747e78162"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+inherit ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager', 'systemd', 
'systemd', '', d)}
+
+DEPENDS = "libnl libconfig readline"
+
+SRCREV = "36d729de7ce5b56cf061d94d610cf0510154820c"
+SRC_URI = "git://github.com/intel/openlldp.git;protocol=https;branch=master"
+SRC_URI += 
"file://0001-autotools-Add-option-to-disable-installation-of-syst.patch"
+
+# Even though .ac allows disabling -Werror, Makefile.am adds it to AM_CFLAGS
+# causing it to always be enabled. There are warnings so disable it.
+TARGET_CFLAGS += "-Wno-error"
+
+# configure.ac generates version.h from include/version.h.in but autotools puts
+# build artefacts in $B, not $S and the header can't be found. To avoid
+# inheriting autotools-brokensep and messing up the source dir just tell 
Makefile
+# where it is.
+TARGET_CFLAGS += "-I ${B}/include"
+
+# Enable install of systemd conf files.
+EXTRA_OECONF += "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager', 
'systemd', '--with-systemdsystemunitdir=${systemd_system_unitdir}', '', d)}"
+
+SYSTEMD_SERVICE_${PN} = "lldpad.service lldpad.socket"
+
+# To enable service at boot set to enable in local.conf.
+SYSTEMD_AUTO_ENABLE ?= "disable"

Re: [oe] [meta-oe][PATCH v2 1/1] open-lldp: Add initial version 1.0.1

2020-02-26 Thread Jonathan Richardson via Openembedded-devel
On Wed, Feb 26, 2020 at 12:34 PM Khem Raj  wrote:
>
> Thanks Jonathan, I have few more comments.
>
> On 2/26/20 12:29 PM, Jonathan Richardson via Openembedded-devel wrote:
> > Open-LLDP provides a Link Layer Discovery Protocol agent that supports
> > DCB (Data Center Bridging). The tc utility from iproute is needed to
> > manipulate  traffic control settings in the kernel.
> >
> > Signed-off-by: Jonathan Richardson 
> > ---
> >   .../0001-Fix-musl-libc-build-issue.patch  | 25 
> >   ...tion-to-disable-installation-of-syst.patch | 57 +++
> >   .../openlldp/openlldp_1.0.1.bb| 39 +
> >   3 files changed, 121 insertions(+)
> >   create mode 100644 
> > meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
> >   create mode 100644 
> > meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
> >   create mode 100644 
> > meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb
> >
> > diff --git 
> > a/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
> >  
> > b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
> > new file mode 100644
> > index 0..d8d5df218
> > --- /dev/null
> > +++ 
> > b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
> > @@ -0,0 +1,25 @@
> > +From b20d64f814c15efbd6a19aacfbfecf15083a83dc Mon Sep 17 00:00:00 2001
> > +From: Jonathan Richardson 
> > +Date: Wed, 26 Feb 2020 12:16:38 -0800
> > +Subject: [PATCH] Fix musl libc build issue
> > +
> > +clif.h should include sys/types.h for the definition of pid_t. It fails
> > +to compile when using musl libc.
> > +
> > +Signed-off-by: Jonathan Richardson 
> > +---
> > + include/clif.h | 1 +
> > + 1 file changed, 1 insertion(+)
> > +
> > +diff --git a/include/clif.h b/include/clif.h
> > +index 648eedf..92f4fd8 100644
> > +--- a/include/clif.h
> >  b/include/clif.h
> > +@@ -32,6 +32,7 @@
> > + #ifndef CLIF_H
> > + #define CLIF_H
> > +
> > ++#include 
> > + #include 
> > + #include "clif_sock.h"
> > +
> > diff --git 
> > a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
> >  
> > b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
> > new file mode 100644
> > index 0..86c9f4463
> > --- /dev/null
> > +++ 
> > b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
> > @@ -0,0 +1,57 @@
> > +From 1c1e01b2414ca5b3cf5a21b6e6389f9ca82fd7e9 Mon Sep 17 00:00:00 2001
> > +From: Jonathan Richardson 
> > +Date: Fri, 6 Apr 2018 10:49:04 -0700
> > +Subject: [PATCH 1/1] autotools: Add option to disable installation of 
> > systemd
> > + conf files
> > +
> > +Add option to configure.ac to enable or disable install of systemd conf
> > +files. If --with-systemdsystemunitdir is passed to configure then the
> > +files will be installed to the provided directory. If the option isn't
> > +provided then the value is determined from the systemd pkgconfig file,
> > +if found in PKG_CONFIG_PATH.
> > +
> > +This change is required because Makefile.am always installed the files
> > +to a hard coded path that couldn't be changed.
> > +---
> > + Makefile.am  | 3 ++-
> > + configure.ac | 9 +
> > + 2 files changed, 11 insertions(+), 1 deletion(-)
> > +
> > +diff --git a/Makefile.am b/Makefile.am
> > +index 551d4c7..5491c61 100644
> > +--- a/Makefile.am
> >  b/Makefile.am
> > +@@ -133,8 +133,9 @@ install-data-hook:   installdirs-local
> > + pkgconfigdir = ${libdir}/pkgconfig
> > + pkgconfig_DATA = lldpad.pc liblldp_clif.pc
> > +
> > +-systemdsystemunitdir = $(prefix)/lib/systemd/system
> > ++if HAVE_SYSTEMD
> > + dist_systemdsystemunit_DATA = lldpad.service lldpad.socket
> > ++endif
> > +
> > + bashcompletiondir = $(sysconfdir)/bash_completion.d
> > + dist_bashcompletion_DATA = contrib/bash_completion/lldpad 
> > contrib/bash_completion/lldptool
> > +diff --git a/configure.ac b/configure.ac
> > +index 0667446..f75f433 100644
> > +--- a/configure.ac
> >  b/configure.ac
> > +@@ -95,6 +95,15 @@ AC_TYPE_UINT16_T
> > + AC_TYPE_UINT32_T
> > + AC_TYPE_UI

[oe] [meta-oe][PATCH v2 1/1] open-lldp: Add initial version 1.0.1

2020-02-26 Thread Jonathan Richardson via Openembedded-devel
Open-LLDP provides a Link Layer Discovery Protocol agent that supports
DCB (Data Center Bridging). The tc utility from iproute is needed to
manipulate  traffic control settings in the kernel.

Signed-off-by: Jonathan Richardson 
---
 .../0001-Fix-musl-libc-build-issue.patch  | 25 
 ...tion-to-disable-installation-of-syst.patch | 57 +++
 .../openlldp/openlldp_1.0.1.bb| 39 +
 3 files changed, 121 insertions(+)
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 create mode 100644 meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb

diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
new file mode 100644
index 0..d8d5df218
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
@@ -0,0 +1,25 @@
+From b20d64f814c15efbd6a19aacfbfecf15083a83dc Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Wed, 26 Feb 2020 12:16:38 -0800
+Subject: [PATCH] Fix musl libc build issue
+
+clif.h should include sys/types.h for the definition of pid_t. It fails
+to compile when using musl libc.
+
+Signed-off-by: Jonathan Richardson 
+---
+ include/clif.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/clif.h b/include/clif.h
+index 648eedf..92f4fd8 100644
+--- a/include/clif.h
 b/include/clif.h
+@@ -32,6 +32,7 @@
+ #ifndef CLIF_H
+ #define CLIF_H
+ 
++#include 
+ #include 
+ #include "clif_sock.h"
+ 
diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
new file mode 100644
index 0..86c9f4463
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
@@ -0,0 +1,57 @@
+From 1c1e01b2414ca5b3cf5a21b6e6389f9ca82fd7e9 Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Fri, 6 Apr 2018 10:49:04 -0700
+Subject: [PATCH 1/1] autotools: Add option to disable installation of systemd
+ conf files
+
+Add option to configure.ac to enable or disable install of systemd conf
+files. If --with-systemdsystemunitdir is passed to configure then the
+files will be installed to the provided directory. If the option isn't
+provided then the value is determined from the systemd pkgconfig file,
+if found in PKG_CONFIG_PATH.
+
+This change is required because Makefile.am always installed the files
+to a hard coded path that couldn't be changed.
+---
+ Makefile.am  | 3 ++-
+ configure.ac | 9 +
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 551d4c7..5491c61 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -133,8 +133,9 @@ install-data-hook: installdirs-local
+ pkgconfigdir = ${libdir}/pkgconfig
+ pkgconfig_DATA = lldpad.pc liblldp_clif.pc
+ 
+-systemdsystemunitdir = $(prefix)/lib/systemd/system
++if HAVE_SYSTEMD
+ dist_systemdsystemunit_DATA = lldpad.service lldpad.socket
++endif
+ 
+ bashcompletiondir = $(sysconfdir)/bash_completion.d
+ dist_bashcompletion_DATA = contrib/bash_completion/lldpad 
contrib/bash_completion/lldptool
+diff --git a/configure.ac b/configure.ac
+index 0667446..f75f433 100644
+--- a/configure.ac
 b/configure.ac
+@@ -95,6 +95,15 @@ AC_TYPE_UINT16_T
+ AC_TYPE_UINT32_T
+ AC_TYPE_UINT8_T
+ 
++# Support for systemd unit files.
++AC_ARG_WITH([systemdsystemunitdir],
++AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for 
systemd service files]),
++[], [with_systemdsystemunitdir=$($PKG_CONFIG 
--variable=systemdsystemunitdir systemd)])
++if test "x$with_systemdsystemunitdir" != xno; then
++AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
++fi
++AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a 
"x$with_systemdsystemunitdir" != xno ])
++
+ AC_CONFIG_FILES([Makefile include/version.h lldpad.spec lldpad.pc 
liblldp_clif.pc])
+ AC_CONFIG_MACRO_DIR([m4])
+ AC_OUTPUT
+-- 
+1.9.1
+
diff --git a/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb 
b/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb
new file mode 100644
index 0..ef8d780c6
--- /dev/null
+++ b/meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb
@@ -0,0 +1,39 @@
+SUMMARY = "Open-LLDP"
+DESCRIPTION = "Link Layer Discovery Protocol for Linux that includes support 
for DCBX"
+HOMEPAGE = "http://open-lldp.org/start;
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8c2bc283e65df398ced5f5b747e78162"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+inherit 

[oe] [meta-oe][PATCH v3 1/1] open-lldp: Add initial version 1.0.1

2020-02-26 Thread Jonathan Richardson via Openembedded-devel
Open-LLDP provides a Link Layer Discovery Protocol agent that supports
DCB (Data Center Bridging). The tc utility from iproute is needed to
manipulate  traffic control settings in the kernel.

Signed-off-by: Jonathan Richardson 
---
 .../0001-Fix-musl-libc-build-issue.patch  | 26 +
 ...-include-path-to-generated-version.h.patch | 29 ++
 ...tion-to-disable-installation-of-syst.patch | 57 +++
 .../openlldp/openlldp_1.0.1.bb| 33 +++
 4 files changed, 145 insertions(+)
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch
 create mode 100644 
meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 create mode 100644 meta-networking/recipes-protocols/openlldp/openlldp_1.0.1.bb

diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
new file mode 100644
index 0..40b082e77
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-Fix-musl-libc-build-issue.patch
@@ -0,0 +1,26 @@
+From a64e52f9b58519aa2b8a1073fa6c04da04933428 Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Wed, 26 Feb 2020 12:16:38 -0800
+Subject: [PATCH] Fix musl libc build issue
+
+clif.h should include sys/types.h for the definition of pid_t. It fails
+to compile when using musl libc.
+
+Signed-off-by: Jonathan Richardson 
+
+---
+ include/clif.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/clif.h b/include/clif.h
+index 648eedf..92f4fd8 100644
+--- a/include/clif.h
 b/include/clif.h
+@@ -32,6 +32,7 @@
+ #ifndef CLIF_H
+ #define CLIF_H
+ 
++#include 
+ #include 
+ #include "clif_sock.h"
+ 
diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch
new file mode 100644
index 0..b58fc104d
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch
@@ -0,0 +1,29 @@
+From eb14aa66dc0384071af401cced8c02993b55502e Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Wed, 26 Feb 2020 15:54:51 -0800
+Subject: [PATCH] autotools: Add include path to generated version.h
+
+When the build dir isn't the same as source dir it fails to compile
+because the generated version.h from AC_CONFIG_FILES is always in build
+dir. Include the path to it in AM_CPPFLAGS.
+
+Signed-off-by: Jonathan Richardson 
+
+---
+ Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index 0fb9bb0..2952019 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -14,6 +14,9 @@ endif
+ AM_CPPFLAGS = -I${srcdir}/include -DSYSCONFDIR="\"${sysconfdir}\"" \
+   -D_FORTIFY_SOURCE=2
+ 
++# Required for the generated version.h when build dir is not the same as 
srcdir.
++AM_CPPFLAGS += -I${top_builddir}/include
++
+ ACLOCAL_AMFLAGS = -I m4
+ 
+ parse_cli.o: CFLAGS+=-U_FORTIFY_SOURCE -Wno-error
diff --git 
a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
new file mode 100644
index 0..a26a5299a
--- /dev/null
+++ 
b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-option-to-disable-installation-of-syst.patch
@@ -0,0 +1,57 @@
+From dc3f2250908587710f109c80ddf8a94f0bc40b82 Mon Sep 17 00:00:00 2001
+From: Jonathan Richardson 
+Date: Fri, 6 Apr 2018 10:49:04 -0700
+Subject: [PATCH] autotools: Add option to disable installation of systemd conf
+ files
+
+Add option to configure.ac to enable or disable install of systemd conf
+files. If --with-systemdsystemunitdir is passed to configure then the
+files will be installed to the provided directory. If the option isn't
+provided then the value is determined from the systemd pkgconfig file,
+if found in PKG_CONFIG_PATH.
+
+This change is required because Makefile.am always installed the files
+to a hard coded path that couldn't be changed.
+
+
+Signed-off-by: Jonathan Richardson 
+---
+ Makefile.am  | 3 ++-
+ configure.ac | 9 +
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 292c0fd..0fb9bb0 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -138,8 +138,9 @@ install-data-hook: installdirs-local
+ pkgconfigdir = ${libdir}/pkgconfig
+ pkgconfig_DATA = lldpad.pc liblldp_clif.pc
+ 
+-systemdsystemunitdir = $(prefix)/lib/systemd/system
++if HAVE_SYSTEMD
+ dist_systemdsystemunit_DATA = lldpad.service 

[oe] [meta-oe] [PATCH v2 1/1] fio: remove disabling of compiler optimizations

2020-02-18 Thread Jonathan Richardson via Openembedded-devel
Disabling compiler optimizations affects fio performance by 25-30% so
remove this from EXTRA_OECONF. Disabling of optimizations should be
machine specific if there are bugs in the code instead of the default.

Optimizations were removed in this commit:
https://git.openembedded.org/meta-openembedded/commit/?id=739349da0826221f98648b64b693f9ae33e7d4ea

Signed-off-by: Jonathan Richardson 
---
 meta-oe/recipes-benchmark/fio/fio_3.18.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta-oe/recipes-benchmark/fio/fio_3.18.bb 
b/meta-oe/recipes-benchmark/fio/fio_3.18.bb
index b6484290f..2c461b8c5 100644
--- a/meta-oe/recipes-benchmark/fio/fio_3.18.bb
+++ b/meta-oe/recipes-benchmark/fio/fio_3.18.bb
@@ -33,7 +33,6 @@ S = "${WORKDIR}/git"
 DISABLE_STATIC = ""
 
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
-EXTRA_OECONF = "--disable-optimizations"
 
 do_configure() {
 ./configure ${EXTRA_OECONF}
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] fio: upgrade 3.17 -> 3.18

2020-02-18 Thread Jonathan Richardson via Openembedded-devel
I was just about to submit a patch to remove the disabling of compiler
optimizations to fio. On our cortex A72 this kills the performance of fio
by 25%. That would solve this build issue also. I haven't seen any crashes
with fio. If there are some architecture specific issues can the removal
of optimizations be arch specific only and not the default?

On Sat, Feb 15, 2020 at 12:40 AM Khem Raj  wrote:
>
> https://errors.yoctoproject.org/Errors/Details/391129/
>
> On Fri, Feb 14, 2020 at 8:11 AM Wang Mingyu  wrote:
> >
> > Signed-off-by: Wang Mingyu 
> > ---
> >  meta-oe/recipes-benchmark/fio/{fio_3.17.bb => fio_3.18.bb} | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >  rename meta-oe/recipes-benchmark/fio/{fio_3.17.bb => fio_3.18.bb} (96%)
> >
> > diff --git a/meta-oe/recipes-benchmark/fio/fio_3.17.bb 
> > b/meta-oe/recipes-benchmark/fio/fio_3.18.bb
> > similarity index 96%
> > rename from meta-oe/recipes-benchmark/fio/fio_3.17.bb
> > rename to meta-oe/recipes-benchmark/fio/fio_3.18.bb
> > index 482928c31..b6484290f 100644
> > --- a/meta-oe/recipes-benchmark/fio/fio_3.17.bb
> > +++ b/meta-oe/recipes-benchmark/fio/fio_3.18.bb
> > @@ -22,7 +22,7 @@ PACKAGECONFIG_NUMA_armeb = ""
> >  PACKAGECONFIG ??= "${PACKAGECONFIG_NUMA}"
> >  PACKAGECONFIG[numa] = ",--disable-numa,numactl"
> >
> > -SRCREV = "08ce9dc20b8a4e55db7af6d869ddfa49b4a02d03"
> > +SRCREV = "ac694f66968fe7b18c820468abd8333f3df333fb"
> >  SRC_URI = "git://git.kernel.dk/fio.git \
> >file://0001-update-the-interpreter-paths.patch \
> >  "
> > --
> > 2.17.1
> >
> >
> >
> > --
> > ___
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] fio: upgrade 3.17 -> 3.18

2020-02-18 Thread Jonathan Richardson via Openembedded-devel
On Tue, Feb 18, 2020 at 2:09 PM Adrian Bunk  wrote:
>
> On Tue, Feb 18, 2020 at 11:37:33AM -0800, Jonathan Richardson via 
> Openembedded-devel wrote:
> > I was just about to submit a patch to remove the disabling of compiler
> > optimizations to fio. On our cortex A72 this kills the performance of fio
> > by 25%. That would solve this build issue also.
> >...
> > > https://errors.yoctoproject.org/Errors/Details/391129/
> >...
>
> t/io_uring.c:103:17: error: '__NR_sys_io_uring_register' undeclared (first 
> use in this function); did you mean 'SYS_io_uring_register'?
>
> This error does not look related to optimization.
>
> This looks like https://github.com/axboe/fio/issues/923

Yes you're right. The error is another issue. The message I was referring
to is actually only a warning. It should fix the warning only:

  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH v2 1/1] pcimem: add initial version 2.0

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
From: Randy Schacher 

Initial revision from 09724edb1783a98da2b7ae53c5aaa87493aabc9b

Reviewed-by: Jonathan Richardson 
Reviewed-by: Randy Schacher 
Signed-off-by: Jonathan Richardson 
---
 meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb

diff --git a/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb 
b/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb
new file mode 100644
index 0..107d5a8b7
--- /dev/null
+++ b/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Simple program to read & write to a pci device from userspace"
+HOMEPAGE = "https://github.com/billfarrow/pcimem;
+BUGTRACKER = "https://github.com/billfarrow/pcimem/issues;
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+COMPATIBLE_HOST = "(x86_64|aarch64|arm)"
+
+SRCREV = "09724edb1783a98da2b7ae53c5aaa87493aabc9b"
+SRC_URI = "git://github.com/billfarrow/pcimem.git "
+
+S = "${WORKDIR}/git"
+
+do_install() {
+install -D -m 0755 ${B}/pcimem ${D}${bindir}/pcimem
+}
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH v2 1/1] spidev-test: Add initial version of recipe

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
From: Arun Parameswaran 

Allows for testing SPI interface using spidev driver and is part of the
kernel tools.

Signed-off-by: Arun Parameswaran 
Reviewed-by: Jonathan Richardson 
Tested-by: Jonathan Richardson 
Signed-off-by: Jonathan Richardson 
---
 .../recipes-kernel/spidev-test/spidev-test.bb | 29 +++
 1 file changed, 29 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/spidev-test/spidev-test.bb

diff --git a/meta-oe/recipes-kernel/spidev-test/spidev-test.bb 
b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
new file mode 100644
index 0..662630291
--- /dev/null
+++ b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
@@ -0,0 +1,29 @@
+SUMMARY = "Test SPI devices"
+DESCRIPTION = "SPI testing utility using the spidev driver"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+PROVIDES = "virtual/spidev-test"
+
+inherit bash-completion kernelsrc kernel-arch
+
+do_populate_lic[depends] += "virtual/kernel:do_patch"
+
+EXTRA_OEMAKE = "-C ${S}/tools/spi O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" 
LD="${LD}" AR=${AR} ARCH=${ARCH}"
+
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
+do_compile() {
+oe_runmake
+}
+
+do_install() {
+oe_runmake DESTDIR=${D} install
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+python do_package_prepend() {
+d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
+}
+
+B = "${WORKDIR}/${BPN}-${PV}"
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe] spidev-test: Add initial version of recipe

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
-Original Message-
From: Jonathan Richardson [mailto:jonathan.richard...@broadcom.com]
Sent: Thursday, February 13, 2020 3:24 PM
To: openembedded-devel@lists.openembedded.org
Cc: Arun Parameswaran; Jonathan Richardson
Subject: [meta-oe] spidev-test: Add initial version of recipe

From: Arun Parameswaran 

Allows for testing SPI interface using spidev driver and is part of the
kernel tools.

Signed-off-by: Arun Parameswaran 
Reviewed-by: Jonathan Richardson 
Tested-by: Jonathan Richardson 
Signed-off-by: Jonathan Richardson 
---
 .../recipes-kernel/spidev-test/spidev-test.bb | 30 +++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/spidev-test/spidev-test.bb

diff --git a/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
new file mode 100644
index 0..7dd199fe9
--- /dev/null
+++ b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Test SPI devices"
+DESCRIPTION = "SPI testing utility using the spidev driver"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6
"
+DEPENDS = "binutils elfutils"

Doesn't look like these dependencies aren't required. I'm going to remove
them.
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe] pcimem: add initial version 2.0

2020-02-13 Thread Jonathan Richardson via Openembedded-devel
From: Randy Schacher 

Initial revision from 09724edb1783a98da2b7ae53c5aaa87493aabc9b

Reviewed-by: Jonathan Richardson 
Reviewed-by: Randy Schacher 
Signed-off-by: Jonathan Richardson 
---
 meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb | 18 ++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb

diff --git a/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb 
b/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb
new file mode 100644
index 0..ee2b1846b
--- /dev/null
+++ b/meta-oe/recipes-devtools/pcimem/pcimem_2.0.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Simple program to read & write to a pci device from userspace"
+HOMEPAGE = "https://github.com/billfarrow/pcimem;
+BUGTRACKER = "https://github.com/billfarrow/pcimem/issues;
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+COMPATIBLE_HOST = "(x86_64|aarch64|arm)"
+
+SRCREV = "09724edb1783a98da2b7ae53c5aaa87493aabc9b"
+SRC_URI = "git://github.com/billfarrow/pcimem.git "
+
+S = "${WORKDIR}/git"
+
+do_install() {
+install -d ${D}${bindir}
+install -m 0755 ${B}/pcimem ${D}${bindir}
+}
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe] spidev-test: Add initial version of recipe

2020-02-13 Thread Jonathan Richardson via Openembedded-devel
From: Arun Parameswaran 

Allows for testing SPI interface using spidev driver and is part of the
kernel tools.

Signed-off-by: Arun Parameswaran 
Reviewed-by: Jonathan Richardson 
Tested-by: Jonathan Richardson 
Signed-off-by: Jonathan Richardson 
---
 .../recipes-kernel/spidev-test/spidev-test.bb | 30 +++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/spidev-test/spidev-test.bb

diff --git a/meta-oe/recipes-kernel/spidev-test/spidev-test.bb 
b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
new file mode 100644
index 0..7dd199fe9
--- /dev/null
+++ b/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Test SPI devices"
+DESCRIPTION = "SPI testing utility using the spidev driver"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+DEPENDS = "binutils elfutils"
+PROVIDES = "virtual/spidev-test"
+
+inherit bash-completion kernelsrc kernel-arch
+
+do_populate_lic[depends] += "virtual/kernel:do_patch"
+
+EXTRA_OEMAKE = "-C ${S}/tools/spi O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" 
LD="${LD}" AR=${AR} ARCH=${ARCH}"
+
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
+do_compile() {
+oe_runmake
+}
+
+do_install() {
+oe_runmake DESTDIR=${D} install
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+python do_package_prepend() {
+d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
+}
+
+B = "${WORKDIR}/${BPN}-${PV}"
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe] [PATCH] python3-jdcal: add initial recipe version 1.4.1

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
---
 .../python/python3-jdcal_1.4.1.bb | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb 
b/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb
new file mode 100644
index 0..c8b5c953b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-jdcal_1.4.1.bb
@@ -0,0 +1,15 @@
+SUMMARY = "This module contains functions for converting between Julian dates 
and calendar dates"
+DESCRIPTION = "A function for converting Gregorian calendar dates to Julian 
dates, \
+and another function for converting Julian calendar dates to Julian dates are 
defined. \
+Two functions for the reverse calculations are also defined."
+
+HOMEPAGE = "https://github.com/phn/jdcal;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bd236e1f590973467a427bb354be0f46"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "e05bdb60fa80f25bc60e73e0c6b7c5dc"
+SRC_URI[sha256sum] = 
"472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io 
${PYTHON_PN}-pprint ${PYTHON_PN}-shell"
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe] [PATCH] python3-openpyxl: Add initial version 2.6.3

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
openpyxl depends on et-xmlfile and jdcal.
---
 .../python/python3-openpyxl_2.6.3.bb  | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-openpyxl_2.6.3.bb

diff --git a/meta-python/recipes-devtools/python/python3-openpyxl_2.6.3.bb 
b/meta-python/recipes-devtools/python/python3-openpyxl_2.6.3.bb
new file mode 100644
index 0..87cb46ea9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-openpyxl_2.6.3.bb
@@ -0,0 +1,15 @@
+SUMMARY = "openpyxl is a Python library to read/write Excel 2010 
xlsx/xlsm/xltx/xltm files"
+DESCRIPTION = "It was born from lack of existing library to read/write 
natively \
+from Python the Office Open XML format. All kudos to the PHPExcel team as 
openpyxl \
+was initially based on PHPExcel."
+
+HOMEPAGE = "http://www.python-excel.org/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=3baf26d8abf08632beaf913ea973cb8a"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "b067750e51f17a1a9cc6bacfdd668218"
+SRC_URI[sha256sum] = 
"72d1ed243972cad0b3c236230083cac00d9c72804e64a2ae93d7901aec1a8f1c"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io 
${PYTHON_PN}-pprint ${PYTHON_PN}-shell ${PYTHON_PN}-jdcal 
${PYTHON_PN}-et-xmlfile"
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe] [PATCH] python3-et-xmlfile: add initial recipe version 1.0.1

2020-02-14 Thread Jonathan Richardson via Openembedded-devel
---
 .../python/python3-et-xmlfile_1.0.1.bb| 20 +++
 1 file changed, 20 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-et-xmlfile_1.0.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-et-xmlfile_1.0.1.bb 
b/meta-python/recipes-devtools/python/python3-et-xmlfile_1.0.1.bb
new file mode 100644
index 0..cfff150cc
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-et-xmlfile_1.0.1.bb
@@ -0,0 +1,20 @@
+SUMMARY = "et_xmlfile is a low memory library for creating large XML files"
+DESCRIPTION = "It is based upon the xmlfile module from lxml with the aim of 
allowing code \
+to be developed that will work with both libraries. It was developed initially 
for \
+the openpyxl project but is now a standalone module."
+
+HOMEPAGE = "https://bitbucket.org/openpyxl/et_xmlfile/src/default/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=b3d89cae66f26c3a0799be8a96f3178b"
+
+SRC_URI[md5sum] = "f47940fd9d556375420b2e276476cfaf"
+SRC_URI[sha256sum] = 
"614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io 
${PYTHON_PN}-pprint ${PYTHON_PN}-shell"
+
+inherit setuptools3
+PYPI_PACKAGE ?= "et_xmlfile"
+PYPI_SRC_URI ?= 
"https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-1.0.1.tar.gz;
+SECTION = "devel/python"
+SRC_URI += "${PYPI_SRC_URI}"
+S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
-- 
2.17.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel