Re: [oe] [meta-oe][PATCH 1/2] libkcapi: Fix missing bash (for apps) and unneeded checksums (for testapp) when building

2019-01-28 Thread Krzysztof Kozlowski
On Fri, 25 Jan 2019 at 21:51, Khem Raj  wrote:
>
> Another approach could be remove bashism from the shell script which is 
> demanding it and ask for simple bin/sh

I took a look at this approach and it would be not trivial work.
Bashism appears in multiple places, starting from trivial function
keyword up to [[ ]] operators. On the other hand, these scripts are
enabled only for testapps package config which are useful during
development, not production. Therefore I expect that final image will
not have testapps and bash.

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


[oe] [meta-networking][PATCH] civetweb: Bump to v1.11

2019-01-25 Thread Krzysztof Kozlowski
Drop upstream accepted patch.

Signed-off-by: Krzysztof Kozlowski 
---
 .../0001-undefine-macro-before-redefining.patch| 26 --
 .../recipes-connectivity/civetweb/civetweb_git.bb  |  7 +++---
 2 files changed, 3 insertions(+), 30 deletions(-)
 delete mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb/0001-undefine-macro-before-redefining.patch

diff --git 
a/meta-networking/recipes-connectivity/civetweb/civetweb/0001-undefine-macro-before-redefining.patch
 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-undefine-macro-before-redefining.patch
deleted file mode 100644
index 8653302130e8..
--- 
a/meta-networking/recipes-connectivity/civetweb/civetweb/0001-undefine-macro-before-redefining.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 59f65235a7a690f50d1686e9977908c053697d8c Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Tue, 28 Aug 2018 22:59:13 -0700
-Subject: [PATCH] undefine macro before redefining
-
-Fixes
-src/main.c:89:9: error: 'printf' macro redefined [-Werror,-Wmacro-redefined]
-
-Upstream-Stats: Submitted [https://github.com/civetweb/civetweb/pull/649]
-Signed-off-by: Khem Raj 

- src/main.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/main.c b/src/main.c
-index bbcb0aec..01191a3c 100644
 a/src/main.c
-+++ b/src/main.c
-@@ -86,6 +86,7 @@
- 
- #include "civetweb.h"
- 
-+#undef printf
- #define printf
 \
-   DO_NOT_USE_THIS_FUNCTION__USE_fprintf /* Required for unit testing */
- 
diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb 
b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
index d681f7f30ca0..c8fe24c6375f 100644
--- a/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
@@ -4,11 +4,10 @@ HOMEPAGE = "https://github.com/civetweb/civetweb;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f28fdcba0dda735eed62bac6a397562"
 
-SRCREV = "19f31ba8dd8443e86c7028a4b4c37f4b299aa68c"
-PV = "1.10+git${SRCPV}"
+SRCREV = "ce8f6d38a60eb16c996afee1e5340f76ef4d0923"
+PV = "1.11+git${SRCPV}"
 SRC_URI = "git://github.com/civetweb/civetweb.git \
file://0001-Unittest-Link-librt-and-libm-using-l-option.patch \
-   file://0001-undefine-macro-before-redefining.patch \
"
 
 S = "${WORKDIR}/git"
@@ -36,7 +35,7 @@ PACKAGECONFIG[cgi] = 
"-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
 PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
 PACKAGECONFIG[debug] = 
"-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
 PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
-PACKAGECONFIG[server] = 
"-DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
+PACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON 
-DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF 
-DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
 PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON 
-DCIVETWEB_SSL_OPENSSL_API_1_1=OFF 
-DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl 
(=1.0.2%),"
 PACKAGECONFIG[websockets] = 
"-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
 
-- 
2.7.4

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


[oe] [meta-oe][PATCH 1/2] libkcapi: Fix missing bash (for apps) and unneeded checksums (for testapp) when building

2019-01-25 Thread Krzysztof Kozlowski
Fix build failures:
1. with "apps" PACKAGECONFIG:

ERROR: libkcapi-1.1.3+gitAUTOINC+1c736c43eb-r0 do_package:
QA Issue: libkcapi: Files/directories were installed but not shipped in any 
package:
  /usr/bin/.sha1hmac.hmac
  /usr/lib/.libkcapi.so.1.1.3.hmac

2. with "testapp" PACKAGECONFIG:

ERROR: libkcapi-1.1.3+gitAUTOINC+1c736c43eb-r0 do_package_qa:
QA Issue: /usr/libexec/libkcapi/test.sh contained in package libkcapi 
requires /bin/bash,
but no providers found in RDEPENDS_libkcapi? [file-rdeps]

Signed-off-by: Krzysztof Kozlowski 
---
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
index a93ddc823740..f70f774bf2d6 100644
--- a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
+++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
@@ -16,13 +16,17 @@ SRC_URI = " \
 inherit autotools
 
 PACKAGECONFIG ??= ""
-PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
+PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash"
 PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher 
--enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
 
 do_install_append() {
 # bindir contains testapp and apps.  However it is always created, even
 # when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
 rmdir --ignore-fail-on-non-empty ${D}${bindir}
+
+# Remove the generated binary checksum files
+rm -f ${D}${bindir}/.*.hmac
+rm -f ${D}${libdir}/.*.hmac
 }
 
 CPPFLAGS_append_libc-musl_toolchain-clang = " -Wno-error=sign-compare"
-- 
2.7.4

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


[oe] [meta-oe][PATCH 2/2] libkcapi: Bump to v1.1.4

2019-01-25 Thread Krzysztof Kozlowski
License file was updated with new dates ("2016" -> "2016 - 2019").

Signed-off-by: Krzysztof Kozlowski 
---
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
index f70f774bf2d6..46c66a1b2c92 100644
--- a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
+++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
@@ -1,14 +1,13 @@
 SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
 HOMEPAGE = "http://www.chronox.de/libkcapi.html;
 LICENSE = "BSD | GPL-2.0"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
+LIC_FILES_CHKSUM = "file://COPYING;md5=14d5a68b28755c04ebdba226e888b157"
 
 DEPENDS = "libtool"
 
 S = "${WORKDIR}/git"
-# Use v1.1.3 with changes on top for building in OE
-SRCREV = "1c736c43eb71fbb5640d00efaf34a1edf1972c49"
-PV = "1.1.3+git${SRCPV}"
+SRCREV = "3c56934f44a8f5a1257c342942e6e034fc6f20be"
+PV = "1.1.4+git${SRCPV}"
 SRC_URI = " \
 git://github.com/smuellerDD/libkcapi.git \
 "
-- 
2.7.4

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


Re: [oe] [meta-oe][PATCH] libkcapi: Upgrade to 1.1.3

2018-08-31 Thread Krzysztof Kozlowski
On Fri, 31 Aug 2018 at 08:56, Khem Raj  wrote:
>
> Drop upstream patches
>
> Signed-off-by: Khem Raj 
> Cc: Krzysztof Kozlowski 
> ---

(...)

> diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
> b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> index e401b70a7d..addd169a8d 100644
> --- a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> @@ -6,14 +6,11 @@ LIC_FILES_CHKSUM = 
> "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
>  DEPENDS = "libtool"
>
>  S = "${WORKDIR}/git"
> -# Use v1.1.1 with changes on top for building in OE
> -SRCREV = "342b50fc9225a991c224126c13c188ad9f1ef9f9"
> -PV = "1.1.1+git${SRCPV}"
> +# Use v1.1.3 with changes on top for building in OE

This comment can be dropped. Previously the SRCREV pointed to commit
on top of v1.1.1, so not a v1.1.1 exactly. Now you have chosen exactly
v1.1.3.

Anyway looks good:
Reviewed-by: Krzysztof Kozlowski 

Best regards,
Krzysztof

> +SRCREV = "1c736c43eb71fbb5640d00efaf34a1edf1972c49"
> +PV = "1.1.3+git${SRCPV}"
>  SRC_URI = " \
>  git://github.com/smuellerDD/libkcapi.git \
> -file://0001-Fix-possible-buffer-overflow-with-strncpy-and-Wstrin.patch \
> -file://0002-apps-Disable-Wstringop-truncation-warning-on-false-p.patch \
> -file://0003-test-Be-sure-to-terminate-strncpy-copied-string-Wstr.patch \
>  "
>
>  inherit autotools
> --
> 2.18.0
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH v2] libkcapi: Add new recipe for v1.1.1

2018-07-13 Thread Krzysztof Kozlowski
Add new recipe with libkcapi v1.1.1, Linux Kernel Crypto API User Space
Interface Library.

Signed-off-by: Krzysztof Kozlowski 

---

Changes since v1:
1. Add patches fixing compilation with GCC v8.1
---
 ...e-buffer-overflow-with-strncpy-and-Wstrin.patch | 50 
 ...e-Wstringop-truncation-warning-on-false-p.patch | 67 ++
 ...e-to-terminate-strncpy-copied-string-Wstr.patch | 37 
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb| 29 ++
 4 files changed, 183 insertions(+)
 create mode 100644 
meta-oe/recipes-crypto/libkcapi/files/0001-Fix-possible-buffer-overflow-with-strncpy-and-Wstrin.patch
 create mode 100644 
meta-oe/recipes-crypto/libkcapi/files/0002-apps-Disable-Wstringop-truncation-warning-on-false-p.patch
 create mode 100644 
meta-oe/recipes-crypto/libkcapi/files/0003-test-Be-sure-to-terminate-strncpy-copied-string-Wstr.patch
 create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb

diff --git 
a/meta-oe/recipes-crypto/libkcapi/files/0001-Fix-possible-buffer-overflow-with-strncpy-and-Wstrin.patch
 
b/meta-oe/recipes-crypto/libkcapi/files/0001-Fix-possible-buffer-overflow-with-strncpy-and-Wstrin.patch
new file mode 100644
index ..f35f631c6010
--- /dev/null
+++ 
b/meta-oe/recipes-crypto/libkcapi/files/0001-Fix-possible-buffer-overflow-with-strncpy-and-Wstrin.patch
@@ -0,0 +1,50 @@
+From 303c766d67cef5c357e9b3d3a97f7b480d29e1cb Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Thu, 12 Jul 2018 18:13:16 +0200
+Subject: [PATCH 1/3] Fix possible buffer overflow with strncpy and
+ -Wstringop-truncation warning
+
+If valid cipher name (to which netlink socket was bound) is longer than
+CRYPTO_MAX_ALG_NAME defined in lib/cryptouser.h, then the strncpy() will
+try to copy length of this cipher name into smaller buffer.
+
+In libkcapi the CRYPTO_MAX_ALG_NAME (thus the size of the buffer) is
+defined as 64 but since commit f437a3f477cc ("crypto: api - Extend
+algorithm name limit to 128 bytes") in Linux kernel (v4.12), the kernel
+defines it as 128.
+
+It is error-prone to use source buffer length as limit of dst buffer.
+Instead choose sizeof(dst buffer).
+
+This also fixes the warning with GCC v8.1.0:
+
+lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
+lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output truncated before 
terminating nul copying as many bytes from a string as its length 
[-Werror=stringop-truncation]
+strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
+^
+
+Signed-off-by: Krzysztof Kozlowski 
+Upstream-Status: Submitted
+---
+ lib/kcapi-kernel-if.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
+index 2481f8abde63..807cbfe219cd 100644
+--- a/lib/kcapi-kernel-if.c
 b/lib/kcapi-kernel-if.c
+@@ -627,9 +627,9 @@ static int __kcapi_common_getinfo(struct kcapi_handle 
*handle,
+ 
+   if (drivername)
+   strncpy(req.cru.cru_driver_name, ciphername,
+-  strlen(ciphername));
++  sizeof(req.cru.cru_driver_name) - 1);
+   else
+-  strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
++  strncpy(req.cru.cru_name, ciphername, sizeof(req.cru.cru_name) 
- 1);
+ 
+   /* talk to netlink socket */
+   sd =  socket(AF_NETLINK, SOCK_RAW, NETLINK_CRYPTO);
+-- 
+2.7.4
+
diff --git 
a/meta-oe/recipes-crypto/libkcapi/files/0002-apps-Disable-Wstringop-truncation-warning-on-false-p.patch
 
b/meta-oe/recipes-crypto/libkcapi/files/0002-apps-Disable-Wstringop-truncation-warning-on-false-p.patch
new file mode 100644
index ..ba76599fd831
--- /dev/null
+++ 
b/meta-oe/recipes-crypto/libkcapi/files/0002-apps-Disable-Wstringop-truncation-warning-on-false-p.patch
@@ -0,0 +1,67 @@
+From 88f1a8fe4697b0921f39fcd9c7efc4a0486cf91b Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Thu, 12 Jul 2018 18:13:24 +0200
+Subject: [PATCH 2/3] apps: Disable -Wstringop-truncation warning on false
+ positives
+
+The GCC v8.1.0 warns:
+
+In function 'paste',
+inlined from 'get_hmac_file' at apps/kcapi-hasher.c:395:11:
+apps/kcapi-hasher.c:346:2: error: 'strncpy' destination unchanged after 
copying no bytes [-Werror=stringop-truncation]
+  strncpy(dst, src, size);
+  ^~~
+
+These are false positives because at the end of paste() calls, the buffer is
+NULL terminated.
+
+Signed-off-by: Krzysztof Kozlowski 
+Upstream-Status: Submitted
+---
+ apps/kcapi-hasher.c | 16 
+ 1 file changed, 16 insertions(+)
+
+diff --git a/apps/kcapi-hasher.c b/apps/kcapi-hasher.c
+index ae88211ff4dd..4052260bf871 100644
+--- a/apps/kcapi-hasher.c
 b/apps/kcapi-hasher.c
+@@ -61,6 +61,10 @@
+ 
+ #include "app-internal.h"
+ 
++#define GCC_VERSION (__GNUC__ * 1 \
++  + 

Re: [oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-12 Thread Krzysztof Kozlowski
On 11 July 2018 at 18:06, Khem Raj  wrote:
> This fails for mips/musl builds
>
> | ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
> | ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
> |^
> | ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_driver_name, ciphername,
> |^~~~
> | strlen(ciphername));
> | ~~~
> | cc1: all warnings being treated as errors
> | make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1

Thanks for letting me know. I'll take a look and fix it.

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


[oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-10 Thread Krzysztof Kozlowski
Add new recipe with libkcapi v1.1.1, Linux Kernel Crypto API User Space
Interface Library.

Signed-off-by: Krzysztof Kozlowski 
---
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 24 
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb

diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
new file mode 100644
index ..be25d6e390ea
--- /dev/null
+++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
+HOMEPAGE = "http://www.chronox.de/libkcapi.html;
+LICENSE = "BSD | GPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
+
+DEPENDS = "libtool"
+
+S = "${WORKDIR}/git"
+# Use v1.1.1 with changes on top for building in OE
+SRCREV = "342b50fc9225a991c224126c13c188ad9f1ef9f9"
+PV = "1.1.1+git${SRCPV}"
+SRC_URI = "git://github.com/smuellerDD/libkcapi.git"
+
+inherit autotools
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
+PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher 
--enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
+
+do_install_append() {
+# bindir contains testapp and apps.  However it is always created, even
+# when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
+rmdir --ignore-fail-on-non-empty ${D}${bindir}
+}
-- 
2.14.1

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


[oe] [meta-networking][PATCH v5 3/3] kernel_wireless_regdb: Add class for embedding regulatory data into older kernel

2018-07-05 Thread Krzysztof Kozlowski
Linux kernels before v4.15, allowed to be compiled with static
regulatory database if it was put under net/wireless/db.txt.

Add kernel_wireless_regdb class which allows in such cases to embed the
wireless regulatory database directly in the Linux kernel during build
process.

Usage:
1. The class should be inherited by kernel recipe (e.g. in
   linux-yocto_%.bbappend).
2. For Linux kernels up to v4.14, build kernel with CONFIG_EXPERT and
   CONFIG_CFG80211_INTERNAL_REGDB.

Signed-off-by: Krzysztof Kozlowski 
---
 .../classes/kernel_wireless_regdb.bbclass| 20 
 .../wireless-regdb/wireless-regdb_2018.05.31.bb  |  9 +
 2 files changed, 29 insertions(+)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass

diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
b/meta-networking/classes/kernel_wireless_regdb.bbclass
new file mode 100644
index ..1238172bd4b7
--- /dev/null
+++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
@@ -0,0 +1,20 @@
+# Linux kernels before v4.15, allowed to be compiled with static
+# regulatory database if it was put under net/wireless/db.txt.
+#
+# This class copies the regulatory plaintext database to kernel sources before
+# compiling.
+#
+# Usage:
+# 1. The class should be inherited by kernel recipe (e.g. in
+#linux-yocto_%.bbappend).
+# 2. For Linux kernels up to v4.14, build kernel with CONFIG_EXPERT and
+#CONFIG_CFG80211_INTERNAL_REGDB.
+
+DEPENDS += "wireless-regdb-native"
+
+SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
+do_kernel_add_regdb() {
+cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
+}
+do_kernel_add_regdb[dirs] = "${S}"
+addtask kernel_add_regdb before do_build after do_configure
diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 2ae9e85427bc..d1c8d567597b 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -22,6 +22,7 @@ do_install() {
 
 # Install static regulatory DB in /lib/firmware for kernel to load.
 # This requires Linux kernel >= v4.15.
+# For kernel <= v4.14, inherit the kernel_wireless_regdb.bbclass in kernel's 
recipe.
 PACKAGES =+ "${PN}-static"
 RCONFLICTS_${PN} = "${PN}-static"
 
@@ -30,4 +31,12 @@ FILES_${PN}-static = " \
 ${nonarch_base_libdir}/firmware/regulatory.db.p7s \
 "
 
+# Native users might want to use the source of regulatory DB.
+# This is for example used by Linux kernel <= v4.14 and 
kernel_wireless_regdb.bbclass.
+do_install_append_class-native() {
+install -m 0644 -D db.txt ${D}${libdir}/crda/db.txt
+}
+
 RSUGGESTS_${PN} = "crda"
+
+BBCLASSEXTEND = "native"
-- 
2.14.1

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


[oe] [meta-networking][PATCH v5 1/3] wireless-regdb: Bump version to latest upstream 2018.05.31

2018-07-05 Thread Krzysztof Kozlowski
Bump the wireless-regdb recipe to use newest wireless regulatory
database.

Signed-off-by: Krzysztof Kozlowski 
---
 .../{wireless-regdb_2016.06.10.bb => wireless-regdb_2018.05.31.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb
 => wireless-regdb_2018.05.31.bb} (82%)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
similarity index 82%
rename from 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
rename to 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 64e9401e7a3c..8bb866ff1281 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -5,8 +5,8 @@ LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
 
 SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz;
-SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b"
-SRC_URI[sha256sum] = 
"cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+SRC_URI[md5sum] = "0cbbdc21186c76cf58aba01b03f3dc5b"
+SRC_URI[sha256sum] = 
"e1dfbc3b97771373077f430c3c05082fae883145b37db5b2cfd12c56676fbe7b"
 
 inherit bin_package
 
-- 
2.14.1

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


[oe] [meta-networking][PATCH v5 2/3] wireless-regdb: Add wireless-regdb-static package with static regulatory data

2018-07-05 Thread Krzysztof Kozlowski
Small embedded systems might:
1. Want to get rid of daemons as much as possible (therefore be built
   without CRDA),
2. Not receive user-space incremental updates but an entire system
   upgrade (with kernel).

Linux kernel since v4.15 allows loading static regulatory data from
/lib/firmware/regulatory.db.

Add additional package to wireless-regdb recipe which provides such
static data.

Signed-off-by: Krzysztof Kozlowski 
---
 .../wireless-regdb/wireless-regdb_2018.05.31.bb | 13 +
 1 file changed, 13 insertions(+)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 8bb866ff1281..2ae9e85427bc 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -15,6 +15,19 @@ do_install() {
 install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
 install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
 install -m 0644 sforshee.key.pub.pem 
${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
+
+install -m 0644 -D regulatory.db 
${D}${nonarch_base_libdir}/firmware/regulatory.db
+install -m 0644 regulatory.db.p7s 
${D}${nonarch_base_libdir}/firmware/regulatory.db.p7s
 }
 
+# Install static regulatory DB in /lib/firmware for kernel to load.
+# This requires Linux kernel >= v4.15.
+PACKAGES =+ "${PN}-static"
+RCONFLICTS_${PN} = "${PN}-static"
+
+FILES_${PN}-static = " \
+${nonarch_base_libdir}/firmware/regulatory.db \
+${nonarch_base_libdir}/firmware/regulatory.db.p7s \
+"
+
 RSUGGESTS_${PN} = "crda"
-- 
2.14.1

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


[oe] [meta-networking][PATCH v5 0/3] Add static/embedded wireless regulatory data

2018-07-05 Thread Krzysztof Kozlowski
Hi,

Changes since v4:
1. Extend kernel_wireless_regdb.bbclass description (suggested by Khem Raj).
2. Use '-D' for install (suggested by Khem Raj).

Changes since v3:
1. Re-order patches, start with version bump.
2. Add patch 2/3 for new kernel (since v4.15 embedding regulatory
   data has changed).

Changes since v2:
1. Rebase on sumo.
2. Fix task order - run do_kernel_add_regdb task after do_configure.

Changes since v1:
1. Remove debugging echo.

Best regards,
Krzysztof

Krzysztof Kozlowski (3):
  wireless-regdb: Bump version to latest upstream 2018.05.31
  wireless-regdb: Add wireless-regdb-static package with static
regulatory data
  kernel_wireless_regdb: Add class for embedding regulatory data into
older kernel

 .../classes/kernel_wireless_regdb.bbclass  | 20 +++
 .../wireless-regdb/wireless-regdb_2016.06.10.bb| 20 ---
 .../wireless-regdb/wireless-regdb_2018.05.31.bb| 42 ++
 3 files changed, 62 insertions(+), 20 deletions(-)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass
 delete mode 100644 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 create mode 100644 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb

-- 
2.14.1

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


Re: [oe] [meta-networking][PATCH v4 3/3] kernel_wireless_regdb: Add class for embedding regulatory data into older kernel

2018-07-05 Thread Krzysztof Kozlowski
On 5 July 2018 at 19:07, Khem Raj  wrote:
> On 7/5/18 9:55 AM, Krzysztof Kozlowski wrote:
>> Linux kernels before v4.15, allowed to be compiled with static
>> regulatory dabatase if it was put under net/wireless/db.txt.
>>
>> Add kernel_wireless_regdb class which allows in such cases to embed the
>> wireless regulatory database directly in the Linux kernel during build
>> process.
>>
>> Usage:
>> 1. The class should be inherited by kernel recipe (e.g. in
>>linux-yocto_%.bbappend).
>> 2. For Linux kernels up to v4.14, build kernel with CONFIG_EXPERT and
>>CONFIG_CFG80211_INTERNAL_REGDB.
>
> I think it will be good to add this in comments in bbclass as well.

Sure.

>
>>
>> Signed-off-by: Krzysztof Kozlowski 
>> ---
>>  meta-networking/classes/kernel_wireless_regdb.bbclass | 11 
>> +++
>>  .../wireless-regdb/wireless-regdb_2018.05.31.bb   | 10 
>> ++
>>  2 files changed, 21 insertions(+)
>>  create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass
>>
>> diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
>> b/meta-networking/classes/kernel_wireless_regdb.bbclass
>> new file mode 100644
>> index ..a1eb4c532667
>> --- /dev/null
>> +++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
>> @@ -0,0 +1,11 @@
>> +# Copies the regulatory plaintext database to kernel sources before 
>> compiling.
>> +# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use 
>> it.
>> +
>> +DEPENDS += "wireless-regdb-native"
>> +
>> +SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
>> +do_kernel_add_regdb() {
>> +cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
>> +}
>> +do_kernel_add_regdb[dirs] = "${S}"
>> +addtask kernel_add_regdb before do_build after do_configure
>> diff --git 
>> a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
>>  
>> b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
>> index d40756ff2bbf..0b7930718761 100644
>> --- 
>> a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
>> +++ 
>> b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
>> @@ -23,6 +23,7 @@ do_install() {
>>
>>  # Install static regulatory DB in /lib/firmware for kernel to load.
>>  # This requires Linux kernel >= v4.15.
>> +# For kernel <= v4.14, inherit the kernel_wireless_regdb.bbclass in 
>> kernel's recipe.
>>  PACKAGES =+ "${PN}-static"
>>  RCONFLICTS_${PN} = "${PN}-static"
>>
>> @@ -31,4 +32,13 @@ FILES_${PN}-static = " \
>>  ${nonarch_base_libdir}/firmware/regulatory.db.p7s \
>>  "
>>
>> +# Native users might want to use the source of regulatory DB.
>> +# This is for example used by Linux kernel <= v4.14 and 
>> kernel_wireless_regdb.bbclass.
>> +do_install_append_class-native() {
>> +install -d -m 0755 ${D}${libdir}/crda
>
> add -D to below cmd and you can avoid this line.

Thanks for review, I'll fix them in v5.

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


[oe] [meta-networking][PATCH v4 0/3] Add static/embedded wireless regulatory data

2018-07-05 Thread Krzysztof Kozlowski
Hi,

Changes since v3:
1. Re-order patches, start with version bump.
2. Add patch 2/3 for new kernel (since v4.15 embedding regulatory
   data has changed).

Changes since v2:
1. Rebase on sumo.
2. Fix task order - run do_kernel_add_regdb task after do_configure.

Changes since v1:
1. Remove debugging echo.

Best regards,
Krzysztof


Krzysztof Kozlowski (3):
  wireless-regdb: Bump version to latest upstream 2018.05.31
  wireless-regdb: Add wireless-regdb-static package with static
regulatory data
  kernel_wireless_regdb: Add class for embedding regulatory data into
older kernel

 .../classes/kernel_wireless_regdb.bbclass  | 11 ++
 .../wireless-regdb/wireless-regdb_2016.06.10.bb| 20 --
 .../wireless-regdb/wireless-regdb_2018.05.31.bb| 44 ++
 3 files changed, 55 insertions(+), 20 deletions(-)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass
 delete mode 100644 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 create mode 100644 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb

-- 
2.14.1

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


[oe] [meta-networking][PATCH v4 2/3] wireless-regdb: Add wireless-regdb-static package with static regulatory data

2018-07-05 Thread Krzysztof Kozlowski
Small embedded systems might:
1. Want to get rid of daemons as much as possible (therefore be built
   without CRDA),
2. Not receive user-space incremental updates but an entire system
   upgrade (with kernel).

Linux kernel since v4.15 allows loading static regulatory data from
/lib/firmware/regulatory.db.

Add additional package to wireless-regdb recipe which provides such
static data.

Signed-off-by: Krzysztof Kozlowski 
---
 .../wireless-regdb/wireless-regdb_2018.05.31.bb| 14 ++
 1 file changed, 14 insertions(+)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 8bb866ff1281..d40756ff2bbf 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -15,6 +15,20 @@ do_install() {
 install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
 install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
 install -m 0644 sforshee.key.pub.pem 
${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
+
+install -d -m0755 ${D}${nonarch_base_libdir}/firmware/
+install -m 0644 regulatory.db 
${D}${nonarch_base_libdir}/firmware/regulatory.db
+install -m 0644 regulatory.db.p7s 
${D}${nonarch_base_libdir}/firmware/regulatory.db.p7s
 }
 
+# Install static regulatory DB in /lib/firmware for kernel to load.
+# This requires Linux kernel >= v4.15.
+PACKAGES =+ "${PN}-static"
+RCONFLICTS_${PN} = "${PN}-static"
+
+FILES_${PN}-static = " \
+${nonarch_base_libdir}/firmware/regulatory.db \
+${nonarch_base_libdir}/firmware/regulatory.db.p7s \
+"
+
 RSUGGESTS_${PN} = "crda"
-- 
2.14.1

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


[oe] [meta-networking][PATCH v4 3/3] kernel_wireless_regdb: Add class for embedding regulatory data into older kernel

2018-07-05 Thread Krzysztof Kozlowski
Linux kernels before v4.15, allowed to be compiled with static
regulatory dabatase if it was put under net/wireless/db.txt.

Add kernel_wireless_regdb class which allows in such cases to embed the
wireless regulatory database directly in the Linux kernel during build
process.

Usage:
1. The class should be inherited by kernel recipe (e.g. in
   linux-yocto_%.bbappend).
2. For Linux kernels up to v4.14, build kernel with CONFIG_EXPERT and
   CONFIG_CFG80211_INTERNAL_REGDB.

Signed-off-by: Krzysztof Kozlowski 
---
 meta-networking/classes/kernel_wireless_regdb.bbclass | 11 +++
 .../wireless-regdb/wireless-regdb_2018.05.31.bb   | 10 ++
 2 files changed, 21 insertions(+)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass

diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
b/meta-networking/classes/kernel_wireless_regdb.bbclass
new file mode 100644
index ..a1eb4c532667
--- /dev/null
+++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
@@ -0,0 +1,11 @@
+# Copies the regulatory plaintext database to kernel sources before compiling.
+# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use it.
+
+DEPENDS += "wireless-regdb-native"
+
+SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
+do_kernel_add_regdb() {
+cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
+}
+do_kernel_add_regdb[dirs] = "${S}"
+addtask kernel_add_regdb before do_build after do_configure
diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index d40756ff2bbf..0b7930718761 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -23,6 +23,7 @@ do_install() {
 
 # Install static regulatory DB in /lib/firmware for kernel to load.
 # This requires Linux kernel >= v4.15.
+# For kernel <= v4.14, inherit the kernel_wireless_regdb.bbclass in kernel's 
recipe.
 PACKAGES =+ "${PN}-static"
 RCONFLICTS_${PN} = "${PN}-static"
 
@@ -31,4 +32,13 @@ FILES_${PN}-static = " \
 ${nonarch_base_libdir}/firmware/regulatory.db.p7s \
 "
 
+# Native users might want to use the source of regulatory DB.
+# This is for example used by Linux kernel <= v4.14 and 
kernel_wireless_regdb.bbclass.
+do_install_append_class-native() {
+install -d -m 0755 ${D}${libdir}/crda
+install -m 0644 db.txt ${D}${libdir}/crda/db.txt
+}
+
 RSUGGESTS_${PN} = "crda"
+
+BBCLASSEXTEND = "native"
-- 
2.14.1

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


[oe] [meta-networking][PATCH v4 1/3] wireless-regdb: Bump version to latest upstream 2018.05.31

2018-07-05 Thread Krzysztof Kozlowski
Bump the wireless-regdb recipe to use newest wireless regulatory
database.

Signed-off-by: Krzysztof Kozlowski 
---
 .../{wireless-regdb_2016.06.10.bb => wireless-regdb_2018.05.31.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb
 => wireless-regdb_2018.05.31.bb} (82%)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
similarity index 82%
rename from 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
rename to 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 64e9401e7a3c..8bb866ff1281 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -5,8 +5,8 @@ LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
 
 SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz;
-SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b"
-SRC_URI[sha256sum] = 
"cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+SRC_URI[md5sum] = "0cbbdc21186c76cf58aba01b03f3dc5b"
+SRC_URI[sha256sum] = 
"e1dfbc3b97771373077f430c3c05082fae883145b37db5b2cfd12c56676fbe7b"
 
 inherit bin_package
 
-- 
2.14.1

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


[oe] [meta-oe][PATCH v3] lshw: Add new recipe with B.02.18 version

2018-06-06 Thread Krzysztof Kozlowski
Add new recipe for lshw B.02.18 version - a small tool to provide
detailed information on the hardware configuration of the machine.

Signed-off-by: Krzysztof Kozlowski 

---

Changes since v2:
1. Fix build with musl libc (suggested by Khem Raj),
2. Refresh patches, extend changelog and fix signed-off by to account
   used.

Changes since v1:
1. Drop dependency on pciutils and usbutils and use pci.ids and usb.ids
   bundled with lshw.  Recent usbutils do not provide usb.ids (moved to
   udev-hwdb).
   pciutils do provide pci.ids... but in gzipped form which is not yet
   supported by lshw (next release should support it).

Changes since meta-linaro recipe:
The recipe is based on existing meta-linaro:
https://layers.openembedded.org/layerindex/recipe/5446/

with changes:
1. Bump to 02.18,
2. Fix QA issue with GNU_HASH,
3. Minor recipe styling fixes.
---
 .../0001-Makefile-Fix-cross-compilation.patch  | 57 ++
 ...e-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch | 34 
 .../0003-sysfs-Fix-basename-build-with-musl.patch  | 92 ++
 meta-oe/recipes-devtools/lshw/lshw_02.18.bb| 32 
 4 files changed, 215 insertions(+)
 create mode 100644 
meta-oe/recipes-devtools/lshw/files/0001-Makefile-Fix-cross-compilation.patch
 create mode 100644 
meta-oe/recipes-devtools/lshw/files/0002-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 create mode 100644 
meta-oe/recipes-devtools/lshw/files/0003-sysfs-Fix-basename-build-with-musl.patch
 create mode 100644 meta-oe/recipes-devtools/lshw/lshw_02.18.bb

diff --git 
a/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Fix-cross-compilation.patch 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Fix-cross-compilation.patch
new file mode 100644
index ..6db6ab95ee8f
--- /dev/null
+++ 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Fix-cross-compilation.patch
@@ -0,0 +1,57 @@
+From 62f9ed95b5d0feab426bff452be793c62a6b795a Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Wed, 6 Jun 2018 12:49:21 +0200
+Subject: [PATCH 1/2] Makefile: Fix cross compilation
+
+Allow building on ARMv7 and ARMv8.
+
+Upstream-Status: Submitted
+Signed-off-by: Krzysztof Kozlowski 
+---
+ src/Makefile  | 2 +-
+ src/core/Makefile | 2 +-
+ src/gui/Makefile  | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index b50586bc9234..654b786dd899 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -18,7 +18,7 @@ export MANDIR
+ export DATADIR
+ export SQLITE
+ 
+-CXX?=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=-I./core/
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+diff --git a/src/core/Makefile b/src/core/Makefile
+index 5bf5a69cc6a6..2bd1b94c4175 100644
+--- a/src/core/Makefile
 b/src/core/Makefile
+@@ -1,6 +1,6 @@
+ PACKAGENAME?=lshw
+ 
+-CXX=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+diff --git a/src/gui/Makefile b/src/gui/Makefile
+index 332ce5704819..b0f925490356 100644
+--- a/src/gui/Makefile
 b/src/gui/Makefile
+@@ -1,7 +1,7 @@
+ PACKAGENAME?=lshw
+ 
+-CXX?=c++
+-CC?=cc
++CXX?=$(CROSS_COMPILE)c++
++CC?=$(CROSS_COMPILE)cc
+ STRIP?=strip
+ OBJCOPY?=objcopy
+ 
+-- 
+2.7.4
+
diff --git 
a/meta-oe/recipes-devtools/lshw/files/0002-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 
b/meta-oe/recipes-devtools/lshw/files/0002-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
new file mode 100644
index ..d3da01b40302
--- /dev/null
+++ 
b/meta-oe/recipes-devtools/lshw/files/0002-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
@@ -0,0 +1,34 @@
+From 75667f8a0ae4f1689ff03eb1768b1ee8cdfbf00d Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Wed, 6 Jun 2018 12:49:30 +0200
+Subject: [PATCH 2/2] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
+ warning
+
+Fix OpenEmbedded/Yocto QA warning:
+
+ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf 
binary: 
'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw'
 [ldflags]
+ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please 
consider fixing them.
+ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
+
+Upstream-Status: Submitted
+Signed-off-by: Krzysztof Kozlowski 
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 654b786dd899..a441ba2bb666 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+ ifeq ($(SQLITE), 1)
+   CXXFLAGS+= -DSQLITE $

Re: [oe] [meta-oe][PATCH v2] lshw: Add new recipe with B.02.18 version

2018-06-06 Thread Krzysztof Kozlowski
On Wed, Jun 6, 2018 at 3:16 AM, Khem Raj  wrote:
> Hi Krzysztof
>
> This fails on musl due to basename() API not being available
> you might want to fix it on the same lines as
>
> http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/poppler/poppler/basename-include.patch

Thanks for hint. How did you build it (how can I reproduce it)?

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


[oe] [meta-oe][PATCH v2] lshw: Add new recipe with B.02.18 version

2018-06-04 Thread Krzysztof Kozlowski
Add new recipe for lshw B.02.18 version - a small tool to provide
detailed information on the hardware configuration of the machine.

Signed-off-by: Krzysztof Kozlowski 

---

Changes since v1:
1. Drop dependency on pciutils and usbutils and use pci.ids and usb.ids
   bundled with lshw.  Recent usbutils do not provide usb.ids (moved to
   udev-hwdb).
   pciutils do provide pci.ids... but in gzipped form which is not yet
   supported by lshw (next release should support it).

The recipe is based on existing meta-linaro:
https://layers.openembedded.org/layerindex/recipe/5446/

with changes:
1. Bump to 02.18,
2. Fix QA issue with GNU_HASH,
3. Minor recipe styling fixes.
---
 ...e-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch | 33 ++
 .../lshw/files/cross-compile.patch | 39 ++
 meta-oe/recipes-devtools/lshw/lshw_02.18.bb| 31 +
 3 files changed, 103 insertions(+)
 create mode 100644 
meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 create mode 100644 meta-oe/recipes-devtools/lshw/files/cross-compile.patch
 create mode 100644 meta-oe/recipes-devtools/lshw/lshw_02.18.bb

diff --git 
a/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
new file mode 100644
index ..627619fd137f
--- /dev/null
+++ 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
@@ -0,0 +1,33 @@
+From 2f69ba75608619ba7fc962b1a0338682b644a406 Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Thu, 31 May 2018 16:22:23 +0200
+Subject: [PATCH] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
+ warning
+
+Fix OpenEmbedded/Yocto QA warning:
+
+ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf 
binary: 
'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw'
 [ldflags]
+ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please 
consider fixing them.
+ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
+
+Signed-off-by: Krzysztof Kozlowski 
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index f474ff9d56b3..dd7a2a400be2 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+ ifeq ($(SQLITE), 1)
+   CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3)
+ endif
+-LDFLAGS=-L./core/ -g
++LDFLAGS+=-L./core/ -g
+ ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
+   LDFLAGS+= -Wl,--as-needed
+ endif
+-- 
+2.7.4
+
diff --git a/meta-oe/recipes-devtools/lshw/files/cross-compile.patch 
b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
new file mode 100644
index ..221b7e538c00
--- /dev/null
+++ b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
@@ -0,0 +1,39 @@
+---
+ src/Makefile  |2 +-
+ src/core/Makefile |2 +-
+ src/gui/Makefile  |4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/src/Makefile
 b/src/Makefile
+@@ -18,7 +18,7 @@ export MANDIR
+ export DATADIR
+ export SQLITE
+ 
+-CXX?=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=-I./core/
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+--- a/src/core/Makefile
 b/src/core/Makefile
+@@ -1,6 +1,6 @@
+ PACKAGENAME?=lshw
+ 
+-CXX=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+--- a/src/gui/Makefile
 b/src/gui/Makefile
+@@ -1,7 +1,7 @@
+ PACKAGENAME?=lshw
+ 
+-CXX?=c++
+-CC?=cc
++CXX?=$(CROSS_COMPILE)c++
++CC?=$(CROSS_COMPILE)cc
+ STRIP?=strip
+ OBJCOPY?=objcopy
+ 
diff --git a/meta-oe/recipes-devtools/lshw/lshw_02.18.bb 
b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
new file mode 100644
index ..2565ccfffe71
--- /dev/null
+++ b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "A small tool to provide detailed information on the hardware \
+configuration of the machine. It can report exact memory configuration, \
+firmware version, mainboard configuration, CPU version and speed, cache \
+configuration, bus speed, etc. on DMI-capable or EFI systems."
+SUMMARY = "Hardware lister"
+HOMEPAGE = "http://ezix.org/project/wiki/HardwareLiSter;
+SECTION = "console/tools"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+COMPATIBLE_HOST = "(

Re: [oe] [meta-oe][PATCH] lshw: Add new recipe with B.02.18 version

2018-06-04 Thread Krzysztof Kozlowski
On Fri, Jun 1, 2018 at 6:48 PM, Khem Raj  wrote:
> Hi Krzysztof
>
> On 6/1/18 5:06 AM, Krzysztof Kozlowski wrote:
>> Add new recipe for lshw B.02.18 version - a small tool to provide
>> detailed information on the hardware configuration of the machine.
>>
>> Signed-off-by: Krzysztof Kozlowski 
>>
>> ---
>>
>> The recipe is based on existing meta-linaro:
>> https://layers.openembedded.org/layerindex/recipe/5446/
>>
>> with changes:
>> 1. Bump to 02.18,
>> 2. Fix QA issue with GNU_HASH,
>> 3. Minor recipe styling fixes.
>> ---
>>  ...e-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch | 33 ++
>>  .../lshw/files/cross-compile.patch | 39 
>> ++
>>  meta-oe/recipes-devtools/lshw/lshw_02.18.bb| 37 
>>  3 files changed, 109 insertions(+)
>>  create mode 100644 
>> meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>>  create mode 100644 meta-oe/recipes-devtools/lshw/files/cross-compile.patch
>>  create mode 100644 meta-oe/recipes-devtools/lshw/lshw_02.18.bb
>>
>> diff --git 
>> a/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>>  
>> b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>> new file mode 100644
>> index ..627619fd137f
>> --- /dev/null
>> +++ 
>> b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>> @@ -0,0 +1,33 @@
>> +From 2f69ba75608619ba7fc962b1a0338682b644a406 Mon Sep 17 00:00:00 2001
>> +From: Krzysztof Kozlowski 
>> +Date: Thu, 31 May 2018 16:22:23 +0200
>> +Subject: [PATCH] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
>> + warning
>> +
>> +Fix OpenEmbedded/Yocto QA warning:
>> +
>> +ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf 
>> binary: 
>> 'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw'
>>  [ldflags]
>> +ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please 
>> consider fixing them.
>> +ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
>> +
>> +Signed-off-by: Krzysztof Kozlowski 
>> +---
>> + src/Makefile | 2 +-
>> + 1 file changed, 1 insertion(+), 1 deletion(-)
>> +
>> +diff --git a/src/Makefile b/src/Makefile
>> +index f474ff9d56b3..dd7a2a400be2 100644
>> +--- a/src/Makefile
>>  b/src/Makefile
>> +@@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) 
>> $(RPM_OPT_FLAGS)
>> + ifeq ($(SQLITE), 1)
>> + CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3)
>> + endif
>> +-LDFLAGS=-L./core/ -g
>> ++LDFLAGS+=-L./core/ -g
>> + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
>> + LDFLAGS+= -Wl,--as-needed
>> + endif
>> +--
>> +2.7.4
>> +
>> diff --git a/meta-oe/recipes-devtools/lshw/files/cross-compile.patch 
>> b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
>> new file mode 100644
>> index ..221b7e538c00
>> --- /dev/null
>> +++ b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
>> @@ -0,0 +1,39 @@
>> +---
>> + src/Makefile  |2 +-
>> + src/core/Makefile |2 +-
>> + src/gui/Makefile  |4 ++--
>> + 3 files changed, 4 insertions(+), 4 deletions(-)
>> +
>> +--- a/src/Makefile
>>  b/src/Makefile
>> +@@ -18,7 +18,7 @@ export MANDIR
>> + export DATADIR
>> + export SQLITE
>> +
>> +-CXX?=c++
>> ++CXX?=$(CROSS_COMPILE)c++
>> + INCLUDES=-I./core/
>> + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
>> -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
>> + CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
>> +--- a/src/core/Makefile
>>  b/src/core/Makefile
>> +@@ -1,6 +1,6 @@
>> + PACKAGENAME?=lshw
>> +
>> +-CXX=c++
>> ++CXX?=$(CROSS_COMPILE)c++
>> + INCLUDES=
>> + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
>> -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
>> + CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
>> +--- a/src/gui/Makefile
>>  b/src/gui/Makefile
>> +@@ -1,7 +1,7 @@
>> + PACKAGENAME?=lshw
>> +
>> +-CXX?=c++
>> +-CC?=cc
>> ++CXX?=$(CROSS_COMPILE)c++
>> ++CC?=$(CROSS

Re: [oe] [meta-oe][PATCH] lshw: Add new recipe with B.02.18 version

2018-06-01 Thread Krzysztof Kozlowski
+Cc: Fathi Boudra 

On Fri, Jun 1, 2018 at 2:06 PM, Krzysztof Kozlowski  wrote:
> Add new recipe for lshw B.02.18 version - a small tool to provide
> detailed information on the hardware configuration of the machine.
>
> Signed-off-by: Krzysztof Kozlowski 
>
> ---
>
> The recipe is based on existing meta-linaro:
> https://layers.openembedded.org/layerindex/recipe/5446/
>
> with changes:
> 1. Bump to 02.18,
> 2. Fix QA issue with GNU_HASH,
> 3. Minor recipe styling fixes.
> ---
>  ...e-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch | 33 ++
>  .../lshw/files/cross-compile.patch | 39 
> ++
>  meta-oe/recipes-devtools/lshw/lshw_02.18.bb| 37 
>  3 files changed, 109 insertions(+)
>  create mode 100644 
> meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>  create mode 100644 meta-oe/recipes-devtools/lshw/files/cross-compile.patch
>  create mode 100644 meta-oe/recipes-devtools/lshw/lshw_02.18.bb
>
> diff --git 
> a/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
>  
> b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
> new file mode 100644
> index ..627619fd137f
> --- /dev/null
> +++ 
> b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
> @@ -0,0 +1,33 @@
> +From 2f69ba75608619ba7fc962b1a0338682b644a406 Mon Sep 17 00:00:00 2001
> +From: Krzysztof Kozlowski 
> +Date: Thu, 31 May 2018 16:22:23 +0200
> +Subject: [PATCH] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
> + warning
> +
> +Fix OpenEmbedded/Yocto QA warning:
> +
> +ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf 
> binary: 
> 'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw'
>  [ldflags]
> +ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please 
> consider fixing them.
> +ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
> +
> +Signed-off-by: Krzysztof Kozlowski 
> +---
> + src/Makefile | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/Makefile b/src/Makefile
> +index f474ff9d56b3..dd7a2a400be2 100644
> +--- a/src/Makefile
>  b/src/Makefile
> +@@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) 
> $(RPM_OPT_FLAGS)
> + ifeq ($(SQLITE), 1)
> +   CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3)
> + endif
> +-LDFLAGS=-L./core/ -g
> ++LDFLAGS+=-L./core/ -g
> + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
> +   LDFLAGS+= -Wl,--as-needed
> + endif
> +--
> +2.7.4
> +
> diff --git a/meta-oe/recipes-devtools/lshw/files/cross-compile.patch 
> b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
> new file mode 100644
> index ..221b7e538c00
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
> @@ -0,0 +1,39 @@
> +---
> + src/Makefile  |2 +-
> + src/core/Makefile |2 +-
> + src/gui/Makefile  |4 ++--
> + 3 files changed, 4 insertions(+), 4 deletions(-)
> +
> +--- a/src/Makefile
>  b/src/Makefile
> +@@ -18,7 +18,7 @@ export MANDIR
> + export DATADIR
> + export SQLITE
> +
> +-CXX?=c++
> ++CXX?=$(CROSS_COMPILE)c++
> + INCLUDES=-I./core/
> + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
> -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
> + CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
> +--- a/src/core/Makefile
>  b/src/core/Makefile
> +@@ -1,6 +1,6 @@
> + PACKAGENAME?=lshw
> +
> +-CXX=c++
> ++CXX?=$(CROSS_COMPILE)c++
> + INCLUDES=
> + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
> -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
> + CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
> +--- a/src/gui/Makefile
>  b/src/gui/Makefile
> +@@ -1,7 +1,7 @@
> + PACKAGENAME?=lshw
> +
> +-CXX?=c++
> +-CC?=cc
> ++CXX?=$(CROSS_COMPILE)c++
> ++CC?=$(CROSS_COMPILE)cc
> + STRIP?=strip
> + OBJCOPY?=objcopy
> +
> diff --git a/meta-oe/recipes-devtools/lshw/lshw_02.18.bb 
> b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
> new file mode 100644
> index ..aac6707fcea4
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
> @@ -0,0 +1,37 @@
> +DESCRIPTION = "A small tool to provide detailed information on the hardware \
> +configuration of the machine. It can report exact memory configuration, \
> +f

[oe] [meta-oe][PATCH] lshw: Add new recipe with B.02.18 version

2018-06-01 Thread Krzysztof Kozlowski
Add new recipe for lshw B.02.18 version - a small tool to provide
detailed information on the hardware configuration of the machine.

Signed-off-by: Krzysztof Kozlowski 

---

The recipe is based on existing meta-linaro:
https://layers.openembedded.org/layerindex/recipe/5446/

with changes:
1. Bump to 02.18,
2. Fix QA issue with GNU_HASH,
3. Minor recipe styling fixes.
---
 ...e-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch | 33 ++
 .../lshw/files/cross-compile.patch | 39 ++
 meta-oe/recipes-devtools/lshw/lshw_02.18.bb| 37 
 3 files changed, 109 insertions(+)
 create mode 100644 
meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 create mode 100644 meta-oe/recipes-devtools/lshw/files/cross-compile.patch
 create mode 100644 meta-oe/recipes-devtools/lshw/lshw_02.18.bb

diff --git 
a/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
new file mode 100644
index ..627619fd137f
--- /dev/null
+++ 
b/meta-oe/recipes-devtools/lshw/files/0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch
@@ -0,0 +1,33 @@
+From 2f69ba75608619ba7fc962b1a0338682b644a406 Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski 
+Date: Thu, 31 May 2018 16:22:23 +0200
+Subject: [PATCH] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
+ warning
+
+Fix OpenEmbedded/Yocto QA warning:
+
+ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf 
binary: 
'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw'
 [ldflags]
+ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please 
consider fixing them.
+ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
+
+Signed-off-by: Krzysztof Kozlowski 
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index f474ff9d56b3..dd7a2a400be2 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+ ifeq ($(SQLITE), 1)
+   CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3)
+ endif
+-LDFLAGS=-L./core/ -g
++LDFLAGS+=-L./core/ -g
+ ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
+   LDFLAGS+= -Wl,--as-needed
+ endif
+-- 
+2.7.4
+
diff --git a/meta-oe/recipes-devtools/lshw/files/cross-compile.patch 
b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
new file mode 100644
index ..221b7e538c00
--- /dev/null
+++ b/meta-oe/recipes-devtools/lshw/files/cross-compile.patch
@@ -0,0 +1,39 @@
+---
+ src/Makefile  |2 +-
+ src/core/Makefile |2 +-
+ src/gui/Makefile  |4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/src/Makefile
 b/src/Makefile
+@@ -18,7 +18,7 @@ export MANDIR
+ export DATADIR
+ export SQLITE
+ 
+-CXX?=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=-I./core/
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+--- a/src/core/Makefile
 b/src/core/Makefile
+@@ -1,6 +1,6 @@
+ PACKAGENAME?=lshw
+ 
+-CXX=c++
++CXX?=$(CROSS_COMPILE)c++
+ INCLUDES=
+ DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" 
-DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
+ CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
+--- a/src/gui/Makefile
 b/src/gui/Makefile
+@@ -1,7 +1,7 @@
+ PACKAGENAME?=lshw
+ 
+-CXX?=c++
+-CC?=cc
++CXX?=$(CROSS_COMPILE)c++
++CC?=$(CROSS_COMPILE)cc
+ STRIP?=strip
+ OBJCOPY?=objcopy
+ 
diff --git a/meta-oe/recipes-devtools/lshw/lshw_02.18.bb 
b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
new file mode 100644
index ..aac6707fcea4
--- /dev/null
+++ b/meta-oe/recipes-devtools/lshw/lshw_02.18.bb
@@ -0,0 +1,37 @@
+DESCRIPTION = "A small tool to provide detailed information on the hardware \
+configuration of the machine. It can report exact memory configuration, \
+firmware version, mainboard configuration, CPU version and speed, cache \
+configuration, bus speed, etc. on DMI-capable or EFI systems."
+SUMMARY = "Hardware lister"
+HOMEPAGE = "http://ezix.org/project/wiki/HardwareLiSter;
+SECTION = "console/tools"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+DEPENDS = " \
+pciutils \
+usbutils \
+"
+COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
+
+SRC_URI = " \
+http://ezix.org/software/files/lshw-B.${PV}.tar.gz \
+file://cross-compile.patch \
+file://0001-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch \
+"
+SRC

Re: [oe] [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares

2018-05-30 Thread Krzysztof Kozlowski
On Tue, May 29, 2018 at 6:40 PM, Khem Raj  wrote:
> Previous version is now upstreamed. Please send the delta rebased on
> top of the prior version in a v3

I missed that it is already applied, sorry for the noise then.

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


[oe] [meta-oe][PATCH v2] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares

2018-05-29 Thread Krzysztof Kozlowski
Several Broadcom Bluetooth USB dongles require firmware to be loaded.
This recipe provides the firmware for BCM20702, BCM20703, BCM43142,
BCM4335, BCM4350, BCM4356 and BCM4371 based devices.

Signed-off-by: Krzysztof Kozlowski 

---

Changes since v1:
1. Rebase on sumo

The patch is also available here:
https://github.com/krzk/meta-openembedded/commits/broadcom-bt-v2
---
 .../broadcom-bt-firmware_git.bb| 76 ++
 1 file changed, 76 insertions(+)
 create mode 100644 
meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb

diff --git 
a/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb 
b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
new file mode 100644
index ..8c474ecdc472
--- /dev/null
+++ b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
@@ -0,0 +1,76 @@
+# Copyright (C) 2018 Krzysztof Kozlowski 
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Broadcom Bluetooth firmware files"
+DESCRIPTION = "Firmware for Broadcom Bluetooth devices. Note that in case of 
BT+WiFi devices, separate WiFi firmware might be needed."
+HOMEPAGE = "https://github.com/winterheart/broadcom-bt-firmware;
+
+LICENSE = "Firmware-Broadcom-WIDCOMM"
+NO_GENERIC_LICENSE[Firmware-Broadcom-WIDCOMM] = "LICENSE.broadcom_bcm20702"
+
+LIC_FILES_CHKSUM = 
"file://LICENSE.broadcom_bcm20702;md5=c0d5ea0502b00df74173d0f8a48b619d"
+SRC_URI = "git://github.com/winterheart/broadcom-bt-firmware.git"
+SRCREV = "c0bd928b8ae5754b6077c99afe6ef5c949a58f32"
+PE = "1"
+PV = "0.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+inherit allarch
+
+CLEANBROKEN = "1"
+
+do_compile() {
+:
+}
+
+do_install() {
+install -d ${D}${nonarch_base_libdir}/firmware/brcm/
+cp brcm/*.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
+
+# For license package:
+install -m 0644 LICENSE.broadcom_bcm20702 
${D}${nonarch_base_libdir}/firmware/brcm/
+
+# For main package:
+install -m 0644 DEVICES.md ${D}${nonarch_base_libdir}/firmware/brcm/
+}
+
+PACKAGES =+ " \
+${PN}-bcm20702a1 \
+${PN}-bcm20702b0 \
+${PN}-bcm20703a1 \
+${PN}-bcm43142a0 \
+${PN}-bcm4335c0 \
+${PN}-bcm4350c5 \
+${PN}-bcm4356a2 \
+${PN}-bcm4371c2 \
+${PN}-license \
+"
+
+RDEPENDS_${PN}-bcm20702a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm20702b0 = "${PN}-license"
+RDEPENDS_${PN}-bcm20703a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm43142a0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4335c0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4350c5 = "${PN}-license"
+RDEPENDS_${PN}-bcm4356a2 = "${PN}-license"
+RDEPENDS_${PN}-bcm4371c2 = "${PN}-license"
+
+FILES_${PN}-bcm20702a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20702A1*hcd"
+FILES_${PN}-bcm20702b0 = "${nonarch_base_libdir}/firmware/brcm/BCM20702B0*hcd"
+FILES_${PN}-bcm20703a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20703A1*hcd"
+FILES_${PN}-bcm43142a0 = "${nonarch_base_libdir}/firmware/brcm/BCM43142A0*hcd"
+FILES_${PN}-bcm4335c0 = "${nonarch_base_libdir}/firmware/brcm/BCM4335C0*hcd"
+FILES_${PN}-bcm4350c5 = "${nonarch_base_libdir}/firmware/brcm/BCM4350C5*hcd"
+FILES_${PN}-bcm4356a2 = "${nonarch_base_libdir}/firmware/brcm/BCM4356A2*hcd"
+FILES_${PN}-bcm4371c2 = "${nonarch_base_libdir}/firmware/brcm/BCM4371C2*hcd"
+FILES_${PN}-license += 
"${nonarch_base_libdir}/firmware/brcm/LICENSE.broadcom_bcm20702"
+
+FILES_${PN} += "${nonarch_base_libdir}/firmware/brcm/*"
+RDEPENDS_${PN} += "${PN}-license"
+
+# Make broadcom-bt-firmware depend on all of the split-out packages.
+python populate_packages_prepend () {
+firmware_pkgs = oe.utils.packages_filter_out_system(d)
+d.appendVar('RDEPENDS_broadcom-bt-firmware', ' ' + ' '.join(firmware_pkgs))
+}
-- 
2.7.4

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


[oe] [meta-networking][PATCH v4] civetweb: Add new recipe with git-based version

2018-05-25 Thread Krzysztof Kozlowski
Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
server with optional CGI, SSL and Lua support, under MIT license.

CivetWeb provides C and C++ libraries and a standalone server binary.

Choose specific post-v1.10 git revision b8148afe8fa4 which has a fixed
SSL support (depending on OpenSSL v1.0.2).

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v3:
1. Rebase on sumo branch.
2. Use Makefile generator for CMake (ninja does not build).

Changes since v2:
1. Bump to post-v1.10 git revision.
2. Add ssl package config.
3. Drop cgi, cpp and debug from default package config.

Changes since v1:
1. Use SRCREC as suggested by Khem Raj.
2. Drop nativesdk class.
3. Fix native build with patch.
4. Explicitly disable SSL (does not build at v1.10).
5. Disable ASAN (not applicable for native builds).
---
 ...ssing-librt-and-libm-during-native-compil.patch | 42 +++
 .../recipes-connectivity/civetweb/civetweb_git.bb  | 47 ++
 2 files changed, 89 insertions(+)
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb

diff --git 
a/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
new file mode 100644
index ..401cf39ad8df
--- /dev/null
+++ 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
@@ -0,0 +1,42 @@
+From cd93e2c538cecb3192fd24c0fbd6e834d0c47eec Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski <k...@kernel.org>
+Date: Wed, 18 Apr 2018 14:11:52 +0200
+Subject: [PATCH] Unittest: Fix missing librt and libm during native compilation
+
+civetweb looks for librt and libm in weird places and for native build
+this fails:
+
+| ../third_party/lib/libcheck.a(check.c.o): In function `tcase_create':
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:145:
 undefined reference to `floor'
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:148:
 undefined reference to `floor'
+
+These are needed dependencies so try regular system linkage in such
+case.
+
+Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
+---
+ unittest/CMakeLists.txt | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
+index f34b2e0e4ce4..05d25702178c 100644
+--- a/unittest/CMakeLists.txt
 b/unittest/CMakeLists.txt
+@@ -60,10 +60,14 @@ endif()
+ find_package(LibM)
+ if (LIBM_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBM::LIBM")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lm")
+ endif()
+ find_package(LibRt)
+ if (LIBRT_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBRT::LIBRT")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lrt")
+ endif()
+ 
+ # Build the C unit tests
+-- 
+2.7.4
+
diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb 
b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
new file mode 100644
index ..45d6ec8864b4
--- /dev/null
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
@@ -0,0 +1,47 @@
+SUMMARY = "Civetweb embedded web server"
+HOMEPAGE = "https://github.com/civetweb/civetweb;
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f28fdcba0dda735eed62bac6a397562"
+
+SRCREV = "b8148afe8fa44c64f75e69655c4fdc9095565568"
+PV = "1.10+git${SRCPV}"
+SRC_URI = "git://github.com/civetweb/civetweb.git"
+SRC_URI_append_class-native = " \
+file://0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch \
+"
+S = "${WORKDIR}/git"
+
+# civetweb supports building with make or cmake (although cmake lacks few 
features)
+inherit cmake
+
+# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, 
v1.9 and v1.10).
+# Disable ASAN as it is included only in Debug build.
+EXTRA_OECMAKE = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+"
+EXTRA_OECMAKE_class-native = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+"
+
+# Building with ninja fails on missing third_party/lib/libcheck.a (which
+# should come from external CMake project)
+OECMAKE_GENERATOR = "Unix Makefiles"
+
+PACKAGECONFIG ??= "caching ipv6 server ssl websockets"
+PAC

[oe] [meta-networking][PATC v3 1/2] kernel_wireless_regdb: Add class for embedding regulatory data into the kernel

2018-05-25 Thread Krzysztof Kozlowski
Small embedded systems might:
1. Want to get rid of daemons as much as possible (therefore be built
   without CRDA),
2. Not receive user-space incremental updates but an entire system
   upgrade (with kernel).

Add class kernel_wireless_regdb which allows in such cases to embed the
wireless regulatory database directly in the Linux kernel during build
process.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v2:
1. Rebase on sumo.
2. Fix task order - run do_kernel_add_regdb task after do_configure.

Changes since v1:
1. Remove debugging echo.
---
 meta-networking/classes/kernel_wireless_regdb.bbclass | 11 +++
 .../wireless-regdb/wireless-regdb_2016.06.10.bb   |  8 
 2 files changed, 19 insertions(+)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass

diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
b/meta-networking/classes/kernel_wireless_regdb.bbclass
new file mode 100644
index ..a1eb4c532667
--- /dev/null
+++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
@@ -0,0 +1,11 @@
+# Copies the regulatory plaintext database to kernel sources before compiling.
+# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use it.
+
+DEPENDS += "wireless-regdb-native"
+
+SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
+do_kernel_add_regdb() {
+cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
+}
+do_kernel_add_regdb[dirs] = "${S}"
+addtask kernel_add_regdb before do_build after do_configure
diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
index 64e9401e7a3c..14bf272f4050 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
@@ -17,4 +17,12 @@ do_install() {
 install -m 0644 sforshee.key.pub.pem 
${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
 }
 
+# Native users might want to use source db.txt
+do_install_append_class-native() {
+install -d -m 0755 ${D}${libdir}/crda
+install -m 0644 db.txt ${D}${libdir}/crda/db.txt
+}
+
 RSUGGESTS_${PN} = "crda"
+
+BBCLASSEXTEND = "native"
-- 
2.7.4

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


[oe] [meta-networking][PATC v3 2/2] wireless-regdb: Bump version to latest upstream 2018.05.09

2018-05-25 Thread Krzysztof Kozlowski
Bump the wireless-regdb recipe to use newest wireless regulatory
database.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v2:
1. Bump from 2017.12.23 to 2018.05.09.

Changes since v1:
1. None.
---
 .../{wireless-regdb_2016.06.10.bb => wireless-regdb_2018.05.09.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb
 => wireless-regdb_2018.05.09.bb} (85%)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.09.bb
similarity index 85%
rename from 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
rename to 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.09.bb
index 14bf272f4050..1c7d2bd1ae48 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.09.bb
@@ -5,8 +5,8 @@ LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
 
 SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz;
-SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b"
-SRC_URI[sha256sum] = 
"cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+SRC_URI[md5sum] = "4bada6171bf89a2926bddcaebde448b5"
+SRC_URI[sha256sum] = 
"ed5706eab62a0985ecfaf1a6055fd402882d4c7ffee0b473f39291142aba6435"
 
 inherit bin_package
 
-- 
2.7.4

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


Re: [oe] [meta-networking][rocko][PATCH v3] civetweb: Add new recipe with git-based version

2018-05-25 Thread Krzysztof Kozlowski
On Thu, May 24, 2018 at 4:24 PM, akuster808 <akuster...@gmail.com> wrote:
>
>
> On 05/24/2018 02:03 AM, Krzysztof Kozlowski wrote:
>> Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
>> server with optional CGI, SSL and Lua support, under MIT license.
>>
>> CivetWeb provides C and C++ libraries and a standalone server binary.
>>
>> Choose specific post-v1.10 git revision b8148afe8fa4 which has a fixed
>> SSL support (depending on OpenSSL v1.0.2).
>>
>> Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
>
> Adding new packages to a stable branch is not allowed.  Also I don't see
> it in master.

Thanks, I'll rebase and resend.

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


[oe] [meta-networking][rocko][PATCH v3] civetweb: Add new recipe with git-based version

2018-05-24 Thread Krzysztof Kozlowski
Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
server with optional CGI, SSL and Lua support, under MIT license.

CivetWeb provides C and C++ libraries and a standalone server binary.

Choose specific post-v1.10 git revision b8148afe8fa4 which has a fixed
SSL support (depending on OpenSSL v1.0.2).

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v2:
1. Bump to post-v1.10 git revision.
2. Add ssl package config.
3. Drop cgi, cpp and debug from default package config.

Changes since v1:
1. Use SRCREC as suggested by Khem Raj.
2. Drop nativesdk class.
3. Fix native build with patch.
4. Explicitly disable SSL (does not build at v1.10).
5. Disable ASAN (not applicable for native builds).
---
 ...ssing-librt-and-libm-during-native-compil.patch | 42 +
 .../recipes-connectivity/civetweb/civetweb_git.bb  | 43 ++
 2 files changed, 85 insertions(+)
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb_git.bb

diff --git 
a/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
new file mode 100644
index ..401cf39ad8df
--- /dev/null
+++ 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
@@ -0,0 +1,42 @@
+From cd93e2c538cecb3192fd24c0fbd6e834d0c47eec Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski <k...@kernel.org>
+Date: Wed, 18 Apr 2018 14:11:52 +0200
+Subject: [PATCH] Unittest: Fix missing librt and libm during native compilation
+
+civetweb looks for librt and libm in weird places and for native build
+this fails:
+
+| ../third_party/lib/libcheck.a(check.c.o): In function `tcase_create':
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:145:
 undefined reference to `floor'
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:148:
 undefined reference to `floor'
+
+These are needed dependencies so try regular system linkage in such
+case.
+
+Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
+---
+ unittest/CMakeLists.txt | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
+index f34b2e0e4ce4..05d25702178c 100644
+--- a/unittest/CMakeLists.txt
 b/unittest/CMakeLists.txt
+@@ -60,10 +60,14 @@ endif()
+ find_package(LibM)
+ if (LIBM_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBM::LIBM")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lm")
+ endif()
+ find_package(LibRt)
+ if (LIBRT_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBRT::LIBRT")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lrt")
+ endif()
+ 
+ # Build the C unit tests
+-- 
+2.7.4
+
diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb 
b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
new file mode 100644
index ..ffe7282b73c9
--- /dev/null
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_git.bb
@@ -0,0 +1,43 @@
+SUMMARY = "Civetweb embedded web server"
+HOMEPAGE = "https://github.com/civetweb/civetweb;
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f28fdcba0dda735eed62bac6a397562"
+
+SRCREV = "b8148afe8fa44c64f75e69655c4fdc9095565568"
+PV = "1.10+git${SRCPV}"
+SRC_URI = "git://github.com/civetweb/civetweb.git"
+SRC_URI_append_class-native = " \
+file://0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch \
+"
+S = "${WORKDIR}/git"
+
+# civetweb supports building with make or cmake (although cmake lacks few 
features)
+inherit cmake
+
+# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, 
v1.9 and v1.10).
+# Disable ASAN as it is included only in Debug build.
+EXTRA_OECMAKE = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+"
+EXTRA_OECMAKE_class-native = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+"
+
+PACKAGECONFIG ??= "caching ipv6 server ssl websockets"
+PACKAGECONFIG[caching] = 
"-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
+PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
+PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
+P

[oe] [meta-oe][rocko][PATCH] broadcom-bt-firmware: Add new recipe for Broadcom Bluetooth firmwares

2018-05-22 Thread Krzysztof Kozlowski
Several Broadcom Bluetooth USB dongles require firmware to be loaded.
This recipe provides the firmware for BCM20702, BCM20703, BCM43142,
BCM4335, BCM4350, BCM4356 and BCM4371 based devices.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

The patch is also available here:
https://github.com/krzk/meta-openembedded/commits/broadcom-bt
---
 .../broadcom-bt-firmware_git.bb| 76 ++
 1 file changed, 76 insertions(+)
 create mode 100644 
meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb

diff --git 
a/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb 
b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
new file mode 100644
index ..8c474ecdc472
--- /dev/null
+++ b/meta-oe/recipes-kernel/broadcom-bt-firmware/broadcom-bt-firmware_git.bb
@@ -0,0 +1,76 @@
+# Copyright (C) 2018 Krzysztof Kozlowski <k...@kernel.org>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Broadcom Bluetooth firmware files"
+DESCRIPTION = "Firmware for Broadcom Bluetooth devices. Note that in case of 
BT+WiFi devices, separate WiFi firmware might be needed."
+HOMEPAGE = "https://github.com/winterheart/broadcom-bt-firmware;
+
+LICENSE = "Firmware-Broadcom-WIDCOMM"
+NO_GENERIC_LICENSE[Firmware-Broadcom-WIDCOMM] = "LICENSE.broadcom_bcm20702"
+
+LIC_FILES_CHKSUM = 
"file://LICENSE.broadcom_bcm20702;md5=c0d5ea0502b00df74173d0f8a48b619d"
+SRC_URI = "git://github.com/winterheart/broadcom-bt-firmware.git"
+SRCREV = "c0bd928b8ae5754b6077c99afe6ef5c949a58f32"
+PE = "1"
+PV = "0.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+inherit allarch
+
+CLEANBROKEN = "1"
+
+do_compile() {
+:
+}
+
+do_install() {
+install -d ${D}${nonarch_base_libdir}/firmware/brcm/
+cp brcm/*.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
+
+# For license package:
+install -m 0644 LICENSE.broadcom_bcm20702 
${D}${nonarch_base_libdir}/firmware/brcm/
+
+# For main package:
+install -m 0644 DEVICES.md ${D}${nonarch_base_libdir}/firmware/brcm/
+}
+
+PACKAGES =+ " \
+${PN}-bcm20702a1 \
+${PN}-bcm20702b0 \
+${PN}-bcm20703a1 \
+${PN}-bcm43142a0 \
+${PN}-bcm4335c0 \
+${PN}-bcm4350c5 \
+${PN}-bcm4356a2 \
+${PN}-bcm4371c2 \
+${PN}-license \
+"
+
+RDEPENDS_${PN}-bcm20702a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm20702b0 = "${PN}-license"
+RDEPENDS_${PN}-bcm20703a1 = "${PN}-license"
+RDEPENDS_${PN}-bcm43142a0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4335c0 = "${PN}-license"
+RDEPENDS_${PN}-bcm4350c5 = "${PN}-license"
+RDEPENDS_${PN}-bcm4356a2 = "${PN}-license"
+RDEPENDS_${PN}-bcm4371c2 = "${PN}-license"
+
+FILES_${PN}-bcm20702a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20702A1*hcd"
+FILES_${PN}-bcm20702b0 = "${nonarch_base_libdir}/firmware/brcm/BCM20702B0*hcd"
+FILES_${PN}-bcm20703a1 = "${nonarch_base_libdir}/firmware/brcm/BCM20703A1*hcd"
+FILES_${PN}-bcm43142a0 = "${nonarch_base_libdir}/firmware/brcm/BCM43142A0*hcd"
+FILES_${PN}-bcm4335c0 = "${nonarch_base_libdir}/firmware/brcm/BCM4335C0*hcd"
+FILES_${PN}-bcm4350c5 = "${nonarch_base_libdir}/firmware/brcm/BCM4350C5*hcd"
+FILES_${PN}-bcm4356a2 = "${nonarch_base_libdir}/firmware/brcm/BCM4356A2*hcd"
+FILES_${PN}-bcm4371c2 = "${nonarch_base_libdir}/firmware/brcm/BCM4371C2*hcd"
+FILES_${PN}-license += 
"${nonarch_base_libdir}/firmware/brcm/LICENSE.broadcom_bcm20702"
+
+FILES_${PN} += "${nonarch_base_libdir}/firmware/brcm/*"
+RDEPENDS_${PN} += "${PN}-license"
+
+# Make broadcom-bt-firmware depend on all of the split-out packages.
+python populate_packages_prepend () {
+firmware_pkgs = oe.utils.packages_filter_out_system(d)
+d.appendVar('RDEPENDS_broadcom-bt-firmware', ' ' + ' '.join(firmware_pkgs))
+}
-- 
2.7.4

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


[oe] [meta-networking][rocko][PATCH v2 2/2] wireless-regdb: Bump version to latest upstream 2017.12.23

2018-04-25 Thread Krzysztof Kozlowski
Bump the wireless-regdb recipe to use newest wireless regulatory
database.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v1:
1. None.
---
 .../{wireless-regdb_2016.06.10.bb => wireless-regdb_2017.12.23.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb
 => wireless-regdb_2017.12.23.bb} (85%)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
similarity index 85%
rename from 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
rename to 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
index 14bf272f4050..cc76e57a3454 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
@@ -5,8 +5,8 @@ LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
 
 SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz;
-SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b"
-SRC_URI[sha256sum] = 
"cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+SRC_URI[md5sum] = "ae0e1e45d3798d6e1b0d0a3acec1901d"
+SRC_URI[sha256sum] = 
"0e53e605dd98e7f34429242b5b2afea6dbc91bb913892fa01101e0ec481a4ab9"
 
 inherit bin_package
 
-- 
2.7.4

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


[oe] [meta-networking][rocko][PATCH v2 1/2] kernel_wireless_regdb: Add class for embedding regulatory data into the kernel

2018-04-25 Thread Krzysztof Kozlowski
Small embedded systems might:
1. Want to get rid of daemons as much as possible (therefore be built
   without CRDA),
2. Not receive user-space incremental updates but an entire system
   upgrade (with kernel).

Add class kernel_wireless_regdb which allows in such cases to embed the
wireless regulatory database directly in the Linux kernel during build
process.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v1:
1. Remove debugging echo.
---
 meta-networking/classes/kernel_wireless_regdb.bbclass | 11 +++
 .../wireless-regdb/wireless-regdb_2016.06.10.bb   |  8 
 2 files changed, 19 insertions(+)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass

diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
b/meta-networking/classes/kernel_wireless_regdb.bbclass
new file mode 100644
index ..a2c945ad11cf
--- /dev/null
+++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
@@ -0,0 +1,11 @@
+# Copies the regulatory plaintext database to kernel sources before compiling.
+# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use it.
+
+DEPENDS += "wireless-regdb-native"
+
+SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
+do_kernel_add_regdb() {
+cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
+}
+do_kernel_add_regdb[dirs] = "${S}"
+addtask kernel_add_regdb before do_configure after do_patch
diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
index 64e9401e7a3c..14bf272f4050 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
@@ -17,4 +17,12 @@ do_install() {
 install -m 0644 sforshee.key.pub.pem 
${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
 }
 
+# Native users might want to use source db.txt
+do_install_append_class-native() {
+install -d -m 0755 ${D}${libdir}/crda
+install -m 0644 db.txt ${D}${libdir}/crda/db.txt
+}
+
 RSUGGESTS_${PN} = "crda"
+
+BBCLASSEXTEND = "native"
-- 
2.7.4

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


Re: [oe] [meta-networking][rocko][PATCH 1/2] kernel_wireless_regdb: Add class for embedding regulatory data into the kernel

2018-04-25 Thread Krzysztof Kozlowski
On Wed, Apr 25, 2018 at 3:47 PM, Krzysztof Kozlowski <k...@kernel.org> wrote:
> Small embedded systems might:
> 1. Want to get rid of daemons as much as possible (therefore be built
>without CRDA),
> 2. Not receive user-space incremental updates but an entire system
>upgrade (with kernel).
>
> Add class kernel_wireless_regdb which allows in such cases to embed the
> wireless regulatory database directly in the Linux kernel during build
> process.
>
> Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
> ---
>  meta-networking/classes/kernel_wireless_regdb.bbclass| 12 
> 
>  .../wireless-regdb/wireless-regdb_2016.06.10.bb  |  8 
>  2 files changed, 20 insertions(+)
>  create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass
>
> diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
> b/meta-networking/classes/kernel_wireless_regdb.bbclass
> new file mode 100644
> index ..6ae90d2d088c
> --- /dev/null
> +++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
> @@ -0,0 +1,12 @@
> +# Copies the regulatory plaintext database to kernel sources before 
> compiling.
> +# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use 
> it.
> +
> +DEPENDS += "wireless-regdb-native"
> +
> +SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
> +do_kernel_add_regdb() {
> +cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
> +echo ${S}

Ah, some debugging code slipped in. I'll send v2.

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


[oe] [meta-networking][rocko][PATCH 2/2] wireless-regdb: Bump version to latest upstream 2017.12.23

2018-04-25 Thread Krzysztof Kozlowski
Bump the wireless-regdb recipe to use newest wireless regulatory
database.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../{wireless-regdb_2016.06.10.bb => wireless-regdb_2017.12.23.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb
 => wireless-regdb_2017.12.23.bb} (85%)

diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
similarity index 85%
rename from 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
rename to 
meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
index 14bf272f4050..cc76e57a3454 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2017.12.23.bb
@@ -5,8 +5,8 @@ LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
 
 SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz;
-SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b"
-SRC_URI[sha256sum] = 
"cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7"
+SRC_URI[md5sum] = "ae0e1e45d3798d6e1b0d0a3acec1901d"
+SRC_URI[sha256sum] = 
"0e53e605dd98e7f34429242b5b2afea6dbc91bb913892fa01101e0ec481a4ab9"
 
 inherit bin_package
 
-- 
2.7.4

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


[oe] [meta-networking][rocko][PATCH 1/2] kernel_wireless_regdb: Add class for embedding regulatory data into the kernel

2018-04-25 Thread Krzysztof Kozlowski
Small embedded systems might:
1. Want to get rid of daemons as much as possible (therefore be built
   without CRDA),
2. Not receive user-space incremental updates but an entire system
   upgrade (with kernel).

Add class kernel_wireless_regdb which allows in such cases to embed the
wireless regulatory database directly in the Linux kernel during build
process.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 meta-networking/classes/kernel_wireless_regdb.bbclass| 12 
 .../wireless-regdb/wireless-regdb_2016.06.10.bb  |  8 
 2 files changed, 20 insertions(+)
 create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass

diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass 
b/meta-networking/classes/kernel_wireless_regdb.bbclass
new file mode 100644
index ..6ae90d2d088c
--- /dev/null
+++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
@@ -0,0 +1,12 @@
+# Copies the regulatory plaintext database to kernel sources before compiling.
+# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use it.
+
+DEPENDS += "wireless-regdb-native"
+
+SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
+do_kernel_add_regdb() {
+cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
+echo ${S}
+}
+do_kernel_add_regdb[dirs] = "${S}"
+addtask kernel_add_regdb before do_configure after do_patch
diff --git 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
index 64e9401e7a3c..14bf272f4050 100644
--- 
a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
+++ 
b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb
@@ -17,4 +17,12 @@ do_install() {
 install -m 0644 sforshee.key.pub.pem 
${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
 }
 
+# Native users might want to use source db.txt
+do_install_append_class-native() {
+install -d -m 0755 ${D}${libdir}/crda
+install -m 0644 db.txt ${D}${libdir}/crda/db.txt
+}
+
 RSUGGESTS_${PN} = "crda"
+
+BBCLASSEXTEND = "native"
-- 
2.7.4

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


[oe] [meta-networking][rocko][PATCH v2] civetweb: Add new recipe for v1.10 version

2018-04-18 Thread Krzysztof Kozlowski
Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
server with optional CGI, SSL and Lua support, under MIT license.

CivetWeb provides C and C++ libraries and a standalone server binary.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v1:
1. Use SRCREC as suggested by Khem Raj.
2. Drop nativesdk class.
3. Fix native build with patch.
4. Explicitly disable SSL (does not build at v1.10).
5. Disable ASAN (not applicable for native builds).
---
 ...ssing-librt-and-libm-during-native-compil.patch | 42 
 .../recipes-connectivity/civetweb/civetweb_1.10.bb | 45 ++
 2 files changed, 87 insertions(+)
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb

diff --git 
a/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
new file mode 100644
index ..23479561f85f
--- /dev/null
+++ 
b/meta-networking/recipes-connectivity/civetweb/civetweb/0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch
@@ -0,0 +1,42 @@
+From cd93e2c538cecb3192fd24c0fbd6e834d0c47eec Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski <k...@kernel.org>
+Date: Wed, 18 Apr 2018 14:11:52 +0200
+Subject: [PATCH] Test: Fix missing librt and libm during native compilation
+
+civetweb looks for librt and libm in weird places and for native build
+this fails:
+
+| ../third_party/lib/libcheck.a(check.c.o): In function `tcase_create':
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:145:
 undefined reference to `floor'
+| 
build/tmp/work/x86_64-linux/civetweb-native/1.10-r0/build/third_party/src/check-unit-test-framework/src/check.c:148:
 undefined reference to `floor'
+
+These are needed dependencies so try regular system linkage in such
+case.
+
+Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
+---
+ test/CMakeLists.txt | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index f34b2e0e4ce4..05d25702178c 100644
+--- a/test/CMakeLists.txt
 b/test/CMakeLists.txt
+@@ -60,10 +60,14 @@ endif()
+ find_package(LibM)
+ if (LIBM_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBM::LIBM")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lm")
+ endif()
+ find_package(LibRt)
+ if (LIBRT_FOUND)
+   set(CHECK_LIBRARIES "${CHECK_LIBRARIES};LIBRT::LIBRT")
++else()
++  set(CHECK_LIBRARIES "${CHECK_LIBRARIES};-lrt")
+ endif()
+ 
+ # Build the C unit tests
+-- 
+2.7.4
+
diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb 
b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
new file mode 100644
index ..dce32d6d0312
--- /dev/null
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Civetweb embedded web server"
+HOMEPAGE = "https://github.com/civetweb/civetweb;
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
+
+SRCREV = "0f1b43536d97d9311c73b658b86a9d44be9e5e82"
+SRC_URI = "git://github.com/civetweb/civetweb.git"
+SRC_URI_append_class-native = " \
+file://0001-Test-Fix-missing-librt-and-libm-during-native-compil.patch \
+"
+S = "${WORKDIR}/git"
+
+# civetweb supports building with make or cmake (although cmake lacks few 
features)
+inherit cmake
+
+# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, 
v1.9 and v1.10).
+# Disable ASAN as it is included only in Debug build.
+# As of v1.10, SSL does not work. Bring it back with v1.11.
+EXTRA_OECMAKE = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+-DCIVETWEB_ENABLE_SSL=OFF \
+"
+EXTRA_OECMAKE_class-native = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+-DCIVETWEB_ENABLE_ASAN=OFF \
+-DCIVETWEB_ENABLE_SSL=OFF \
+"
+
+PACKAGECONFIG ??= "caching cgi cpp debug ipv6 server websockets"
+PACKAGECONFIG[caching] = 
"-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
+PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
+PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
+PACKAGECONFIG[debug] = 
"-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
+PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=O

Re: [oe] [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version

2018-04-18 Thread Krzysztof Kozlowski
On Wed, Apr 18, 2018 at 9:40 AM, Khem Raj <raj.k...@gmail.com> wrote:
>
>
> On 4/17/18 5:15 AM, Krzysztof Kozlowski wrote:
>>
>> Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
>> server with optional CGI, SSL and Lua support, under MIT license.
>>
>> CivetWeb provides C and C++ libraries and a standalone server binary.
>>
>> Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
>> ---
>>   .../recipes-connectivity/civetweb/civetweb_1.10.bb | 34
>> ++
>>   1 file changed, 34 insertions(+)
>>   create mode 100644
>> meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>>
>> diff --git
>> a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> new file mode 100644
>> index ..35af45680818
>> --- /dev/null
>> +++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
>> @@ -0,0 +1,34 @@
>> +SUMMARY = "Civetweb embedded web server"
>> +HOMEPAGE = "https://github.com/civetweb/civetweb;
>> +
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM =
>> "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
>> +
>> +SRC_URI = " \
>> +git://github.com/civetweb/civetweb.git;tag=v${PV} \
>
>
> its better to use SHA version corresponding to this tag, tags result in
> fetcher n/w access and builds might fail when n/w access is disabled,
> secondly tags are floating types and can be moved.

Right, thanks for feedback. I'll send v2.

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


[oe] [meta-networking][rocko][PATCH] civetweb: Add new recipe for v1.10 version

2018-04-17 Thread Krzysztof Kozlowski
Add recipe for CivetWeb: easy to use, powerful, C/C++ embeddable web
server with optional CGI, SSL and Lua support, under MIT license.

CivetWeb provides C and C++ libraries and a standalone server binary.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../recipes-connectivity/civetweb/civetweb_1.10.bb | 34 ++
 1 file changed, 34 insertions(+)
 create mode 100644 
meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb

diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb 
b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
new file mode 100644
index ..35af45680818
--- /dev/null
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.10.bb
@@ -0,0 +1,34 @@
+SUMMARY = "Civetweb embedded web server"
+HOMEPAGE = "https://github.com/civetweb/civetweb;
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=da079d81be91ff1d1ca56dcd751f897f"
+
+SRC_URI = " \
+git://github.com/civetweb/civetweb.git;tag=v${PV} \
+"
+S = "${WORKDIR}/git"
+
+# civetweb supports building with make or cmake (although cmake lacks few 
features)
+inherit cmake
+
+# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, 
v1.9 and v1.10)
+EXTRA_OECMAKE = " \
+-DBUILD_SHARED_LIBS=ON \
+-DCIVETWEB_ENABLE_DUKTAPE=OFF \
+-DCIVETWEB_ENABLE_LUA=OFF \
+"
+
+PACKAGECONFIG ??= "asan caching cgi cpp debug ipv6 server websockets"
+PACKAGECONFIG[asan] = 
"-DCIVETWEB_ENABLE_ASAN=ON,-DCIVETWEB_ENABLE_ASAN=OFF,gcc-sanitizers"
+PACKAGECONFIG[caching] = 
"-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
+PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
+PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
+PACKAGECONFIG[debug] = 
"-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
+PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
+PACKAGECONFIG[server] = 
"-DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
+# As of v1.10, SSL does not work. Bring it back with v1.11:
+# PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON 
-DCIVETWEB_SSL_OPENSSL_API_1_1=ON 
-DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl"
+PACKAGECONFIG[websockets] = 
"-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.7.4

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


Re: [oe] [meta-python][PATCH] python3-websockets: Add new recipe for v4.0.1 version

2018-04-16 Thread Krzysztof Kozlowski
On Sat, Apr 14, 2018 at 2:01 AM, Khem Raj <raj.k...@gmail.com> wrote:
>
>
> On 4/11/18 2:51 AM, Krzysztof Kozlowski wrote:
>>
>> Add recipe for python3-websockets v4.0.1.  Strictly speaking the package
>> does not require asyncio but instead builds on top of it and it is
>> essential for any work.
>>
>> Make this recipe a native one to allow usage for example in image tests
>> as a websocket client talking to a device under test.
>>
>> Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
>> ---
>>   .../recipes-devtools/python/python3-websockets_4.0.1.bb  | 16
>> 
>>   1 file changed, 16 insertions(+)
>>   create mode 100644
>> meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
>>
>> diff --git
>> a/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
>> b/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
>> new file mode 100644
>> index ..414129c59d2f
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
>> @@ -0,0 +1,16 @@
>> +SUMMARY = "An implementation of the WebSocket Protocol (RFC 6455)"
>> +HOMEPAGE = "https://github.com/aaugustin/websockets;
>> +
>> +LICENSE = "BSD-3-Clause"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=5070256738c06d2e59adbec1f4057dac"
>> +
>> +inherit pypi setuptools3
>> +
>> +SRC_URI[md5sum] = "9e8c6b3c70def4146d75fbb0f52bdfc7"
>> +SRC_URI[sha256sum] =
>> "da4d4fbe059b0453e726d6d993760065d69b823a27efc3040402a6fcfe6a1ed9"
>> +
>> +BBCLASSEXTEND = "native nativesdk"
>> +
>> +RDEPENDS_${PN} = "\
>> +${PYTHON_PN}-asyncio \
>> +"
>>
>
> There are recipes in other layers whose maintainers should be CCed as well
> so they know its moving to a more common layer.
>
> https://github.com/Wind-River/meta-device-cloud/blob/master/recipes-devtools/python/python3-websockets_3.3.bb
>
> https://github.com/bachp/meta-homeassistant/blob/master/recipes-devtools/python/python3-websockets_3.2.bb

Sure, let me CC them here (+Cc Paul Barrette and Pascal Bach) unless
there is a need for resend?

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


[oe] [meta-python][PATCH] python3-websockets: Add new recipe for v4.0.1 version

2018-04-11 Thread Krzysztof Kozlowski
Add recipe for python3-websockets v4.0.1.  Strictly speaking the package
does not require asyncio but instead builds on top of it and it is
essential for any work.

Make this recipe a native one to allow usage for example in image tests
as a websocket client talking to a device under test.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../recipes-devtools/python/python3-websockets_4.0.1.bb  | 16 
 1 file changed, 16 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb 
b/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
new file mode 100644
index ..414129c59d2f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-websockets_4.0.1.bb
@@ -0,0 +1,16 @@
+SUMMARY = "An implementation of the WebSocket Protocol (RFC 6455)"
+HOMEPAGE = "https://github.com/aaugustin/websockets;
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5070256738c06d2e59adbec1f4057dac"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "9e8c6b3c70def4146d75fbb0f52bdfc7"
+SRC_URI[sha256sum] = 
"da4d4fbe059b0453e726d6d993760065d69b823a27efc3040402a6fcfe6a1ed9"
+
+BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS_${PN} = "\
+${PYTHON_PN}-asyncio \
+"
-- 
2.7.4

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


[oe] [PATCH] recipes-utils: Add recipe for udevil

2017-07-13 Thread Krzysztof Kozlowski
udevil is a command line Linux program which mounts and unmounts
removable devices without a password.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>

---

Changes since v1:
1. Fix indentation and build error (new patch added for Makefile).
2. Properly handle systemd dependency.
3. Remove glib-2.0 from rdepends.
---
 .../0001-udevil-0.4.3-fix-compile-with-gcc6.patch  | 12 
 ...e.am-Use-systemd_unitdir-instead-of-libdi.patch | 32 ++
 .../recipes-utils/udevil/udevil_0.4.4.bb   | 28 +++
 3 files changed, 72 insertions(+)
 create mode 100644 
meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
 create mode 100644 
meta-filesystems/recipes-utils/udevil/files/0002-etc-Makefile.am-Use-systemd_unitdir-instead-of-libdi.patch
 create mode 100644 meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb

diff --git 
a/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
 
b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
new file mode 100644
index ..355e93a37b3b
--- /dev/null
+++ 
b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
@@ -0,0 +1,12 @@
+Fix compilation with GCC6
+
+--- a/src/device-info.c2013-12-09 14:59:27.0 +0100
 b/src/device-info.c2017-03-13 07:06:25.50680 +0100
+@@ -3,6 +3,7 @@
+  * contains code excerpts from udisks v1.0.4
+ ** */
+ 
++#include 
+ #include "device-info.h"
+ 
+ static char *
diff --git 
a/meta-filesystems/recipes-utils/udevil/files/0002-etc-Makefile.am-Use-systemd_unitdir-instead-of-libdi.patch
 
b/meta-filesystems/recipes-utils/udevil/files/0002-etc-Makefile.am-Use-systemd_unitdir-instead-of-libdi.patch
new file mode 100644
index ..f014a0f53786
--- /dev/null
+++ 
b/meta-filesystems/recipes-utils/udevil/files/0002-etc-Makefile.am-Use-systemd_unitdir-instead-of-libdi.patch
@@ -0,0 +1,32 @@
+From 80b087193698632e525b90d45b4a49e61e343e1c Mon Sep 17 00:00:00 2001
+From: Krzysztof Kozlowski <k...@kernel.org>
+Date: Thu, 13 Jul 2017 21:30:35 +0200
+Subject: [PATCH] etc: Makefile.am: Use systemd_unitdir instead of libdir
+
+Proper directory for installing systemd services is systemd_unitdir, not
+libdir.
+
+Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
+---
+ etc/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/etc/Makefile.am b/etc/Makefile.am
+index 9b6e7522c20f..6d663241a72f 100644
+--- a/etc/Makefile.am
 b/etc/Makefile.am
+@@ -16,8 +16,8 @@ if ADD_SYSTEMD
+   test -f $(DESTDIR)/$(sysconfdir)/conf.d/devmon || $(INSTALL_DATA) \
+   $(srcdir)/systemd/devmon \
+   $(DESTDIR)/$(sysconfdir)/conf.d/devmon
+-  test -d $(DESTDIR)/$(libdir)/systemd/system || \
+-  mkdir -p -- $(DESTDIR)/$(libdir)/systemd/system
++  test -d $(DESTDIR)/$(systemd_unitdir)/system || \
++  mkdir -p -- $(DESTDIR)/$(systemd_unitdir)/system
+   $(INSTALL_DATA) $(srcdir)/systemd/devmon@.service \
+-  
$(DESTDIR)/$(libdir)/systemd/system/devmon@.service
++  
$(DESTDIR)/$(systemd_unitdir)/system/devmon@.service
+ endif
+-- 
+2.11.0
+
diff --git a/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb 
b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
new file mode 100644
index ..c432e8546805
--- /dev/null
+++ b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
@@ -0,0 +1,28 @@
+SUMMARY = "A command line Linux program which mounts and unmounts removable 
devices"
+HOMEPAGE = "http://ignorantguru.github.io/udevil/;
+
+DEPENDS = "glib-2.0 \
+glib-2.0-native \
+intltool-native \
+udev \
+"
+RDEPENDS_${PN} = "udev"
+
+LICENSE = "GPL-3.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+inherit autotools systemd
+
+SRC_URI = 
"https://github.com/IgnorantGuru/udevil/raw/pkg/${PV}/udevil-${PV}.tar.xz \
+file://0001-udevil-0.4.3-fix-compile-with-gcc6.patch \
+file://0002-etc-Makefile.am-Use-systemd_unitdir-instead-of-libdi.patch \
+"
+
+SRC_URI[md5sum] = "dc1c489b603a0500a04dc7e1805ac1d9"
+SRC_URI[sha256sum] = 
"ce8c51fd4d589cda7be56e75b42188deeb258c66fc911a9b3a70a3945c157739"
+
+PACKAGECONFIG = 
"${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
+PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
+
+SYSTEMD_SERVICE_${PN} = "devmon@.service"
+SYSTEMD_AUTO_ENABLE = "disable"
-- 
2.11.0

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


Re: [oe] [meta-filesystems][PATCH] recipes-utils: Add recipe for udevil

2017-07-13 Thread Krzysztof Kozlowski
On Tue, Jul 11, 2017 at 02:02:05PM -0700, Andre McCurdy wrote:
> On Tue, Jul 11, 2017 at 1:08 PM, Krzysztof Kozlowski <k...@kernel.org> wrote:
> > On Tue, Jul 11, 2017 at 12:33:27PM -0700, Andre McCurdy wrote:
> >> On Sun, Jul 9, 2017 at 9:29 AM, Krzysztof Kozlowski <k...@kernel.org> 
> >> wrote:
> >> > udevil is a command line Linux program which mounts and unmounts
> >> > removable devices without a password.
> >> >
> >> > Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
> >> > ---
> >> >  .../0001-udevil-0.4.3-fix-compile-with-gcc6.patch  | 12 ++
> >> >  .../recipes-utils/udevil/udevil_0.4.4.bb   | 28 
> >> > ++
> >> >  2 files changed, 40 insertions(+)
> >> >  create mode 100644 
> >> > meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >> >  create mode 100644 meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> >> >
> >> > diff --git 
> >> > a/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >> >  
> >> > b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >> > new file mode 100644
> >> > index ..355e93a37b3b
> >> > --- /dev/null
> >> > +++ 
> >> > b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >> > @@ -0,0 +1,12 @@
> >> > +Fix compilation with GCC6
> >> > +
> >> > +--- a/src/device-info.c2013-12-09 14:59:27.0 +0100
> >> >  b/src/device-info.c2017-03-13 07:06:25.50680 +0100
> >> > +@@ -3,6 +3,7 @@
> >> > +  * contains code excerpts from udisks v1.0.4
> >> > + 
> >> > **
> >> >  */
> >> > +
> >> > ++#include 
> >> > + #include "device-info.h"
> >> > +
> >> > + static char *
> >> > diff --git a/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb 
> >> > b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> >> > new file mode 100644
> >> > index ..4ad4a09ed717
> >> > --- /dev/null
> >> > +++ b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> >> > @@ -0,0 +1,28 @@
> >> > +SUMMARY = "A command line Linux program which mounts and unmounts 
> >> > removable devices"
> >> > +HOMEPAGE = "http://ignorantguru.github.io/udevil/;
> >> > +
> >> > +DEPENDS = "glib-2.0 \
> >> > +   glib-2.0-native \
> >> > +   intltool-native \
> >> > +   udev \
> >> > +"
> >> > +RDEPENDS_${PN} = "glib-2.0 \
> >> > +  udev \
> >>
> >> Runtime dependencies on libraries are detected automatically so
> >> explicitly setting RDEPENDS like this shouldn't be required.
> >
> > I'll remove glib then.
> >
> >>
> >> > +"
> >> > +
> >> > +LICENSE = "GPL-3.0"
> >> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> >> > +
> >> > +inherit autotools pkgconfig systemd
> >> > +
> >> > +SRC_URI = 
> >> > "https://github.com/IgnorantGuru/udevil/raw/pkg/${PV}/udevil-${PV}.tar.xz
> >> >  \
> >> > +   file://0001-udevil-0.4.3-fix-compile-with-gcc6.patch \
> >> > +"
> >> > +
> >> > +SRC_URI[md5sum] = "dc1c489b603a0500a04dc7e1805ac1d9"
> >> > +SRC_URI[sha256sum] = 
> >> > "ce8c51fd4d589cda7be56e75b42188deeb258c66fc911a9b3a70a3945c157739"
> >> > +
> >> > +SYSTEMD_SERVICE_${PN} = "devmon@.service"
> >> > +SYSTEMD_AUTO_ENABLE = "disable"
> >> > +
> >> > +FILES_${PN} += " ${libdir}/systemd/system/devmon@.service"
> >>
> >> Setting SYSTEMD_SERVICE_${PN} should be enough to ensure that the
> >> service file gets packaged correctly, so explicitly adding it to
> >> FILES_${PN} like this shouldn't be required.
> >
> > Without it, bitbake complains:
> > WARNING: udevil-0.4.4-r0 do_package: QA Issue: udevil: Files/directories 
> > were installed but not shipped in any 

Re: [oe] [meta-filesystems][PATCH] recipes-utils: Add recipe for udevil

2017-07-11 Thread Krzysztof Kozlowski
On Tue, Jul 11, 2017 at 12:33:27PM -0700, Andre McCurdy wrote:
> On Sun, Jul 9, 2017 at 9:29 AM, Krzysztof Kozlowski <k...@kernel.org> wrote:
> > udevil is a command line Linux program which mounts and unmounts
> > removable devices without a password.
> >
> > Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
> > ---
> >  .../0001-udevil-0.4.3-fix-compile-with-gcc6.patch  | 12 ++
> >  .../recipes-utils/udevil/udevil_0.4.4.bb   | 28 
> > ++
> >  2 files changed, 40 insertions(+)
> >  create mode 100644 
> > meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >  create mode 100644 meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> >
> > diff --git 
> > a/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> >  
> > b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> > new file mode 100644
> > index ..355e93a37b3b
> > --- /dev/null
> > +++ 
> > b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> > @@ -0,0 +1,12 @@
> > +Fix compilation with GCC6
> > +
> > +--- a/src/device-info.c2013-12-09 14:59:27.0 +0100
> >  b/src/device-info.c2017-03-13 07:06:25.50680 +0100
> > +@@ -3,6 +3,7 @@
> > +  * contains code excerpts from udisks v1.0.4
> > + 
> > ** 
> > */
> > +
> > ++#include 
> > + #include "device-info.h"
> > +
> > + static char *
> > diff --git a/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb 
> > b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> > new file mode 100644
> > index ..4ad4a09ed717
> > --- /dev/null
> > +++ b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> > @@ -0,0 +1,28 @@
> > +SUMMARY = "A command line Linux program which mounts and unmounts 
> > removable devices"
> > +HOMEPAGE = "http://ignorantguru.github.io/udevil/;
> > +
> > +DEPENDS = "glib-2.0 \
> > +   glib-2.0-native \
> > +   intltool-native \
> > +   udev \
> > +"
> > +RDEPENDS_${PN} = "glib-2.0 \
> > +  udev \
> 
> Runtime dependencies on libraries are detected automatically so
> explicitly setting RDEPENDS like this shouldn't be required.

I'll remove glib then.

> 
> > +"
> > +
> > +LICENSE = "GPL-3.0"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> > +
> > +inherit autotools pkgconfig systemd
> > +
> > +SRC_URI = 
> > "https://github.com/IgnorantGuru/udevil/raw/pkg/${PV}/udevil-${PV}.tar.xz \
> > +   file://0001-udevil-0.4.3-fix-compile-with-gcc6.patch \
> > +"
> > +
> > +SRC_URI[md5sum] = "dc1c489b603a0500a04dc7e1805ac1d9"
> > +SRC_URI[sha256sum] = 
> > "ce8c51fd4d589cda7be56e75b42188deeb258c66fc911a9b3a70a3945c157739"
> > +
> > +SYSTEMD_SERVICE_${PN} = "devmon@.service"
> > +SYSTEMD_AUTO_ENABLE = "disable"
> > +
> > +FILES_${PN} += " ${libdir}/systemd/system/devmon@.service"
> 
> Setting SYSTEMD_SERVICE_${PN} should be enough to ensure that the
> service file gets packaged correctly, so explicitly adding it to
> FILES_${PN} like this shouldn't be required.

Without it, bitbake complains:
WARNING: udevil-0.4.4-r0 do_package: QA Issue: udevil: Files/directories were 
installed but not shipped in any package:
  /usr/lib
  /usr/lib/systemd
  /usr/lib/systemd/system
  /usr/lib/systemd/system/devmon@.service

I wonder if this is related to differences in systemd in my build
setting which are leading to error:
http://errors.yoctoproject.org/Errors/Details/147258/

I tried DISTRO=poky and DISTRO=nodistro and I cannot reproduce error
above (with FILES both are working fine).

Other build settings are:
BB_VERSION= "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-17.04"
TARGET_SYS= "i586-oe-linux"
MACHINE   = "qemux86"
DISTRO= "nodistro"
DISTRO_VERSION= "nodistro.0"
TUNE_FEATURES = "m32 i586"

Best regards,
Krzysztof

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


Re: [oe] [meta-filesystems][PATCH] recipes-utils: Add recipe for udevil

2017-07-11 Thread Krzysztof Kozlowski
On Tue, Jul 11, 2017 at 02:28:45PM +0200, Martin Jansa wrote:
> Please use 4 spaces for indentation

Sure, I'll fix it.

> and the service file doesn't exist
> causing build to fail as in:
> http://errors.yoctoproject.org/Errors/Details/147258/

Weird... It builds fine on core-image-minimal and sato. Also, after
building sato I can see it under /usr/lib/systemd/system/devmon@.service

Best regards,
Krzysztof

> 
> On Sun, Jul 9, 2017 at 6:29 PM, Krzysztof Kozlowski <k...@kernel.org> wrote:
> 
> > udevil is a command line Linux program which mounts and unmounts
> > removable devices without a password.
> >
> > Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
> > ---
> >  .../0001-udevil-0.4.3-fix-compile-with-gcc6.patch  | 12 ++
> >  .../recipes-utils/udevil/udevil_0.4.4.bb   | 28
> > ++
> >  2 files changed, 40 insertions(+)
> >  create mode 100644 meta-filesystems/recipes-utils/udevil/files/0001-
> > udevil-0.4.3-fix-compile-with-gcc6.patch
> >  create mode 100644 meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> >
> > diff --git a/meta-filesystems/recipes-utils/udevil/files/0001-
> > udevil-0.4.3-fix-compile-with-gcc6.patch b/meta-filesystems/recipes-
> > utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
> > new file mode 100644
> > index ..355e93a37b3b
> > --- /dev/null
> > +++ b/meta-filesystems/recipes-utils/udevil/files/0001-
> > udevil-0.4.3-fix-compile-with-gcc6.patch
> > @@ -0,0 +1,12 @@
> > +Fix compilation with GCC6
> > +
> > +--- a/src/device-info.c2013-12-09 14:59:27.0 +0100
> >  b/src/device-info.c2017-03-13 07:06:25.50680 +0100
> > +@@ -3,6 +3,7 @@
> > +  * contains code excerpts from udisks v1.0.4
> > + **
> > */
> > +
> > ++#include 
> > + #include "device-info.h"
> > +
> > + static char *
> > diff --git a/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> > b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> > new file mode 100644
> > index ..4ad4a09ed717
> > --- /dev/null
> > +++ b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
> > @@ -0,0 +1,28 @@
> > +SUMMARY = "A command line Linux program which mounts and unmounts
> > removable devices"
> > +HOMEPAGE = "http://ignorantguru.github.io/udevil/;
> > +
> > +DEPENDS = "glib-2.0 \
> > +   glib-2.0-native \
> > +   intltool-native \
> > +   udev \
> > +"
> > +RDEPENDS_${PN} = "glib-2.0 \
> > +  udev \
> > +"
> > +
> > +LICENSE = "GPL-3.0"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> > +
> > +inherit autotools pkgconfig systemd
> > +
> > +SRC_URI = "https://github.com/IgnorantGuru/udevil/raw/pkg/${
> > PV}/udevil-${PV}.tar.xz \
> > +   file://0001-udevil-0.4.3-fix-compile-with-gcc6.patch \
> > +"
> > +
> > +SRC_URI[md5sum] = "dc1c489b603a0500a04dc7e1805ac1d9"
> > +SRC_URI[sha256sum] = "ce8c51fd4d589cda7be56e75b42188
> > deeb258c66fc911a9b3a70a3945c157739"
> > +
> > +SYSTEMD_SERVICE_${PN} = "devmon@.service"
> > +SYSTEMD_AUTO_ENABLE = "disable"
> > +
> > +FILES_${PN} += " ${libdir}/systemd/system/devmon@.service"
> > --
> > 2.11.0
> >
> > --
> > ___
> > 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


[oe] [meta-filesystems][PATCH] recipes-utils: Add recipe for udevil

2017-07-09 Thread Krzysztof Kozlowski
udevil is a command line Linux program which mounts and unmounts
removable devices without a password.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../0001-udevil-0.4.3-fix-compile-with-gcc6.patch  | 12 ++
 .../recipes-utils/udevil/udevil_0.4.4.bb   | 28 ++
 2 files changed, 40 insertions(+)
 create mode 100644 
meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
 create mode 100644 meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb

diff --git 
a/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
 
b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
new file mode 100644
index ..355e93a37b3b
--- /dev/null
+++ 
b/meta-filesystems/recipes-utils/udevil/files/0001-udevil-0.4.3-fix-compile-with-gcc6.patch
@@ -0,0 +1,12 @@
+Fix compilation with GCC6
+
+--- a/src/device-info.c2013-12-09 14:59:27.0 +0100
 b/src/device-info.c2017-03-13 07:06:25.50680 +0100
+@@ -3,6 +3,7 @@
+  * contains code excerpts from udisks v1.0.4
+ ** */
+ 
++#include 
+ #include "device-info.h"
+ 
+ static char *
diff --git a/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb 
b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
new file mode 100644
index ..4ad4a09ed717
--- /dev/null
+++ b/meta-filesystems/recipes-utils/udevil/udevil_0.4.4.bb
@@ -0,0 +1,28 @@
+SUMMARY = "A command line Linux program which mounts and unmounts removable 
devices"
+HOMEPAGE = "http://ignorantguru.github.io/udevil/;
+
+DEPENDS = "glib-2.0 \
+   glib-2.0-native \
+   intltool-native \
+   udev \
+"
+RDEPENDS_${PN} = "glib-2.0 \
+  udev \
+"
+
+LICENSE = "GPL-3.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+inherit autotools pkgconfig systemd
+
+SRC_URI = 
"https://github.com/IgnorantGuru/udevil/raw/pkg/${PV}/udevil-${PV}.tar.xz \
+   file://0001-udevil-0.4.3-fix-compile-with-gcc6.patch \
+"
+
+SRC_URI[md5sum] = "dc1c489b603a0500a04dc7e1805ac1d9"
+SRC_URI[sha256sum] = 
"ce8c51fd4d589cda7be56e75b42188deeb258c66fc911a9b3a70a3945c157739"
+
+SYSTEMD_SERVICE_${PN} = "devmon@.service"
+SYSTEMD_AUTO_ENABLE = "disable"
+
+FILES_${PN} += " ${libdir}/systemd/system/devmon@.service"
-- 
2.11.0

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


[oe] [meta-python][PATCH 3/3] meta-python: Add pybluez recipe

2017-07-09 Thread Krzysztof Kozlowski
Add recipe for PyBluez, Python wrapper over bluez.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../recipes-devtools/python/python-pybluez_0.22.bb  | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pybluez_0.22.bb

diff --git a/meta-python/recipes-devtools/python/python-pybluez_0.22.bb 
b/meta-python/recipes-devtools/python/python-pybluez_0.22.bb
new file mode 100644
index ..eab9c542094a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pybluez_0.22.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Bluetooth Python extension module"
+HOMEPAGE = "http://karulis.github.io/pybluez/;
+SECTION = "devel/python"
+
+RDEPENDS_${PN} = "bluez5"
+DEPENDS = "bluez5"
+
+LICENSE = "GPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8a71d0475d08eee76d8b6d0c6dbec543"
+
+inherit pypi setuptools
+
+SRC_URI = 
"https://pypi.python.org/packages/c1/98/3149481d508bee174335be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip;
+SRC_URI[md5sum] = "49dab9d5a8f0b798c8125c7f649be3cd"
+SRC_URI[sha256sum] = 
"4ce006716a54d9d18e8186a3f1c8b12a8e6befecffe8fd5828a291fb694ce49d"
+
+S = "${WORKDIR}/PyBluez-${PV}"
-- 
2.11.0

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


[oe] [meta-python][PATCH 2/3] meta-python: Add python-daemon recipe and its dependencies

2017-07-09 Thread Krzysztof Kozlowski
Add recipes for python-daemon PIP package with its dependencies -
lockfile and docutils.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../0001-Workaround-for-issue-2-1.patch| 31 ++
 .../recipes-devtools/python/python-daemon_2.1.2.bb | 27 +++
 .../python/python-docutils_0.14rc2.bb  | 18 +
 .../python/python-lockfile_0.12.2.bb   | 13 +
 4 files changed, 89 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python-daemon/0001-Workaround-for-issue-2-1.patch
 create mode 100644 meta-python/recipes-devtools/python/python-daemon_2.1.2.bb
 create mode 100644 
meta-python/recipes-devtools/python/python-docutils_0.14rc2.bb
 create mode 100644 
meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb

diff --git 
a/meta-python/recipes-devtools/python/python-daemon/0001-Workaround-for-issue-2-1.patch
 
b/meta-python/recipes-devtools/python/python-daemon/0001-Workaround-for-issue-2-1.patch
new file mode 100644
index ..dbb840718618
--- /dev/null
+++ 
b/meta-python/recipes-devtools/python/python-daemon/0001-Workaround-for-issue-2-1.patch
@@ -0,0 +1,31 @@
+From 0981eee9f0198c2045dc0eaa78a005d06fc7bfe4 Mon Sep 17 00:00:00 2001
+From: Carlos Eduardo Moreira dos Santos <c...@cemshost.com.br>
+Date: Tue, 28 Mar 2017 18:23:44 -0300
+Subject: [PATCH] Workaround for issue 2 [1]
+
+[1] https://pagure.io/python-daemon/issue/2
+---
+ version.py | 7 ---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/version.py b/version.py
+index d58422a377ee..293e2d64c2b7 100644
+--- a/version.py
 b/version.py
+@@ -648,9 +648,10 @@ class 
ChangelogAwareDistribution(distutils.dist.Distribution, object):
+ 
+ @lru_cache(maxsize=128)
+ def get_version_info(self):
+-changelog_path = get_changelog_path(self)
+-version_info = generate_version_info_from_changelog(changelog_path)
+-return version_info
++return {
++'version': '2.1.2',
++'maintainer': 'Ben Finney'
++}
+ 
+ def get_version(self):
+ version_info = self.get_version_info()
+-- 
+2.7.4
+
diff --git a/meta-python/recipes-devtools/python/python-daemon_2.1.2.bb 
b/meta-python/recipes-devtools/python/python-daemon_2.1.2.bb
new file mode 100644
index ..4c18e2bad5c4
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-daemon_2.1.2.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
+HOMEPAGE = "https://pagure.io/python-daemon/;
+SECTION = "devel/python"
+
+DEPENDS = "python-docutils"
+RDEPENDS_${PN} = "python-docutils \
+  python-lockfile (>= 0.10) \
+  python-resource \
+"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit pypi setuptools
+
+SRC_URI[md5sum] = "9c57343d81f2a96c51cffeab982b04d2"
+SRC_URI[sha256sum] = 
"261c859be5c12ae7d4286dc6951e87e9e1a70a882a8b41fd926efc1ec4214f73"
+
+# Fix for build error in Yocto:
+# i = p.rfind('/') + 1
+# AttributeError: 'NoneType' object has no attribute 'rfind'
+#S = "${WORKDIR}/python-daemon"
+SRC_URI_append = " \
+  file://0001-Workaround-for-issue-2-1.patch \
+"
+
+PYPI_PACKAGE = "python-daemon"
diff --git a/meta-python/recipes-devtools/python/python-docutils_0.14rc2.bb 
b/meta-python/recipes-devtools/python/python-docutils_0.14rc2.bb
new file mode 100644
index ..68436a1a544b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-docutils_0.14rc2.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Text processing system for documentation"
+HOMEPAGE = "http://docutils.sourceforge.net;
+SECTION = "devel/python"
+LICENSE = "PSF & BSD-2-Clause & GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=35a23d42b615470583563132872c97d6"
+
+DEPENDS = "python"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/docutils/docutils-${PV}.tar.gz"
+SRC_URI[md5sum] = "2f4bee6451958252f7bec71f18b05be3"
+SRC_URI[sha256sum] = 
"3caee0bcb2a49fdf24fcfa70849a60abb7a181aa68b030f7cb7494096181830c"
+
+S = "${WORKDIR}/docutils-${PV}"
+
+inherit distutils
+
+BBCLASSEXTEND = "native"
+
diff --git a/meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb 
b/meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb
new file mode 100644
index ..cd15760d46ae
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb
@@ -0,0 +1,13 @@
+DESCRIPTION = "Platform-independent file locking module"
+HOMEPAGE = "http://launchpad.net/pylockfile;
+SECTION = "devel/python"
+
+RDEPENDS_${PN} = "python-threading"
+
+LICENSE = &quo

[oe] [meta-python][PATCH 1/3] meta-python: Add Protobuf and gRPC Python recipes

2017-07-09 Thread Krzysztof Kozlowski
Add recipes for Python PIP packages for Google's Protobuf, gRPC and gRPC
tools.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 .../python/python-grpcio-tools_1.4.0.bb| 17 
 .../recipes-devtools/python/python-grpcio_1.4.0.bb | 23 ++
 .../python/python-protobuf_3.3.0.bb| 16 +++
 3 files changed, 56 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python-grpcio-tools_1.4.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python-protobuf_3.3.0.bb

diff --git a/meta-python/recipes-devtools/python/python-grpcio-tools_1.4.0.bb 
b/meta-python/recipes-devtools/python/python-grpcio-tools_1.4.0.bb
new file mode 100644
index ..f9cfd9967f3e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-grpcio-tools_1.4.0.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Google gRPC tools"
+HOMEPAGE = "http://www.grpc.io/;
+SECTION = "devel/python"
+
+DEPENDS = "python-grpcio"
+RDEPENDS_${PN} = "python-grpcio"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+
+inherit pypi setuptools
+
+SRC_URI[md5sum] = "b0d585872c69f207a05c55566e8afb38"
+SRC_URI[sha256sum] = 
"bddc98f063755a5df9d285666db49c49201f93d416c45d4f4924cf752b68c99c"
+
+# For usage in other recipies when compiling protobuf files (e.g. by 
grpcio-tools)
+BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb 
b/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb
new file mode 100644
index ..5412e0243392
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Google gRPC"
+HOMEPAGE = "http://www.grpc.io/;
+SECTION = "devel/python"
+
+DEPENDS = "python-protobuf"
+
+RDEPENDS_${PN} = "python-enum34 \
+  python-futures \
+  python-protobuf \
+  python-setuptools \
+  python-six \
+"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+
+inherit pypi setuptools
+
+SRC_URI[md5sum] = "d882ae4eeef4f32ac9c1d32052bf05ad"
+SRC_URI[sha256sum] = 
"a3a213a4c24b5c572b386d752e3b74a3f1b8fa5d03c07b6166fa39f3a6cdef34"
+
+# For usage in other recipies when compiling protobuf files (e.g. by 
grpcio-tools)
+BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python-protobuf_3.3.0.bb 
b/meta-python/recipes-devtools/python/python-protobuf_3.3.0.bb
new file mode 100644
index ..61b8fef0027b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-protobuf_3.3.0.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "Protocol Buffers"
+HOMEPAGE = "https://developers.google.com/protocol-buffers/;
+SECTION = "devel/python"
+
+RDEPENDS_${PN} = "python-six"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+
+inherit pypi setuptools
+
+SRC_URI[md5sum] = "27941e8e42e83d5183605054576882dd"
+SRC_URI[sha256sum] = 
"1cbcee2c45773f57cb6de7ee0eceb97f92b9b69c0178305509b162c0160c1f04"
+
+# For usage in other recipies when compiling protobuf files (e.g. by 
grpcio-tools)
+BBCLASSEXTEND = "native"
-- 
2.11.0

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