Re: [OE-core] [PATCH 3/4] serf: switch to python3-scons-native

2019-06-09 Thread Tim Orling
On Sun, Jun 9, 2019 at 10:10 PM Mittal, Anuj  wrote:

> This is causing on CentOS 7:
>
> | DEBUG: Executing shell function do_compile
> | scons: *** SCons version 3.0.5 does not run under Python version
> 3.4.8.
> | Python 2.7 or >= 3.5 is required.
>
> Looks like it's using host python which is at 3.4.8 in this case.
>

Hmmm. Host contamination is bad. We should make sure it is using
python3native.


> Thanks,
>
> Anuj
>
> On Fri, 2019-06-07 at 16:47 -0700, Tim Orling wrote:
> > SCons has supported python3 since v3.0.0, use it.
> >
> > Signed-off-by: Tim Orling 
> > ---
> >  meta/recipes-support/serf/serf_1.3.9.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-support/serf/serf_1.3.9.bb b/meta/recipes-
> > support/serf/serf_1.3.9.bb
> > index 65a8114bb4..706c86be47 100644
> > --- a/meta/recipes-support/serf/serf_1.3.9.bb
> > +++ b/meta/recipes-support/serf/serf_1.3.9.bb
> > @@ -14,7 +14,7 @@ SRC_URI[sha256sum] =
> > "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf
> >  LICENSE = "Apache-2.0"
> >  LIC_FILES_CHKSUM =
> > "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
> >
> > -DEPENDS = "python-scons-native openssl apr apr-util util-linux
> > expat"
> > +DEPENDS = "python3-scons-native openssl apr apr-util util-linux
> > expat"
> >
> >  do_compile() {
> >   ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE}
> > PREFIX=${prefix} \
> > --
> > 2.20.1
> >
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 3/4] serf: switch to python3-scons-native

2019-06-09 Thread Mittal, Anuj
This is causing on CentOS 7:

| DEBUG: Executing shell function do_compile
| scons: *** SCons version 3.0.5 does not run under Python version
3.4.8.
| Python 2.7 or >= 3.5 is required.

Looks like it's using host python which is at 3.4.8 in this case.

Thanks,

Anuj

On Fri, 2019-06-07 at 16:47 -0700, Tim Orling wrote:
> SCons has supported python3 since v3.0.0, use it.
> 
> Signed-off-by: Tim Orling 
> ---
>  meta/recipes-support/serf/serf_1.3.9.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/serf/serf_1.3.9.bb b/meta/recipes-
> support/serf/serf_1.3.9.bb
> index 65a8114bb4..706c86be47 100644
> --- a/meta/recipes-support/serf/serf_1.3.9.bb
> +++ b/meta/recipes-support/serf/serf_1.3.9.bb
> @@ -14,7 +14,7 @@ SRC_URI[sha256sum] =
> "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf
>  LICENSE = "Apache-2.0"
>  LIC_FILES_CHKSUM =
> "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
>  
> -DEPENDS = "python-scons-native openssl apr apr-util util-linux
> expat"
> +DEPENDS = "python3-scons-native openssl apr apr-util util-linux
> expat"
>  
>  do_compile() {
>   ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE}
> PREFIX=${prefix} \
> -- 
> 2.20.1
> 

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


Re: [OE-core] [Warrior-next 24/27] openssl: Upgrade 1.1.1b -> 1.1.1c

2019-06-09 Thread Adrian Bunk
On Sun, Jun 09, 2019 at 06:39:58PM +0100, Alex Kiernan wrote:
> On Sun, Jun 9, 2019 at 4:50 PM Armin Kuster  wrote:
> >
> > From: Adrian Bunk 
> >
> > Backported patch removed.
> >
> > Signed-off-by: Adrian Bunk 
> > Signed-off-by: Richard Purdie 
> > Signed-off-by: Armin Kuster 
> > ---
> 
> I've just created:
> 
> https://github.com/openssl/openssl/issues/9119
> 
> Which appears to be a regression for DNS over TLS when systemd-resolve
> is built against openssl 1.1.1c.

Thanks for the information.

The only CVE fix in 1.1.1c is already in warrior,
so updating openssl in warrior is currently not urgent.

> Alex Kiernan

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed

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


Re: [OE-core] [PATCH v2] json-c: Disable icecc to avoid implicit-fallthrough warning as error

2019-06-09 Thread Burton, Ross
FWIW, this just landed in json-c master:

https://github.com/json-c/json-c/commit/07ea04e65193c3e5c902c5b79421d5fa48ff67c7

"build: add option --disable-werror to configure"

Ross

On Fri, 7 Jun 2019 at 12:20, Burton, Ross  wrote:
>
> FWIW I still believe that just patching out -Werror is the correct fix
> here.  To be honest I'm really close to writing a QA check that
> -Werror and friends isn't being used at all...
>
> Filed https://github.com/json-c/json-c/issues/489 in the hope that
> upstream will handle it.
>
> Ross
>
> On Fri, 7 Jun 2019 at 02:22, Douglas Royds via Openembedded-core
>  wrote:
> >
> > icecc preprocesses source files locally before shipping them off to be 
> > compiled
> > on remote hosts. This preprocessing removes comments, including /* 
> > fallthrough */
> > comments in switch statements that normally prevent the implicit-fallthrough
> > warning.
> >
> > Rather than turning off -Werror by patching configure.ac, it is simpler to
> > disable icecc completely for json-c. There are very few source files to 
> > compile,
> > so the compilation is quick even without icecc.
> >
> > See https://github.com/icecc/icecream/issues/419
> >
> > Signed-off-by: Douglas Royds 
> > ---
> >  meta/classes/icecc.bbclass | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
> > index edb0e10434..c0f21bdbfd 100644
> > --- a/meta/classes/icecc.bbclass
> > +++ b/meta/classes/icecc.bbclass
> > @@ -76,6 +76,7 @@ ICECC_ENV_DEBUG ??= ""
> >  # target-sdk-provides-dummy - ${HOST_PREFIX} is empty which triggers the 
> > "NULL
> >  # prefix" error.
> >  ICECC_SYSTEM_PACKAGE_BL += "\
> > +json-c \
> >  libgcc-initial \
> >  target-sdk-provides-dummy \
> >  "
> > --
> > 2.17.1
> >
> > --
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [Warrior-next 24/27] openssl: Upgrade 1.1.1b -> 1.1.1c

2019-06-09 Thread Alex Kiernan
On Sun, Jun 9, 2019 at 4:50 PM Armin Kuster  wrote:
>
> From: Adrian Bunk 
>
> Backported patch removed.
>
> Signed-off-by: Adrian Bunk 
> Signed-off-by: Richard Purdie 
> Signed-off-by: Armin Kuster 
> ---

I've just created:

https://github.com/openssl/openssl/issues/9119

Which appears to be a regression for DNS over TLS when systemd-resolve
is built against openssl 1.1.1c.

-- 
Alex Kiernan
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [Warrior-next 27/27] qemurunner: fix undefined variable

2019-06-09 Thread Armin Kuster
From: Adrian Freihofer 

While hacking on this I got an Exception. It's better to define
variables also in python.

Signe:-off-by: Adrian Freihofer 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/utils/qemurunner.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index 6d2860c..c16227f 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -60,6 +60,7 @@ class QemuRunner:
 self.runqemutime = 120
 self.qemu_pidfile = 'pidfile_'+str(os.getpid())
 self.host_dumper = HostDumper(dump_host_cmds, dump_dir)
+self.monitorpipe = None
 
 self.logger = logger
 
-- 
2.7.4

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


[OE-core] [Warrior-next 26/27] logparser: Add LTP compliance section

2019-06-09 Thread Armin Kuster
Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/utils/logparser.py | 37 +
 1 file changed, 37 insertions(+)

diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py
index abff8c7..cc6d18d 100644
--- a/meta/lib/oeqa/utils/logparser.py
+++ b/meta/lib/oeqa/utils/logparser.py
@@ -114,3 +114,40 @@ class LtpParser(object):
 self.section['log'] = self.section['log'] + ("%s: %s\n" % 
(result.strip()[:-2], test.strip()))
 
 return self.results, self.section
+
+
+# ltp Compliance log parsing
+class LtpComplianceParser(object):
+def __init__(self):
+self.results = {}
+self.section = {'duration': "", 'log': ""}
+
+def parse(self, logfile):
+test_regex = {}
+test_regex['PASSED'] = re.compile(r"^PASS")
+test_regex['FAILED'] = re.compile(r"^FAIL")
+test_regex['SKIPPED'] = re.compile(r"(?:UNTESTED)|(?:UNSUPPORTED)")
+
+section_regex = {}
+section_regex['test'] = re.compile(r"^Testing")
+
+with open(logfile, errors='replace') as f:
+for line in f:
+result = section_regex['test'].search(line)
+if result:
+self.name = ""
+self.name = line.split()[1].strip()
+self.results[self.name] = "PASSED"
+failed = 0
+
+failed_result = test_regex['FAILED'].search(line)
+if failed_result:
+failed = line.split()[1].strip()
+if int(failed) > 0:
+self.results[self.name] = "FAILED"
+
+for test in self.results:
+result = self.results[test]
+self.section['log'] = self.section['log'] + ("%s: %s\n" % 
(result.strip()[:-2], test.strip()))
+
+return self.results, self.section
-- 
2.7.4

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


[OE-core] [Warrior-next 25/27] logparser: Add decoding ltp logs

2019-06-09 Thread Armin Kuster
Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/utils/logparser.py | 25 +
 1 file changed, 25 insertions(+)

diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py
index 18285fb..abff8c7 100644
--- a/meta/lib/oeqa/utils/logparser.py
+++ b/meta/lib/oeqa/utils/logparser.py
@@ -89,3 +89,28 @@ class PtestParser(object):
 status = self.results[section][test_name]
 f.write(status + ": " + test_name + "\n")
 
+
+# ltp log parsing
+class LtpParser(object):
+def __init__(self):
+self.results = {}
+self.section = {'duration': "", 'log': ""}
+
+def parse(self, logfile):
+test_regex = {}
+test_regex['PASSED'] = re.compile(r"PASS")
+test_regex['FAILED'] = re.compile(r"FAIL")
+test_regex['SKIPPED'] = re.compile(r"SKIP")
+
+with open(logfile, errors='replace') as f:
+for line in f:
+for t in test_regex:
+result = test_regex[t].search(line)
+if result:
+self.results[line.split()[0].strip()] = t
+
+for test in self.results:
+result = self.results[test]
+self.section['log'] = self.section['log'] + ("%s: %s\n" % 
(result.strip()[:-2], test.strip()))
+
+return self.results, self.section
-- 
2.7.4

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


[OE-core] [Warrior-next 24/27] openssl: Upgrade 1.1.1b -> 1.1.1c

2019-06-09 Thread Armin Kuster
From: Adrian Bunk 

Backported patch removed.

Signed-off-by: Adrian Bunk 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 .../openssl/openssl/CVE-2019-1543.patch| 69 --
 .../openssl/openssl/afalg.patch|  6 +-
 .../{openssl_1.1.1b.bb => openssl_1.1.1c.bb}   |  5 +-
 3 files changed, 5 insertions(+), 75 deletions(-)
 delete mode 100644 
meta/recipes-connectivity/openssl/openssl/CVE-2019-1543.patch
 rename meta/recipes-connectivity/openssl/{openssl_1.1.1b.bb => 
openssl_1.1.1c.bb} (97%)

diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2019-1543.patch 
b/meta/recipes-connectivity/openssl/openssl/CVE-2019-1543.patch
deleted file mode 100644
index 900ef97..000
--- a/meta/recipes-connectivity/openssl/openssl/CVE-2019-1543.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-Upstream-Status: Backport 
[https://github.com/openssl/openssl/commit/f426625b6ae9a7831010750490a5f0ad689c5ba3]
-Signed-off-by: Ross Burton 
-
-From f426625b6ae9a7831010750490a5f0ad689c5ba3 Mon Sep 17 00:00:00 2001
-From: Matt Caswell 
-Date: Tue, 5 Mar 2019 14:39:15 +
-Subject: [PATCH] Prevent over long nonces in ChaCha20-Poly1305
-
-ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input for
-every encryption operation. RFC 7539 specifies that the nonce value (IV)
-should be 96 bits (12 bytes). OpenSSL allows a variable nonce length and
-front pads the nonce with 0 bytes if it is less than 12 bytes. However it
-also incorrectly allows a nonce to be set of up to 16 bytes. In this case
-only the last 12 bytes are significant and any additional leading bytes are
-ignored.
-
-It is a requirement of using this cipher that nonce values are unique.
-Messages encrypted using a reused nonce value are susceptible to serious
-confidentiality and integrity attacks. If an application changes the
-default nonce length to be longer than 12 bytes and then makes a change to
-the leading bytes of the nonce expecting the new value to be a new unique
-nonce then such an application could inadvertently encrypt messages with a
-reused nonce.
-
-Additionally the ignored bytes in a long nonce are not covered by the
-integrity guarantee of this cipher. Any application that relies on the
-integrity of these ignored leading bytes of a long nonce may be further
-affected.
-
-Any OpenSSL internal use of this cipher, including in SSL/TLS, is safe
-because no such use sets such a long nonce value. However user
-applications that use this cipher directly and set a non-default nonce
-length to be longer than 12 bytes may be vulnerable.
-
-CVE: CVE-2019-1543
-
-Fixes #8345
-
-Reviewed-by: Paul Dale 
-Reviewed-by: Richard Levitte 
-(Merged from https://github.com/openssl/openssl/pull/8406)
-
-(cherry picked from commit 2a3d0ee9d59156c48973592331404471aca886d6)

- crypto/evp/e_chacha20_poly1305.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/crypto/evp/e_chacha20_poly1305.c 
b/crypto/evp/e_chacha20_poly1305.c
-index c1917bb86a6..d3e2c622a1b 100644
 a/crypto/evp/e_chacha20_poly1305.c
-+++ b/crypto/evp/e_chacha20_poly1305.c
-@@ -30,6 +30,8 @@ typedef struct {
- 
- #define data(ctx)   ((EVP_CHACHA_KEY *)(ctx)->cipher_data)
- 
-+#define CHACHA20_POLY1305_MAX_IVLEN 12
-+
- static int chacha_init_key(EVP_CIPHER_CTX *ctx,
-const unsigned char user_key[CHACHA_KEY_SIZE],
-const unsigned char iv[CHACHA_CTR_SIZE], int enc)
-@@ -533,7 +535,7 @@ static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int 
type, int arg,
- return 1;
- 
- case EVP_CTRL_AEAD_SET_IVLEN:
--if (arg <= 0 || arg > CHACHA_CTR_SIZE)
-+if (arg <= 0 || arg > CHACHA20_POLY1305_MAX_IVLEN)
- return 0;
- actx->nonce_len = arg;
- return 1;
diff --git a/meta/recipes-connectivity/openssl/openssl/afalg.patch 
b/meta/recipes-connectivity/openssl/openssl/afalg.patch
index 7c4b084..b7c0e96 100644
--- a/meta/recipes-connectivity/openssl/openssl/afalg.patch
+++ b/meta/recipes-connectivity/openssl/openssl/afalg.patch
@@ -18,14 +18,14 @@ index 3baa8ce..9ef52ed 100755
 -($mi2) = $mi2 =~ /(\d+)/;
 -my $ver = $ma*1 + $mi1*100 + $mi2;
 -if ($ver < $minver) {
--$disabled{afalgeng} = "too-old-kernel";
+-disable('too-old-kernel', 'afalgeng');
 -} else {
 -push @{$config{engdirs}}, "afalg";
 -}
 -} else {
--$disabled{afalgeng} = "cross-compiling";
+-disable('cross-compiling', 'afalgeng');
 -}
 +push @{$config{engdirs}}, "afalg";
  } else {
- $disabled{afalgeng}  = "not-linux";
+ disable('not-linux', 'afalgeng');
  }
diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1b.bb 
b/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb
similarity index 97%
rename from meta/recipes-connectivity/openssl/openssl_1.1.1b.bb

[OE-core] [Warrior-next 21/27] resulttool: Remove prints if no tests occur

2019-06-09 Thread Armin Kuster
From: Jon Mason 

Printing the lack of a test is not necessary (per feedback).  Remove
this from the template to quieten it.

Signed-off-by: Jon Mason 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 scripts/lib/resulttool/template/test_report_full_text.txt | 14 +++---
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/scripts/lib/resulttool/template/test_report_full_text.txt 
b/scripts/lib/resulttool/template/test_report_full_text.txt
index 6a5a081..17c99cb 100644
--- a/scripts/lib/resulttool/template/test_report_full_text.txt
+++ b/scripts/lib/resulttool/template/test_report_full_text.txt
@@ -22,13 +22,10 @@ Test Result Status Summary (Counts/Percentages sorted by 
testseries, ID)
 {{ ptest.ljust(maxlen['ptest']) }} | {{ 
(ptests[machine][ptest]['passed']|string).ljust(maxlen['passed']) }} | {{ 
(ptests[machine][ptest]['failed']|string).ljust(maxlen['failed']) }} | {{ 
(ptests[machine][ptest]['skipped']|string).ljust(maxlen['skipped']) }} | {{ 
(ptests[machine][ptest]['duration']|string) }}
 {% endfor %}
 
--
-{% else %}
-There was no ptest data for {{ machine }}
-{% endif %}
 
+{% endif %}
 {% endfor %}
 
-
 {% for machine in machines %}
 {% if ltptests[machine] %}
 
==
@@ -41,13 +38,10 @@ There was no ptest data for {{ machine }}
 {{ ltptest.ljust(maxlen['ltptest']) }} | {{ 
(ltptests[machine][ltptest]['passed']|string).ljust(maxlen['passed']) }} | {{ 
(ltptests[machine][ltptest]['failed']|string).ljust(maxlen['failed']) }} | {{ 
(ltptests[machine][ltptest]['skipped']|string).ljust(maxlen['skipped']) }} | {{ 
(ltptests[machine][ltptest]['duration']|string) }}
 {% endfor %}
 
--
-{% else %}
-There was no LTP Test data for {{ machine }}
-{% endif %}
 
+{% endif %}
 {% endfor %}
 
-
 {% for machine in machines %}
 {% if ltpposixtests[machine] %}
 
==
@@ -60,10 +54,8 @@ There was no LTP Test data for {{ machine }}
 {{ ltpposixtest.ljust(maxlen['ltpposixtest']) }} | {{ 
(ltpposixtests[machine][ltpposixtest]['passed']|string).ljust(maxlen['passed']) 
}} | {{ 
(ltpposixtests[machine][ltpposixtest]['failed']|string).ljust(maxlen['failed']) 
}} | {{ 
(ltpposixtests[machine][ltpposixtest]['skipped']|string).ljust(maxlen['skipped'])
 }} | {{ (ltpposixtests[machine][ltpposixtest]['duration']|string) }}
 {% endfor %}
 
--
-{% else %}
-There was no LTP Posix Test data for {{ machine }}
-{% endif %}
 
+{% endif %}
 {% endfor %}
 
 
-- 
2.7.4

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


[OE-core] [Warrior-next 23/27] oeqa/utils/qemurunner: Set both the threadport with tcpserial parameter

2019-06-09 Thread Armin Kuster
From: Kevin Hao 

After the commit ad522ea6a64e ("runqemu: Let qemuparams override default
settings"), the order of the two "-serial" parameters when running the
qemu have been switched. The effect of this is that the logging thread
will use ttyS1 (of course can't capture the kernel boot message anymore),
and the test command will run on the ttyS0. So the output of the test
command may be mangled by the kernel message (such as call trace), and
let the test command produce a fake timeout error message. We can't fix
it by just adjusting the order of the threadport and serverport, since
it will break some machines such as qemuarm64 which use the virtio
serial. So using the tcpserial to setup both the threadport and
serverport.

[YOCTO Bug 13309]

Signed-off-by: Kevin Hao 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/utils/qemurunner.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index fd386ef..6d2860c 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -155,11 +155,11 @@ class QemuRunner:
 # and analyze descendents in order to determine it.
 if os.path.exists(self.qemu_pidfile):
 os.remove(self.qemu_pidfile)
-self.qemuparams = 'bootparams="{0}" qemuparams="-serial 
tcp:127.0.0.1:{1} -pidfile {2}"'.format(bootparams, threadport, 
self.qemu_pidfile)
+self.qemuparams = 'bootparams="{0}" qemuparams="-pidfile 
{1}"'.format(bootparams, self.qemu_pidfile)
 if qemuparams:
 self.qemuparams = self.qemuparams[:-1] + " " + qemuparams + " " + 
'\"'
 
-launch_cmd += ' tcpserial=%s %s' % (self.serverport, self.qemuparams)
+launch_cmd += ' tcpserial=%s:%s %s' % (threadport, self.serverport, 
self.qemuparams)
 
 self.origchldhandler = signal.getsignal(signal.SIGCHLD)
 signal.signal(signal.SIGCHLD, self.handleSIGCHLD)
-- 
2.7.4

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


[OE-core] [Warrior-next 22/27] runqemu: Add the support to pass multi ports to tcpserial parameter

2019-06-09 Thread Armin Kuster
From: Kevin Hao 

In some cases(such as the oeqa's qemurunner), we need to setup multi
serial devices via the '-serial 127.0.0.1:xx" and the order of them
is significant. The mixing use of "tcpserial" and "-serial 127.0.0.1:xx"
cause ambiguous issues and we can't fix it by only adjusting the order
of them. So add the support to pass multi ports to the tcpserial
parameter, this will make sure that the order of setting up the serial
is really what we want.

[YOCTO Bug 13309]

Signed-off-by: Kevin Hao 
Signed-off-by: Richard Purdie 
[Fixes qemuppc hang in warrior]
Signed-off-by: Armin Kuster 
---
 scripts/runqemu | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 39bed03..19fd521 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -438,7 +438,7 @@ class BaseConfig(object):
 elif arg == 'publicvnc':
 self.qemu_opt_script += ' -vnc :0'
 elif arg.startswith('tcpserial='):
-self.tcpserial_portnum = arg[len('tcpserial='):]
+self.tcpserial_portnum = '%s' % arg[len('tcpserial='):]
 elif arg.startswith('biosdir='):
 self.custombiosdir = arg[len('biosdir='):]
 elif arg.startswith('biosfilename='):
@@ -681,10 +681,16 @@ class BaseConfig(object):
 
 def check_tcpserial(self):
 if self.tcpserial_portnum:
+ports = self.tcpserial_portnum.split(':')
+port = ports[0]
 if self.get('QB_TCPSERIAL_OPT'):
-self.qemu_opt_script += ' ' + 
self.get('QB_TCPSERIAL_OPT').replace('@PORT@', self.tcpserial_portnum)
+self.qemu_opt_script += ' ' + 
self.get('QB_TCPSERIAL_OPT').replace('@PORT@', port)
 else:
-self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % 
self.tcpserial_portnum
+self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % port
+
+if len(ports) > 1:
+for port in ports[1:]:
+self.qemu_opt_script += ' -serial tcp:127.0.0.1:%s' % port
 
 def check_and_set(self):
 """Check configs sanity and set when needed"""
-- 
2.7.4

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


[OE-core] [Warrior-next 20/27] resulttool/manualexecution: Enable creation of test case configuration

2019-06-09 Thread Armin Kuster
From: sangeeta jain 

Allow the creation of test case configuration file based on user inputs.
Where this testcase configuration file will be used by the the manual
execution to run selected test cases for a module rather than compulsory
run all test cases in manual json file.

Signed-off-by: sangeeta jain 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 scripts/lib/resulttool/manualexecution.py | 31 ++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/resulttool/manualexecution.py 
b/scripts/lib/resulttool/manualexecution.py
index df28e1d..ecb27c5 100755
--- a/scripts/lib/resulttool/manualexecution.py
+++ b/scripts/lib/resulttool/manualexecution.py
@@ -181,11 +181,38 @@ class ManualTestRunner(object):
 write_json_file(config_options_file, config_options)
 logger.info('Configuration option file created at %s' % 
config_options_file)
 
+def make_testcase_config_file(self, logger, case_file, 
testcase_config_file):
+if  testcase_config_file:
+if os.path.exists(testcase_config_file):
+print('\nTest configuration file with name %s already exists. 
Please provide a unique file name' % (testcase_config_file))
+return 0
+
+if not testcase_config_file:
+testcase_config_file = os.path.join(self._get_write_dir(), 
"testconfig_new.json")
+
+testcase_config = {}
+cases = load_json_file(case_file)
+new_test_module = self._get_test_module(case_file)
+new_testcase_config = {}
+new_testcase_config['testcases'] = []
+
+print('\nAdd testcases for this configuration file:')
+for case in cases:
+print('\n' + case['test']['@alias'])
+add_tc_config = self._get_true_false_input('\nDo you want to add 
this test case to test configuration : (Y)es/(N)o\n')
+if add_tc_config:
+new_testcase_config['testcases'].append(case['test']['@alias'])
+write_json_file(testcase_config_file, new_testcase_config)
+logger.info('Testcase Configuration file created at %s' % 
testcase_config_file)
+
 def manualexecution(args, logger):
 testrunner = ManualTestRunner()
 if args.make_config_options_file:
 testrunner.make_config_option_file(logger, args.file, 
args.config_options_file)
 return 0
+if args.make_testcase_config_file:
+testrunner.make_testcase_config_file(logger, args.file, 
args.testcase_config_file)
+return 0
 configurations, result_id, write_dir, test_results = 
testrunner.run_test(args.file, args.config_options_file, 
args.testcase_config_file)
 resultjsonhelper = OETestResultJSONHelper()
 resultjsonhelper.dump_testresult_file(write_dir, configurations, 
result_id, test_results)
@@ -203,4 +230,6 @@ def register_commands(subparsers):
 parser_build.add_argument('-m', '--make-config-options-file', 
action='store_true',
   help='make the configuration options file based 
on provided inputs')
 parser_build.add_argument('-t', '--testcase-config-file', default='',
-  help='the testcase configuration file to enable 
user to run a selected set of test case')
\ No newline at end of file
+  help='the testcase configuration file to enable 
user to run a selected set of test case or make a testcase configuration file')
+parser_build.add_argument('-d', '--make-testcase-config-file', 
action='store_true',
+help='make the testcase configuration file to run a set of 
test cases based on user selection')
\ No newline at end of file
-- 
2.7.4

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


[OE-core] [Warrior-next 19/27] resulttool: modify to be multi-machine

2019-06-09 Thread Armin Kuster
From: Jon Mason 

Currently, the code will sum all of the different machine results into a
single report of the tests results.  This can lead to confusion as to
which machine may be experiencing issues.  Modify the code to store the
results in a per machine basis and report them accordingly.

Signed-off-by: Jon Mason 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/selftest/cases/resulttooltests.py|   2 +-
 scripts/lib/resulttool/report.py   | 104 +++--
 .../resulttool/template/test_report_full_text.txt  |  44 +
 3 files changed, 82 insertions(+), 68 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/resulttooltests.py 
b/meta/lib/oeqa/selftest/cases/resulttooltests.py
index 10eb9c1..dac5c46 100644
--- a/meta/lib/oeqa/selftest/cases/resulttooltests.py
+++ b/meta/lib/oeqa/selftest/cases/resulttooltests.py
@@ -56,7 +56,7 @@ class ResultToolTests(OESelftestTestCase):
   'test4': {'status': 'ERROR'},
   'test5': {'status': 'SKIPPED'}}}
 report = ResultsTextReport()
-result_report = report.get_aggregated_test_result(None, result_data)
+result_report = report.get_aggregated_test_result(None, result_data, 
'DummyMachine')
 self.assertTrue(result_report['passed'] == 2, msg="Passed count not 
correct:%s" % result_report['passed'])
 self.assertTrue(result_report['failed'] == 2, msg="Failed count not 
correct:%s" % result_report['failed'])
 self.assertTrue(result_report['skipped'] == 1, msg="Skipped count not 
correct:%s" % result_report['skipped'])
diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py
index cb6b1cf..a48c59f 100644
--- a/scripts/lib/resulttool/report.py
+++ b/scripts/lib/resulttool/report.py
@@ -24,16 +24,19 @@ class ResultsTextReport(object):
  'skipped': ['SKIPPED', 'skipped']}
 
 
-def handle_ptest_result(self, k, status, result):
+def handle_ptest_result(self, k, status, result, machine):
+if machine not in self.ptests:
+self.ptests[machine] = {}
+
 if k == 'ptestresult.sections':
 # Ensure tests without any test results still show up on the report
 for suite in result['ptestresult.sections']:
-if suite not in self.ptests:
-self.ptests[suite] = {'passed': 0, 'failed': 0, 'skipped': 
0, 'duration' : '-', 'failed_testcases': []}
+if suite not in self.ptests[machine]:
+self.ptests[machine][suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
 if 'duration' in result['ptestresult.sections'][suite]:
-self.ptests[suite]['duration'] = 
result['ptestresult.sections'][suite]['duration']
+self.ptests[machine][suite]['duration'] = 
result['ptestresult.sections'][suite]['duration']
 if 'timeout' in result['ptestresult.sections'][suite]:
-self.ptests[suite]['duration'] += " T"
+self.ptests[machine][suite]['duration'] += " T"
 return
 try:
 _, suite, test = k.split(".", 2)
@@ -47,22 +50,25 @@ class ResultsTextReport(object):
 suite = suite + "." + suite1
 except ValueError:
 pass
-if suite not in self.ptests:
-self.ptests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 
'duration' : '-', 'failed_testcases': []}
+if suite not in self.ptests[machine]:
+self.ptests[machine][suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
 for tk in self.result_types:
 if status in self.result_types[tk]:
-self.ptests[suite][tk] += 1
+self.ptests[machine][suite][tk] += 1
+
+def handle_ltptest_result(self, k, status, result, machine):
+if machine not in self.ltptests:
+self.ltptests[machine] = {}
 
-def handle_ltptest_result(self, k, status, result):
 if k == 'ltpresult.sections':
 # Ensure tests without any test results still show up on the report
 for suite in result['ltpresult.sections']:
-if suite not in self.ltptests:
-self.ltptests[suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
+if suite not in self.ltptests[machine]:
+self.ltptests[machine][suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
 if 'duration' in result['ltpresult.sections'][suite]:
-self.ltptests[suite]['duration'] = 
result['ltpresult.sections'][suite]['duration']
+self.ltptests[machine][suite]['duration'] = 

[OE-core] [Warrior-next 17/27] resulttool: add ltp test support

2019-06-09 Thread Armin Kuster
Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 scripts/lib/resulttool/report.py   | 43 +-
 .../resulttool/template/test_report_full_text.txt  | 17 +
 2 files changed, 59 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py
index b1c9d13..a98f239 100644
--- a/scripts/lib/resulttool/report.py
+++ b/scripts/lib/resulttool/report.py
@@ -17,6 +17,7 @@ import oeqa.utils.gitarchive as gitarchive
 class ResultsTextReport(object):
 def __init__(self):
 self.ptests = {}
+self.ltptests = {}
 self.result_types = {'passed': ['PASSED', 'passed'],
  'failed': ['FAILED', 'failed', 'ERROR', 'error', 
'UNKNOWN'],
  'skipped': ['SKIPPED', 'skipped']}
@@ -51,6 +52,38 @@ class ResultsTextReport(object):
 if status in self.result_types[tk]:
 self.ptests[suite][tk] += 1
 
+def handle_ltptest_result(self, k, status, result):
+if k == 'ltpresult.sections':
+# Ensure tests without any test results still show up on the report
+for suite in result['ltpresult.sections']:
+if suite not in self.ltptests:
+self.ltptests[suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
+if 'duration' in result['ltpresult.sections'][suite]:
+self.ltptests[suite]['duration'] = 
result['ltpresult.sections'][suite]['duration']
+if 'timeout' in result['ltpresult.sections'][suite]:
+self.ltptests[suite]['duration'] += " T"
+return
+try:
+_, suite, test = k.split(".", 2)
+except ValueError:
+return
+# Handle 'glib-2.0'
+if 'ltpresult.sections' in result and suite not in 
result['ltpresult.sections']:
+try:
+_, suite, suite1, test = k.split(".", 3)
+print("split2: %s %s %s" % (suite, suite1, test))
+if suite + "." + suite1 in result['ltpresult.sections']:
+suite = suite + "." + suite1
+except ValueError:
+pass
+if suite not in self.ltptests:
+self.ltptests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 
'duration' : '-', 'failed_testcases': []}
+for tk in self.result_types:
+if status in self.result_types[tk]:
+self.ltptests[suite][tk] += 1
+
+def get_aggregated_test_result(self, logger, testresult):
+test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 
'failed_testcases': []}
 def get_aggregated_test_result(self, logger, testresult):
 test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 
'failed_testcases': []}
 result = testresult.get('result', [])
@@ -63,6 +96,8 @@ class ResultsTextReport(object):
 test_count_report['failed_testcases'].append(k)
 if k.startswith("ptestresult."):
 self.handle_ptest_result(k, test_status, result)
+if k.startswith("ltpresult."):
+self.handle_ltptest_result(k, test_status, result)
 return test_count_report
 
 def print_test_report(self, template_file_name, test_count_reports):
@@ -73,9 +108,10 @@ class ResultsTextReport(object):
 template = env.get_template(template_file_name)
 havefailed = False
 haveptest = bool(self.ptests)
+haveltp = bool(self.ltptests)
 reportvalues = []
 cols = ['passed', 'failed', 'skipped']
-maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 
'testseries' : 0, 'ptest' : 0 }
+maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 
'testseries' : 0, 'ptest' : 0 ,'ltptest': 0}
 for line in test_count_reports:
 total_tested = line['passed'] + line['failed'] + line['skipped']
 vals = {}
@@ -94,10 +130,15 @@ class ResultsTextReport(object):
 for ptest in self.ptests:
 if len(ptest) > maxlen['ptest']:
 maxlen['ptest'] = len(ptest)
+for ltptest in self.ltptests:
+if len(ltptest) > maxlen['ltptest']:
+maxlen['ltptest'] = len(ltptest)
 output = template.render(reportvalues=reportvalues,
  havefailed=havefailed,
  haveptest=haveptest,
  ptests=self.ptests,
+ haveltp=haveltp,
+ ltptests=self.ltptests,
  maxlen=maxlen)
 print(output)
 
diff --git a/scripts/lib/resulttool/template/test_report_full_text.txt 
b/scripts/lib/resulttool/template/test_report_full_text.txt
index 590f35c..6ecd5bc 100644
--- 

[OE-core] [Warrior-next 18/27] resulttool: add LTP compliance section

2019-06-09 Thread Armin Kuster
Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 scripts/lib/resulttool/report.py   | 42 +-
 .../resulttool/template/test_report_full_text.txt  | 17 +
 2 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py
index a98f239..cb6b1cf 100644
--- a/scripts/lib/resulttool/report.py
+++ b/scripts/lib/resulttool/report.py
@@ -18,6 +18,7 @@ class ResultsTextReport(object):
 def __init__(self):
 self.ptests = {}
 self.ltptests = {}
+self.ltpposixtests = {}
 self.result_types = {'passed': ['PASSED', 'passed'],
  'failed': ['FAILED', 'failed', 'ERROR', 'error', 
'UNKNOWN'],
  'skipped': ['SKIPPED', 'skipped']}
@@ -82,6 +83,37 @@ class ResultsTextReport(object):
 if status in self.result_types[tk]:
 self.ltptests[suite][tk] += 1
 
+def handle_ltpposixtest_result(self, k, status, result):
+if k == 'ltpposixresult.sections':
+# Ensure tests without any test results still show up on the report
+for suite in result['ltpposixresult.sections']:
+if suite not in self.ltpposixtests:
+self.ltpposixtests[suite] = {'passed': 0, 'failed': 0, 
'skipped': 0, 'duration' : '-', 'failed_testcases': []}
+if 'duration' in result['ltpposixresult.sections'][suite]:
+self.ltpposixtests[suite]['duration'] = 
result['ltpposixresult.sections'][suite]['duration']
+return
+try:
+_, suite, test = k.split(".", 2)
+except ValueError:
+return
+# Handle 'glib-2.0'
+if 'ltpposixresult.sections' in result and suite not in 
result['ltpposixresult.sections']:
+try:
+_, suite, suite1, test = k.split(".", 3)
+if suite + "." + suite1 in result['ltpposixresult.sections']:
+suite = suite + "." + suite1
+except ValueError:
+pass
+if suite not in self.ltpposixtests:
+self.ltpposixtests[suite] = {'passed': 0, 'failed': 0, 'skipped': 
0, 'duration' : '-', 'failed_testcases': []}
+for tk in self.result_types:
+if status in self.result_types[tk]:
+self.ltpposixtests[suite][tk] += 1
+
+def get_aggregated_test_result(self, logger, testresult):
+test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 
'failed_testcases': []}
+def get_aggregated_test_result(self, logger, testresult):
+test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 
'failed_testcases': []}
 def get_aggregated_test_result(self, logger, testresult):
 test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 
'failed_testcases': []}
 def get_aggregated_test_result(self, logger, testresult):
@@ -98,6 +130,8 @@ class ResultsTextReport(object):
 self.handle_ptest_result(k, test_status, result)
 if k.startswith("ltpresult."):
 self.handle_ltptest_result(k, test_status, result)
+if k.startswith("ltpposixresult."):
+self.handle_ltpposixtest_result(k, test_status, result)
 return test_count_report
 
 def print_test_report(self, template_file_name, test_count_reports):
@@ -109,9 +143,10 @@ class ResultsTextReport(object):
 havefailed = False
 haveptest = bool(self.ptests)
 haveltp = bool(self.ltptests)
+haveltpposix = bool(self.ltpposixtests)
 reportvalues = []
 cols = ['passed', 'failed', 'skipped']
-maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 
'testseries' : 0, 'ptest' : 0 ,'ltptest': 0}
+maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 
'testseries' : 0, 'ptest' : 0 ,'ltptest': 0, 'ltpposixtest': 0}
 for line in test_count_reports:
 total_tested = line['passed'] + line['failed'] + line['skipped']
 vals = {}
@@ -133,12 +168,17 @@ class ResultsTextReport(object):
 for ltptest in self.ltptests:
 if len(ltptest) > maxlen['ltptest']:
 maxlen['ltptest'] = len(ltptest)
+for ltpposixtest in self.ltpposixtests:
+if len(ltpposixtest) > maxlen['ltpposixtest']:
+maxlen['ltpposixtest'] = len(ltpposixtest)
 output = template.render(reportvalues=reportvalues,
  havefailed=havefailed,
  haveptest=haveptest,
  ptests=self.ptests,
  haveltp=haveltp,
+ haveltpposix=haveltpposix,
  ltptests=self.ltptests,
+ ltpposixtests=self.ltpposixtests,
  

[OE-core] [Warrior-next 15/27] ltp_compliance: add new runtime

2019-06-09 Thread Armin Kuster
test runtimes in sec.
AIO: 14
MEM: 94
MSG: 89
SEM: 30
SIG: 194
THR: 399
TMR: 867
TPS: 23

Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/runtime/cases/ltp_compliance.py | 104 ++
 1 file changed, 104 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/ltp_compliance.py

diff --git a/meta/lib/oeqa/runtime/cases/ltp_compliance.py 
b/meta/lib/oeqa/runtime/cases/ltp_compliance.py
new file mode 100644
index 000..be9a9a3
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/ltp_compliance.py
@@ -0,0 +1,104 @@
+# LTP compliance runtime
+#
+# Copyright (c) 2019 MontaVista Software, LLC
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms and conditions of the GNU General Public License,
+# version 2, as published by the Free Software Foundation.
+#
+# This program is distributed in the hope it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+# more details.
+#
+
+import time
+import datetime
+import pprint
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+from oeqa.utils.logparser import LtpComplianceParser
+
+class LtpPosixBase(OERuntimeTestCase):
+
+@classmethod
+def setUpClass(cls):
+cls.ltp_startup()
+
+@classmethod
+def tearDownClass(cls):
+cls.ltp_finishup()
+
+@classmethod
+def ltp_startup(cls):
+cls.sections = {}
+cls.failmsg = ""
+test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
+timestamp = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
+
+cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpcomp_log')
+cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
+os.makedirs(cls.ltptest_log_dir)
+
+cls.tc.target.run("mkdir -p /opt/ltp/results")
+
+if not hasattr(cls.tc, "extraresults"):
+cls.tc.extraresults = {}
+cls.extras = cls.tc.extraresults
+cls.extras['ltpposixresult.rawlogs'] = {'log': ""}
+
+ 
+@classmethod
+def ltp_finishup(cls):
+cls.extras['ltpposixresult.sections'] =  cls.sections
+
+# update symlink to ltp_log
+if os.path.exists(cls.ltptest_log_dir_link):
+os.remove(cls.ltptest_log_dir_link)
+
+os.symlink(os.path.basename(cls.ltptest_log_dir), 
cls.ltptest_log_dir_link)
+
+if cls.failmsg:
+cls.fail(cls.failmsg)
+
+class LtpPosixTest(LtpPosixBase):
+posix_groups = ["AIO", "MEM", "MSG", "SEM", "SIG",  "THR", "TMR", "TPS"]
+
+def runltp(self, posix_group):
+cmd = "/opt/ltp/bin/run-posix-option-group-test.sh %s 2>@1 | tee 
/opt/ltp/results/%s" % (posix_group, posix_group)
+starttime = time.time()
+(status, output) = self.target.run(cmd)
+endtime = time.time()
+
+with open(os.path.join(self.ltptest_log_dir, "%s" % posix_group), 
'w') as f:
+f.write(output)
+
+self.extras['ltpposixresult.rawlogs']['log'] = 
self.extras['ltpposixresult.rawlogs']['log'] + output
+
+parser = LtpComplianceParser()
+results, sections  = 
parser.parse(os.path.join(self.ltptest_log_dir, "%s" % posix_group))
+
+runtime = int(endtime-starttime)
+sections['duration'] = runtime
+self.sections[posix_group] =  sections
+ 
+failed_tests = {}
+for test in results:
+result = results[test]
+testname = ("ltpposixresult." + posix_group + "." + test)
+self.extras[testname] = {'status': result}
+if result == 'FAILED':
+failed_tests[posix_group] = test 
+
+if failed_tests:
+self.failmsg = self.failmsg + "Failed ptests:\n%s" % 
pprint.pformat(failed_tests)
+
+# LTP Posix compliance runtime tests
+
+@OETestDepends(['ssh.SSHTest.test_ssh'])
+@OEHasPackage(["ltp"])
+def test_posix_groups(self):
+for posix_group in self.posix_groups: 
+self.runltp(posix_group)
-- 
2.7.4

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


[OE-core] [Warrior-next 14/27] ltp: add runtime test

2019-06-09 Thread Armin Kuster
This adds the framework for running ltp tests.

Here are some times:
math: 61
syscalls: 3957
dio: 18472
io: 29
mm: 551
ipc: 48
sched: 165
nptl: 46
pty: 37
containers: 52
controllers: 9625
filecaps: 27
cap_bounds: 27
fcntl-locktests: 29
connectors: 27
timers: 37
commands: 165
net.ipv6_lib: 30
input: 29
fs_perms_simple: 31
fs: 3476
fsx: 30
fs_bind: 28
fs_ext4: 28
cve: 675

Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oeqa/runtime/cases/ltp.py | 124 +
 1 file changed, 124 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/ltp.py

diff --git a/meta/lib/oeqa/runtime/cases/ltp.py 
b/meta/lib/oeqa/runtime/cases/ltp.py
new file mode 100644
index 000..628494e
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/ltp.py
@@ -0,0 +1,124 @@
+# LTP runtime
+#
+# Copyright (c) 2019 MontaVista Software, LLC
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms and conditions of the GNU General Public License,
+# version 2, as published by the Free Software Foundation.
+#
+# This program is distributed in the hope it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+# more details.
+#
+import time
+import datetime
+import pprint
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+from oeqa.utils.logparser import LtpParser
+
+class LtpTestBase(OERuntimeTestCase):
+
+@classmethod
+def setUpClass(cls):
+cls.ltp_startup()
+
+@classmethod
+def tearDownClass(cls):
+cls.ltp_finishup()
+
+@classmethod
+def ltp_startup(cls):
+cls.sections = {}
+cls.failmsg = ""
+test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
+timestamp = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
+
+cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltp_log')
+cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
+os.makedirs(cls.ltptest_log_dir)
+
+cls.tc.target.run("mkdir -p /opt/ltp/results")
+
+if not hasattr(cls.tc, "extraresults"):
+cls.tc.extraresults = {}
+cls.extras = cls.tc.extraresults
+cls.extras['ltpresult.rawlogs'] = {'log': ""}
+
+ 
+@classmethod
+def ltp_finishup(cls):
+cls.extras['ltpresult.sections'] =  cls.sections
+
+# update symlink to ltp_log
+if os.path.exists(cls.ltptest_log_dir_link):
+os.remove(cls.ltptest_log_dir_link)
+os.symlink(os.path.basename(cls.ltptest_log_dir), 
cls.ltptest_log_dir_link)
+
+if cls.failmsg:
+cls.fail(cls.failmsg)
+
+class LtpTest(LtpTestBase):
+
+ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", 
"nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", 
"fcntl-locktests", "connectors","timers", "commands", "net.ipv6_lib", 
"input","fs_perms_simple"]
+
+ltp_fs = ["fs", "fsx", "fs_bind", "fs_ext4"]
+# skip kernel cpuhotplug
+ltp_kernel = ["power_management_tests", "hyperthreading ", "kernel_misc", 
"hugetlb"]
+ltp_groups += ltp_fs
+
+def runltp(self, ltp_group):
+cmd = '/opt/ltp/runltp -f %s -p -q -r /opt/ltp -l 
/opt/ltp/results/%s -I 1 -d /opt/ltp' % (ltp_group, ltp_group)
+starttime = time.time()
+(status, output) = self.target.run(cmd)
+endtime = time.time()
+
+with open(os.path.join(self.ltptest_log_dir, "%s-raw.log" % 
ltp_group), 'w') as f:
+f.write(output)
+
+self.extras['ltpresult.rawlogs']['log'] = 
self.extras['ltpresult.rawlogs']['log'] + output
+
+# copy nice log from DUT
+dst = os.path.join(self.ltptest_log_dir, "%s" %  ltp_group )
+remote_src = "/opt/ltp/results/%s" % ltp_group 
+(status, output) = self.target.copyFrom(remote_src, dst)
+msg = 'File could not be copied. Output: %s' % output
+self.assertEqual(status, 0, msg=msg)
+
+parser = LtpParser()
+results, sections  = parser.parse(dst)
+
+runtime = int(endtime-starttime)
+sections['duration'] = runtime
+self.sections[ltp_group] =  sections
+
+failed_tests = {}
+for test in results:
+result = results[test]
+testname = ("ltpresult." + ltp_group + "." + test)
+self.extras[testname] = {'status': result}
+if result == 'FAILED':
+failed_tests[ltp_group] = test 
+
+if failed_tests:
+self.failmsg = self.failmsg + "Failed ptests:\n%s" % 
pprint.pformat(failed_tests)
+
+# LTP runtime tests
+

[OE-core] [Warrior-next 13/27] linux-yocto: ptest: Add SCSI debug configuration for util-linux

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Bumping the SRCREVs to pickup the following configuration tweak for
ptest usage:

  Author: Mariano López 
  Date:   Sat Jun 1 17:30:46 2019 -0500

  Add SCSI debug configuration for util-linux ptest

  The ptests from util-linux require the scsi debug module to be installed
  for a subset of tests. This patch would allow to build the kernel module
  for the linux-yocto kernel.

  Signed-off-by: Mariano López 

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb| 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.19.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb  | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.19.bb  | 2 +-
 meta/recipes-kernel/linux/linux-yocto_5.0.bb   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb
index ef1d2a5..6604bdf 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "4dbcaca4c9ff89e866d2b5d01df005f317c618a4"
-SRCREV_meta ?= "6e8033d26894b07e17c48abb5951cc3d4dd9b2a9"
+SRCREV_meta ?= "ad235db461bf4595c668700ca8a909c322009cc1"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.19;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
index e1d2b2e..1fe28b1 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "9c1e84c9b81b6bf1df55f26f2e0517266c37f7eb"
-SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
+SRCREV_meta ?= "31de88e51d100f2c3eefb7acb7390b0144bcfc69"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.19.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.19.bb
index 22aac72..4ca11d7 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.19.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.19.bb
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "a3cd9d732b27e78f94634924b7232b6280dae002"
 SRCREV_machine ?= "f0c6c85e155632580bd44a5db01cbb19dcc1559c"
-SRCREV_meta ?= "6e8033d26894b07e17c48abb5951cc3d4dd9b2a9"
+SRCREV_meta ?= "ad235db461bf4595c668700ca8a909c322009cc1"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
index 7024d70..a9c463c 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "fabee455f397ba8054f35a3ad5f2250bbad93bef"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
+SRCREV_meta ?= "31de88e51d100f2c3eefb7acb7390b0144bcfc69"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.19.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.19.bb
index c6f5f0f..a5fdafe 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.19.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.19.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"f0c6c85e155632580bd44a5db01cbb19dcc1559c"
 SRCREV_machine_qemux86-64 ?= "f0c6c85e155632580bd44a5db01cbb19dcc1559c"
 SRCREV_machine_qemumips64 ?= "d9c77fe2a6038848fbadd660882b78e590c3252e"
 SRCREV_machine ?= "f0c6c85e155632580bd44a5db01cbb19dcc1559c"
-SRCREV_meta ?= "6e8033d26894b07e17c48abb5951cc3d4dd9b2a9"
+SRCREV_meta ?= "ad235db461bf4595c668700ca8a909c322009cc1"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.19;destsuffix=${KMETA}
 \
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
index 214e83b..da795d9 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemux86-64 ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemumips64 ?= "5a8b27bcc0b16077ab8edfcd3fb25c80dc2c652e"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
+SRCREV_meta ?= 

[OE-core] [Warrior-next 12/27] lib/oe/reciputils.py: support character `+' in git pv

2019-06-09 Thread Armin Kuster
From: Hongxu Jia 

While pv contains char `+' (such as ncurses 6.1+20181013),
it was incorrectly converted to `6.1'

In this commit:
- Convert [^\+]* to .*?
  Support pv to contain char `+' and not greedy match
  (Such as ncurses 6.1+20181013)

- Add [^\+] to sfx match
  Support sfx contains extra chars between `+' and `git'
  (such as asciidoc "8.6.9+py3-gitAUTOINC+618f6e6f6b")

- Make sfx and rev greedy match

Run `devtool check-upgrade-status --all' in poky and compare results,
only one difference on ncurses version:
Without the commit:
INFO: ncurses   6.1 6.1+20181013Hongxu Jia 
 7a97a7f937762ba342d5b2fd7cd090885a809835

With the commit:
INFO: ncurses   6.1+20181013MATCH   Hongxu Jia 
 7a97a7f937762ba342d5b2fd7cd090885a809835

Signed-off-by: Hongxu Jia 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/lib/oe/recipeutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 4ca200d..874b99b 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -932,7 +932,7 @@ def get_recipe_pv_without_srcpv(pv, uri_type):
 sfx = ''
 
 if uri_type == 'git':
-git_regex = 
re.compile(r"(?Pv?)(?P[^\+]*)((?P\+(git)?r?(AUTOINC\+))(?P.*))?")
+git_regex = 
re.compile(r"(?Pv?)(?P.*?)(?P\+[^\+]*(git)?r?(AUTOINC\+))(?P.*)")
 m = git_regex.match(pv)
 
 if m:
-- 
2.7.4

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


[OE-core] [Warrior-next 11/27] linux-yocto/5.0: fix systemtap on arm

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

The following commit is part of 5.0.17+:

ARM: fix function graph tracer and unwinder dependencies

[ Upstream commit 503621628b32782a07b2318e4112bd4372aa3401 ]

Naresh Kamboju recently reported that the function-graph tracer crashes
on ARM. The function-graph tracer assumes that the kernel is built with
frame pointers.

We explicitly disabled the function-graph tracer when building Thumb2,
since the Thumb2 ABI doesn't have frame pointers.

We recently changed the way the unwinder method was selected, which
seems to have made it more likely that we can end up with the function-
graph tracer enabled but without the kernel built with frame pointers.

Fix up the function graph tracer dependencies so the option is not
available when we have no possibility of having frame pointers, and
adjust the dependencies on the unwinder option to hide the non-frame
pointer unwinder options if the function-graph tracer is enabled.

Reviewed-by: Masami Hiramatsu 
Tested-by: Masami Hiramatsu 
Signed-off-by: Russell King 
Signed-off-by: Sasha Levin 

As such, we no longer have UNWINDER_ARM enabled in our ARM builds by
default, since we do have FUNCTION_GRAPH_TRACER enabled in the common
ftrace configuration.

We disable FUNCTION_GRAPH_TRACER for ARM, which allows UNWINDER_ARM to
remain enabled and hence systemtap work out of the box for our ARM
reference builds. Obviously, BSPs or other users of the fragments can
make a different decision, but we chose unwinder to be on by default.

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_5.0.bb  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
index 2249feb..e1d2b2e 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "9c1e84c9b81b6bf1df55f26f2e0517266c37f7eb"
-SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
+SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
index 0c24070..7024d70 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "fabee455f397ba8054f35a3ad5f2250bbad93bef"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
+SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
index 0510187..214e83b 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemux86-64 ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemumips64 ?= "5a8b27bcc0b16077ab8edfcd3fb25c80dc2c652e"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
+SRCREV_meta ?= "ff7928637fcdf5a7176a2f735f8cb21cd0f4b219"
 
 # remap qemuarm to qemuarma15 for the 5.0 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
-- 
2.7.4

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


[OE-core] [Warrior-next 09/27] linux-yocto/5.0: update to v5.0.19

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Integrating the korg -stable updates that comprise the following
commits:

   3f7c1cab1a61 Linux 5.0.19
   64d314bd8cc8 fbdev: sm712fb: fix memory frequency by avoiding a switch/case 
fallthrough
   e5c6d75b0f03 bpf, lru: avoid messing with eviction heuristics upon syscall 
lookup
   b5f95aa7a88b bpf: add map_lookup_elem_sys_only for lookups from syscall side
   d811930f74ac bpf: relax inode permission check for retrieving bpf program
   ca7ef7e3ddfa driver core: Postpone DMA tear-down until after devres release 
for probe failure
   bad4fbe76cfb md/raid: raid5 preserve the writeback action after the parity 
check
   3770eb3721be Revert "Don't jump to compute_result state from check_result 
state"
   07116a6548c8 perf/x86/intel: Fix race in intel_pmu_disable_event()
   58d1e074c742 perf cs-etm: Always allocate memory for 
cs_etm_queue::prev_packet
   cd448c27b08e perf bench numa: Add define for RUSAGE_THREAD if not present
   7325696ce261 i2c: designware: ratelimit 'transfer when suspended' errors
   8258661858d5 ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
   5b73764a5d2c KVM: selftests: make hyperv_cpuid test pass on AMD
   fb654d0763c8 KVM: fix KVM_CLEAR_DIRTY_LOG for memory slots of unaligned size
   497ce5c7f538 x86/mm/mem_encrypt: Disable all instrumentation for early SME 
setup
   96f0be982c8a sched/cpufreq: Fix kobject memleak
   2a9605f177f8 iwlwifi: mvm: check for length correctness in 
iwl_mvm_create_skb()
   df5eba5f41be qmi_wwan: new Wistron, ZTE and D-Link devices
   bd61ddd3e9fc bpf: Fix preempt_enable_no_resched() abuse
   bd3713424a01 tools: bpftool: fix infinite loop in map create
   1e61a219090f power: supply: sysfs: prevent endless uevent loop with 
CONFIG_POWER_SUPPLY_DEBUG
   e6ae43922897 KVM: arm/arm64: Ensure vcpu target is unset on reset failure
   5450811a02f5 net: ieee802154: fix missing checks for regmap_update_bits
   15f64f420bae mac80211: Fix kernel panic due to use of txq after free
   eff6d5429bd2 x86: kvm: hyper-v: deal with buggy TLB flush requests from 
WS2012
   48be4d7ced2c PCI: Fix issue with "pci=disable_acs_redir" parameter being 
ignored
   fa42fde1f8e6 apparmorfs: fix use-after-free on symlink traversal
   cf0259f7662a securityfs: fix use-after-free on symlink traversal
   04aa8a51e723 power: supply: cpcap-battery: Fix division by zero
   38a725dd0be7 KVM: PPC: Book3S: Protect memslots while validating user address
   eec0c746757b KVM: PPC: Book3S HV: Perserve PSSCR FAKE_SUSPEND bit on guest 
exit
   f3adb80bb243 clk: sunxi-ng: nkmp: Avoid GENMASK(-1, 0)
   791746a758e7 ARC: PAE40: don't panic and instead turn off hw ioc
   30bd4585bf14 xfrm4: Fix uninitialized memory read in _decode_session4
   79fad8fd2b76 xfrm: Honor original L3 slave device in xfrmi policy lookup
   ff7fa2c801bc esp4: add length check for UDP encapsulation
   4e8ce2680442 xfrm: clean up xfrm protocol checks
   6c0db1cbf772 vti4: ipip tunnel deregistration fixes.
   f8a427ca50d6 xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel 
module
   70a87327025a xfrm: Reset secpath in xfrm failure
   9531aac1ee3e xfrm: policy: Fix out-of-bound array accesses in 
__xfrm_policy_unlink
   07a573c046c0 fuse: Add FOPEN_STREAM to use stream_open()
   560c6fd312c9 dm mpath: always free attached_handler_name in parse_path()
   96ecf4c59f08 dm integrity: correctly calculate the size of metadata area
   ecff1441aa15 dm crypt: move detailed message into debug level
   862a78341ade dm delay: fix a crash when invalid device is specified
   fab2e96c6be0 dm zoned: Fix zone report handling
   ef3f84246954 dm cache metadata: Fix loading discard bitset
   6c412dc3b757 PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum
   d06a30b1a957 PCI: Factor out pcie_retrain_link() function
   4f22ec9f0c28 PCI: rcar: Add the initialization of PCIe link in resume_noirq()
   fbd9c6ef0dfc PCI/AER: Change pci_aer_init() stub to return void
   be361ee757b8 PCI: Init PCIe feature bits for managed host bridge alloc
   adb00a68d2dd PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary
   2e4017e3ddfd PCI: Mark Atheros AR9462 to avoid bus reset
   4ddfb43373ca PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken
   1fbec8aa02f3 fbdev: sm712fb: fix crashes and garbled display during DPMS 
modesetting
   620a97786fd6 fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix 
garbled display
   b2adbace369e fbdev: sm712fb: fix support for 1024x768-16 mode
   d119b4a43e53 fbdev: sm712fb: fix crashes during framebuffer writes by 
correctly mapping VRAM
   39045ad5a808 fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
   4badede3e74b fbdev: sm712fb: fix white screen of death on reboot, don't set 
CR3B-CR3F
   62463c4661f1 fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
   2a5d31230505 fbdev: sm712fb: fix brightness control on reboot, don't set SR30
   cfe31930dac8 fbdev/efifb: Ignore framebuffer memmap entries that lack any 
memory types
   a816dc52fe77 

[OE-core] [Warrior-next 10/27] linux-yocto-rt/5.0: update to -rt11

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Updating the 5.0 -rt to -rt11, which comprises the following commits:

   9c1e84c9b81b v5.0.19-rt11
   c4258b70deda workqueue: rework
   2a0f03c9daff softirq: rework
   cb38c9a00313 Revert "drm/i915/fence: Do not use TIMER_IRQSAFE"
   0ffa8402bf10 clocksource: TCLIB: Add proper depend
   6a2ecc186d9a arm: imx6: cpuidle: Use raw_spinlock_t
   c302271409c2 locking/lockdep: Don't complain about incorrect name for no 
validate class
   4042bcac2c90 v5.0.19-rt10
   d6ad4a85a911 genirq: Handle missing work_struct in 
irq_set_affinity_notifier()

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb   | 4 ++--
 meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_5.0.bb  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
index b8ca4a2..2249feb 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
@@ -11,8 +11,8 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "9376c193ebe7db89847195a749c2a200a1273c33"
-SRCREV_meta ?= "9262e21627a82956fb85eef0024135ce5179c73b"
+SRCREV_machine ?= "9c1e84c9b81b6bf1df55f26f2e0517266c37f7eb"
+SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
index b3bb1f4..0c24070 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "fabee455f397ba8054f35a3ad5f2250bbad93bef"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "9262e21627a82956fb85eef0024135ce5179c73b"
+SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
index 1b2224d..0510187 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.0.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemux86-64 ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
 SRCREV_machine_qemumips64 ?= "5a8b27bcc0b16077ab8edfcd3fb25c80dc2c652e"
 SRCREV_machine ?= "00638cdd8f92869a0f89ebe3289fdbd856ba9458"
-SRCREV_meta ?= "9262e21627a82956fb85eef0024135ce5179c73b"
+SRCREV_meta ?= "d4b67d66fd9d40e4ec149500f57b991c83362a17"
 
 # remap qemuarm to qemuarma15 for the 5.0 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
-- 
2.7.4

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


[OE-core] [Warrior-next 08/27] linux-yocto-rt/5.0: update to -rt9

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Updating linux-yocto-rt to -rt9, which comprises the following commits:

   cc66f1b95af7 (HEAD -> v5.0/standard/preempt-rt/base) v5.0.14-rt9
   96957f0ca4a4 sched/completion: Fix a lockup in wait_for_completion()
   7108dfc6c002 iommu/dma-iommu: Remove iommu_dma_map_msi_msg()
   50e9a302a12e irqchip/gic-v3-mbi: Don't map the MSI page in mbi_compose_m{b, 
s}i_msg()
   4a4c41f25d90 irqchip/ls-scfg-msi: Don't map the MSI page in 
ls_scfg_msi_compose_msg()
   e6549dc52874 irqchip/gic-v3-its: Don't map the MSI page in 
its_irq_compose_msi_msg()
   21ab1a505f71 irqchip/gicv2m: Don't map the MSI page in 
gicv2m_compose_msi_msg()
   5c7e7ee1155f iommu/dma-iommu: Split iommu_dma_map_msi_msg() in two parts
   ed562a120218 genirq/msi: Add a new field in msi_desc to store an IOMMU cookie
   8269017c7c71 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   834de13e9df3 v5.0.14-rt8
   60a1f2741b0b v5.0.10-rt7
   5cbcfdaf619f clocksource: improve Atmel TCB timer driver
   dde28bc12270 x86/ima: Check EFI_RUNTIME_SERVICES before using
   c02d0b49cf87 printk: kmsg_dump: remove mutex usage
   b4ccebf15704 locking/rwsem: Rename rwsem_rt.h to rwsem-rt.h
   d5758ba7a93e x86/fpu: Remove unnecessary saving of FPU registers in 
copy_fpstate_to_sigframe()
   e16351073c50 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   14ff99cb7d48 v5.0.10-rt6
   843445383127 v5.0.7-rt5
   e886711e0449 drm/i915: Don't disable interrupts independently of the lock
   69e41e29c6ad clocksource: improve Atmel TCB timer driver
   c2e266f415d0 x86: load FPU registers on return to userland (Update to v9)
   4be2fd56d44f v5.0.7-rt4
   6fb29acc8efe (origin/v5.0/standard/preempt-rt/base) genirq: Prevent 
use-after-free and work list corruption on rt

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
index 69c5909..36db6b6 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb
@@ -11,7 +11,7 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "7365aab1a7b980f7d81b37f96841cbe88a306b7e"
+SRCREV_machine ?= "cc66f1b95af7b75d25b0155203df9db801273fd2"
 SRCREV_meta ?= "2bc19ce252b1ce753056b32c55f55f515698b42a"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
-- 
2.7.4

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


[OE-core] [Warrior-next 07/27] linux-yocto/5.0: update to v5.0.17

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Integrating the korg -stable commits that comprise the following
changes:

   d59f5a01fa43 Linux 5.0.17
   ba686f90778b f2fs: Fix use of number of devices
   78b8c59eee72 PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), 
if necessary
   f20f463b32bc PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   d3a9cd23b172 PCI: hv: Fix a memory leak in hv_eject_device_work()
   7f9572e798ea virtio_ring: Fix potential mem leak in 
virtqueue_add_indirect_packed
   ba81b50090a4 powerpc/booke64: set RI in default MSR
   0da52ad69b37 powerpc/powernv/idle: Restore IAMR after idle
   d314437d17ad powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   79e981a8503f drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   1a84219f73b2 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in 
ioctl
   8b8fc62b6c67 isdn: bas_gigaset: use usb_fill_int_urb() properly
   12786188dcf3 flow_dissector: disable preemption around BPF calls
   39f7b3941969 net: phy: fix phy_validate_pause
   4a91e5e4c58f tuntap: synchronize through tfiles array instead of 
tun->numqueues
   e0630246658a tuntap: fix dividing by zero in ebpf queue selection
   92edcf205388 vrf: sit mtu should not be updated when vrf netdev is the link
   13d54150e746 vlan: disable SIOCSHWTSTAMP in container
   83c25477e944 tipc: fix hanging clients using poll with EPOLLOUT flag
   be6a9818866d selinux: do not report error on connect(AF_UNSPEC)
   c3954f8f5a7e packet: Fix error path in packet_init
   7bc936f4f226 net: ucc_geth - fix Oops when changing number of buffers in the 
ring
   57ee33b48190 net: seeq: fix crash caused by not set dev.parent
   224b04c9e028 net: macb: Change interrupt and napi enable order in open
   a3bf31d7ffb2 net: ethernet: stmmac: dwmac-sun8i: enable support of unicast 
filtering
   261a8958a57e net: dsa: Fix error cleanup path in dsa_init_module
   2f679c41821f ipv4: Fix raw socket lookup for local traffic
   f8351176aed6 fib_rules: return 0 directly if an exactly same rule exists 
when NLM_F_EXCL not supplied
   e4607de103ba dpaa_eth: fix SG frame cleanup
   430a64f6fa2c bridge: Fix error path for kobject_init_and_add()
   69798384ba38 bonding: fix arp_validate toggling in active-backup mode
   d3ff0184ebd2 Don't jump to compute_result state from check_result state
   843135c1ce1e rtlwifi: rtl8723ae: Fix missing break in switch statement
   14654a1f2e2b mwl8k: Fix rate_idx underflow
   202436fe0810 cw1200: fix missing unlock on error in cw1200_hw_scan()
   92a9787bb38c drm/rockchip: fix for mailbox read validation.
   5b4ef3c5faf9 net: mvpp2: fix validate for PPv2.1
   45e1075e04cb net: sched: fix cleanup NULL pointer exception in act_mirr
   4b84cde61ce9 bpf: only test gso type on gso packets
   073d8f286f34 mm/page_alloc.c: avoid potential NULL pointer dereference
   61fadd8a5000 mm/memory_hotplug.c: drop memory device reference after 
find_memory_block()
   59c58e43e80f RDMA/hns: Bugfix for mapping user db
   26f70c4e0aef gpio: Fix gpiochip_add_data_with_key() error path
   fb53ebc9eb9a net: vrf: Fix operation not supported when set vrf mac
   ec69b3c91b3b Input: synaptics-rmi4 - fix possible double free
   6a2abf951ed3 Input: snvs_pwrkey - make it depend on ARCH_MXC
   21a3f7c2c76c drm/sun4i: Unbind components before releasing DRM and memory
   f79084e5372b Revert "drm/virtio: drop prime import/export callbacks"
   2455f6cbd19b ceph: handle the case where a dentry has been renamed on 
outstanding req
   d3a9275364d9 spi: ST ST95HF NFC: declare missing of table
   943609acd628 spi: Micrel eth switch: declare missing of table
   4c6df58231f8 ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when 
MPU is disabled
   dc41fe5d6fb5 ARM: fix function graph tracer and unwinder dependencies
   0cb06e339cee drm/imx: don't skip DP channel disable for background plane
   7680e881fdaa gpu: ipu-v3: dp: fix CSC handling
   28e4593bb148 arm64/module: ftrace: deal with place relative nature of PLTs
   d0f8faa2f540 dmaengine: bcm2835: Avoid GFP_KERNEL in device_prep_slave_sg
   d4dc7d99b111 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   ddb632889fae netfilter: never get/set skb->tstamp
   226ef4f27a45 selftests/net: correct the return value for run_afpackettests
   1a20185157b5 selftests/net: correct the return value for run_netsocktests
   2d83e90c2375 of_net: Fix residues after of_get_nvmem_mac_address removal
   7ba51c0e84b3 drm/sun4i: Fix component unbinding and component master deletion
   3000bdec55c8 drm/sun4i: Set device driver data at bind time for use in unbind
   1330679d64f8 s390: ctcm: fix ctcm_new_device error return code
   143c8279955e IB/mlx5: Fix scatter to CQE in DCT QP creation
   b3a64096c5ee MIPS: perf: ath79: Fix perfcount IRQ assignment
   ecef50c35a07 netfilter: nat: fix icmp id randomization
   c2987d193f8b netfilter: nf_tables: prevent shift wrap in 
nft_chain_parse_hook()
   b0a90cae081d netfilter: ctnetlink: don't use 

[OE-core] [Warrior-next 06/27] kernel: package modules.builtin.modinfo

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

As of commit 898490c010b [moduleparam: Save information about built-in
modules in separate file] (kernels v5.2-rc1+), modules.builtin.modinfo
is generated as part of the kernel build process.

We package it along with the other module artifacts, so it can be used
by scripts/other build steps.

Signed-off-by: Bruce Ashfield 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 437b8c7..111a0b2 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -558,7 +558,7 @@ EXPORT_FUNCTIONS do_compile do_install do_configure
 # kernel-image becomes kernel-image-${KERNEL_VERSION}
 PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base 
${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image 
${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules"
 FILES_${PN} = ""
-FILES_${KERNEL_PACKAGE_NAME}-base = 
"${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order 
${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin"
+FILES_${KERNEL_PACKAGE_NAME}-base = 
"${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order 
${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin 
${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
 FILES_${KERNEL_PACKAGE_NAME}-image = ""
 FILES_${KERNEL_PACKAGE_NAME}-dev = "/boot/System.map* /boot/Module.symvers* 
/boot/config* ${KERNEL_SRC_PATH} 
${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
 FILES_${KERNEL_PACKAGE_NAME}-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}"
-- 
2.7.4

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


[OE-core] [Warrior-next 05/27] linux-yocto/4.19: update to v4.19.44

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Integrating the korg -stable updates that comprise the following
commits:

   dafc674bbcb1 Linux 4.19.44
   9fa23ea14e8f PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), 
if necessary
   76888d135c4e PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   a47e0054253f PCI: hv: Fix a memory leak in hv_eject_device_work()
   4179b8580219 powerpc/booke64: set RI in default MSR
   71b20cdb4353 powerpc/powernv/idle: Restore IAMR after idle
   69c2b71cb0c1 powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   e9ec5073c90d drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   ee3b53d89967 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in 
ioctl
   afa485dc6f17 tipc: fix hanging clients using poll with EPOLLOUT flag
   98652e0b0a1b isdn: bas_gigaset: use usb_fill_int_urb() properly
   17d8a9ebaa99 tuntap: synchronize through tfiles array instead of 
tun->numqueues
   9c79732f98a8 tuntap: fix dividing by zero in ebpf queue selection
   737713e6d835 vrf: sit mtu should not be updated when vrf netdev is the link
   e38406070729 vlan: disable SIOCSHWTSTAMP in container
   dfdfad3d188f selinux: do not report error on connect(AF_UNSPEC)
   9f51d6f72063 packet: Fix error path in packet_init
   2e95eb9c92f7 net: ucc_geth - fix Oops when changing number of buffers in the 
ring
   210057b79e71 net: seeq: fix crash caused by not set dev.parent
   dfd919285f27 net: macb: Change interrupt and napi enable order in open
   68df8383f3ca net: ethernet: stmmac: dwmac-sun8i: enable support of unicast 
filtering
   9284895b7ee6 net: dsa: Fix error cleanup path in dsa_init_module
   da2e770f0c4a ipv4: Fix raw socket lookup for local traffic
   947fec630c41 fib_rules: return 0 directly if an exactly same rule exists 
when NLM_F_EXCL not supplied
   c7b5e55be825 dpaa_eth: fix SG frame cleanup
   a79feef32392 bridge: Fix error path for kobject_init_and_add()
   9c2cda31196a bonding: fix arp_validate toggling in active-backup mode
   0dc9ad4e904d powerpc/64s: Include cpu header
   db1b4aa651df um: Don't hardcode path as it is architecture dependent
   85f347944a6b Don't jump to compute_result state from check_result state
   ace28a8efdd4 rtlwifi: rtl8723ae: Fix missing break in switch statement
   d756d1dea670 mwl8k: Fix rate_idx underflow
   c300c98a94b4 cw1200: fix missing unlock on error in cw1200_hw_scan()
   575260507647 x86/kprobes: Avoid kretprobe recursion bug
   322a57551d06 nfc: nci: Potential off by one in ->pipes[] array
   f5e60565e6bd NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   21e9515b7d16 net: strparser: partially revert "strparser: Call skb_unclone 
conditionally"
   85b9e8694f9c net/tls: fix the IV leaks
   e38c6748d1cc mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   835ae6cc28d9 mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered 
workqueue
   880a328e197b mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   a80f62f781c2 mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   fb7c783b3139 net: fec: manage ahb clock in runtime pm
   c18731c2786c netfilter: nf_tables: add missing ->release_ops() in error path 
of newrule()
   5014aa937422 netfilter: nf_tables: use-after-free in dynamic operations
   9965da064e9a usb: typec: Fix unchecked return value
   68321994225d mm/memory.c: fix modifying of page protection by insert_pfn()
   bc3361461fcb net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
   19f4f94fdb2a powerpc/smp: Fix NMI IPI xmon timeout
   f8bd34d1d399 powerpc/smp: Fix NMI IPI timeout
   6a60fb62c82a mm/memory_hotplug.c: drop memory device reference after 
find_memory_block()
   fb67c97c4e2f RDMA/hns: Bugfix for mapping user db
   afc7ce5e Input: synaptics-rmi4 - fix possible double free
   f621bc1bd7f4 drm/sun4i: Unbind components before releasing DRM and memory
   21b71e191bd8 spi: ST ST95HF NFC: declare missing of table
   09185e359827 spi: Micrel eth switch: declare missing of table
   3835cb5a911f ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when 
MPU is disabled
   521ae4da71cc drm/imx: don't skip DP channel disable for background plane
   df3a97d197a3 gpu: ipu-v3: dp: fix CSC handling
   3a53fa469d60 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   5bc3d4491821 selftests/net: correct the return value for run_netsocktests
   24b1c849ce9d drm/sun4i: Fix component unbinding and component master deletion
   1973df1ec5bc drm/sun4i: Set device driver data at bind time for use in unbind
   005325b7f026 s390: ctcm: fix ctcm_new_device error return code
   ca8648816e3d MIPS: perf: ath79: Fix perfcount IRQ assignment
   743a5a951d4d netfilter: nf_tables: prevent shift wrap in 
nft_chain_parse_hook()
   7b115755fb9d netfilter: ctnetlink: don't use conntrack/expect object 
addresses as id
   4e1994ef6365 ipvs: do not schedule icmp errors from tunnels
   cb9a11d017c6 selftests: netfilter: check icmp pkttoobig errors are set as 
related
   

[OE-core] [Warrior-next 04/27] linux-yocto/4.19: update to v4.19.40

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Updating to the latest -stable release which comprises the following
changes:

   1656b1457209 Linux 4.19.40
   cc313d405b0c ath10k: Drop WARN_ON()s that always trigger during system resume
   d0a5000f10e7 ALSA: line6: use dynamic buffers
   68d49ff47789 KVM: nVMX: Fix size checks in vmx_set_nested_state
   499bbe739d5a KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   d0771bd41c27 net/tls: fix copy to fragments in reencrypt
   dd424182bc2d net/tls: don't copy negative amounts of data in reencrypt
   f1fd68e93409 bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   396350737326 bnxt_en: Free short FW command HWRM memory in error path in 
bnxt_init_one()
   09a921361353 bnxt_en: Improve multicast address setup logic.
   6a57fa6fa7d5 packet: validate msg_namelen in send directly
   7a42cf4dfa43 selftests: fib_rule_tests: print the result and return 1 if any 
tests failed
   b563e9bbabfe sctp: avoid running the sctp state machine recursively
   fdd36abd9d09 rxrpc: Fix net namespace cleanup
   a976384b9553 net/tls: avoid NULL pointer deref on nskb->sk in fallback
   1d412d873a12 net: phy: marvell: Fix buffer overrun with stats counters
   b48a0a1207e9 net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   485f382f2c6d l2tp: use rcu_dereference_sk_user_data() in 
l2tp_udp_encap_recv()
   e571a33963f4 l2ip: fix possible use-after-free
   f78ec0cd0664 ipv6: invert flowlabel sharing check in process and user mode
   39eddbb7cab3 ipv6/flowlabel: wait rcu grace period before put_pid()
   1a9e0134af40 ipv6: fix races in ip6_dst_destroy()
   7ea4f000c41f ipv6: A few fixes on dereferencing rt->from
   3f611a479962 ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   ad119c970bbe Linux 4.19.39
   ee096f0dc4a4 leds: trigger: netdev: use memcpy in device_name_store
   2663959af22c leds: pca9532: fix a potential NULL pointer dereference
   13a6a6dd3c11 ptrace: take into account saved_sigmask in 
PTRACE{GET,SET}SIGMASK
   71f3397a1c31 iommu/amd: Reserve exclusion range in iova-domain
   75a5e3e6340c kconfig/[mn]conf: handle backspace (^H) key
   458a65c71029 perf machine: Update kernel map address and re-order properly
   60d3b51d05a7 nvme-multipath: relax ANA state check
   a918af5b6fd8 gpio: of: Fix of_gpiochip_add() error path
   43dba153d52b libata: fix using DMA buffers on stack
   6a364b2e47a6 x86/mm: Don't exceed the valid physical address space
   a138f995ab84 scsi: zfcp: reduce flood of fcrscn1 trace records on 
multi-element RSCN
   97c4f3a8853c ceph: fix use-after-free on symlink traversal
   90ce58d457c2 usb: u132-hcd: fix resource leak
   fe71e625e23f x86/realmode: Don't leak the trampoline kernel address
   04cac1dce923 leds: trigger: netdev: fix refcnt leak on interface rename
   0018c21f34d6 usb: usb251xb: fix to avoid potential NULL pointer dereference
   4135e588274e scsi: qla4xxx: fix a potential NULL pointer dereference
   a2b302e4f2fb scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   2c8c8ef8d3b4 scsi: mpt3sas: Fix kernel panic during expander reset
   6222f1c6ed97 ARM: davinci: fix build failure with allnoconfig
   5d545dde8d9d drm/meson: Uninstall IRQ handler
   efa69a66697c drm/meson: Fix invalid pointer in meson_drv_unbind()
   c87a5086d354 gpio: aspeed: fix a potential NULL pointer dereference
   c5eb9a424ebd drm: Fix drm_release() and device unplug
   11242181f52f net: ethernet: ti: fix possible object reference leak
   ae6e6bbc1741 net: ibm: fix possible object reference leak
   b9c8db41912f net: xilinx: fix possible object reference leak
   b989a3e9d260 NFS: Fix a typo in nfs_init_timeout_values()
   e0c34051669c drm/tegra: hub: Fix dereference before check
   abd76731f899 ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi
   2b0e6d6bf088 net/sched: don't dereference a->goto_chain to read the chain 
index
   b435a79e5a87 net: macb: Add null check for PCLK and HCLK
   f85682bc594a staging: rtlwifi: Fix potential NULL pointer dereference of 
kzalloc
   c5750b45e406 staging: rtl8712: uninitialized memory in read_bbreg_hdl()
   5a5f1decd6fc staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer 
dereference
   d55bfd0746ae staging: rtl8188eu: Fix potential NULL pointer dereference of 
kcalloc
   bfa4cd06a902 net: ks8851: Set initial carrier state to down
   3796ab4828ed net: ks8851: Delay requesting IRQ until opened
   3005509f88e3 net: ks8851: Reassert reset pin if chip ID check fails
   fb6ca157d738 net: ks8851: Dequeue RX packets explicitly
   cdef35e83c3f i2c: i801: Add support for Intel Comet Lake
   c6694e7c8bf6 ARM: dts: pfla02: increase phy reset duration
   41be4abfb04d usb: gadget: net2272: Fix net2272_dequeue()
   edaebfe7721c usb: gadget: net2280: Fix net2280_dequeue()
   346eab0d1559 usb: gadget: net2280: Fix overrun of OUT messages
   710d4f29fe38 usb: dwc3: pci: add support for Comet Lake PCH ID
   e4705ae72736 KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the 
memslots
   0371fa033741 

[OE-core] [Warrior-next 03/27] linux-yocto/5.0: update to v5.0.13

2019-06-09 Thread Armin Kuster
From: Bruce Ashfield 

Integrating the korg stable commits that comprise the following
changes:

   e5b9547b1aa3 Linux 5.0.13
   d467f3acebc5 ath10k: Drop WARN_ON()s that always trigger during system resume
   3c13f6cd254d iwlwifi: mvm: properly check debugfs dentry before using it
   c391e6198768 ALSA: line6: use dynamic buffers
   4c38bd0d4cd6 KVM: nVMX: Fix size checks in vmx_set_nested_state
   119ac69c0772 KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   a31a8f55c8e8 net/tls: fix copy to fragments in reencrypt
   f7f4d4b85b83 net/tls: don't copy negative amounts of data in reencrypt
   126255f1ef2b bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   95fc8b4b4367 bnxt_en: Fix statistics context reservation logic.
   1c38ed7b5ef6 bnxt_en: Pass correct extended TX port statistics size to 
firmware.
   4348cae3a6e1 bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under 
error conditions.
   76dba4d8d0db bnxt_en: Free short FW command HWRM memory in error path in 
bnxt_init_one()
   4658466a bnxt_en: Improve multicast address setup logic.
   7a0d81d12f62 udp: fix GRO packet of death
   8858d7234542 udp: fix GRO reception in case of length mismatch
   b58d12d306ae tcp: add sanity tests in tcp_add_backlog()
   4d5aaae5fa0e selftests: fib_rule_tests: Fix icmp proto with ipv6
   3362ece2719c packet: in recvmsg msg_name return at least sizeof sockaddr_ll
   3a0701b8d93a packet: validate msg_namelen in send directly
   02694885a2be selftests: fib_rule_tests: print the result and return 1 if any 
tests failed
   484d404fdc2a sctp: avoid running the sctp state machine recursively
   f8970584f08c rxrpc: Fix net namespace cleanup
   90cb17d3df6f net/tls: avoid NULL pointer deref on nskb->sk in fallback
   52c89e455b5c net: phy: marvell: Fix buffer overrun with stats counters
   801038cca48c net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   31f4cb2730d8 l2tp: use rcu_dereference_sk_user_data() in 
l2tp_udp_encap_recv()
   f86adc57e7db l2ip: fix possible use-after-free
   d1fa4f8784bb ipv6: invert flowlabel sharing check in process and user mode
   787a77cccb18 ipv6/flowlabel: wait rcu grace period before put_pid()
   d0aa794674e5 ipv6: fix races in ip6_dst_destroy()
   c61a4beb31f0 ipv6: A few fixes on dereferencing rt->from
   5a06ba5ed2ae ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   6006d5b02522 Linux 5.0.12
   310f9b1e52c0 leds: trigger: netdev: use memcpy in device_name_store
   004ec01370bc leds: pca9532: fix a potential NULL pointer dereference
   107cfb99c81f ptrace: take into account saved_sigmask in 
PTRACE{GET,SET}SIGMASK
   87eaf3d8ac51 kasan: fix variable 'tag' set but not used warning
   514860ee6633 iommu/amd: Reserve exclusion range in iova-domain
   8bd7d23a4a76 kconfig/[mn]conf: handle backspace (^H) key
   44fe72aeaae8 perf machine: Update kernel map address and re-order properly
   441d23c87644 perf cs-etm: Add missing case value
   b8bc52cd62e8 nvmet: fix error flow during ns enable
   163719bdcd9c nvmet: fix building bvec from sg list
   2e7d5b2e1fa0 nvme-multipath: relax ANA state check
   a72f60dbb557 gpio: of: Fix of_gpiochip_add() error path
   41a94b1909a4 KVM: selftests: complete IO before migrating guest state
   a312d0eaf90d KVM: selftests: disable stack protector for all KVM tests
   77507936fea3 KVM: selftests: explicitly disable PIE for tests
   e478d1c9b585 KVM: selftests: assert on exit reason in CR4/cpuid sync test
   02a7fc6c77d5 x86/kvm/hyper-v: avoid spurious pending stimer on vCPU init
   e10edda577cc kvm/x86: Move MSR_IA32_ARCH_CAPABILITIES to array emulated_msrs
   3d714ded80f6 KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP 
violation)
   5369433777ec KVM: nVMX: Do not inherit quadrant and invalid for the root 
shadow EPT
   e8b8dde69f81 gpio: of: Check for "spi-cs-high" in child instead of parent 
node
   0e48494c0edf gpio: of: Check propname before applying "cs-gpios" quirks
   fb853a4a7748 afs: Fix StoreData op marshalling
   c6d02b1ea4d7 kbuild: skip parsing pre sub-make code for recursion
   479e1afd232e libata: fix using DMA buffers on stack
   8d3c7282cec4 x86/mm: Don't exceed the valid physical address space
   ab4a5df699b5 scsi: zfcp: reduce flood of fcrscn1 trace records on 
multi-element RSCN
   b0921da055f1 ceph: fix use-after-free on symlink traversal
   1ab2566c5329 usb: u132-hcd: fix resource leak
   4f5d11bf2eca x86/realmode: Don't leak the trampoline kernel address
   89ae17728a98 SUNRPC: fix uninitialized variable warning
   ec44e4273006 leds: trigger: netdev: fix refcnt leak on interface rename
   facfcac8357d usb: usb251xb: fix to avoid potential NULL pointer dereference
   3ce3290dee84 scsi: qla4xxx: fix a potential NULL pointer dereference
   ab602d0043a4 scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   9a5795520b91 scsi: mpt3sas: Fix kernel panic during expander reset
   08dd1acccb43 staging: vc04_services: Fix an error code in vchiq_probe()
   b2814ce32d47 sbitmap: 

[OE-core] [Warrior-next 02/27] uninative: Switch from bz2 to xz

2019-06-09 Thread Armin Kuster
From: Richard Purdie 

(From OE-Core rev: 29fc9210b973be68de474e75068e4c72371afe5a)

Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/classes/uninative.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index ba99fb6..3326c0d 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -2,7 +2,7 @@ UNINATIVE_LOADER ?= 
"${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/lib/
 UNINATIVE_STAGING_DIR ?= "${STAGING_DIR}"
 
 UNINATIVE_URL ?= "unset"
-UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2"
+UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.xz"
 # Example checksums
 #UNINATIVE_CHECKSUM[aarch64] = "dead"
 #UNINATIVE_CHECKSUM[i686] = "dead"
@@ -89,7 +89,7 @@ python uninative_event_fetchloader() {
 cmd = d.expand("\
 mkdir -p ${UNINATIVE_STAGING_DIR}-uninative; \
 cd ${UNINATIVE_STAGING_DIR}-uninative; \
-tar -xjf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; \
+tar -xJf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; \
 ${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py \
   ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux \
   ${UNINATIVE_LOADER} \
-- 
2.7.4

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


[OE-core] [Warrior-next 01/27] yocto-uninative: Update to 2.5 release

2019-06-09 Thread Armin Kuster
From: Richard Purdie 

This includes libstdc++ changes from gcc 9.X.

It also switches uninative from bz2 to xz compression.

Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
---
 meta/conf/distro/include/yocto-uninative.inc | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/conf/distro/include/yocto-uninative.inc 
b/meta/conf/distro/include/yocto-uninative.inc
index 59ccd69..0bb8f7a 100644
--- a/meta/conf/distro/include/yocto-uninative.inc
+++ b/meta/conf/distro/include/yocto-uninative.inc
@@ -8,7 +8,7 @@
 
 UNINATIVE_MAXGLIBCVERSION = "2.29"
 
-UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.4/;
-UNINATIVE_CHECKSUM[aarch64] ?= 
"af2e2faf6cf00ff45cc1bcd5e3fb00cee7f79b3ec7c3be15917ad4ff8c154cfe"
-UNINATIVE_CHECKSUM[i686] ?= 
"fafacfc537a6ce2bd122bd16c146881ab5ac69bd575abf6cb68a0dd33fa70ea2"
-UNINATIVE_CHECKSUM[x86_64] ?= 
"06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0"
+UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.5/;
+UNINATIVE_CHECKSUM[aarch64] ?= 
"ca977ff95c77f983570141908d451ff7d78add2864471605af404302bb36a1fa"
+UNINATIVE_CHECKSUM[i686] ?= 
"7b5822891c293795faf8a4a80586b36f8cde405387524916a24f9055ea82f7ca"
+UNINATIVE_CHECKSUM[x86_64] ?= 
"ed0ac07c710b711925cb976685dd855fb1d442dd840d00194751c18bf480c4ed"
-- 
2.7.4

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


[OE-core] [Warrior-next 00/27] Warrior patch review

2019-06-09 Thread Armin Kuster
Warrior next patch series
Comments by Wed

The following changes since commit a2915db76d6a2007b22b20f945498c84e7fa8132:

  dbus-test: Improve ptest dependencies dependencies (2019-06-09 11:00:46 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib stable/warrior-nmut
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/warrior-nmut

Adrian Bunk (1):
  openssl: Upgrade 1.1.1b -> 1.1.1c

Adrian Freihofer (1):
  qemurunner: fix undefined variable

Armin Kuster (6):
  ltp: add runtime test
  ltp_compliance: add new runtime
  resulttool: add ltp test support
  resulttool: add LTP compliance section
  logparser: Add decoding ltp logs
  logparser: Add LTP compliance section

Bruce Ashfield (10):
  linux-yocto/5.0: update to v5.0.13
  linux-yocto/4.19: update to v4.19.40
  linux-yocto/4.19: update to v4.19.44
  kernel: package modules.builtin.modinfo
  linux-yocto/5.0: update to v5.0.17
  linux-yocto-rt/5.0: update to -rt9
  linux-yocto/5.0: update to v5.0.19
  linux-yocto-rt/5.0: update to -rt11
  linux-yocto/5.0: fix systemtap on arm
  linux-yocto: ptest: Add SCSI debug configuration for util-linux

Hongxu Jia (1):
  lib/oe/reciputils.py: support character `+' in git pv

Jon Mason (2):
  resulttool: modify to be multi-machine
  resulttool: Remove prints if no tests occur

Kevin Hao (2):
  runqemu: Add the support to pass multi ports to tcpserial parameter
  oeqa/utils/qemurunner: Set both the threadport with
tcpserial parameter

Richard Purdie (3):
  yocto-uninative: Update to 2.5 release
  uninative: Switch from bz2 to xz
  meta/lib+scripts: Convert to SPDX license headers

sangeeta jain (1):
  resulttool/manualexecution: Enable creation of test case configuration

 LICENSE|  24 ++--
 meta/COPYING.GPLv2 => LICENSE.GPL-2.0-only |  61 +-
 meta-selftest/COPYING.MIT => LICENSE.MIT   |  12 +-
 meta-skeleton/COPYING.MIT  |  17 ---
 meta/classes/kernel.bbclass|   2 +-
 meta/classes/uninative.bbclass |   4 +-
 meta/conf/distro/include/yocto-uninative.inc   |   8 +-
 meta/lib/bblayers/create.py|   4 +
 meta/lib/buildstats.py |   3 +
 meta/lib/oe/__init__.py|   4 +
 meta/lib/oe/buildhistory_analysis.py   |   2 +
 meta/lib/oe/cachedpath.py  |   2 +
 meta/lib/oe/classextend.py |   4 +
 meta/lib/oe/classutils.py  |   3 +
 meta/lib/oe/copy_buildsystem.py|   3 +
 meta/lib/oe/data.py|   4 +
 meta/lib/oe/distro_check.py|   4 +
 meta/lib/oe/elf.py |   4 +
 meta/lib/oe/gpg_sign.py|   4 +
 meta/lib/oe/license.py |   4 +-
 meta/lib/oe/lsb.py |   4 +
 meta/lib/oe/maketype.py|   3 +
 meta/lib/oe/manifest.py|   4 +
 meta/lib/oe/package.py |   4 +
 meta/lib/oe/package_manager.py |   4 +
 meta/lib/oe/packagedata.py |   4 +
 meta/lib/oe/packagegroup.py|   4 +
 meta/lib/oe/patch.py   |   4 +
 meta/lib/oe/path.py|   4 +
 meta/lib/oe/prservice.py   |   3 +
 meta/lib/oe/qa.py  |   4 +
 meta/lib/oe/recipeutils.py |   4 +-
 meta/lib/oe/rootfs.py  |   3 +
 meta/lib/oe/sdk.py |   4 +
 meta/lib/oe/sstatesig.py   |   3 +
 meta/lib/oe/terminal.py|   3 +
 meta/lib/oe/types.py   |   4 +
 meta/lib/oe/useradd.py |   3 +
 meta/lib/oe/utils.py   |   4 +
 meta/lib/oeqa/buildperf/__init__.py|   8 +-
 meta/lib/oeqa/buildperf/base.py|   9 +-
 meta/lib/oeqa/buildperf/test_basic.py  |   9 +-
 meta/lib/oeqa/controllers/__init__.py  |   3 +
 meta/lib/oeqa/controllers/masterimage.py   |   4 +-
 meta/lib/oeqa/controllers/testtargetloader.py  |   4 +
 meta/lib/oeqa/core/case.py |   5 +-
 meta/lib/oeqa/core/cases/example/test_basic.py |   4 +-
 meta/lib/oeqa/core/context.py  |   6 +-
 meta/lib/oeqa/core/decorator/__init__.py   |   5 +-
 meta/lib/oeqa/core/decorator/data.py   |   5 +-
 meta/lib/oeqa/core/decorator/depends.py|   5 +-
 meta/lib/oeqa/core/decorator/oetag.py  |   5 +-
 meta/lib/oeqa/core/decorator/oetimeout.py  |   5 +-
 

Re: [OE-core] [warrior][PATCH] dbus-test: Improve ptest dependencies dependencies

2019-06-09 Thread akuster808



On 6/9/19 12:56 AM, Martin Jansa wrote:
> From: Richard Purdie 
>
> The dbus-test package is empty, move its dependencies to the ${PN}-ptest
> package. Also ensure that it doesn't depend on the empty ${PN} package
> which is about to start causing image failures in the following commit.
> In this case the correct dependency is dbus itself.
>
> Signed-off-by: Richard Purdie 
got it
thanks
Armin
> ---
>  meta/recipes-core/dbus/dbus-test_1.12.12.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/dbus/dbus-test_1.12.12.bb 
> b/meta/recipes-core/dbus/dbus-test_1.12.12.bb
> index f4131926c2..486a996879 100644
> --- a/meta/recipes-core/dbus/dbus-test_1.12.12.bb
> +++ b/meta/recipes-core/dbus/dbus-test_1.12.12.bb
> @@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = 
> "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
>  
>  DEPENDS = "dbus glib-2.0"
>  
> -RDEPENDS_${PN} += "make"
>  RDEPENDS_${PN}-dev = ""
>  
>  SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
> @@ -78,6 +77,7 @@ do_install_ptest() {
>  sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g'  
> ${D}${PTEST_PATH}/run-ptest
>  }
>  
> -RDEPENDS_${PN}-ptest += "bash"
> +RDEPENDS_${PN}-ptest += "bash make dbus"
> +RDEPENDS_${PN}-ptest_remove = "${PN}"
>  
>  PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"

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


[OE-core] ✗ patchtest: failure for runqemu: support non-bootable wic images

2019-06-09 Thread Patchwork
== Series Details ==

Series: runqemu: support non-bootable wic images
Revision: 1
URL   : https://patchwork.openembedded.org/series/18057/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[meta-oe,v4,1/3] qemurunner: fix undefined variable
 Issue Series sent to the wrong mailing list 
[test_target_mailing_list] 
  Suggested fixCheck the project's README (meta-oe,v4,1/3) and send the 
patch to the indicated list

* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at 00fa839136)

* Patch[meta-oe,v4,1/3] qemurunner: fix undefined variable
 Issue Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fixSign off the patch (either manually or with "git commit 
--amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [meta-oe][PATCH v4 3/3] runqemu: QB_FSINFO to support fstype wic images

2019-06-09 Thread Adrian Freihofer
wic images are handled as vmtype images. Starting qemu with "-kernel"
parameter and an image of type wic is not supported. Especially for
"-machine virt" the combination of wic with -kernel parameter would
be beneficial.

The new parameter QB_FSINFO allows to pass image type specific flags to
runqemu. QB_FSINFO is a space separated list of parameters. Parameters are
structured according to the following pattern: image-type:flag.

For now two parameters are supported:
- wic:no-kernel-in-fs
  The wic image is treated as rootfs only image. A -kernel option is
  passed to qemu.
- wic:kernel-in-fs
  The wic image is treated as VM image including a bootloader and a
  kernel. This is still the default behavior.

Example:
QB_DEFAULT_FSTYPE = "wic"
QB_FSINFO = "wic:no-kernel-in-fs"
QB_KERNEL_ROOT = "/dev/vda1"
QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MACHINE = "-machine virt"
...

[YOCTO #13336]

Signed-off-by: Adrian Freihofer 
---
 scripts/runqemu | 49 -
 1 file changed, 44 insertions(+), 5 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index af90c010da..4079f2b17d 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -185,10 +185,11 @@ class BaseConfig(object):
 self.lock_descriptor = None
 self.bitbake_e = ''
 self.snapshot = False
+self.wictypes = ('wic', 'wic.vmdk', 'wic.qcow2', 'wic.vdi')
 self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs',
 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz')
-self.vmtypes = ('hddimg', 'hdddirect', 'wic', 'wic.vmdk',
-'wic.qcow2', 'wic.vdi', 'iso')
+self.vmtypes = ('hddimg', 'hdddirect', 'iso')
+self.fsinfo = {}
 self.network_device = "-device e1000,netdev=net0,mac=@MAC@"
 # Use different mac section for tap and slirp to avoid
 # conflicts, e.g., when one is running with tap, the other is
@@ -253,7 +254,7 @@ class BaseConfig(object):
 
 def check_arg_fstype(self, fst):
 """Check and set FSTYPE"""
-if fst not in self.fstypes + self.vmtypes:
+if fst not in self.fstypes + self.vmtypes + self.wictypes:
 logger.warning("Maybe unsupported FSTYPE: %s" % fst)
 if not self.fstype or self.fstype == fst:
 if fst == 'ramfs':
@@ -390,7 +391,7 @@ class BaseConfig(object):
 
 unknown_arg = ""
 for arg in sys.argv[1:]:
-if arg in self.fstypes + self.vmtypes:
+if arg in self.fstypes + self.vmtypes + self.wictypes:
 self.check_arg_fstype(arg)
 elif arg == 'nographic':
 self.qemu_opt_script += ' -nographic'
@@ -536,6 +537,40 @@ class BaseConfig(object):
 else:
 raise RunQemuError("FSTYPE is NULL!")
 
+# parse QB_FSINFO into dict, e.g. { 'wic': ['no-kernel-in-fs', 
'a-flag'], 'ext4': ['another-flag']}
+wic_fs = False
+qb_fsinfo = self.get('QB_FSINFO')
+if qb_fsinfo:
+qb_fsinfo = qb_fsinfo.split()
+for fsinfo in qb_fsinfo:
+try:
+fstype, fsflag = fsinfo.split(':')
+
+if fstype == 'wic':
+if fsflag == 'no-kernel-in-fs':
+wic_fs = True
+elif fsflag == 'kernel-in-fs':
+wic_fs = False
+else:
+logger.warn('Unknown flag "%s:%s" in QB_FSINFO', 
fstype, fsflag)
+continue
+else:
+logger.warn('QB_FSINFO is not supported for image type 
"%s"', fstype)
+continue
+
+if fstype in self.fsinfo:
+self.fsinfo[fstype].append(fsflag)
+else:
+self.fsinfo[fstype] = [fsflag]
+except Exception:
+logger.error('Invalid parameter "%s" in QB_FSINFO', fsinfo)
+
+# treat wic images as vmimages (with kernel) or as fsimages (rootfs 
only)
+if wic_fs:
+self.fstypes = self.fstypes + self.wictypes
+else:
+self.vmtypes = self.vmtypes + self.wictypes
+
 def check_rootfs(self):
 """Check and set rootfs"""
 
@@ -832,7 +867,11 @@ class BaseConfig(object):
 if self.dtb:
 print('DTB: [%s]' % self.dtb)
 print('MACHINE: [%s]' % self.get('MACHINE'))
-print('FSTYPE: [%s]' % self.fstype)
+try:
+fstype_flags = ' (' + ', '.join(self.fsinfo[self.fstype]) + ')'
+except KeyError:
+fstype_flags = ''
+print('FSTYPE: [%s%s]' % (self.fstype, fstype_flags))
 if self.fstype  == 'nfs':
 print('NFS_DIR: [%s]' % self.rootfs)
 else:
-- 
2.11.0

-- 
___
Openembedded-core mailing list

[OE-core] [meta-oe][PATCH v4 2/3] testimage: consider QB_DEFAULT_FSTYPE

2019-06-09 Thread Adrian Freihofer
testimage.bbclass starts qemu with the first image type found in
the IMAGE_FSTYPES list. It's weird: this ['wic', 'tar'] works but
this ['tar'. 'wic'] does not. If QB_DEFAULT_FSTYPE is defined,
this fstype is booted.

Signed-off-by: Adrian Freihofer 
---
 meta/classes/testimage.bbclass | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 9bb5a5cb0b..525c5a6173 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -210,7 +210,11 @@ def testimage_main(d):
 bb.fatal('Unsupported image type built. Add a comptible image to '
  'IMAGE_FSTYPES. Supported types: %s' %
  ', '.join(supported_fstypes))
-rootfs = '%s.%s' % (image_name, fstypes[0])
+qfstype = fstypes[0]
+qdeffstype = d.getVar("QB_DEFAULT_FSTYPE")
+if qdeffstype:
+qfstype = qdeffstype
+rootfs = '%s.%s' % (image_name, qfstype)
 
 # Get tmpdir (not really used, just for compatibility)
 tmpdir = d.getVar("TMPDIR")
-- 
2.11.0

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


[OE-core] [meta-oe][PATCH v4 1/3] qemurunner: fix undefined variable

2019-06-09 Thread Adrian Freihofer
While hacking on this I got an Exception. It's better to define
variables also in python.

Signe:-off-by: Adrian Freihofer 
---
 meta/lib/oeqa/utils/qemurunner.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index 6d2860c106..c16227fc38 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -60,6 +60,7 @@ class QemuRunner:
 self.runqemutime = 120
 self.qemu_pidfile = 'pidfile_'+str(os.getpid())
 self.host_dumper = HostDumper(dump_host_cmds, dump_dir)
+self.monitorpipe = None
 
 self.logger = logger
 
-- 
2.11.0

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


[OE-core] [meta-oe][PATCH v4 0/3] runqemu: support non-bootable wic images

2019-06-09 Thread Adrian Freihofer
Compared to V3 this is a new implementation, as suggested by Richard.
Thanks for the hint, it makes perfect sense.

Adrian Freihofer (3):
  qemurunner: fix undefined variable
  testimage: consider QB_DEFAULT_FSTYPE
  runqemu: QB_FSINFO to support fstype wic images

 meta/classes/testimage.bbclass|  6 -
 meta/lib/oeqa/utils/qemurunner.py |  1 +
 scripts/runqemu   | 49 +++
 3 files changed, 50 insertions(+), 6 deletions(-)

-- 
2.11.0

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


[OE-core] [warrior][PATCH] dbus-test: Improve ptest dependencies dependencies

2019-06-09 Thread Martin Jansa
From: Richard Purdie 

The dbus-test package is empty, move its dependencies to the ${PN}-ptest
package. Also ensure that it doesn't depend on the empty ${PN} package
which is about to start causing image failures in the following commit.
In this case the correct dependency is dbus itself.

Signed-off-by: Richard Purdie 
---
 meta/recipes-core/dbus/dbus-test_1.12.12.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus-test_1.12.12.bb 
b/meta/recipes-core/dbus/dbus-test_1.12.12.bb
index f4131926c2..486a996879 100644
--- a/meta/recipes-core/dbus/dbus-test_1.12.12.bb
+++ b/meta/recipes-core/dbus/dbus-test_1.12.12.bb
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
 
 DEPENDS = "dbus glib-2.0"
 
-RDEPENDS_${PN} += "make"
 RDEPENDS_${PN}-dev = ""
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
@@ -78,6 +77,7 @@ do_install_ptest() {
 sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g'  ${D}${PTEST_PATH}/run-ptest
 }
 
-RDEPENDS_${PN}-ptest += "bash"
+RDEPENDS_${PN}-ptest += "bash make dbus"
+RDEPENDS_${PN}-ptest_remove = "${PN}"
 
 PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"
-- 
2.17.1

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


Re: [OE-core] [oe-commits] [openembedded-core] 21/35: ptest: Add RDEPENDS frpm PN-ptest to PN package

2019-06-09 Thread Martin Jansa
On Fri, Jun 07, 2019 at 12:58:30PM +, g...@git.openembedded.org wrote:
> This is an automated email from the git hooks/post-receive script.
> 
> rpurdie pushed a commit to branch warrior
> in repository openembedded-core.
> 
> commit 1ad805984c8c9c9a505b6b0e8ad870b8233b13b2
> Author: Richard Purdie 
> AuthorDate: Tue May 14 12:22:14 2019 +0100
> 
> ptest: Add RDEPENDS frpm PN-ptest to PN package

Hi,

this in warrior is causing following do_rootfs error:

nothing provides dbus-test needed by dbus-test-ptest-1.12.12-r0

in images with dbus-test and ptest enabled.

you need to backport:
commit db4ef506b6b86e62a5ee1cbea8f12f97615dd0b8
Author: Richard Purdie 
Date:   Tue May 14 17:28:08 2019 +0100

dbus-test: Improve ptest dependencies dependencies

as well, to resolve this (will send it in separate e-mail).

> 
> Many different ptests are breaking as they assume that ${PN}-ptest
> depends on ${PN}. It doesn't currently but should. If we fix this, many
> different ptests start passing when they previously failed.
> 
> It does depend on fixing an issue in the dbus-test recipe which is done
> in the preceeding patch (mentioned in case this gets backported).
> 
> Signed-off-by: Richard Purdie 
> Signed-off-by: Armin Kuster 
> ---
>  meta/classes/ptest.bbclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
> index 936bf82..fa4c36e 100644
> --- a/meta/classes/ptest.bbclass
> +++ b/meta/classes/ptest.bbclass
> @@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 
> 'ptest', '1', '0', d)}"
>  PTEST_ENABLED_class-native = ""
>  PTEST_ENABLED_class-nativesdk = ""
>  PTEST_ENABLED_class-cross-canadian = ""
> +RDEPENDS_${PN}-ptest += "${PN}"
>  RDEPENDS_${PN}-ptest_class-native = ""
>  RDEPENDS_${PN}-ptest_class-nativesdk = ""
>  RRECOMMENDS_${PN}-ptest += "ptest-runner"
> 
> -- 
> To stop receiving notification emails like this one, please contact
> the administrator of this repository.
> -- 
> ___
> Openembedded-commits mailing list
> openembedded-comm...@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-commits

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core