[OE-core] [PATCH 2/3] alsa-lib: fix softfloat enabling

2017-02-14 Thread Tanu Kaskinen
EXTRA_OECONF = "--disable-python" overrode the previous EXTRA_OECONF
assignment, so softfloat didn't get enabled when needed. Fixed this by
replacing "=" with "+=".

Bitbake then complained about tabs in alsa-fpu.inc, changed them to
spaces.

Signed-off-by: Tanu Kaskinen 
---
 meta/recipes-multimedia/alsa/alsa-fpu.inc  | 8 +++-
 meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-multimedia/alsa/alsa-fpu.inc 
b/meta/recipes-multimedia/alsa/alsa-fpu.inc
index 1ca31e7498..355a9dfcd1 100644
--- a/meta/recipes-multimedia/alsa/alsa-fpu.inc
+++ b/meta/recipes-multimedia/alsa/alsa-fpu.inc
@@ -1,6 +1,4 @@
-
 def get_alsa_fpu_setting(bb, d):
-   if d.getVar('TARGET_FPU') in [ 'soft' ]:
-   return "--with-softfloat"
-   return ""
-
+if d.getVar('TARGET_FPU') in [ 'soft' ]:
+return "--with-softfloat"
+return ""
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb 
b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
index 5c213bebde..34a7d8802e 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
@@ -21,7 +21,7 @@ inherit autotools pkgconfig
 require alsa-fpu.inc
 EXTRA_OECONF += "${@get_alsa_fpu_setting(bb, d)} "
 
-EXTRA_OECONF = "--disable-python"
+EXTRA_OECONF += "--disable-python"
 
 EXTRA_OECONF_append_libc-uclibc = " --with-versioned=no "
 
-- 
2.11.0

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


[OE-core] [PATCH 1/3] alsa-lib: 1.1.2 -> 1.1.3

2017-02-14 Thread Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.1.2_v1.1.3

Added a patch to fix a build failure with musl (cherry-picked from
upstream).

The new release doesn't any more install the smixer modules when Python
support is disabled. The modules weren't usable without Python support
before either, so this change does not constitute a loss of
functionality [1].

alsa-lib-dev has automatic dependencies on alsa-lib and libasound, but
since the smixer modules were the only thing in the alsa-lib package,
the alsa-lib package doesn't get generated any more. alsa-lib-dev still
has an automatic dependency on alsa-lib, however, so I had to override
the RDEPENDS of alsa-lib-dev to only include libasound.

[1] 
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-November/114682.html

Signed-off-by: Tanu Kaskinen 
---
 .../alsa-lib/0001-ucm-parser-needs-limits.h.patch  | 33 ++
 .../alsa/{alsa-lib_1.1.2.bb => alsa-lib_1.1.3.bb}  | 12 +---
 2 files changed, 41 insertions(+), 4 deletions(-)
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-lib/0001-ucm-parser-needs-limits.h.patch
 rename meta/recipes-multimedia/alsa/{alsa-lib_1.1.2.bb => alsa-lib_1.1.3.bb} 
(77%)

diff --git 
a/meta/recipes-multimedia/alsa/alsa-lib/0001-ucm-parser-needs-limits.h.patch 
b/meta/recipes-multimedia/alsa/alsa-lib/0001-ucm-parser-needs-limits.h.patch
new file mode 100644
index 00..4edaf4d961
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-lib/0001-ucm-parser-needs-limits.h.patch
@@ -0,0 +1,33 @@
+From 005ac9d2fa000912c8fb8257020a0471b1c6176c Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias 
+Date: Wed, 21 Dec 2016 19:46:34 -0300
+Subject: [PATCH] ucm: parser needs limits.h
+
+It's using PATH_MAX which is defined there, otherwise the build fails on
+musl libc.
+
+Signed-off-by: Gustavo Zacarias 
+Signed-off-by: Takashi Iwai 
+
+Upstream-Status: Accepted [expected in 1.1.4]
+
+Signed-off-by: Tanu Kaskinen 
+---
+ src/ucm/parser.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ucm/parser.c b/src/ucm/parser.c
+index c98373a9..f520abc5 100644
+--- a/src/ucm/parser.c
 b/src/ucm/parser.c
+@@ -32,6 +32,7 @@
+ 
+ #include "ucm_local.h"
+ #include 
++#include 
+ 
+ /** The name of the environment variable containing the UCM directory */
+ #define ALSA_CONFIG_UCM_VAR "ALSA_CONFIG_UCM"
+-- 
+2.11.0
+
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.1.2.bb 
b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
similarity index 77%
rename from meta/recipes-multimedia/alsa/alsa-lib_1.1.2.bb
rename to meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
index e313da78e4..5c213bebde 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.1.2.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
@@ -11,9 +11,10 @@ BBCLASSEXTEND = "native nativesdk"
 SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/${BP}.tar.bz2 \
file://Check-if-wordexp-function-is-supported.patch \
file://avoid-including-sys-poll.h-directly.patch \
+   file://0001-ucm-parser-needs-limits.h.patch \
 "
-SRC_URI[md5sum] = "1946e6438b8262a7b8fdadacd0e06ba7"
-SRC_URI[sha256sum] = 
"d38dacd9892b06b8bff04923c380b38fb2e379ee5538935ff37e45b395d861d6"
+SRC_URI[md5sum] = "eefe5992567ba00d6110a540657aaf5c"
+SRC_URI[sha256sum] = 
"71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f515969c"
 
 inherit autotools pkgconfig
 
@@ -25,8 +26,6 @@ EXTRA_OECONF = "--disable-python"
 EXTRA_OECONF_append_libc-uclibc = " --with-versioned=no "
 
 PACKAGES =+ "alsa-server libasound alsa-conf-base alsa-conf alsa-doc"
-FILES_${PN} += "${libdir}/${BPN}/smixer/*.so"
-FILES_${PN}-dev += "${libdir}/${BPN}/smixer/*.la"
 FILES_libasound = "${libdir}/libasound.so.*"
 FILES_alsa-server = "${bindir}/*"
 FILES_alsa-conf = "${datadir}/alsa/"
@@ -38,6 +37,11 @@ ${datadir}/alsa/pcm/dmix.conf \
 ${datadir}/alsa/pcm/dsnoop.conf"
 
 RDEPENDS_libasound = "alsa-conf-base alsa-conf"
+
+# alsa-lib gets automatically added to alsa-lib-dev dependencies, but the
+# alsa-lib package doesn't exist. libasound is the real library package.
+RDEPENDS_${PN}-dev = "libasound"
+
 # upgrade path
 RPROVIDES_${PN}-dev = "alsa-dev"
 RREPLACES_${PN}-dev = "alsa-dev"
-- 
2.11.0

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


[OE-core] [PATCH 3/3] alsa-lib: merge alsa-conf-base into alsa-conf

2017-02-14 Thread Tanu Kaskinen
As far as I can see, there's no benefit in having separate alsa-conf and
alsa-conf-base packages. libasound depended on both, so it was not
really possible to only install alsa-conf-base.

Signed-off-by: Tanu Kaskinen 
---
 meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb | 14 ++
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb 
b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
index 34a7d8802e..191a0367de 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb
@@ -25,18 +25,12 @@ EXTRA_OECONF += "--disable-python"
 
 EXTRA_OECONF_append_libc-uclibc = " --with-versioned=no "
 
-PACKAGES =+ "alsa-server libasound alsa-conf-base alsa-conf alsa-doc"
+PACKAGES =+ "alsa-server libasound alsa-conf alsa-doc"
 FILES_libasound = "${libdir}/libasound.so.*"
 FILES_alsa-server = "${bindir}/*"
 FILES_alsa-conf = "${datadir}/alsa/"
-FILES_alsa-conf-base = "\
-${datadir}/alsa/alsa.conf \
-${datadir}/alsa/cards/aliases.conf \
-${datadir}/alsa/pcm/default.conf \
-${datadir}/alsa/pcm/dmix.conf \
-${datadir}/alsa/pcm/dsnoop.conf"
 
-RDEPENDS_libasound = "alsa-conf-base alsa-conf"
+RDEPENDS_libasound = "alsa-conf"
 
 # alsa-lib gets automatically added to alsa-lib-dev dependencies, but the
 # alsa-lib package doesn't exist. libasound is the real library package.
@@ -46,3 +40,7 @@ RDEPENDS_${PN}-dev = "libasound"
 RPROVIDES_${PN}-dev = "alsa-dev"
 RREPLACES_${PN}-dev = "alsa-dev"
 RCONFLICTS_${PN}-dev = "alsa-dev"
+
+RPROVIDES_alsa-conf = "alsa-conf-base"
+RREPLACES_alsa-conf = "alsa-conf-base"
+RCONFLICTS_alsa-conf = "alsa-conf-base"
-- 
2.11.0

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


[OE-core] [PATCH 0/3] alsa-lib update

2017-02-14 Thread Tanu Kaskinen
Tanu Kaskinen (3):
  alsa-lib: 1.1.2 -> 1.1.3
  alsa-lib: fix softfloat enabling
  alsa-lib: merge alsa-conf-base into alsa-conf

 meta/recipes-multimedia/alsa/alsa-fpu.inc  |  8 ++
 .../alsa-lib/0001-ucm-parser-needs-limits.h.patch  | 33 ++
 .../alsa/{alsa-lib_1.1.2.bb => alsa-lib_1.1.3.bb}  | 30 +++-
 3 files changed, 52 insertions(+), 19 deletions(-)
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-lib/0001-ucm-parser-needs-limits.h.patch
 rename meta/recipes-multimedia/alsa/{alsa-lib_1.1.2.bb => alsa-lib_1.1.3.bb} 
(61%)

-- 
2.11.0

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


[OE-core] [PATCH 0/6] fixes for nativesdk, tcl and binconfig.bbclass

2017-02-14 Thread Robert Yang
The following changes since commit d1109378d730c5cf50240c4d1a468e3aef5208ea:

  nss: Fix nss-native so the checksum doesn't change with BUILD_ARCH 
(2017-02-09 10:50:54 +)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/6fixes
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/6fixes

Robert Yang (6):
  python-native: PROVIDES python-io-native
  btrfs-tools: remove udev from DEPENDS
  tcl: extend to nativesdk
  gawk/json-glib/libcheck: extend to nativesdk
  tcl: fix sed in do_install()
  binconfig.bbclass: fix get_binconfig_mangle()

 meta/classes/binconfig.bbclass | 4 ++--
 meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb | 2 +-
 meta/recipes-devtools/python/python-native_2.7.12.bb   | 9 -
 meta/recipes-devtools/tcltk/tcl_8.6.6.bb   | 6 +++---
 meta/recipes-extended/gawk/gawk_4.1.4.bb   | 2 ++
 meta/recipes-gnome/json-glib/json-glib_1.2.2.bb| 2 +-
 meta/recipes-support/libcheck/libcheck_0.10.0.bb   | 2 +-
 7 files changed, 18 insertions(+), 9 deletions(-)

-- 
2.10.2

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


[OE-core] [PATCH 6/6] binconfig.bbclass: fix get_binconfig_mangle()

2017-02-14 Thread Robert Yang
The command was:
s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"

The STAGING_LIBDIR and STAGING_INCDIR now contains WORKDIR, so the
result would be incorrect like:
TCL_INCLUDE_SPEC='-IFIXMESTAGINGDIRTARGET/usr/include/recipe-sysroot/usr/include/tcl8.6'

Note, the "/usr/include/recipe-sysroot" is not needed. Move the last two
sed commands ahead will fix the problem.

Signed-off-by: Robert Yang 
---
 meta/classes/binconfig.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 5372294..1be5fc4 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -13,14 +13,14 @@ def get_binconfig_mangle(d):
 s += " -e 's:=%s${exec_prefix}/:=\\1OEEXECPREFIX/:'" % optional_quote
 s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
 s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
+s += " -e 's:-L${WORKDIR}:-LOELIBDIR:'"
+s += " -e 's:-I${WORKDIR}:-I-IOEINCDIR:'"
 s += " -e 's:OEBASELIBDIR:${STAGING_BASELIBDIR}:;'"
 s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
 s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
 s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
 s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'"
 s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
-s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
-s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
 if d.getVar("OE_BINCONFIG_EXTRA_MANGLE", False):
 s += d.getVar("OE_BINCONFIG_EXTRA_MANGLE")
 
-- 
2.10.2

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


[OE-core] [PATCH 1/6] python-native: PROVIDES python-io-native

2017-02-14 Thread Robert Yang
python-six-native depends on it.

Signed-off-by: Robert Yang 
---
 meta/recipes-devtools/python/python-native_2.7.12.bb | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python-native_2.7.12.bb 
b/meta/recipes-devtools/python/python-native_2.7.12.bb
index de83cbd..9a6430d 100644
--- a/meta/recipes-devtools/python/python-native_2.7.12.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.12.bb
@@ -25,7 +25,14 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:"
 
 inherit native
 
-RPROVIDES += "python-distutils-native python-compression-native 
python-textutils-native python-codecs-native python-core-native 
python-unittest-native"
+RPROVIDES += "python-distutils-native \
+python-compression-native \
+python-textutils-native \
+python-codecs-native \
+python-core-native \
+python-unittest-native \
+python-io-native \
+"
 
 EXTRA_OECONF_append = " --bindir=${bindir}/${PN} 
--with-system-expat=${STAGING_DIR_HOST}"
 
-- 
2.10.2

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


[OE-core] [PATCH 4/6] gawk/json-glib/libcheck: extend to nativesdk

2017-02-14 Thread Robert Yang
They are required by nativesdk-cve-check-tool.

Signed-off-by: Robert Yang 
---
 meta/recipes-extended/gawk/gawk_4.1.4.bb | 2 ++
 meta/recipes-gnome/json-glib/json-glib_1.2.2.bb  | 2 +-
 meta/recipes-support/libcheck/libcheck_0.10.0.bb | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/gawk/gawk_4.1.4.bb 
b/meta/recipes-extended/gawk/gawk_4.1.4.bb
index b888df1..dda38ef 100644
--- a/meta/recipes-extended/gawk/gawk_4.1.4.bb
+++ b/meta/recipes-extended/gawk/gawk_4.1.4.bb
@@ -45,3 +45,5 @@ do_install_ptest() {
  do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \
done
 }
+
+BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb 
b/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
index 4e272be..6869ba9 100644
--- a/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
+++ b/meta/recipes-gnome/json-glib/json-glib_1.2.2.bb
@@ -17,4 +17,4 @@ inherit gnomebase gettext lib_package gobject-introspection 
gtk-doc manpages
 
 PACKAGECONFIG[manpages] = "--enable-man 
--with-xml-catalog=${STAGING_ETCDIR_NATIVE}/xml/catalog.xml, --disable-man, 
libxslt-native xmlto-native"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/libcheck/libcheck_0.10.0.bb 
b/meta/recipes-support/libcheck/libcheck_0.10.0.bb
index c0b459f..9d34198 100644
--- a/meta/recipes-support/libcheck/libcheck_0.10.0.bb
+++ b/meta/recipes-support/libcheck/libcheck_0.10.0.bb
@@ -21,4 +21,4 @@ RREPLACES_${PN} = "check (<= 0.9.5)"
 RDEPENDS_${PN} += "gawk"
 RDEPENDS_${PN}_class-native = ""
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
-- 
2.10.2

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


[OE-core] [PATCH 5/6] tcl: fix sed in do_install()

2017-02-14 Thread Robert Yang
The command:
sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh

was used for replacing "${WORKDIR}", but it also replaced
"-L${WORKDIR}", but binconfig.bbclass would replace "-L${WORKDIR}", too,
which caused incorrect result, use "'${WORKDIR}" to fix the problem.

Signed-off-by: Robert Yang 
---
 meta/recipes-devtools/tcltk/tcl_8.6.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.6.bb 
b/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
index c828b38..40cd18f 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
@@ -55,7 +55,7 @@ do_install() {
ln -sf ./tclsh${VER} ${D}${bindir}/tclsh
ln -sf tclsh8.6 ${D}${bindir}/tclsh${VER}
sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tclConfig.sh
-   sed -i "s;${WORKDIR};${STAGING_INCDIR};g" tclConfig.sh
+   sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tclConfig.sh
install -d ${D}${bindir_crossscripts}
install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
install -m 0755 tclConfig.sh ${D}${libdir}
-- 
2.10.2

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


[OE-core] [PATCH 2/6] btrfs-tools: remove udev from DEPENDS

2017-02-14 Thread Robert Yang
The log said that udev was added to DEPENDS because btrfs-tools installs
a udev rule, this was incorrect, and it caused a side effect:

$ bitbake btrfs-tools-native

ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:btrfs-tools_4.8.5.bb 
DEPENDS on or otherwise requires it). Close matches:
[snip]

Signed-off-by: Robert Yang 
---
 meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb
index 7047c43..ab6aacb 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb
@@ -10,7 +10,7 @@ HOMEPAGE = "https://btrfs.wiki.kernel.org";
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
 SECTION = "base"
-DEPENDS = "util-linux attr e2fsprogs lzo acl udev"
+DEPENDS = "util-linux attr e2fsprogs lzo acl"
 RDEPENDS_${PN} = "libgcc"
 
 SRCREV = "144a19145e248513c7a676defad59836830535c6"
-- 
2.10.2

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


[OE-core] [PATCH 3/6] tcl: extend to nativesdk

2017-02-14 Thread Robert Yang
Fixed:
$ bitbake nativesdk-expect
ERROR: Nothing PROVIDES 'nativesdk-tcl' (but virtual:nativesdk:expect_5.45.bb 
DEPENDS on or otherwise requires it). Close matches:
[snip]

Signed-off-by: Robert Yang 
---
 meta/recipes-devtools/tcltk/tcl_8.6.6.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.6.bb 
b/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
index 2dd0a7a..c828b38 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.6.bb
@@ -54,8 +54,8 @@ do_install() {
autotools_do_install install-private-headers
ln -sf ./tclsh${VER} ${D}${bindir}/tclsh
ln -sf tclsh8.6 ${D}${bindir}/tclsh${VER}
-   sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g" tclConfig.sh
-   sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh
+   sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tclConfig.sh
+   sed -i "s;${WORKDIR};${STAGING_INCDIR};g" tclConfig.sh
install -d ${D}${bindir_crossscripts}
install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
install -m 0755 tclConfig.sh ${D}${libdir}
@@ -78,7 +78,7 @@ RDEPENDS_${PN} += "tcl-lib"
 RDEPENDS_${PN}_class-native = ""
 RDEPENDS_${PN}-ptest += "libgcc"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
 
 do_compile_ptest() {
oe_runmake tcltest
-- 
2.10.2

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


Re: [OE-core] [PATCH 1/1] kernel.bbclass: Make sanity check opt-out and provide easy opt-out

2017-02-14 Thread Wold, Saul

This should also be applied Morty please

Sau!

On Thu, 2017-02-09 at 15:55 -0800, California Sullivan wrote:
> Having no opt-out method and adding the task to linux-yocto.inc was
> causing issues. For example, linux-yocto-dev would often fail because
> it uses AUTOINC with no way to dynamically change the PV.
> 
> Add a variable to turn off the sanity check to easily opt out.
> Add the task to the kernel build by default so that it is not both
> opt-in and opt out.
> Set the opt-out variable in linux-yocto-dev, fixing the issue with
> AUTOINC.
> 
> Signed-off-by: California Sullivan 
> ---
>  meta/classes/kernel.bbclass  | 8 +++-
>  meta/recipes-kernel/linux/linux-yocto-dev.bb | 1 +
>  meta/recipes-kernel/linux/linux-yocto.inc| 1 -
>  3 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes/kernel.bbclass
> b/meta/classes/kernel.bbclass
> index f462b2f..3968d8b 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -325,6 +325,10 @@ do_install[prefuncs] += "package_get_auto_pr"
>  
>  # Must be ran no earlier than after do_kernel_checkout or else
> Makefile won't be in ${S}/Makefile
>  do_kernel_version_sanity_check() {
> + if [ "x${KERNEL_VERSION_SANITY_SKIP}" = "x1" ]; then
> + exit 0
> + fi
> +
>   # The Makefile determines the kernel version shown at
> runtime
>   # Don't use KERNEL_VERSION because the headers it grabs the
> version from aren't generated until do_compile
>   VERSION=$(grep "^VERSION =" ${S}/Makefile | sed s/.*=\ *//)
> @@ -348,11 +352,13 @@ do_kernel_version_sanity_check() {
>   reg="${reg}${EXTRAVERSION}"
>  
>   if [ -z `echo ${PV} | grep -E "${reg}"` ]; then
> - bbfatal "Package Version (${PV}) does not match of
> kernel being built (${vers}). Please update the PV variable to match
> the kernel source."
> + bbfatal "Package Version (${PV}) does not match of
> kernel being built (${vers}). Please update the PV variable to match
> the kernel source or set KERNEL_VERSION_SANITY_SKIP=\"1\" in your
> recipe."
>   fi
>   exit 0
>  }
>  
> +addtask kernel_version_sanity_check after do_kernel_metadata
> do_kernel_checkout before do_compile
> +
>  addtask shared_workdir after do_compile before
> do_compile_kernelmodules
>  addtask shared_workdir_setscene
>  
> diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb
> b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> index 0cda553..1410954 100644
> --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> @@ -43,3 +43,4 @@ KERNEL_FEATURES_append_qemux86=" cfg/sound.scc
> cfg/paravirt_kvm.scc"
>  KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc"
>  KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES",
> "mx32", " cfg/x32.scc", "" ,d)}"
>  
> +KERNEL_VERSION_SANITY_SKIP = "1"
> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc
> b/meta/recipes-kernel/linux/linux-yocto.inc
> index 556546f..3ea3e40 100644
> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> @@ -64,7 +64,6 @@ do_install_append(){
>  }
>  
>  # extra tasks
> -addtask kernel_version_sanity_check after do_kernel_metadata
> do_kernel_checkout before do_compile
>  addtask kernel_link_images after do_compile before do_strip
>  addtask validate_branches before do_patch after do_kernel_checkout
>  addtask kernel_configcheck after do_configure before do_compile
> -- 
> 2.5.5
> 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] dbus: do not use systemctl from host for configure

2017-02-14 Thread andreas . kling
From: Andy Kling 

  configure.ac from dbus uses $PATH to get the location of systemctl.
  If it is not found /usr/bin/systemctl is used. It is possible to
  override the location by passing SYSTEMCTL=[value] to configure.
  The value is used to replace @SYSTEMCTL@ in systemd-user/dbus.socket.in.
  dbus.socket sets the environment variable DBUS_SESSION_BUS_ADDRESS
  using systemctl.

  dbus does not depend on systemd-systemctl-native, so location from
  host installation or the default value gets used. Adding
  systemd-systemctl to the build would give path from sysroot.

  Forcing SYSTEMCTL=${base_bindir}/systemctl for target gives the
  correct path there and the environment variable is set after a user
  session was opened.

[YOCTO #11002]

Signed-off-by: Andy Kling 
---
 meta/recipes-core/dbus/dbus_1.10.14.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/dbus/dbus_1.10.14.bb 
b/meta/recipes-core/dbus/dbus_1.10.14.bb
index e4f54ec734..75c8c41df8 100644
--- a/meta/recipes-core/dbus/dbus_1.10.14.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.14.bb
@@ -97,6 +97,7 @@ EXTRA_OECONF = "--disable-tests \
 --disable-libaudit \
 "
 
+EXTRA_OECONF_append_class-target = " SYSTEMCTL=${base_bindir}/systemctl"
 EXTRA_OECONF_append_class-native = " --disable-selinux"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'systemd', '', d)} \
-- 
2.11.0

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


Re: [OE-core] [PATCH v2] kernel-fitimage.bbclass: Allow set/unset load address for FDT

2017-02-14 Thread Rick Altherr
Reviewed-by: Rick Altherr 

On Tue, Feb 14, 2017 at 7:03 PM, Nikunj Kela  wrote:

> Allow the load address for the FDT segment in the fitImage. This
> allows U-Boot to load the FDT at a specific address.
>
> UBOOT_FDT_LOADADDRESS - Specifies the load address used by u-boot
> for the FDT
>
> Signed-off-by: Nikunj Kela 
> ---
>  meta/classes/kernel-fitimage.bbclass | 6 ++
>  1 file changed, 6 insertions(+)
>
> diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-
> fitimage.bbclass
> index 1c3b4b7..7f9da49 100644
> --- a/meta/classes/kernel-fitimage.bbclass
> +++ b/meta/classes/kernel-fitimage.bbclass
> @@ -127,6 +127,11 @@ EOF
>  fitimage_emit_section_dtb() {
>
> dtb_csum="sha1"
> +   fdt_loadline=""
> +
> +   if [ -n "${UBOOT_FDT_LOADADDRESS}" ]; then
> +   fdt_loadline="load = <${UBOOT_FDT_LOADADDRESS}>;"
> +   fi
>
> cat << EOF >> ${1}
>  fdt@${2} {
> @@ -135,6 +140,7 @@ fitimage_emit_section_dtb() {
>  type = "flat_dt";
>  arch = "${UBOOT_ARCH}";
>  compression = "none";
> +${fdt_loadline}
>  hash@1 {
>  algo = "${dtb_csum}";
>  };
> --
> 2.5.0
>
> --
> ___
> 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


[OE-core] [PATCH v2] kernel-fitimage.bbclass: Allow set/unset load address for FDT

2017-02-14 Thread Nikunj Kela
Allow the load address for the FDT segment in the fitImage. This
allows U-Boot to load the FDT at a specific address.

UBOOT_FDT_LOADADDRESS - Specifies the load address used by u-boot
for the FDT

Signed-off-by: Nikunj Kela 
---
 meta/classes/kernel-fitimage.bbclass | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/kernel-fitimage.bbclass 
b/meta/classes/kernel-fitimage.bbclass
index 1c3b4b7..7f9da49 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -127,6 +127,11 @@ EOF
 fitimage_emit_section_dtb() {
 
dtb_csum="sha1"
+   fdt_loadline=""
+
+   if [ -n "${UBOOT_FDT_LOADADDRESS}" ]; then
+   fdt_loadline="load = <${UBOOT_FDT_LOADADDRESS}>;"
+   fi
 
cat << EOF >> ${1}
 fdt@${2} {
@@ -135,6 +140,7 @@ fitimage_emit_section_dtb() {
 type = "flat_dt";
 arch = "${UBOOT_ARCH}";
 compression = "none";
+${fdt_loadline}
 hash@1 {
 algo = "${dtb_csum}";
 };
-- 
2.5.0

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


[OE-core] State of bitbake world, Failed tasks 2017-02-14

2017-02-14 Thread Martin Jansa
Finally something short again.

Now someone should really notice that chromium-wayland got broken again shortly 
after Trevor fixed it in:
https://github.com/OSSystems/meta-browser/commit/22bc9604102f177a46230ddebd582158dd67239d
but it could be different issue this time, my guess is that disabling 
generate_character_data as in qtwebengine
https://github.com/meta-qt5/meta-qt5/commit/aa6551d14987e10d9c49b0d04f5529401e3cb936
would be enough to work around this.

== Number of issues - stats ==
{| class='wikitable'
!|Date   !!colspan='3'|Failed tasks 
!!colspan='6'|Failed depencencies!!|Signatures
!!colspan='12'|QA !!Comment
|-
||  ||qemuarm   ||qemux86   ||qemux86_64
||qemuarm||max||min ||qemux86||max||min ||all   ||already-stripped  
||libdir||textrel   ||build-deps||file-rdeps
||version-going-backwards   ||host-user-contaminated
||installed-vs-shipped  ||unknown-configure-option  ||symlink-to-sysroot
||invalid-pkgconfig ||pkgname   ||  
|-
||2017-02-14||0 ||1 ||0 ||N/A   ||N/A   ||N/A   ||N/A   ||N/A   
||N/A   ||0 ||0 ||0 ||1 ||0 
||0 ||8 ||0 ||0 ||0 
||0 ||0 ||0 ||  
|}

http://www.openembedded.org/wiki/Bitbake_World_Status

== Failed tasks 2017-02-14 ==

INFO: jenkins-job.sh-1.8.17 Complete log available at 
http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.report.20170214_134258.log

=== common () ===

=== common-x86 (0) ===

=== qemuarm (0) ===

=== qemux86 (1) ===
* 
meta-browser/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb:do_compile

=== qemux86_64 (0) ===

=== Number of failed tasks (1) ===
{| class=wikitable
|-
|| qemuarm  || 0 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.world.qemuarm.20170213_095743.log/
 || 
|-
|| qemux86  || 1 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.world.qemux86.20170213_110945.log/
 || http://errors.yoctoproject.org/Errors/Build/32356/
|-
|| qemux86_64   || 0 || 
http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.world.qemux86-64.20170214_123631.log/
 || 
|}

=== PNBLACKLISTs (463) ===

=== QA issues (9) ===
{| class=wikitable
!| Count||Issue
|-
||0 ||already-stripped
|-
||0 ||build-deps
|-
||0 ||file-rdeps
|-
||0 ||host-user-contaminated
|-
||0 ||installed-vs-shipped
|-
||0 ||invalid-pkgconfig
|-
||0 ||libdir
|-
||0 ||pkgname
|-
||0 ||symlink-to-sysroot
|-
||0 ||unknown-configure-option
|-
||1 ||textrel
|-
||8 ||version-going-backwards
|}



=== Incorrect PACKAGE_ARCH or sstate signatures (0) ===

Complete log: 
http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.signatures.20170213_110747.log/

No issues detected


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


Re: [OE-core] [PATCH 01/11] mesa: Upgrade 13.0.4 -> 17.0.0

2017-02-14 Thread Martin Jansa
On Tue, Feb 14, 2017 at 11:54:58AM +0200, Jussi Kukkonen wrote:
> * New feature release with lots of changes
> * Versioning change (17 as in 2017, no longer relates to GL bumps)

There is also this paragraph in release notes:
https://www.mesa3d.org/relnotes/17.0.0.html

Mesa 17.0.0 is a new development release. People who are concerned with
stability and reliability should stick with a previous release or wait
for Mesa 17.0.1.

If you don't want to wait for 17.0.1 than maybe mention it in commit
message.

> * OpenGL 4.5 support on Haswell
> * mesa now implements its own sha1 instead of having 5
>   configurable sha-providers
> 
> Signed-off-by: Jussi Kukkonen 
> ---
>  .../mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb} | 0
>  meta/recipes-graphics/mesa/mesa.inc   | 8 
> +---
>  meta/recipes-graphics/mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb} | 7 +++
>  3 files changed, 4 insertions(+), 11 deletions(-)
>  rename meta/recipes-graphics/mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb} 
> (100%)
>  rename meta/recipes-graphics/mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb} (74%)
> 
> diff --git a/meta/recipes-graphics/mesa/mesa-gl_13.0.4.bb 
> b/meta/recipes-graphics/mesa/mesa-gl_17.0.0.bb
> similarity index 100%
> rename from meta/recipes-graphics/mesa/mesa-gl_13.0.4.bb
> rename to meta/recipes-graphics/mesa/mesa-gl_17.0.0.bb
> diff --git a/meta/recipes-graphics/mesa/mesa.inc 
> b/meta/recipes-graphics/mesa/mesa.inc
> index 5d882b1..befb35e 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "opengl"
>  
>  EXTRA_OECONF = "--enable-shared-glapi"
>  
> -PACKAGECONFIG ??= "gbm egl gles dri ${MESA_CRYPTO} \
> +PACKAGECONFIG ??= "gbm egl gles dri \
>   ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\
>   ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 
> '', d)}\
>   "
> @@ -67,12 +67,6 @@ PACKAGECONFIG[xa]  = "--enable-xa, --disable-xa"
>  OSMESA = "${@bb.utils.contains('PACKAGECONFIG', 'gallium', 'gallium-osmesa', 
> 'osmesa', d)}"
>  PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
>  
> -# Mesa requires one of the following crypto implementation, pick one of them
> -MESA_CRYPTO ??= "openssl"
> -PACKAGECONFIG[openssl] = "--with-sha1=libcrypto,,openssl"
> -PACKAGECONFIG[nettle] = "--with-sha1=libnettle,,nettle"
> -PACKAGECONFIG[gcrypt] = "--with-sha1=libgcrypt,,libgcrypt"
> -
>  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
>  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
>  
> diff --git a/meta/recipes-graphics/mesa/mesa_13.0.4.bb 
> b/meta/recipes-graphics/mesa/mesa_17.0.0.bb
> similarity index 74%
> rename from meta/recipes-graphics/mesa/mesa_13.0.4.bb
> rename to meta/recipes-graphics/mesa/mesa_17.0.0.bb
> index 1416c9f..6576e3c 100644
> --- a/meta/recipes-graphics/mesa/mesa_13.0.4.bb
> +++ b/meta/recipes-graphics/mesa/mesa_17.0.0.bb
> @@ -1,13 +1,12 @@
>  require ${BPN}.inc
>  
> -SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \
> +SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/mesa-${PV}.tar.xz \
> file://replace_glibc_check_with_linux.patch \
> file://disable-asm-on-non-gcc.patch \
> file://0001-Use-wayland-scanner-in-the-path.patch \
>  "
> -
> -SRC_URI[md5sum] = "d088a921e935218833a8071cb672a574"
> -SRC_URI[sha256sum] = 
> "a95d7ce8f7bd5f88585e4be3144a341236d8c0fc91f6feaec59bb8ba3120e726"
> +SRC_URI[md5sum] = "932e4171a86b14940c06812356486155"
> +SRC_URI[sha256sum] = 
> "39db3d59700159add7f977307d12a7dfe016363e760ad82280ac4168ea668481"
>  
>  #because we cannot rely on the fact that all apps will use pkgconfig,
>  #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
> -- 
> 2.1.4
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
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


[OE-core] [PATCH] wic: Fix and update rootfs-pcbios-ext plugin

2017-02-14 Thread Adrian Freihofer
Resolves #11003
Adds oe-selftest for rootfs-pcbios-ext plugin
---
 .../recipes-test/images/wic-image-single-ext.bb|  13 ++
 .../recipes-test/images/wic-image-single-ext.wks   |   6 +
 meta/lib/oeqa/selftest/wic.py  |  22 
 .../lib/wic/plugins/source/rootfs_pcbios_ext.py| 144 +
 4 files changed, 105 insertions(+), 80 deletions(-)
 create mode 100644 meta-selftest/recipes-test/images/wic-image-single-ext.bb
 create mode 100644 meta-selftest/recipes-test/images/wic-image-single-ext.wks

diff --git a/meta-selftest/recipes-test/images/wic-image-single-ext.bb 
b/meta-selftest/recipes-test/images/wic-image-single-ext.bb
new file mode 100644
index 000..5bd4b62
--- /dev/null
+++ b/meta-selftest/recipes-test/images/wic-image-single-ext.bb
@@ -0,0 +1,13 @@
+SUMMARY = "An example of partitioned image."
+
+SRC_URI = "file://${FILE_DIRNAME}/${BPN}.wks"
+
+IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}"
+
+IMAGE_FSTYPES = "wic"
+
+DEPENDS = "syslinux syslinux-native e2fsprogs-native"
+
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+inherit image
diff --git a/meta-selftest/recipes-test/images/wic-image-single-ext.wks 
b/meta-selftest/recipes-test/images/wic-image-single-ext.wks
new file mode 100644
index 000..af8d2f5
--- /dev/null
+++ b/meta-selftest/recipes-test/images/wic-image-single-ext.wks
@@ -0,0 +1,6 @@
+# short-description: Example of single ext4 partition
+# long-description: This image contains one singel ext4 partition.
+# created from core-image-minimal and wic-image-single-ext image recipes.
+
+part / --source rootfs-pcbios-ext --ondisk vda --fstype=ext4 --active --label 
rootfs --align 4096 --size 20
+bootloader --source rootfs-pcbios-ext --timeout=0 --append="rootwait 
console=tty0 rootfstype=ext4"
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 417ba3d..2928ea0 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -442,3 +442,25 @@ class Wic(oeSelfTest):
 status, output = qemu.run_serial(cmd)
 self.assertEqual(1, status, 'Failed to run command "%s": %s' % 
(cmd, output))
 self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt')
+
+@testcase(1565)
+def test_single_ext_qemu(self):
+"""Test wic-image-single-ext under qemu"""
+config = 'IMAGE_FSTYPES += "wic"\nWKS_FILE = "wic-image-single-ext"\n'
+self.append_config(config)
+self.assertEqual(0, bitbake('wic-image-single-ext').status)
+self.remove_config(config)
+
+with runqemu('wic-image-single-ext', ssh=False) as qemu:
+cmd = "grep '/dev/root / ext4' /proc/mounts"
+status, output = qemu.run_serial(cmd)
+self.assertEqual(1, status, 'Failed to run command "%s": %s' % 
(cmd, output))
+self.assertRegex(output, '^/dev/root +/ +ext4.*')
+
+cmd = "ls /boot"
+status, output = qemu.run_serial(cmd)
+self.assertEqual(1, status, 'Failed to run command "%s": %s' % 
(cmd, output))
+self.assertRegex(output, '.*ldlinux.c32.*')
+self.assertRegex(output, '.*ldlinux.sys.*')
+self.assertRegex(output, '.*syslinux.cfg.*')
+self.assertRegex(output, '.*vmlinuz.*')
\ No newline at end of file
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py 
b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
index cb1da93..68fa656 100644
--- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
+++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
@@ -14,12 +14,21 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
+# DESCRIPTION
+# This plugin creates an ext4 rootfs partition. If the image feature
+# package-management is enabled and even the kernel package needs to be
+# updated on the target device this source plugin might be a good choice.
+# In general a fat boot partition and a second root partition is
+# recommended.
+# Example wks file:
+#   part / --source rootfs-pcbios-ext --ondisk sda --fstype=ext4 --active 
--label rootfs --align 4096 --size 20
+#   bootloader --source rootfs-pcbios-ext --timeout=0 --append="rootwait 
console=ttyS0,115200n8 rootfstype=ext4"
+#
 # AUTHOR
-# Adrian Freihofer 
+# Adrian Freihofer 
 #
 
 import os
-import re
 
 from wic import msger
 from wic.utils import runner
@@ -27,44 +36,9 @@ from wic.utils.misc import get_bitbake_var, exec_cmd, 
exec_native_cmd
 from wic.utils.errors import ImageError
 from wic.pluginbase import SourcePlugin
 
-def serial_console_form_kargs(kernel_args):
-"""
-Create SERIAL... line from kernel parameters
-
-syslinux needs a line SERIAL port [baudrate [flowcontrol]]
-in the syslinux.cfg file. The config line is generated based
-on kernel boot parameters. The the parameters of the first
-t

[OE-core] [PATCH] kernel-fitimage.bbclass: Allow set/unset load address for FDT

2017-02-14 Thread Nikunj Kela
Allow the load address for the FDT segment in the fitImage. This
allows U-Boot to dynamically decide where to load the FDT.

UBOOT_FDT_LOADADDRESS - Specifies the load address used by u-boot
for the FDT

Signed-off-by: Nikunj Kela 
---
 meta/classes/kernel-fitimage.bbclass | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/kernel-fitimage.bbclass 
b/meta/classes/kernel-fitimage.bbclass
index 1c3b4b7..7f9da49 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -127,6 +127,11 @@ EOF
 fitimage_emit_section_dtb() {
 
dtb_csum="sha1"
+   fdt_loadline=""
+
+   if [ -n "${UBOOT_FDT_LOADADDRESS}" ]; then
+   fdt_loadline="load = <${UBOOT_FDT_LOADADDRESS}>;"
+   fi
 
cat << EOF >> ${1}
 fdt@${2} {
@@ -135,6 +140,7 @@ fitimage_emit_section_dtb() {
 type = "flat_dt";
 arch = "${UBOOT_ARCH}";
 compression = "none";
+${fdt_loadline}
 hash@1 {
 algo = "${dtb_csum}";
 };
-- 
2.5.0

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


[OE-core] [PATCH] kexec-tools/kdump: Correct typo in comment "crashkenrel="

2017-02-14 Thread Robert P. J. Day

Signed-off-by: Robert P. J. Day 

---

diff --git a/meta/recipes-kernel/kexec/kexec-tools/kdump 
b/meta/recipes-kernel/kexec/kexec-tools/kdump
index 2347205..69e3caf 100755
--- a/meta/recipes-kernel/kexec/kexec-tools/kdump
+++ b/meta/recipes-kernel/kexec/kexec-tools/kdump
@@ -89,7 +89,7 @@ do_start()
return 0
fi

-   #check the running kernel cmdline option,insure "crashkenrel=" always 
set.
+   #check the running kernel cmdline option,insure "crashkernel=" always 
set.
grep -q crashkernel= /proc/cmdline
if [ $? != 0 ]; then
echo "Kdump isn't supported on the running kernel,please check 
boot option!!!"



-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


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


[OE-core] [PATCH] docbook-xml: correct typo "do_configre"

2017-02-14 Thread Robert P. J. Day

Signed-off-by: Robert P. J. Day 

---

  i'm assuming this is a typo.

diff --git a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb 
b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
index 05a04d8..da62b77 100644
--- a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
+++ b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
@@ -27,7 +27,7 @@ S="${WORKDIR}/docbook-xml-4.5.c31424"
 inherit allarch
 BBCLASSEXTEND = "native"

-do_configre (){
+do_configure (){
 :
 }


-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


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


[OE-core] [PATCH 11/11] linux-yocto-rt/4.9: update to 4.9-rt6

2017-02-14 Thread Bruce Ashfield
Updating the SRCREVs to make Paul Gortmaker's port of 4.9-rt6 active.

Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb   | 4 ++--
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
index 5d7a20ed3ee0..4c6f6c36665a 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
@@ -11,8 +11,8 @@ python () {
 raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "7c90101498e6974f25e3bfd4823710e42c054e06"
-SRCREV_meta ?= "b6e2f3d63bd3e8fc2663c7e10356db916e496207"
+SRCREV_machine ?= "4b45c66b706a2bf859e7672d03ab525ea6bd3d75"
+SRCREV_meta ?= "7e8ec462b6bc68cb0f3cb0064909e035db1c4038"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
index 6a110502074d..93230e079036 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "d0c402280c0fb424f02b7d152c8a008d9ac267df"
-SRCREV_meta ?= "b6e2f3d63bd3e8fc2663c7e10356db916e496207"
+SRCREV_meta ?= "7e8ec462b6bc68cb0f3cb0064909e035db1c4038"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
index 7c367d886508..92870f3b90de 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"d0c402280c0fb424f02b7d152c8a008d9ac267df"
 SRCREV_machine_qemux86-64 ?= "d0c402280c0fb424f02b7d152c8a008d9ac267df"
 SRCREV_machine_qemumips64 ?= "2ee2ed6d782e36fd705cc8f6ad9de98606ca227e"
 SRCREV_machine ?= "d0c402280c0fb424f02b7d152c8a008d9ac267df"
-SRCREV_meta ?= "b6e2f3d63bd3e8fc2663c7e10356db916e496207"
+SRCREV_meta ?= "7e8ec462b6bc68cb0f3cb0064909e035db1c4038"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
-- 
2.5.0

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


[OE-core] [PATCH 06/11] linux-yocto/4.8/4.9: fix tpm.cfg and add dm-verity

2017-02-14 Thread Bruce Ashfield
Integrating the following commits to fix a configuration warning
and to add a tpm configuration feature:

  8f3bc608ae61 features: add dm-verity
  0ad64750fef1 tpm: avoid warning due to double CONFIG_TCG_TPM

Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.8.bb  | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb
index 71308310c94e..f99f200598d3 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "ffd0a071c2df55ecb2bb1f101465df93a81093b5"
-SRCREV_meta ?= "c19322afb12490d9f5ad0182339bff2fe13e778b"
+SRCREV_meta ?= "ea8a679c9542ab214e4afebcbc82a929624daeb5"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.8.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.8;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
index 7521bc437f46..b47e6aaaed13 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "01a64b0469256a432af0b8a0f27d32694e908e8b"
-SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
+SRCREV_meta ?= "8f3bc608ae61c5333043167fa31bac33be93c3de"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb
index 52e2b5233b0a..18ef51788fd3 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "db2e91ce904f32347ccf739de969b4216cbcaf92"
-SRCREV_meta ?= "c19322afb12490d9f5ad0182339bff2fe13e778b"
+SRCREV_meta ?= "ea8a679c9542ab214e4afebcbc82a929624daeb5"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
index d92f49f50d03..e886f14cd7ed 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
+SRCREV_meta ?= "8f3bc608ae61c5333043167fa31bac33be93c3de"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.8.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.8.bb
index a56ecdf23c56..4c89183a3512 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.8.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.8.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"c50f695341260d4757af64d809390610aae213e1"
 SRCREV_machine_qemux86-64 ?= "c50f695341260d4757af64d809390610aae213e1"
 SRCREV_machine_qemumips64 ?= "40a880b0f21aa09f3b52d68969339d80f9cc10ad"
 SRCREV_machine ?= "c50f695341260d4757af64d809390610aae213e1"
-SRCREV_meta ?= "c19322afb12490d9f5ad0182339bff2fe13e778b"
+SRCREV_meta ?= "ea8a679c9542ab214e4afebcbc82a929624daeb5"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.8.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.8;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
index ff9fda822b55..f33ff7718d14 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemux86-64 ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemumips64 ?= "13818cbe0b9f0e2e7542b7c088b5719c7a463da9"
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
+SRCREV_meta ?= "8f3bc608ae61c5333043167fa31bac33be93c3de"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
-- 
2.5.0

-- 
___
Openembedded-core mailing list
Openembedded

[OE-core] [PATCH 09/11] linux-yocto/4.4: meta/configuration updates

2017-02-14 Thread Bruce Ashfield
Integrating the following commit already in 4.9 and 4.8:

  intel-quark: Add intel-quark-preempt-rt bsp configuration

  While there are intel-quark configurations for the KTYPEs standard
  and tiny in bsp/intel-common, there's none for the preempt-rt KTYPE.
  Trying to build preempt-rt enabled kernels such as linux-yocto-rt for
  intel-quark yields a .config having a potentially misconfigured
  architecture. More importantly, however, preempt-rt related CONFIG
  options are not enabled. Hence, a build of, e.g., linux-yocto-rt, does
  not result in a preempt-rt enabled kernel.

  This patch qualifies to be (back)ported to other branches than
  master.

  Signed-off-by: Christian Storm 
  Signed-off-by: Jan Kiszka 

Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.4.bb  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb
index f5169b81bdd5..82f1a94f162f 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "6622c6471016005d5588aa4338ce57aced713dcd"
-SRCREV_meta ?= "78a26182e20c0a49c1adda63faa15ccd3f4ecb27"
+SRCREV_meta ?= "f4a781388fae67caec79a5a571c8aadef0185044"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.4.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.4;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb
index 0baba1de53fe..6cb580dc3e90 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "ad8b1d659ddd2699ebf7d50ef9de8940b157bfc2"
-SRCREV_meta ?= "78a26182e20c0a49c1adda63faa15ccd3f4ecb27"
+SRCREV_meta ?= "f4a781388fae67caec79a5a571c8aadef0185044"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.4.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.4.bb
index 5ac3f561a54f..34e0f38c030b 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.4.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"ad8b1d659ddd2699ebf7d50ef9de8940b157bfc2"
 SRCREV_machine_qemux86-64 ?= "ad8b1d659ddd2699ebf7d50ef9de8940b157bfc2"
 SRCREV_machine_qemumips64 ?= "c74cc42106745bab08de6263b9320ac029f2cca9"
 SRCREV_machine ?= "ad8b1d659ddd2699ebf7d50ef9de8940b157bfc2"
-SRCREV_meta ?= "78a26182e20c0a49c1adda63faa15ccd3f4ecb27"
+SRCREV_meta ?= "f4a781388fae67caec79a5a571c8aadef0185044"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.4.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.4;destsuffix=${KMETA}"
-- 
2.5.0

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


[OE-core] [PATCH 10/11] kernel-yocto: trivial: remove extra } from bsp_definition

2017-02-14 Thread Bruce Ashfield
A typo introduced an extra } in the logging of the bsp_definition.
While this won't cause problems .. it needs to be fixed!

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

diff --git a/meta/classes/kernel-yocto.bbclass 
b/meta/classes/kernel-yocto.bbclass
index 33361b962469..0330270d3fea 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -148,7 +148,7 @@ do_kernel_metadata() {
# run1: pull all the configuration fragments, no matter where they come 
from
elements="`echo -n ${bsp_definition} ${sccs} ${patches} 
${KERNEL_FEATURES}`"
if [ -n "${elements}" ]; then
-   echo "${bsp_definition}}" > ${S}/${meta_dir}/bsp_definition
+   echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} 
${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}
if [ $? -ne 0 ]; then
bbfatal_log "Could not generate configuration queue for 
${KMACHINE}."
-- 
2.5.0

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


[OE-core] [PATCH 07/11] linux-yocto/4.9: update to v4.9.9

2017-02-14 Thread Bruce Ashfield
Updating to the korg -stable release. Changelog is as follows:

   d2e4b66b4ef2 Linux 4.9.9
   f2a0409a0850 drm/i915/execlists: Reset RING registers upon resume
   72cd604cfd86 fs: break out of iomap_file_buffered_write on fatal signals
   bf9ab22c350d iw_cxgb4: set correct FetchBurstMax for QPs
   13363b6988f6 x86/irq: Make irq activate operations symmetric
   e02136282296 irqdomain: Avoid activating interrupts more than once
   c6b0333baea0 iio: health: max30100: fixed parenthesis around FIFO count check
   12c2fcf6bcf7 iio: dht11: Use usleep_range instead of msleep for start signal
   7baa8491d47d iio: health: afe4403: retrieve a valid iio_dev in suspend/resume
   5f0ee562605b iio: health: afe4404: retrieve a valid iio_dev in suspend/resume
   54d2ccc4003b iio: adc: palmas_gpadc: retrieve a valid iio_dev in 
suspend/resume
   db0e02ef6b82 staging: greybus: timesync: validate platform state callback
   89cc65c1117f USB: serial: option: add device ID for HP lt2523 (Novatel E371)
   12a9c11c2e19 usb: gadget: f_fs: Assorted buffer overflow checks.
   e40d15fce929 usb: musb: Fix host mode error -71 regression
   cbd819e7db3a USB: Add quirk for WORLDE easykey.25 MIDI keyboard
   4807725aab0b USB: serial: pl2303: add ATEN device ID
   8bc382a9652b USB: serial: qcserial: add Dell DW5570 QDL
   0dcbd0aa44e6 KVM: x86: do not save guest-unsupported XSAVE state
   bc05a2e940fe dmaengine: cppi41: Fix oops in cppi41_runtime_resume
   2c2e7fe7c9c5 dmaengine: cppi41: Fix runtime PM timeouts with USB mass storage
   bebb9d75e84d perf/x86/intel/uncore: Clean up hotplug conversion fallout
   e6bd712154aa HID: wacom: Fix poor prox handling in 'wacom_pl_irq'
   f24bc920612c HID: hid-lg: Fix immediate disconnection of Logitech Rumblepad 2
   80246551c7d7 HID: usbhid: Quirk a AMI virtual mouse and keyboard with 
ALWAYS_POLL
   40add19d3897 iwlwifi: mvm: avoid crash on restart w/o reserved queues
   97663735a96f iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000
   3d8ec7d2d5f9 pinctrl: intel: merrifield: Add missed check in 
mrfld_config_set()
   2cf6c49264e4 pinctrl: baytrail: Debounce register is one per community
   449d3ecfbd76 Revert "vring: Force use of DMA API for ARM-based systems with 
legacy devices"
   16f61dee7e7c Revert "bcma: init serial console directly from ChipCommon code"
   12f822d23dee percpu-refcount: fix reference leak during percpu-atomic 
transition
   8ee8ff9e2652 regulator: axp20x: AXP806: Fix dcdcb being set instead of dcdce
   1594edd9ea0d vhost: fix initialization for vq->is_le
   04eb7db25bb1 mmc: sdhci: Ignore unexpected CARD_INT interrupts
   1d88791d5ed5 cgroup: don't online subsystems before cgroup_name/path() are 
operational
   a150e08704b2 can: bcm: fix hrtimer/tasklet termination in bcm op removal
   a93ae8dccc3c tracing: Fix hwlat kthread migration
   b67c7d39bc28 mm, fs: check for fatal signals in do_generic_file_read()
   6cb0497aec81 base/memory, hotplug: fix a kernel oops in show_valid_zones()
   72f7419610c8 mm/memory_hotplug.c: check start_pfn in test_pages_in_a_zone()
   9e255997c2e1 cifs: initialize file_info_lock
   f0c3a0ac3349 zswap: disable changing params if init fails
   a3d729526f2f svcrpc: fix oops in absence of krb5 module
   743146d347f3 NFSD: Fix a null reference case in find_or_create_lock_stateid()
   4c953848c95b powerpc/mm: Use the correct pointer when setting a 2MB pte
   8f415333be3a powerpc: Fix build failure with clang due to BUILD_BUG_ON()
   bbf69e5197da powerpc: Add missing error check to prom_find_boot_cpu()
   73d45909780e powerpc/eeh: Fix wrong flag passed to eeh_unfreeze_pe()
   4b70d598c2ee libata: Fix ATA request sense
   6d08607ef35b libata: apply MAX_SEC_1024 to all CX1-JB*-HP devices
   fc794153c407 ata: sata_mv:- Handle return value of devm_ioremap.
   b41615aa7056 perf/core: Fix PERF_RECORD_MMAP2 prot/flags for anonymous memory
   3996a91e3bdc perf/core: Fix use-after-free bug
   53bed1f64025 crypto: arm64/aes-blk - honour iv_out requirement in CBC and 
CTR modes
   b04a39f88ced crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an 
alg
   2eb8f7c4225a drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval
   bd5cefed1ccc drm/nouveau/disp/gt215: Fix HDA ELD handling (thus, HDMI audio) 
on gt215
   c9fb422fd938 drm/amdgpu/si: fix crash on headless asics
   20658b3df8b9 pinctrl: baytrail: Add missing spinlock usage in 
byt_gpio_irq_handler
   7396685a1bca HID: cp2112: fix gpio-callback error handling
   a18c4584a489 HID: cp2112: fix sleep-while-atomic
   dfd713307adb xtensa: fix noMMU build on cores with MMU
   f2e24dd91818 efi/fdt: Avoid FDT manipulation after ExitBootServices()
   f0c7412edfc1 x86/efi: Always map the first physical page into the EFI 
pagetables
   13e6ef99d23b ext4: validate s_first_meta_bg at mount time
   610c2b7ff8f6 PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe 
hierarchies

Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb   |  6 +++---
 meta/recipes-kernel/linux/linu

[OE-core] [PATCH 08/11] linux-yocto-dev: bump to v4.10+

2017-02-14 Thread Bruce Ashfield
Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-dev.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb 
b/meta/recipes-kernel/linux/linux-yocto-dev.bb
index 0cda553afdba..a4e02dbfff7e 100644
--- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -28,7 +28,7 @@ SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name
 SRCREV_machine ?= 
'${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", 
"linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", 
d)}'
 SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", 
"linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", 
d)}'
 
-LINUX_VERSION ?= "4.9-rc+"
+LINUX_VERSION ?= "4.10-rc+"
 LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
-- 
2.5.0

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


[OE-core] [PATCH 04/11] linux-yocto-rt/4.9: integrate 4.9-rt4

2017-02-14 Thread Bruce Ashfield
Integrating the 4.9-rt4 new changes:

  56a3dd6fb4e9 x86/mm/cpa: avoid wbinvd() for PREEMPT
  221db3244e71 pinctrl: qcom: Use raw spinlock variants
  43158f23e188 radix-tree: use local locks
  109a8fea2c4a cpuset: Convert callback_lock to raw_spinlock_t
  3741fb19d20f softirq: wake the timer softirq if needed

Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb   | 4 ++--
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
index 771adaa80145..94697ee98694 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
@@ -11,8 +11,8 @@ python () {
 raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "ff62b282b523e48abb8f8304ff46ebcc88913757"
-SRCREV_meta ?= "2c9c93fb141832b1416824387491dd95a9d627c6"
+SRCREV_machine ?= "01a64b0469256a432af0b8a0f27d32694e908e8b"
+SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
index 8910bee524e5..34354f02722c 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "2c9c93fb141832b1416824387491dd95a9d627c6"
+SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
index f91cab32450d..6795d2cb1fa3 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemux86-64 ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemumips64 ?= "13818cbe0b9f0e2e7542b7c088b5719c7a463da9"
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "2c9c93fb141832b1416824387491dd95a9d627c6"
+SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
-- 
2.5.0

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


[OE-core] [PATCH 05/11] linux-yocto/4.9: Intel-quark: Add intel-quark-preempt-rt bsp configuration

2017-02-14 Thread Bruce Ashfield
While there are intel-quark configurations for the KTYPEs standard and
tiny in bsp/intel-common, there's none for the preempt-rt KTYPE.
Trying to build preempt-rt enabled kernels such as linux-yocto-rt for
intel-quark yields a .config having a potentially misconfigured
architecture. More importantly, however, preempt-rt related CONFIG
options are not enabled. Hence, a build of, e.g., linux-yocto-rt, does
not result in a preempt-rt enabled kernel.

Signed-off-by: Christian Storm 
Signed-off-by: Jan Kiszka 
Signed-off-by: Bruce Ashfield 
---
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
index 94697ee98694..7521bc437f46 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "01a64b0469256a432af0b8a0f27d32694e908e8b"
-SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
+SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;branch=${KBRANCH};name=machine \

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
index 34354f02722c..d92f49f50d03 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb
@@ -10,7 +10,7 @@ KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
+SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb 
b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
index 6795d2cb1fa3..ff9fda822b55 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
@@ -19,7 +19,7 @@ SRCREV_machine_qemux86 ?= 
"c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemux86-64 ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
 SRCREV_machine_qemumips64 ?= "13818cbe0b9f0e2e7542b7c088b5719c7a463da9"
 SRCREV_machine ?= "c85c54f5bf53b98afe8105e91bffcdb6c60afe8f"
-SRCREV_meta ?= "8d1042fc4b23d184688b0e6931dd4e7ff4807273"
+SRCREV_meta ?= "f9cb76e24e3a73b8eda70ea9bd91ba5a52711521"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${KBRANCH}; 
\

git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
-- 
2.5.0

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


[OE-core] [PATCH 02/11] linux-yocto/4.9: bump to v4.9.8

2017-02-14 Thread Bruce Ashfield
Integrating the -stable releases. Changelog is as follows:

   c8ea2f3b8247 Linux 4.9.8
   b5b4d4a9141e xfs: fix bmv_count confusion w/ shared extents
   5d44dd54bd57 xfs: clear _XBF_PAGES from buffers when readahead page
   29f96b7e9023 xfs: extsize hints are not unlikely in xfs_bmap_btalloc
   aab858dabd5e xfs: remove racy hasattr check from attr ops
   29094164ea99 xfs: verify dirblocklog correctly
   214d55efa255 xfs: fix COW writeback race
   29f319275e76 xfs: fix xfs_mode_to_ftype() prototype
   d062d90c35f2 xfs: don't wrap ID in xfs_dq_get_next_id
   d3201a14b36a xfs: sanity check inode di_mode
   43ce5921773b xfs: sanity check inode mode when creating new dentry
   b5f68e24cc7b xfs: replace xfs_mode_to_ftype table with switch statement
   4fac84ba1da7 xfs: add missing include dependencies to xfs_dir2.h
   e5325fcf70b1 xfs: sanity check directory inode di_size
   624e54b5aff1 xfs: make the ASSERT() condition likely
   4f4d5082ec73 xfs: don't print warnings when xfs_log_force fails
   e9b776519107 xfs: don't rely on ->total in xfs_alloc_space_available
   6b81365b1e57 xfs: adjust allocation length in xfs_alloc_space_available
   c63f4d3aa09d xfs: fix bogus minleft manipulations
   d20e4ad06c4b xfs: bump up reserved blocks in xfs_alloc_set_aside
   9f42bc4f9c1c net: dsa: Bring back device detaching in dsa_slave_suspend()
   e972cce0c833 lwtunnel: Fix oops on state free after encap module unload
   89c2588627c2 net: Specify the owning module for lwtunnel ops
   087c2ecb21af qmi_wwan/cdc_ether: add device ID for HP lt2523 (Novatel E371) 
WWAN card
   93ff5e03bcba af_unix: move unix_mknod() out of bindlock
   37b27b20a8a9 r8152: don't execute runtime suspend if the tx is not empty
   ad864d9fce0e net: mpls: Fix multipath selection for LSR use case
   74423145d931 bridge: netlink: call br_changelink() during br_dev_newlink()
   087dced61adc net/mlx5e: Do not recycle pages from emergency reserve
   0c687a735cdb tcp: initialize max window for a new fastopen socket
   79453ab88164 ipv6: addrconf: Avoid addrconf_disable_change() using RCU 
read-side lock
   e9db042dca20 lwtunnel: fix autoload of lwt modules
   b335e651 net: phy: bcm63xx: Utilize correct config_intr function
   948e137ad9ba net: fix harmonize_features() vs NETIF_F_HIGHDMA
   d1c95f9ce102 vxlan: fix byte order of vxlan-gpe port number
   1e7cbb413f63 virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving
   3eab5dd0eb19 virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit
   b260a714a638 net sched actions: fix refcnt when GETing of action after bind
   2d6b61ec9d3a ax25: Fix segfault after sock connection timeout
   c7a5df92d1e8 ip6_tunnel: Account for tunnel header in tunnel MTU
   08e650708dd0 ravb: do not use zero-length alignment DMA descriptor
   77ce30dc4df4 mlx4: do not call napi_schedule() without care
   18767acb7b67 openvswitch: maintain correct checksum state in conntrack 
actions
   3524f64224bd tcp: fix tcp_fastopen unaligned access complaints on sparc
   b66b1f5ac33d net: systemport: Decouple flow control from 
__bcm_sysport_tx_reclaim
   958bb1bdc2c2 net: ipv4: fix table id in getroute response
   6980c52c4efb net: lwtunnel: Handle lwtunnel_fill_encap failure
   ec1aa8d49532 mlxsw: pci: Fix EQE structure definition
   4ec59d1fe470 mlxsw: switchx2: Fix memory leak at skb reallocation
   7c249f3306b6 mlxsw: spectrum: Fix memory leak at skb reallocation
   5b3df4401064 netvsc: add rcu_read locking to netvsc callback
   a37f2311e63c r8152: fix the sw rx checksum is unavailable
   fd2ffe57dda0 Linux 4.9.7
   b59dd202f231 drm/i915: Remove WaDisableLSQCROPERFforOCL KBL workaround.
   922813f4d66f perf/core: Fix concurrent sys_perf_event_open() vs. 
'move_group' race
   f5f415c13209 mm, memcg: do not retry precharge charges
   98185d4b18a1 platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT
   adb260d15134 platform/x86: mlx-platform: free first dev on error
   776050a9b55e virtio_mmio: Set DMA masks appropriately
   143a9ad4e68c memory_hotplug: make zone_can_shift() return a boolean value
   da1fdb8456ac pinctrl: baytrail: Rectify debounce support
   583eded5860b pinctrl: uniphier: fix Ethernet (RMII) pin-mux setting for LD20
   35948ae694c0 pinctrl: broxton: Use correct PADCFGLOCK offset
   668a827a6c9d s5k4ecgx: select CRC32 helper
   9a335996bfcf IB/rxe: Prevent from completer to operate on non valid QP
   fed1e89a16e3 IB/rxe: Fix rxe dev insertion to rxe_dev_list
   c81ee4ed9c0d IB/umem: Release pid in error and ODP flow
   d7c3d7e453b7 drm/i915: Check for NULL atomic state in 
intel_crtc_disable_noatomic()
   181478cdb75e drm/i915: Fix calculation of rotated x and y offsets for planar 
formats
   ff495613 drm/i915: Don't init hpd polling for vlv and chv from 
runtime_suspend()
   8d7c76ae613e drm/i915: Don't leak edid in intel_crt_detect_ddc()
   2cff678d0bb5 drm/i915: prevent crash with .disable_display parameter
   9913aca2d587 drm/i915: Clear ret before unbinding in 
i915_gem_evict_something()
   1b8ff91ae545 v4l: tvp515

[OE-core] [PATCH 01/11] kernel-yocto.bbclass: ensure repatching when HEAD is checked out

2017-02-14 Thread Bruce Ashfield
From: Awais Belal 

In some cases it is seen that kernel_checkout and validate_branches are
run again in simultaneous builds. During do_patch the kgit-s2q mechanism
looks for a sentinel file inside the .git directory, finds a fence post
and starts picking up patches after that.

This can create trouble as validate_branches checks out the HEAD of the
branch and so the patches should be reapplied rather than skipped due to
finding of the fence post.

We can call kgit-s2q --clean to remove the sentinel file when the
branches are checked out.

Signed-off-by: Awais Belal 
Signed-off-by: Bruce Ashfield 
---
 meta/classes/kernel-yocto.bbclass   | 4 
 meta/recipes-kernel/kern-tools/kern-tools-native_git.bb | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/kernel-yocto.bbclass 
b/meta/classes/kernel-yocto.bbclass
index a7b635638186..33361b962469 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -365,6 +365,10 @@ do_validate_branches() {
current_branch=`git rev-parse --abbrev-ref HEAD`
git branch "$current_branch-orig"
git reset --hard ${force_srcrev}
+   # We've checked out HEAD, make sure we cleanup kgit-s2q 
fence post check
+   # so the patches are applied as expected otherwise no 
patching
+   # would be done in some corner cases.
+   kgit-s2q --clean
fi
fi
 }
diff --git a/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb 
b/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb
index 4b1de5752c93..03f8ce3cc253 100644
--- a/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb
+++ b/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = 
"file://git/tools/kgit;beginline=5;endline=9;md5=a6c2fa8aef1b
 
 DEPENDS = "git-native"
 
-SRCREV = "c14440d4e7ae0160c260ed65c3e123be5dc97ae8"
+SRCREV = "5deada879404820db146685729e89ba0887fc0ee"
 PR = "r12"
 PV = "0.2+git${SRCPV}"
 
-- 
2.5.0

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


[OE-core] [PATCH 03/11] linux-yocto/4.8: update to v4.8.18

2017-02-14 Thread Bruce Ashfield
Paul Gortmaker has started doing 4.8 -stable updates. This integrates
his 4.8.18 queue from:

   git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-4.8.y.git

Change log is as follows:

   28dda89acd7c Linux 4.8.18
   936e79682048 tick/broadcast: Prevent NULL pointer dereference
   f22b03e15427 clocksource/dummy_timer: Move hotplug callback after the real 
timers
   8f78db7e5df0 xfs: use GPF_NOFS when allocating btree cursors
   1d818a81bac6 xfs: ignore leaf attr ichdr.count in verifier during log replay
   62ef2c9c1d94 xfs: don't allow di_size with high bit set
   db28776559c7 xfs: error out if trying to add attrs and anextents > 0
   fb70f2a64910 xfs: don't crash if reading a directory results in an 
unexpected hole
   ebff27d76e7e xfs: complain if we don't get nextents bmap records
   14c3f0b270aa xfs: check for bogus values in btree block headers
   31f0f90742a3 xfs: pass state not whichfork to trace_xfs_extlist
   430a362685e9 xfs: Move AGI buffer type setting to xfs_read_agi
   20aa52b53586 xfs: new inode extent list lookup helpers
   c7b75fcea4e6 xfs: fix unbalanced inode reclaim flush locking
   e89df591f833 xfs: check minimum block size for CRC filesystems
   b04a2c02f4d7 xfs: provide helper for counting extents from if_bytes
   f4e7f4cd52b1 xfs: don't BUG() on mixed direct and mapped I/O
   49f159ae6e80 xfs: check return value of _trans_reserve_quota_nblks
   23bb39fdbb96 xfs: don't call xfs_sb_quota_from_disk twice
   d3c7d2aa00d4 tpm_tis: Check return values from get_burstcount.
   9fc58e555d78 drm/i915/gen9: fix the WM memory bandwidth WA for Y tiling cases
   4f075608d2c4 drm/i915/gen9: unconditionally apply the memory bandwidth WA
   55e9c9d00d70 drm/i915: disable PSR by default on HSW/BDW
   2c266a9a3631 drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y 
values
   e4d1900e15db s390/topology: always use s390 specific 
sched_domain_topology_level
   b04e5322d8a4 powerpc/pci/rpadlpar: Fix device reference leaks
   458e63f135d6 PCI: Enable access to non-standard VPD for Chelsio devices 
(cxgb3)
   05a725c46f56 PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+
   8d12795b1eac PCI: Convert Mellanox broken INTx quirks to be for listed 
devices only
   24af87eb2ffa PCI: Convert broken INTx masking quirks from HEADER to FINAL
   ec9f277f52e9 PCI: Add Mellanox device IDs
   9e7c8ebc1316 staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()
   8c6c73a692c9 f2fs: hide a maybe-uninitialized warning
   a91f2c1d4f45 f2fs: remove percpu_count due to performance regression
   93634e1cc928 md: MD_RECOVERY_NEEDED is set for mddev->recovery
   239b31c50bde crypto: arm64/aes-ce - fix for big endian
   a3141467e092 crypto: arm64/aes-xts-ce: fix for big endian
   7c26ef18f05a crypto: arm64/sha1-ce - fix for big endian
   cb70151453a1 crypto: arm64/aes-neon - fix for big endian
   c1c451bea4af crypto: arm64/aes-ccm-ce: fix for big endian
   c4957563b255 crypto: arm/aes-ce - fix for big endian
   dcb0c4ebc7ad crypto: arm64/ghash-ce - fix for big endian
   d60ecc7f02a4 crypto: arm64/sha2-ce - fix for big endian
   f9315853c7c1 s390/crypto: unlock on error in prng_tdes_read()
   a76c795f53e7 mm, compaction: fix NR_ISOLATED_* stats for pfn based migration
   d3b82f9a9716 mm: khugepaged: fix radix tree node leak in shmem collapse 
error path
   ab533014582f mm: khugepaged: close use-after-free race during shmem 
collapsing
   c9777f749c4c mm/hugetlb.c: use the right pte val for compare in hugetlb_cow
   0ff00251359e mmc: mmc_test: Uninitialized return value
   abe558647a0f PM / wakeirq: Fix dedicated wakeirq for drivers not using 
autosuspend
   b90b6b8cce53 irqchip/bcm7038-l1: Implement irq_cpu_offline() callback
   d6229a05dd06 ima: fix memory leak in ima_release_policy
   8cbe9b689467 sbp-target: Fix second argument of percpu_ida_alloc()
   fed8068fd1de target/iscsi: Fix double free in lio_target_tiqn_addtpg()
   ec92af68808e scsi: mvsas: fix command_active typo
   efe08cc6939b ASoC: samsung: i2s: Fixup last IRQ unsafe spin lock call
   a5a550bd0768 ASoC: cht_bsw_rt5645: Fix leftover kmalloc
   3fcdecb0f9f6 iommu/vt-d: Flush old iommu caches for kdump when the device 
gets context mapped
   22604a045edb iommu/vt-d: Fix pasid table size encoding
   f7dd8813279b iommu/amd: Fix the left value check of cmd buffer
   9a134d29af48 iommu/amd: Missing error code in amd_iommu_init_device()
   35a294dd5723 clk: renesas: mstp: Support 8-bit registers for r7s72100
   8a7022b2ffad clk: imx31: fix rewritten input argument of mx31_clocks_init()
   8b4940dd9224 clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio 
module clocks
   a13af6a13e68 clk: ti: dra7: fix "failed to lookup clock node 
gmac_gmii_ref_clk_div" boot message
   c54f34533601 clk: clk-wm831x: fix a logic error
   36c3481984b5 clk: qcom: ipq806x: Fix board clk rates
   fdd91f12bebc hwmon: (g762) Fix overflows and crash seen when writing limit 
attributes
   18d749bb756f hwmon: (nct7802) Fix overflows seen when writi

[OE-core] [PATCH 00/11] kernel-yocto: consolidated pull request

2017-02-14 Thread Bruce Ashfield
Hi all,

Here is the latest consolidated pull request for the 4.x linux yocto
kernels.

Nothing really earth shattering here, some config updates, -stable
integrations, -rt refreshes and a bump of linux-yocto-dev to 4.10.

Cheers,

Bruce

The following changes since commit e758547db9048d4aa1c1415d6af8072f519fae24:

  nss: Fix nss-native so the checksum doesn't change with BUILD_ARCH 
(2017-02-09 10:52:03 +)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib zedd/kernel
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel

Awais Belal (1):
  kernel-yocto.bbclass: ensure repatching when HEAD is checked out

Bruce Ashfield (10):
  linux-yocto/4.9: bump to v4.9.8
  linux-yocto/4.8: update to v4.8.18
  linux-yocto-rt/4.9: integrate 4.9-rt4
  linux-yocto/4.9: Intel-quark: Add intel-quark-preempt-rt bsp
configuration
  linux-yocto/4.8/4.9: fix tpm.cfg and add dm-verity
  linux-yocto/4.9: update to v4.9.9
  linux-yocto-dev: bump to v4.10+
  linux-yocto/4.4: meta/configuration updates
  kernel-yocto: trivial: remove extra } from bsp_definition
  linux-yocto-rt/4.9: update to 4.9-rt6

 meta/classes/kernel-yocto.bbclass|  6 +-
 .../kern-tools/kern-tools-native_git.bb  |  2 +-
 meta/recipes-kernel/linux/linux-yocto-dev.bb |  2 +-
 meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb  |  2 +-
 meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb  |  6 +++---
 meta/recipes-kernel/linux/linux-yocto-rt_4.9.bb  |  6 +++---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.4.bb|  2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.8.bb|  6 +++---
 meta/recipes-kernel/linux/linux-yocto-tiny_4.9.bb|  6 +++---
 meta/recipes-kernel/linux/linux-yocto_4.4.bb |  2 +-
 meta/recipes-kernel/linux/linux-yocto_4.8.bb | 20 ++--
 meta/recipes-kernel/linux/linux-yocto_4.9.bb | 20 ++--
 12 files changed, 42 insertions(+), 38 deletions(-)

-- 
2.5.0

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


Re: [OE-core] [PATCH] wic/partionedfs: Avoid reserving space for non-existing ext. partition

2017-02-14 Thread Burton, Ross
On 14 February 2017 at 14:46, Kristian Amlie 
wrote:

> Ping. Patch still applies, should be a very easy change.
>

The consolidated pull I just sent has a large refactoring series in, can
you rebase this on top of that?

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


[OE-core] [PATCH 00/90] Consolidated Pull

2017-02-14 Thread Ross Burton
Hi,

Enclosed is a consolidated pull which was mostly green on the autobuilder, apart
from some MIPS failures that were isolated to the Linux 4.9 switch which has now
been removed from the series.

Ross

The following changes since commit a3826786b6e76c17198dcd38e0e6fdafb4476d33:

  linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.9 (2017-02-13 
02:57:46 -0800)

are available in the git repository at:

  ssh://g...@git.yoctoproject.org/poky-contrib ross/mut

for you to fetch changes up to d0c5119e3ea1dd6b41b6f5ac59fa448ab36f4d00:

  wic: direct: move creation of PartitionedImage to __init__ (2017-02-14 
19:17:31 +)


Alexander Kanavin (1):
  gpgme: allow building -native variant

Amarnath Valluri (1):
  package_deb.bbclass: Ignore file paths in RPROVIDES

Andrea Adami (1):
  kernel.bbclass: Make symbol to vmlinuz.bin in boot directory

Andreas Horsthemke (1):
  xz: upgrade to 5.2.3

Andreas Oberritter (1):
  python: Don't use getentropy on Linux

Andrej Valek (1):
  lighttpd: Upgrade 1.4.43 -> 1.4.45

Benjamin Esquivel (1):
  selftest: remove result file log awkward checking

California Sullivan (1):
  kernel.bbclass: Make sanity check opt-out and provide easy opt-out

Chen Qi (2):
  console-tools: fix string formatting issue
  security_flags: enable string formatting check for console tools

Dalon Westergreen (1):
  uboot-extlinux-config.bbclass: add support for timeout & default

Ed Bartosh (22):
  wic: partitionedfs: merged __format_disks and create
  wic: partitionedfs: get rid of __add_partition
  wic: partitionedfs: rename __create_partition and __add_disk
  wic: direct: get rid of _get_parts getter
  wic: use the same partition object in direct and partitionedfs
  wic: make sure layout_partitions is called once
  wic: direct: remove unused plugin attributes
  wic: direct: remove unused import
  wic: remove unused argument scripts_path
  wic: move disk operations to PartitionImage class
  wic: move PartitionedImage class to direct.py
  wic: remove utils/oe/__init__.py
  wic: ksparser: set default disk to 'sda'
  wic: direct: remove set_bootimg_dir setter
  wic: direct: don't catch ImagerError
  wic: direct: remove useless code
  wic: direct: add 'realnum' attribute to partition
  wic: direct: move UUID generation to PartitionedImage
  wic: direct: set bootloader.source in the __init__
  wic: direct: add PartitionedImage.prepare method
  wic: direct: move generation of part.realnum to PartitionedImage
  wic: direct: move creation of PartitionedImage to __init__

Fabio Berton (1):
  watchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS

Gary Thomas (1):
  usbutils: allow udev-hwdb to be optional

He Zhe (1):
  ltp: Fix containers/userns05 failure for lib32

Herve Jourdain (1):
  smartpm: if RPM transaction fails with an empty list of problems in 
attempt mode, ignore it!

Hongxu Jia (10):
  pax-utils: 1.1.6 -> 1.2.2
  socat: 1.7.3.1 -> 1.7.3.2
  libgcrypt: 1.7.3 -> 1.7.6
  man-pages: 4.08 -> 4.09
  rpcbind: 0.2.3 -> 0.2.4
  gnupg: 2.1.14 -> 2.1.18
  gpgme: 1.6.0 -> 1.8.0
  libgpg-error: 1.25 -> 1.26
  elfutils: 0.166 -> 0.168
  elfutils: update homepage and upstream souce

Joshua Lock (1):
  pseudo: update to 1.8.2

Joshua Watt (1):
  classes/license: Respect beginline and endline

Jussi Kukkonen (4):
  cve-check.bbclass: Fix dependencies
  cve-check-tool: Fixes for recipe sysroots
  cve-check-tool: Use CA cert bundle in correct sysroot
  libxslt: Add build fix (with ld-is-gold)

Khem Raj (2):
  glibc: Update to 2.25 release
  libcap: Add gperf-native to depends

Kristian Amlie (2):
  wic: Add --exclude-path option to rootfs source plugin.
  selftest/wic: Add tests for --exclude-dir option.

Li Zhou (1):
  bash: fix CVE-2016-9401

Mariano Lopez (2):
  testimage.bbclass: Add check for empty test suite
  insane.bbclass: Add missing dependencies

Markus Lehtonen (8):
  oeqa/buildperf: don't archive stdout/stderr of commands
  oeqa.utils.git: add git_dir property
  scripts: Implement oe-git-archive
  oeqa.utils.git: support bare repos
  scripts/oe-git-archive: support creating bare repositories
  build-perf-test-wrapper.sh: use oe-git-archive
  oe-build-perf-test: drop --commit-results
  build-perf-test-wrapper.sh: fix issues with non-existing path arguments

Nathan Rossi (1):
  image.bbclass: Use 'populate_sdk_base' for non-linux targets

Paul Eggleton (1):
  classes/copyleft_filter: include AGPL in default included list

Philip Balister (1):
  sanity.bbclass: Add which to SANITY_REQUIRED_UTILITIES.

Robert Yang (10):
  e2fsprogs: 1.43.3 -> 1.43.4
  git: 2.11.0 -> 2.11.1
  gnu-efi: 3.0.4 -> 3.0.5
  hdparm: 9.50 -> 9.51

[OE-core] [PATCH] relocate_sdk.py: skip debug files from relocation

2017-02-14 Thread Nikunj Kela
Debug files only have debug symbols hence don't need
to be relocated. Relocation script throws errors when
run on the debug files. This change skips these files
that have zero size.

Signed-off-by: Nikunj Kela 
---
 scripts/relocate_sdk.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py
index e47b4d9..c752fa2 100755
--- a/scripts/relocate_sdk.py
+++ b/scripts/relocate_sdk.py
@@ -103,6 +103,8 @@ def change_interpreter(elf_file_name):
fname.startswith(b("/lib32/")) or 
fname.startswith(b("/usr/lib32/")) or \
fname.startswith(b("/usr/lib32/")) or 
fname.startswith(b("/usr/lib64/")):
 break
+if p_filesz == 0:
+break
 if (len(new_dl_path) >= p_filesz):
 print("ERROR: could not relocate %s, interp size = %i and %i 
is needed." \
 % (elf_file_name, p_memsz, len(new_dl_path) + 1))
-- 
2.5.0

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


Re: [OE-core] multipath-tools on arm (was: Re: State of bitbake world, Failed tasks 2017-02-08)

2017-02-14 Thread Phil Blundell
On Tue, 2017-02-14 at 16:35 +0100, Patrick Ohly wrote:
> {standard input}: Assembler messages:
> {standard input}:80: Error: shifts in CMP/MOV instructions are only
> supported in unified syntax -- `mov r12,r12,ror#3'
> {standard input}:80: Error: shifts in CMP/MOV instructions are only
> supported in unified syntax -- `mov r12,r12,ror#13'

This code is imported from valgrind and doesn't work in a Thumb build. 
It's trying to generate a special no-op instruction sequence that the
Valgrind JIT can spot.  There might be a Thumb equivalent in a newer
version of valgrind upstream, I'm not sure.

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


[OE-core] [PATCH 2/2] classes/license.bbclass: Don't copy unneeded licenses by package

2017-02-14 Thread Aníbal Limón
Usually a recipe only provides one package but when provides more
than one package the LICENSE variable per package (i.e. linux-firmware)
needs to take into account to avoid unnecesary copy of licenses into
packages.

The patch validates if LICENSE exists in package LICENSES in order to
don't copy unneeded licenses.

As result of this patch some packages will not contain licenses there
are not into LICENSE variable.

For example:

acl contains GPLv2+ instead of GPLv2+ and LGPLv2.1+
libacl contains LGPLv2+ instead of GPLv2+ and LGPLv2.1+

This behaviour is declared on the acl recipe as:

SUMMARY = "Utilities for managing POSIX Access Control Lists"
HOMEPAGE = "http://savannah.nongnu.org/projects/acl/";
SECTION = "libs"

LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"

[YOCTO #10325]

Signed-off-by: Aníbal Limón 
---
 meta/classes/license.bbclass | 20 
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 3c5e49e..f9fb5bb 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -131,6 +131,10 @@ def write_license_files(d, license_manifest, pkg_dic):
 bb.utils.mkdirhier(pkg_rootfs_license_dir)
 pkg_license_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
 pkg_dic[pkg]["PN"]) 
+
+pkg_manifest_licenses = [canonical_license(d, lic) \
+for lic in pkg_dic[pkg]["LICENSES"]]
+
 licenses = os.listdir(pkg_license_dir)
 for lic in licenses:
 rootfs_license = os.path.join(rootfs_license_dir, lic)
@@ -138,9 +142,18 @@ def write_license_files(d, license_manifest, pkg_dic):
 pkg_rootfs_license = os.path.join(pkg_rootfs_license_dir, 
lic)
 
 if re.match("^generic_.*$", lic):
-generic_lic = re.search("^generic_(.*)$", lic).group(1)
-if oe.license.license_ok(canonical_license(d,
-generic_lic), bad_licenses) == False:
+generic_lic = canonical_license(d,
+re.search("^generic_(.*)$", lic).group(1))
+
+# Do not copy generic license into package if isn't
+# declared into LICENSES of the package.
+if not re.sub('\+$', '', generic_lic) in \
+[re.sub('\+', '', lic) for lic in \
+ pkg_manifest_licenses]:
+continue
+
+if oe.license.license_ok(generic_lic,
+bad_licenses) == False:
 continue
 
 if not os.path.exists(rootfs_license):
@@ -488,7 +501,6 @@ def find_license_files(d):
 bb.fatal('%s: %s' % (d.getVar('PF'), exc))
 except SyntaxError:
 bb.warn("%s: Failed to parse it's LICENSE field." % (d.getVar('PF')))
-
 # Add files from LIC_FILES_CHKSUM to list of license files
 lic_chksum_paths = defaultdict(OrderedDict)
 for path, chksum in lic_chksums.items():
-- 
2.1.4

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


[OE-core] [PATCH 1/2] license.bbclass: Don't copy again LICENSE already handled as no-generic

2017-02-14 Thread Aníbal Limón
The NO_GENERIC_LICENSE mapping was added [1] to enable copy LICENSES
from upstream source code into recipe licenses, previously that only
common-licenses was processed.

This result on copy twice the NO_GENERIC_LICENSE specified because there
is a mapping between license in LIC_CHKSUM and NO_GENERIC_LICENSE.

In order to avoid double copy one as generic_ and other as LICENSE. keep
track of licenses already copied.

For linux-firmware the result will be only generic_ licenses into
common-licenses.

[YOCTO #10325]

[1]
http://lists.openembedded.org/pipermail/openembedded-core/2015-April/104222.html

Signed-off-by: Aníbal Limón 
---
 meta/classes/license.bbclass | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 44467d0..3c5e49e 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -398,6 +398,8 @@ def find_license_files(d):
 generic_directory = d.getVar('COMMON_LICENSE_DIR')
 # List of basename, path tuples
 lic_files_paths = []
+# hash for keep track generic lics mappings
+non_generic_lics = {}
 # Entries from LIC_FILES_CHKSUM
 lic_chksums = {}
 license_source_dirs = []
@@ -459,6 +461,7 @@ def find_license_files(d):
 # of the package rather than the license_source_dirs.
 lic_files_paths.append(("generic_" + license_type,
 os.path.join(srcdir, non_generic_lic)))
+non_generic_lics[non_generic_lic] = license_type
 else:
 # Add explicity avoid of CLOSED license because this isn't generic
 if license_type != 'CLOSED':
@@ -492,6 +495,9 @@ def find_license_files(d):
 lic_chksum_paths[os.path.basename(path)][chksum] = 
os.path.join(srcdir, path)
 for basename, files in lic_chksum_paths.items():
 if len(files) == 1:
+# Don't copy again a LICENSE already handled as non-generic
+if basename in non_generic_lics:
+continue
 lic_files_paths.append((basename, list(files.values())[0]))
 else:
 # If there are multiple different license files with identical
-- 
2.1.4

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


Re: [OE-core] [PATCH] weston: fix LIC_FILES_CHKSUM endline and md5sum for src/compositor.c

2017-02-14 Thread Andre McCurdy
On Tue, Feb 14, 2017 at 7:30 AM, Leonardo Sandoval
 wrote:
>
> On 02/14/2017 07:57 AM, Andre McCurdy wrote:
>>
>> The license text in Weston sources was changed from "MIT X11" to "MIT
>> Expat" in the 1.9.0 release. The new text is 3 lines longer than the
>> previous version, so endline and md5 hash have been incorrect for the
>> oe-core weston recipes from 1.9.0 onwards.
>
> If this is the case, why the build system did not complain on >= 1.9
> recipes?

The current endline and hash are valid from the build system's point
of view. The problem is that they only cover the first 23 lines of a
26 line block of license text.

>> https://cgit.freedesktop.org/wayland/weston/diff/src/compositor.c?id=a0bbfea64b04d3cf12327d8b488b9949a4cddc99
>>
>> Signed-off-by: Andre McCurdy 
>> ---
>>   meta/recipes-graphics/wayland/weston_1.11.1.bb | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-graphics/wayland/weston_1.11.1.bb
>> b/meta/recipes-graphics/wayland/weston_1.11.1.bb
>> index 2736cc1..cdfac70 100644
>> --- a/meta/recipes-graphics/wayland/weston_1.11.1.bb
>> +++ b/meta/recipes-graphics/wayland/weston_1.11.1.bb
>> @@ -3,7 +3,7 @@ DESCRIPTION = "Weston is the reference implementation of a
>> Wayland compositor"
>>   HOMEPAGE = "http://wayland.freedesktop.org";
>>   LICENSE = "MIT"
>>   LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70
>> \
>> -
>> file://src/compositor.c;endline=23;md5=1d535fed266cf39f6d8c0647f52ac331"
>> +
>> file://src/compositor.c;endline=26;md5=e342df749174a8ee11065583157c7a38"
>> SRC_URI =
>> "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
>>  file://weston.png \
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] how to select for non-volatile /var/log?

2017-02-14 Thread Patrick Ohly
On Tue, 2017-02-14 at 10:12 -0500, Robert P. J. Day wrote:
> On Tue, 14 Feb 2017, Patrick Ohly wrote:
> 
> > On Tue, 2017-02-14 at 09:31 -0500, Robert P. J. Day wrote:
> > >   i recall, once upon a time, a discussion of how to best support a
> > > non-volatile /var/log directory:
> > >
> > > https://patchwork.openembedded.org/patch/90151/
> >
> > A more recent, but also still unmerged patch for this functionality
> > is here: https://patchwork.openembedded.org/patch/90839/
> 
>   "more recent" would appear to be a relative term, since the date on
> that is may of 2015.

It was reposted late last year, I just didn't pick the more recent entry
in patchwork. Here's the current one:
https://patchwork.openembedded.org/series/4028/

> it seems that this topic comes up every so often,
> then just dies. so is there any *current* discussion to add this
> feature? be nice if this issue was just resolved, one way or the
> other.

Fully agreed.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



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


[OE-core] multipath-tools on arm (was: Re: State of bitbake world, Failed tasks 2017-02-08)

2017-02-14 Thread Patrick Ohly
On Fri, 2017-02-10 at 09:28 +0100, Martin Jansa wrote:
> *
> meta-openembedded/meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb:do_compile

This is http://errors.yoctoproject.org/Errors/Details/130529/ and now
blacklisted with the comment "Fails to build with RSS
http://errors.yoctoproject.org/Errors/Details/130529/";

However, the error isn't about RSS. It looks like an inline-assembler or
compiler bug:

{standard input}: Assembler messages:
{standard input}:80: Error: shifts in CMP/MOV instructions are only supported 
in unified syntax -- `mov r12,r12,ror#3'
{standard input}:80: Error: shifts in CMP/MOV instructions are only supported 
in unified syntax -- `mov r12,r12,ror#13'
...
../Makefile.inc:66: recipe for target 'debug.o' failed
make[1]: *** [debug.o] Error 1

Does anyone know what this could be? I'll also fire up a build in the
meantime.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



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


Re: [OE-core] [PATCH] weston: fix LIC_FILES_CHKSUM endline and md5sum for src/compositor.c

2017-02-14 Thread Leonardo Sandoval



On 02/14/2017 07:57 AM, Andre McCurdy wrote:

The license text in Weston sources was changed from "MIT X11" to "MIT
Expat" in the 1.9.0 release. The new text is 3 lines longer than the
previous version, so endline and md5 hash have been incorrect for the
oe-core weston recipes from 1.9.0 onwards.


If this is the case, why the build system did not complain on >= 1.9 
recipes?




   
https://cgit.freedesktop.org/wayland/weston/diff/src/compositor.c?id=a0bbfea64b04d3cf12327d8b488b9949a4cddc99

Signed-off-by: Andre McCurdy 
---
  meta/recipes-graphics/wayland/weston_1.11.1.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston_1.11.1.bb 
b/meta/recipes-graphics/wayland/weston_1.11.1.bb
index 2736cc1..cdfac70 100644
--- a/meta/recipes-graphics/wayland/weston_1.11.1.bb
+++ b/meta/recipes-graphics/wayland/weston_1.11.1.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Weston is the reference implementation of a Wayland 
compositor"
  HOMEPAGE = "http://wayland.freedesktop.org";
  LICENSE = "MIT"
  LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \
-
file://src/compositor.c;endline=23;md5=1d535fed266cf39f6d8c0647f52ac331"
+
file://src/compositor.c;endline=26;md5=e342df749174a8ee11065583157c7a38"
  
  SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \

 file://weston.png \


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


Re: [OE-core] how to select for non-volatile /var/log?

2017-02-14 Thread Robert P. J. Day
On Tue, 14 Feb 2017, Patrick Ohly wrote:

> On Tue, 2017-02-14 at 09:31 -0500, Robert P. J. Day wrote:
> >   i recall, once upon a time, a discussion of how to best support a
> > non-volatile /var/log directory:
> >
> > https://patchwork.openembedded.org/patch/90151/
>
> A more recent, but also still unmerged patch for this functionality
> is here: https://patchwork.openembedded.org/patch/90839/

  "more recent" would appear to be a relative term, since the date on
that is may of 2015. it seems that this topic comes up every so often,
then just dies. so is there any *current* discussion to add this
feature? be nice if this issue was just resolved, one way or the
other.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


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


Re: [OE-core] how to select for non-volatile /var/log?

2017-02-14 Thread Patrick Ohly
On Tue, 2017-02-14 at 09:31 -0500, Robert P. J. Day wrote:
>   i recall, once upon a time, a discussion of how to best support a
> non-volatile /var/log directory:
> 
> https://patchwork.openembedded.org/patch/90151/

A more recent, but also still unmerged patch for this functionality is
here: https://patchwork.openembedded.org/patch/90839/

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



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


Re: [OE-core] [PATCH] wic/partionedfs: Avoid reserving space for non-existing ext. partition

2017-02-14 Thread Kristian Amlie
Ping. Patch still applies, should be a very easy change.

-- 
Kristian


On 27/01/17 07:51, Kristian Amlie wrote:
> We don't need the gap that the extended partition occupies if we
> already know that we have less than five partitions. Saves up to one
> full alignment of space.
> 
> Signed-off-by: Kristian Amlie 
> ---
>  scripts/lib/wic/utils/partitionedfs.py | 8 ++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/lib/wic/utils/partitionedfs.py 
> b/scripts/lib/wic/utils/partitionedfs.py
> index 721d514..9db6d56 100644
> --- a/scripts/lib/wic/utils/partitionedfs.py
> +++ b/scripts/lib/wic/utils/partitionedfs.py
> @@ -131,6 +131,10 @@ class Image():
>  
>  self._partitions_layed_out = True
>  
> +# The number of primary and logical partitions. Extended partition 
> and
> +# partitions not listed in the table are not included.
> +num_real_partitions = len([p for p in self.partitions if not 
> p['no_table']])
> +
>  # Go through partitions in the order they are added in .ks file
>  for num in range(len(self.partitions)):
>  part = self.partitions[num]
> @@ -162,7 +166,7 @@ class Image():
>  # Skip one sector required for the partitioning scheme 
> overhead
>  disk['offset'] += overhead
>  
> -if disk['realpart'] > 3:
> +if disk['realpart'] > 3 and num_real_partitions > 4:
>  # Reserve a sector for EBR for every logical partition
>  # before alignment is performed.
>  if ptable_format == "msdos":
> @@ -202,7 +206,7 @@ class Image():
>  
>  if disk['ptable_format'] == "msdos":
>  # only count the partitions that are in partition table
> -if len([p for p in self.partitions if not p['no_table']]) > 
> 4:
> +if num_real_partitions > 4:
>  if disk['realpart'] > 3:
>  part['type'] = 'logical'
>  part['num'] = disk['realpart'] + 1
> 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] cmake: Update to 3.7.2.

2017-02-14 Thread Philip Balister
Tested by building gnuradio stack.

Signed-off-by: Philip Balister 
---
 .../cmake/{cmake-native_3.7.1.bb => cmake-native_3.7.2.bb}| 0
 meta/recipes-devtools/cmake/cmake.inc | 4 ++--
 meta/recipes-devtools/cmake/{cmake_3.7.1.bb => cmake_3.7.2.bb}| 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/cmake/{cmake-native_3.7.1.bb => 
cmake-native_3.7.2.bb} (100%)
 rename meta/recipes-devtools/cmake/{cmake_3.7.1.bb => cmake_3.7.2.bb} (100%)

diff --git a/meta/recipes-devtools/cmake/cmake-native_3.7.1.bb 
b/meta/recipes-devtools/cmake/cmake-native_3.7.2.bb
similarity index 100%
rename from meta/recipes-devtools/cmake/cmake-native_3.7.1.bb
rename to meta/recipes-devtools/cmake/cmake-native_3.7.2.bb
diff --git a/meta/recipes-devtools/cmake/cmake.inc 
b/meta/recipes-devtools/cmake/cmake.inc
index 18e547d..131ff70 100644
--- a/meta/recipes-devtools/cmake/cmake.inc
+++ b/meta/recipes-devtools/cmake/cmake.inc
@@ -17,8 +17,8 @@ SRC_URI = 
"https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
file://avoid-gcc-warnings-with-Wstrict-prototypes.patch \
"
 
-SRC_URI[md5sum] = "d031d5a06e9f1c5367cdfc56fbd2a1c8"
-SRC_URI[sha256sum] = 
"449a5bce64dbd4d5b9517ebd1a1248ed197add6ad27934478976fd5f1f9330e1"
+SRC_URI[md5sum] = "79bd7e65cd81ea3aa2619484ad6ff25a"
+SRC_URI[sha256sum] = 
"dc1246c4e6d168ea4d6e042cfba577c1acd65feea27e56f5ff37df920c30cae0"
 
 UPSTREAM_CHECK_REGEX = "cmake-(?P\d+(\.\d+)+)\.tar"
 
diff --git a/meta/recipes-devtools/cmake/cmake_3.7.1.bb 
b/meta/recipes-devtools/cmake/cmake_3.7.2.bb
similarity index 100%
rename from meta/recipes-devtools/cmake/cmake_3.7.1.bb
rename to meta/recipes-devtools/cmake/cmake_3.7.2.bb
-- 
2.7.4

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


[OE-core] how to select for non-volatile /var/log?

2017-02-14 Thread Robert P. J. Day

  i recall, once upon a time, a discussion of how to best support a
non-volatile /var/log directory:

https://patchwork.openembedded.org/patch/90151/

  whatever became of that? is there a single OE setting that would
implement non-volatile logging? i remember the reference to a
VOLATILE_LOG_DIR variable, but nothing ever came of that.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


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


[OE-core] [PATCH] kernel, license, sstate, rootfs.py: Remove deploy directory README

2017-02-14 Thread Mike Crowe
It isn't clear that the README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
file in the deploy directory warrants the complexity it brings elsewhere.
Let's just remove it entirely.

In particular, if two do_image_complete tasks run in parallel they risk
both trying to put their image into ${DEPLOY_DIR_IMAGE} at the same time.
Both will contain a README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
file. In theory this should be safe because "cp -alf" will just cause one
to overwrite the other. Unfortunately, coreutils cp also has a race[1]
which means that if one copy creates the file at just the wrong point the
other will fail with:

 cp: cannot create hard link 
‘/tmp-glibc/deploy/images/pantera/README_-_DO_NOT_DELETE_FILES_IN_THIS_D.txt’
 to
+‘/tmp-glibc/work/rage_against-oe-linux-gnueabi/my-own-image/1.0-r0/deploy-my-own-image-complete/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt’:
 File exists

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25680

Signed-off-by: Mike Crowe 
---
 meta/classes/kernel.bbclass | 2 --
 meta/classes/license.bbclass| 2 +-
 meta/classes/sstate.bbclass | 2 --
 meta/files/deploydir_readme.txt | 8 
 meta/lib/oe/rootfs.py   | 4 
 5 files changed, 1 insertion(+), 17 deletions(-)
 delete mode 100644 meta/files/deploydir_readme.txt

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f462b2ff41..9f079a97a0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -608,8 +608,6 @@ kernel_do_deploy() {
ln -sf ${base_name}.bin ${DEPLOYDIR}/${type}
done
 
-   cp ${COREBASE}/meta/files/deploydir_readme.txt 
${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
-
cd ${B}
# Update deploy directory
for type in ${KERNEL_IMAGETYPES} ; do
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 44467d09bf..5b01bc6577 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -279,7 +279,7 @@ def get_deployed_files(man_file):
 """
 
 dep_files = []
-excluded_files = ["README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt"]
+excluded_files = []
 with open(man_file, "r") as manifest:
 all_files = manifest.read()
 for f in all_files.splitlines():
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index bd9c2ae02e..450c068863 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -30,8 +30,6 @@ SSTATE_DUPWHITELIST = "${DEPLOY_DIR_IMAGE}/ 
${DEPLOY_DIR}/licenses/ ${DEPLOY_DIR
 SSTATE_DUPWHITELIST += "${STAGING_ETCDIR_NATIVE}/sgml 
${STAGING_DATADIR_NATIVE}/sgml"
 # Archive the sources for many architectures in one deploy folder
 SSTATE_DUPWHITELIST += "${DEPLOY_DIR_SRC}"
-# Ignore overlapping README
-SSTATE_DUPWHITELIST += 
"${DEPLOY_DIR}/sdk/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt"
 
 SSTATE_SCAN_FILES ?= "*.la *-config *_config"
 SSTATE_SCAN_CMD ??= 'find ${SSTATE_BUILDDIR} \( -name "${@"\" -o -name 
\"".join(d.getVar("SSTATE_SCAN_FILES").split())}" \) -type f'
diff --git a/meta/files/deploydir_readme.txt b/meta/files/deploydir_readme.txt
deleted file mode 100644
index 97ec1855f5..00
--- a/meta/files/deploydir_readme.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-Files in the deploy directory will not be re-created automatically if you
-delete them. If you do delete a file, you will need to run:
-
-  bitbake -c clean TARGET
-  bitbake TARGET
-
-where TARGET is the name of the appropriate package or target e.g.
-"virtual/kernel" for the kernel, an image, etc.
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 9c8a0ebb7e..cc111ff3c8 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -189,10 +189,6 @@ class Rootfs(object, metaclass=ABCMeta):
 
 shutil.copytree(postinst_intercepts_dir, intercepts_dir)
 
-
shutil.copy(self.d.expand("${COREBASE}/meta/files/deploydir_readme.txt"),
-self.deploydir +
-"/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt")
-
 execute_pre_post_process(self.d, pre_process_cmds)
 
 if self.progress_reporter:
-- 
2.12.0.rc0

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


[OE-core] [PATCH] weston: fix LIC_FILES_CHKSUM endline and md5sum for src/compositor.c

2017-02-14 Thread Andre McCurdy
The license text in Weston sources was changed from "MIT X11" to "MIT
Expat" in the 1.9.0 release. The new text is 3 lines longer than the
previous version, so endline and md5 hash have been incorrect for the
oe-core weston recipes from 1.9.0 onwards.

  
https://cgit.freedesktop.org/wayland/weston/diff/src/compositor.c?id=a0bbfea64b04d3cf12327d8b488b9949a4cddc99

Signed-off-by: Andre McCurdy 
---
 meta/recipes-graphics/wayland/weston_1.11.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston_1.11.1.bb 
b/meta/recipes-graphics/wayland/weston_1.11.1.bb
index 2736cc1..cdfac70 100644
--- a/meta/recipes-graphics/wayland/weston_1.11.1.bb
+++ b/meta/recipes-graphics/wayland/weston_1.11.1.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Weston is the reference implementation of a 
Wayland compositor"
 HOMEPAGE = "http://wayland.freedesktop.org";
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \
-
file://src/compositor.c;endline=23;md5=1d535fed266cf39f6d8c0647f52ac331"
+
file://src/compositor.c;endline=26;md5=e342df749174a8ee11065583157c7a38"
 
 SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
file://weston.png \
-- 
1.9.1

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


Re: [OE-core] [PATCH 2/3] meson: Add recipe for the meson build system

2017-02-14 Thread Linus Svensson

Hi.

On 02/13/2017 01:28 PM, Ricardo Ribalda Delgado wrote:

Linus, do you plan to resend? Can I help you?

I will resend it later today.

meson is still under development, and more options for installation 
directories are still (I know at least one more that will come) added. 
That could, or perhaps should, be updated when the meson version is 
updated. Worth to put a comment somewhere regarding that?


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


Re: [OE-core] [PATCH 4/4] ncurses: fix beaglebone do_configure failure

2017-02-14 Thread Enrico Scholz
Hongxu Jia  writes:

> Append ${HOST_CC_ARCH} to ${CFLAGS} could fix the issue.

I think, the correct fix would be

a) bother the ncurses author to remove the stupid CC sanity check, or

b) create a wrapper around CC like in

   
https://github.com/sigma-embedded/elito-de.sigma-chemnitz/blob/master/meta-fixup/recipes/ncurses/ncurses_6.0%2B20160625.bbappend


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


Re: [OE-core] [PATCH v5][morty] openssl: CVE: CVE-2017-3731

2017-02-14 Thread Sona Sarmadi
>> I am just curious if this is ok, or should we always put the CVE: tag inside 
>> the patch?

> The tag should always be in the patch file.
>
> Ross

So I guess this needs to be fixed:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=morty&id=8ba5b9eae34bbab537954ccee1726c7ee7a82750

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


Re: [OE-core] Does recipe specific sysrooot (or whatelse in current oe) break native dependencies?

2017-02-14 Thread Patrick Ohly
On Mon, 2017-02-13 at 18:03 +0100, Patrick Ohly wrote:
> On Mon, 2017-02-13 at 16:24 +0100, Patrick Ohly wrote:
> > On Mon, 2017-02-13 at 15:36 +0100, Martin Jansa wrote:
> > > Hi Andreas,
> > > 
> > > 
> > > I think it's feature which was already there, but almost never
> > > triggered (even in test-dependencies.sh tests), but with RSS it fails
> > > reliably.
> > > 
> > > 
> > > See:
> > > http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124435.html
> > 
> > That's not quite the same, if I understand it correctly. In that email,
> > Richard was talking about "dependencies of that target are not needed
> > and not installed" and used "quilt-native" and "compiler/toolchain" as
> > example. In other words, if recipe foo DEPENDS on bar for getting foo
> > compiled, that dependency on bar gets ignored when installing "foo" into
> > the recipe specific sysroot because it shouldn't be needed anymore.
> > 
> > But the example here is a recipe foo which has a runtime dependency on
> > bar, so bar must be installed in addition to foo, otherwise foo will not
> > work.
> > 
> > This is where it gets tricky: do native recipes have RDEPENDS? They are
> > not getting packaged, so I suppose not. One could collect all RDEPENDS_*
> > values (regardless of the actual package), but that might be too broad
> > (for example, when "packaging" the native recipe wouldn't even produce
> > that package).
> 
> Apparently RDEPENDS do work, also for native recipes. Based on some
> testing, it seems that all RDEPENDS are considered, even those that
> refer to packages that would normally be empty, i.e. the sysroot
> potentially contains more than strictly needed, but that shouldn't be a
> problem.

My testing was flawed: in addition to the RDEPENDS there also was a
DEPENDS with the same entry, and despite what was said earlier about
build dependencies, that entry did have an effect. So it is a bit more
complicated.

The way I'd expect this to work for native tools is this:
 1. DEPENDS should be ignored (build dependencies like compiler
which are not needed when using the resulting tool)
 2. RDEPENDS_${PN} needs to be used (essential runtime dependencies,
set the same way as for the target recipes, because then
BBCLASSEXTEND native mostly works automatically)
 3. RDEPENDS_foo for foo != ${PN} is *not* used - that's basically a
convention, and addresses the issue I mentioned where it is
unclear for a native recipe whether it really has such a package

But the actual implementation isn't quite doing this. Instead,
extend_recipe_sysroot() in staging.bbclass and setscene_depvalid() in
sstate.bbclass look at the task dependencies.

Here's an example, using Poky e758547db = current master:
$ bitbake wic-tools
...
$ grep gettext 
tmp/work/i586-poky-linux/wic-tools/1.0-r0/temp/log.do_prepare_recipe_sysroot
Considering setscene task: ['gettext-native', 'do_populate_sysroot']
  considering dependency: ['gettext-native', 'do_populate_sysroot']
Skipping setscene dependency 
virtual:native:/work/poky/meta/recipes-core/gettext/gettext_0.19.8.1.bb:do_populate_sysroot
 for installation into the sysroot
...
$ find tmp/work/i586-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/
-name gettext
tmp/work/i586-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/usr/share/gettext
tmp/work/i586-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/installeddeps/gettext

"gettext" is not installed.

Let's add it to RDEPENDS_${PN} of dosfstools-native, one of the
dependencies of wic-tools:
$ echo 'RDEPENDS_dosfstools-native_append_pn-dosfstools-native = " 
gettext-native"' >conf/auto.conf
$ bitbake -e dosfstools-native | grep ^RDEPENDS
RDEPENDS_dosfstools-native="gettext-native"
RDEPENDS=""
RDEPENDS_kernel-base=""
RDEPENDS_dosfstools-native-staticdev="dosfstools-native-dev (= 4.1-r0)"
RDEPENDS_dosfstools-native-dev="dosfstools-native (= 4.1-r0)"

First observation: "bitbake wic-tools:do_prepare_recipe_sysroot" does
not run again. But even forcing it to run again doesn't change anything,
i.e. either "gettext-native" in RDEPENDS_dosfstools-native or
RDEPENDS_dosfstools-native are ignored.

Let's compare adding something new to RDEPENDS vs. DEPENDS:
$ echo 'DEPENDS_append_pn-dosfstools-native = " socat-native"' >conf/auto.conf
$ bitbake -g wic-tools
$ grep -e '->.*socat-native.do_populate_sysroot' task-depends.dot 
"dosfstools-native.do_prepare_recipe_sysroot" -> 
"socat-native.do_populate_sysroot"

$ echo 'RDEPENDS_dosfstools-native_append_pn-dosfstools-native = " 
gettext-native"' >conf/auto.conf
$ bitbake -g wic-tools
$ grep -e '->.*socat-native.do_populate_sysroot' task-depends.dot 

Nothing. RDEPENDS_dosfstools-native was completely ignored. To me that
looks like a missing feature or even a bug, if it was meant to work
already.

I'm leaning towards the "bug" theory. There are examples where RDEPENDS
is set explicitly for native recipes, albeit inconsistently:
meta/recipes-devtools/xmlto/xmlto_0.

Re: [OE-core] [PATCH v5][morty] openssl: CVE: CVE-2017-3731

2017-02-14 Thread Burton, Ross
On 14 February 2017 at 09:40, Sona Sarmadi  wrote:

> I am just curious if this is ok, or should we always put the CVE: tag
> inside the patch?
>

The tag should always be in the patch file.

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


[OE-core] [PATCH 11/11] core-tools-testapps: Re-add piglit

2017-02-14 Thread Jussi Kukkonen
Piglit was removed from testapps in 9e227ecb3a because it made
sdk images massive. Add piglit back now that the installed size is
no longer humongous: it still needs 1.5 GB free space at runtime but
the image sizes stay reasonable.

Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb 
b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
index 3170978..69cfd57 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
@@ -17,6 +17,8 @@ KEXECTOOLS_nios2 ?= ""
 
 X11GLTOOLS = "\
 mesa-demos \
+piglit \
+piglit-generated-tests-compressed \
 "
 
 3GTOOLS = "\
-- 
2.1.4

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


[OE-core] [PATCH 06/11] xf86-input-libinput: Upgrade 0.23.0 -> 0.24.0

2017-02-14 Thread Jussi Kukkonen
Small release with mostly tablet improvements.

Signed-off-by: Jussi Kukkonen 
---
 .../{xf86-input-libinput_0.23.0.bb => xf86-input-libinput_0.24.0.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-driver/{xf86-input-libinput_0.23.0.bb => 
xf86-input-libinput_0.24.0.bb} (63%)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.23.0.bb 
b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.24.0.bb
similarity index 63%
rename from meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.23.0.bb
rename to meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.24.0.bb
index 5c49abd..14b1271 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.23.0.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.24.0.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=5e6b20ea2ef94a998145f0ea3f788ee0"
 
 DEPENDS += "libinput"
 
-SRC_URI[md5sum] = "56ff43915a273c787ea8b93ccb83f835"
-SRC_URI[sha256sum] = 
"0b53ebdfe8f8fc7554dd92af1b1c3088a6d3ec4ae1a33fc76f57d635c736a9dc"
+SRC_URI[md5sum] = "bd3fa118e4abadb8804dc6a099bb4ab3"
+SRC_URI[sha256sum] = 
"ddcb07350aed59b2996a92a1b4ff64d1c0b0c86a3f0ddca15b2b1c8c8bb13628"
 
 FILES_${PN} += "${datadir}/X11/xorg.conf.d"
-- 
2.1.4

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


[OE-core] [PATCH 04/11] presentproto: Upgrade 1.0 -> 1.1

2017-02-14 Thread Jussi Kukkonen
Small release with mostly build system fixes.

Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/xorg-proto/presentproto_git.bb | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-graphics/xorg-proto/presentproto_git.bb 
b/meta/recipes-graphics/xorg-proto/presentproto_git.bb
index dbb6f32..e6d32f9 100644
--- a/meta/recipes-graphics/xorg-proto/presentproto_git.bb
+++ b/meta/recipes-graphics/xorg-proto/presentproto_git.bb
@@ -9,16 +9,14 @@ DESCRIPTION = "The Present extension provides a way for 
applications to update t
 
 LICENSE = "GPLv2"
 
-SRCREV = "24f3a56e541b0a9e6c6ee76081f441221a120ef9"
-PV = "1.0+git${SRCPV}"
+SRCREV = "bfdc7e052302c79c5803ad95a73c9b63b350c40c"
+PV = "1.1+git${SRCPV}"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=47e508ca280fde97906eacb77892c3ac"
 
 SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/presentproto"
 S = "${WORKDIR}/git"
 
-PR = "r1"
-
 inherit autotools
 
 BBCLASSEXTEND = "native"
-- 
2.1.4

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


[OE-core] [PATCH 08/11] libinput: Upgrade 1.6.0 -> 1.6.1

2017-02-14 Thread Jussi Kukkonen
Small release with mostly bug fixes.

Signed-off-by: Jussi Kukkonen 
---
 .../recipes-graphics/wayland/{libinput_1.6.0.bb => libinput_1.6.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/wayland/{libinput_1.6.0.bb => libinput_1.6.1.bb} 
(85%)

diff --git a/meta/recipes-graphics/wayland/libinput_1.6.0.bb 
b/meta/recipes-graphics/wayland/libinput_1.6.1.bb
similarity index 85%
rename from meta/recipes-graphics/wayland/libinput_1.6.0.bb
rename to meta/recipes-graphics/wayland/libinput_1.6.1.bb
index d5b2cef..c8714f2 100644
--- a/meta/recipes-graphics/wayland/libinput_1.6.0.bb
+++ b/meta/recipes-graphics/wayland/libinput_1.6.1.bb
@@ -10,8 +10,8 @@ DEPENDS = "libevdev udev mtdev"
 SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \

file://touchpad-serial-synaptics-need-to-fake-new-touches-on-TRIPLETAP.patch \
 "
-SRC_URI[md5sum] = "ed9b435d411462d24d88a87728f6c9d6"
-SRC_URI[sha256sum] = 
"b7534f518d735c643aedca2fb4694683dfddc8d0600cfb628c87a18e65255832"
+SRC_URI[md5sum] = "7e282344f8ed7ec5cf87ca9fc22674fb"
+SRC_URI[sha256sum] = 
"9d816f13eee63bcca0e9c3bb652c52ab55f39be4d1b90b54e4bfd1dc92ef55a8"
 
 inherit autotools pkgconfig
 
-- 
2.1.4

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


[OE-core] [PATCH 05/11] xauth: Upgrade 1.0.9 -> 1.0.10

2017-02-14 Thread Jussi Kukkonen
Small bug fix release.

Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/xorg-app/{xauth_1.0.9.bb => xauth_1.0.10.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-app/{xauth_1.0.9.bb => xauth_1.0.10.bb} (75%)

diff --git a/meta/recipes-graphics/xorg-app/xauth_1.0.9.bb 
b/meta/recipes-graphics/xorg-app/xauth_1.0.10.bb
similarity index 75%
rename from meta/recipes-graphics/xorg-app/xauth_1.0.9.bb
rename to meta/recipes-graphics/xorg-app/xauth_1.0.10.bb
index 59b3323..26e02a9 100644
--- a/meta/recipes-graphics/xorg-app/xauth_1.0.9.bb
+++ b/meta/recipes-graphics/xorg-app/xauth_1.0.10.bb
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=5ec74dd7ea4d10c4715a7c44f159a40b"
 DEPENDS += "libxau libxext libxmu"
 PE = "1"
 
-SRC_URI[md5sum] = "7d6003f32838d5b688e2c8a131083271"
-SRC_URI[sha256sum] = 
"56ce1523eb48b1f8a4f4244fe1c3d8e6af1a3b7d4b0e6063582421b0b68dc28f"
+SRC_URI[md5sum] = "f3f76cb10f69b571c43893ea6a634aa4"
+SRC_URI[sha256sum] = 
"5afe42ce3cdf4f60520d1658d2b17face45c74050f39af45dccdc95e73fafc4d"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', 
d)}"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
-- 
2.1.4

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


[OE-core] [PATCH 03/11] util-macros: Upgrade 1.19.0 -> 1.19.1

2017-02-14 Thread Jussi Kukkonen
Tiny release to fix build with new xmlto.

Signed-off-by: Jussi Kukkonen 
---
 .../xorg-util/{util-macros_1.19.0.bb => util-macros_1.19.1.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-util/{util-macros_1.19.0.bb => 
util-macros_1.19.1.bb} (75%)

diff --git a/meta/recipes-graphics/xorg-util/util-macros_1.19.0.bb 
b/meta/recipes-graphics/xorg-util/util-macros_1.19.1.bb
similarity index 75%
rename from meta/recipes-graphics/xorg-util/util-macros_1.19.0.bb
rename to meta/recipes-graphics/xorg-util/util-macros_1.19.1.bb
index 26cf50f..b39d787 100644
--- a/meta/recipes-graphics/xorg-util/util-macros_1.19.0.bb
+++ b/meta/recipes-graphics/xorg-util/util-macros_1.19.1.bb
@@ -9,8 +9,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=1970511fddd439b07a6ba789d28ff662"
 
 PE = "1"
 
-SRC_URI[md5sum] = "40e1caa49a71a26e0aa68ddd00203717"
-SRC_URI[sha256sum] = 
"0d4df51b29023daf2f63aebf3ebc638ea88efedfd560ab5866741ab3f92acaa1"
+SRC_URI[md5sum] = "3f8a8e6100556f7f28e469809805dee8"
+SRC_URI[sha256sum] = 
"472ad0e41d1e0abf5ecafd29460bf1b8d47e53d4b7d3abf1f66d02dc576547b8"
 
 # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
 RDEPENDS_${PN}-dev = ""
-- 
2.1.4

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


[OE-core] [PATCH 10/11] piglit: Package tests in compressed form as well

2017-02-14 Thread Jussi Kukkonen
Modify packaging so that generated tests are available in two forms:
* piglit-generated-tests contains the tests as they are now (1.5GB
  when installed)
* piglit-generated-tests-compressed contains a tar.gz with the same
  files (45 MB when installed)

Add wrapper script that decompresses the tests at runtime: this
requires 1.5GB free space.

Signed-off-by: Jussi Kukkonen 
---
 meta/recipes-graphics/piglit/piglit/piglit.sh | 20 
 meta/recipes-graphics/piglit/piglit_git.bb| 21 -
 2 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh

diff --git a/meta/recipes-graphics/piglit/piglit/piglit.sh 
b/meta/recipes-graphics/piglit/piglit/piglit.sh
new file mode 100644
index 000..3308b70
--- /dev/null
+++ b/meta/recipes-graphics/piglit/piglit/piglit.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# If we're using compressed generated tests we may need to
+# decompress first. This is going to require at least 1.5 GB of space
+if [[ /usr/lib/piglit/generated_tests.tar.gz -nt 
/usr/lib/piglit/generated_tests/ ]]; then
+echo "Decompressing generated tests..."
+tar -C /usr/lib/piglit/ -zxf /usr/lib/piglit/generated_tests.tar.gz || {
+echo "Failed to decompress tests, exiting."
+exit 1
+}
+touch /usr/lib/piglit/generated_tests
+fi
+
+if ! [[ -d /usr/lib/piglit/generated_tests ]]; then
+echo "NOTE: No generated tests found, install 
piglit-generated-tests-compressed"
+echo "  or piglit-generated-tests to include them in the tests."
+fi
+
+echo "Now running piglit..."
+PIGLIT_NO_WINDOW=1 piglit.real "$@"
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb 
b/meta/recipes-graphics/piglit/piglit_git.bb
index d6bfb14..7eeff2d 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
 SRC_URI = "git://anongit.freedesktop.org/piglit \
file://0001-cmake-install-bash-completions-in-the-right-place.patch 
\
file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch 
\
+   file://piglit.sh \
"
 
 # From 2017-02-06
@@ -40,9 +41,14 @@ do_configure_prepend() {
 }
 
 do_install() {
-   oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+mv ${D}${bindir}/piglit ${D}${bindir}/piglit.real
+install -m 755 ${WORKDIR}/piglit.sh ${D}${bindir}/piglit
+tar -C ${D}${libdir}/piglit/ -czf 
${D}${libdir}/piglit/generated_tests.tar.gz generated_tests/
 }
 
+PACKAGES =+ "${PN}-generated-tests ${PN}-generated-tests-compressed"
+
 RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
python3-subprocess python3-misc python3-importlib \
python3-unixadmin python3-xml python3-multiprocessing \
@@ -51,3 +57,16 @@ RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
"
 
 INSANE_SKIP_${PN} += "dev-so already-stripped"
+
+SUMMARY_${PN}-generated-tests = "Generated piglit tests (multiple GB)"
+FILES_${PN}-generated-tests = "${libdir}/piglit/generated_tests/*"
+CONFLICTS_${PN}-generated-tests = "${PN}-generated-tests-compressed"
+RDEPENDS_${PN}-generated-tests += "tar"
+
+SUMMARY_${PN}-generated-tests-compressed = "Generated piglit tests in 
compressed archive"
+FILES_${PN}-generated-tests-compressed = 
"${libdir}/piglit/generated_tests.tar.gz"
+CONFLICTS_${PN}-generated-tests-compressed = "${PN}-generated-tests"
+pkg_postrm_${PN}-generated-tests-compressed () {
+rm -rf $D${libdir}/piglit/generated_tests/
+}
+
-- 
2.1.4

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


[OE-core] [PATCH 07/11] xkeyboard-config: Upgrade 2.19 -> 2.20

2017-02-14 Thread Jussi Kukkonen
Layout updates from the last 16 months.

Signed-off-by: Jussi Kukkonen 
---
 .../xorg-lib/{xkeyboard-config_2.19.bb => xkeyboard-config_2.20.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/xorg-lib/{xkeyboard-config_2.19.bb => 
xkeyboard-config_2.20.bb} (88%)

diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.19.bb 
b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb
similarity index 88%
rename from meta/recipes-graphics/xorg-lib/xkeyboard-config_2.19.bb
rename to meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb
index d24d93f..d00904d 100644
--- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.19.bb
+++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb
@@ -13,8 +13,8 @@ LICENSE = "MIT & MIT-style"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9"
 
 SRC_URI = 
"${XORG_MIRROR}/individual/data/xkeyboard-config/${BPN}-${PV}.tar.bz2"
-SRC_URI[md5sum] = "88cbf55f2f32b80ba9bb872889daf7ff"
-SRC_URI[sha256sum] = 
"83dfd186b9eb9ced69e01d8d8e2f15b6a79b2e30124874ef086f2d3048f45827"
+SRC_URI[md5sum] = "1f68886339116ae3877052204c9b9b88"
+SRC_URI[sha256sum] = 
"d1bfc72553c4e3ef1cd6f13eec0488cf940498b612ab8a0b362e7090c94bc134"
 
 SECTION = "x11/libs"
 DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
-- 
2.1.4

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


[OE-core] [PATCH 09/11] piglit: Upgrade to current master

2017-02-14 Thread Jussi Kukkonen
Remove backported patches. Add runtime dependency for netserver
(as socketserver was recently moved there) and depend on
libxkbcommon (this is really only needed for wayland support
which could be made configurable).

Signed-off-by: Jussi Kukkonen 
---
 .../0001-cmake-Link-test-utils-with-ldl.patch  | 41 
 ...0001-cmake-Link-utils-with-xcb-explicitly.patch | 54 --
 meta/recipes-graphics/piglit/piglit_git.bb | 10 ++--
 3 files changed, 4 insertions(+), 101 deletions(-)
 delete mode 100644 
meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
 delete mode 100644 
meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch

diff --git 
a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch 
b/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
deleted file mode 100644
index 2e1c947..000
--- 
a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Backport patch to fix build with gold linker.
-
-Signed-off-by: Jussi Kukkonen 
-Upstream-Status: Backport
-
-
-
-From 93a7113485cf1c55fd7076116faf5b3a690706b2 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 30 Aug 2016 17:17:28 +0300
-Subject: [PATCH] cmake: Link test utils with "-ldl"
-
-Without this linking CXX executables (e.g. fbo-blit-stretch) fails
-with gold linker:
-
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlsym'
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlerror'
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlopen'
-
-Signed-off-by: Jussi Kukkonen 
-Reviewed-by: Emil Velikov 

- tests/util/CMakeLists.txt | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
-index e1f8073..3d5bef5 100644
 a/tests/util/CMakeLists.txt
-+++ b/tests/util/CMakeLists.txt
-@@ -11,6 +11,8 @@ set_source_files_properties(
-   PROPERTIES GENERATED 1
-   )
- 
-+link_libraries(${CMAKE_DL_LIBS})
-+
- if(HAVE_LIBCACA)
- link_libraries(caca)
- endif()
--- 
-2.9.3
-
diff --git 
a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
 
b/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
deleted file mode 100644
index 845804d..000
--- 
a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 73e4fbc5777eddd89bb0fb16e90343551fe3e0ef Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 5 Jul 2016 10:56:23 +0300
-Subject: [PATCH] cmake: Link utils with xcb explicitly
-
-Linking with g++ can reportedly lead to:
-
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_connect'
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_get_setup'
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_setup_roots_iterator'
-
-This may have appeared now because xcb-dri2 used to overlink publicly
-but now does not.
-
-Signed-off-by: Jussi Kukkonen 
-Upstream-Status: Accepted

- CMakeLists.txt| 1 +
- tests/util/CMakeLists.txt | 2 ++
- 2 files changed, 3 insertions(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8e2abba..2e1a473 100644
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -151,6 +151,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- 
-   pkg_check_modules(LIBDRM QUIET libdrm)
-   pkg_check_modules(LIBDRM_INTEL QUIET libdrm_intel)
-+  pkg_check_modules(XCB QUIET xcb)
-   pkg_check_modules(XCB_DRI2 QUIET xcb-dri2)
-   pkg_check_modules(GLPROTO QUIET glproto)
- ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
-diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
-index fb22ffa..e1f8073 100644
 a/tests/util/CMakeLists.txt
-+++ b/tests/util/CMakeLists.txt
-@@ -121,11 +121,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- 
-   list(APPEND UTIL_GL_LIBS
-   ${LIBDRM_LDFLAGS}
-+  ${XCB_LDFLAGS}
-   ${XCB_DRI2_LDFLAGS}
-   )
- 
-   list(APPEND UTIL_GL_INCLUDES
-   ${LIBDRM_INCLUDE_DIRS}
-+  ${XCB_INCLUDE_DIRS}
-   ${XCB_DRI2_INCLUDE_DIRS}
-   )
- 
--- 
-2.1.4
-
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb 
b/meta/recipes-graphics/piglit/piglit_git.bb
index b9cdce8..d6bfb14 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -5,18 +5,16 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
 SRC_URI = "git://anongit.freedesktop.org/piglit \
file://0001-cmake-install-bash-completions-in-the-right-place.patch 
\
file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch 
\
-   file://0001-cmake-Link-utils-with-xcb-explicitly.patch \
-   file://0001-cmake-Link-test-uti

[OE-core] [PATCH 02/11] gdk-pixbuf: Upgrade 2.36.1 -> 2.36.4

2017-02-14 Thread Jussi Kukkonen
Bug fix releases.

Signed-off-by: Jussi Kukkonen 
---
 .../gdk-pixbuf/{gdk-pixbuf_2.36.1.bb => gdk-pixbuf_2.36.4.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/gdk-pixbuf/{gdk-pixbuf_2.36.1.bb => 
gdk-pixbuf_2.36.4.bb} (96%)

diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb 
b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.4.bb
similarity index 96%
rename from meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb
rename to meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.4.bb
index 98e5090..3a88d91 100644
--- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.4.bb
@@ -19,8 +19,8 @@ SRC_URI = 
"${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
file://fatal-loader.patch \
"
 
-SRC_URI[md5sum] = "fe30b0420e013f2c4590ae6226d895d4"
-SRC_URI[sha256sum] = 
"9d5ba72070460c1b5b74115d395a3e33daeb7b7b67fb256cdccc9d7187c42a38"
+SRC_URI[md5sum] = "aef5fe5888b9f578573e331501d08f85"
+SRC_URI[sha256sum] = 
"0b19901c3eb0596141d2d48ddb9dac79ad1524bdf59366af58ab38fcb9ee7463"
 
 inherit autotools pkgconfig gettext pixbufcache ptest-gnome 
upstream-version-is-even gobject-introspection gtk-doc lib_package
 
-- 
2.1.4

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


[OE-core] [PATCH 00/11] Mesa 17, other upgrades, piglit

2017-02-14 Thread Jussi Kukkonen
Bunch of graphics upgrades, the only major one is mesa 17.
On top of the piglit update I've added the same
piglit-generated-tests-compressed hack I've sent before in case
you're interested...

I've smoketested as usual (seems fine), and did a piglit run with
ok results:

piglit:   ca58eec0b9 (2017-02-06)
mesa: 17.0.0
Hardware: nuc6i5syh, gen9 graphics (Iris 540)

summary:
   name: piglit
     --
   pass:  46120
   fail:298
  crash:  2
   skip:   5187
   warn:  5
  total:  51612

Thanks,
  Jussi



The following changes since commit e758547db9048d4aa1c1415d6af8072f519fae24:

  nss: Fix nss-native so the checksum doesn't change with BUILD_ARCH 
(2017-02-09 10:52:03 +)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib jku/mesa17
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/mesa17

Jussi Kukkonen (11):
  mesa: Upgrade 13.0.4 -> 17.0.0
  gdk-pixbuf: Upgrade 2.36.1 -> 2.36.4
  util-macros: Upgrade 1.19.0 -> 1.19.1
  presentproto: Upgrade 1.0 -> 1.1
  xauth: Upgrade 1.0.9 -> 1.0.10
  xf86-input-libinput: Upgrade 0.23.0 -> 0.24.0
  xkeyboard-config: Upgrade 2.19 -> 2.20
  libinput: Upgrade 1.6.0 -> 1.6.1
  piglit: Upgrade to current master
  piglit: Package tests in compressed form as well
  core-tools-testapps: Re-add piglit

 .../packagegroup-core-tools-testapps.bb|  2 +
 .../{gdk-pixbuf_2.36.1.bb => gdk-pixbuf_2.36.4.bb} |  4 +-
 .../mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc|  8 +---
 .../mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb}|  7 ++-
 .../0001-cmake-Link-test-utils-with-ldl.patch  | 41 
 ...0001-cmake-Link-utils-with-xcb-explicitly.patch | 54 --
 meta/recipes-graphics/piglit/piglit/piglit.sh  | 20 
 meta/recipes-graphics/piglit/piglit_git.bb | 31 ++---
 .../{libinput_1.6.0.bb => libinput_1.6.1.bb}   |  4 +-
 .../xorg-app/{xauth_1.0.9.bb => xauth_1.0.10.bb}   |  4 +-
 ...put_0.23.0.bb => xf86-input-libinput_0.24.0.bb} |  4 +-
 ...ard-config_2.19.bb => xkeyboard-config_2.20.bb} |  4 +-
 .../xorg-proto/presentproto_git.bb |  6 +--
 ...util-macros_1.19.0.bb => util-macros_1.19.1.bb} |  4 +-
 15 files changed, 64 insertions(+), 129 deletions(-)
 rename meta/recipes-gnome/gdk-pixbuf/{gdk-pixbuf_2.36.1.bb => 
gdk-pixbuf_2.36.4.bb} (96%)
 rename meta/recipes-graphics/mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb} (74%)
 delete mode 100644 
meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
 delete mode 100644 
meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh
 rename meta/recipes-graphics/wayland/{libinput_1.6.0.bb => libinput_1.6.1.bb} 
(85%)
 rename meta/recipes-graphics/xorg-app/{xauth_1.0.9.bb => xauth_1.0.10.bb} (75%)
 rename meta/recipes-graphics/xorg-driver/{xf86-input-libinput_0.23.0.bb => 
xf86-input-libinput_0.24.0.bb} (63%)
 rename meta/recipes-graphics/xorg-lib/{xkeyboard-config_2.19.bb => 
xkeyboard-config_2.20.bb} (88%)
 rename meta/recipes-graphics/xorg-util/{util-macros_1.19.0.bb => 
util-macros_1.19.1.bb} (75%)

-- 
2.1.4

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


[OE-core] [PATCH 01/11] mesa: Upgrade 13.0.4 -> 17.0.0

2017-02-14 Thread Jussi Kukkonen
* New feature release with lots of changes
* Versioning change (17 as in 2017, no longer relates to GL bumps)
* OpenGL 4.5 support on Haswell
* mesa now implements its own sha1 instead of having 5
  configurable sha-providers

Signed-off-by: Jussi Kukkonen 
---
 .../mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb} | 0
 meta/recipes-graphics/mesa/mesa.inc   | 8 +---
 meta/recipes-graphics/mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb} | 7 +++
 3 files changed, 4 insertions(+), 11 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_13.0.4.bb => mesa-gl_17.0.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_13.0.4.bb => mesa_17.0.0.bb} (74%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_13.0.4.bb 
b/meta/recipes-graphics/mesa/mesa-gl_17.0.0.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_13.0.4.bb
rename to meta/recipes-graphics/mesa/mesa-gl_17.0.0.bb
diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 5d882b1..befb35e 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 EXTRA_OECONF = "--enable-shared-glapi"
 
-PACKAGECONFIG ??= "gbm egl gles dri ${MESA_CRYPTO} \
+PACKAGECONFIG ??= "gbm egl gles dri \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 
'', d)}\
"
@@ -67,12 +67,6 @@ PACKAGECONFIG[xa]  = "--enable-xa, --disable-xa"
 OSMESA = "${@bb.utils.contains('PACKAGECONFIG', 'gallium', 'gallium-osmesa', 
'osmesa', d)}"
 PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
 
-# Mesa requires one of the following crypto implementation, pick one of them
-MESA_CRYPTO ??= "openssl"
-PACKAGECONFIG[openssl] = "--with-sha1=libcrypto,,openssl"
-PACKAGECONFIG[nettle] = "--with-sha1=libnettle,,nettle"
-PACKAGECONFIG[gcrypt] = "--with-sha1=libgcrypt,,libgcrypt"
-
 # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
 FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
diff --git a/meta/recipes-graphics/mesa/mesa_13.0.4.bb 
b/meta/recipes-graphics/mesa/mesa_17.0.0.bb
similarity index 74%
rename from meta/recipes-graphics/mesa/mesa_13.0.4.bb
rename to meta/recipes-graphics/mesa/mesa_17.0.0.bb
index 1416c9f..6576e3c 100644
--- a/meta/recipes-graphics/mesa/mesa_13.0.4.bb
+++ b/meta/recipes-graphics/mesa/mesa_17.0.0.bb
@@ -1,13 +1,12 @@
 require ${BPN}.inc
 
-SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \
+SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/mesa-${PV}.tar.xz \
file://replace_glibc_check_with_linux.patch \
file://disable-asm-on-non-gcc.patch \
file://0001-Use-wayland-scanner-in-the-path.patch \
 "
-
-SRC_URI[md5sum] = "d088a921e935218833a8071cb672a574"
-SRC_URI[sha256sum] = 
"a95d7ce8f7bd5f88585e4be3144a341236d8c0fc91f6feaec59bb8ba3120e726"
+SRC_URI[md5sum] = "932e4171a86b14940c06812356486155"
+SRC_URI[sha256sum] = 
"39db3d59700159add7f977307d12a7dfe016363e760ad82280ac4168ea668481"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.1.4

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


[OE-core] [PATCH] vte: Upgrade 0.44.2 -> 0.46.1

2017-02-14 Thread Jussi Kukkonen
New release requires libpcre 2.

Enable gnutls by default to remove an annoying warning on every
vte widget. core-image-sato already has gnutls so this shouldn't
be a big deal.

Signed-off-by: Jussi Kukkonen 
---

This depends on "libpcre2: add it for newer vte" patch
(thanks Robert!)

Cheers,
 Jussi

 meta/recipes-support/vte/{vte_0.44.2.bb => vte_0.46.1.bb} | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-support/vte/{vte_0.44.2.bb => vte_0.46.1.bb} (86%)

diff --git a/meta/recipes-support/vte/vte_0.44.2.bb 
b/meta/recipes-support/vte/vte_0.46.1.bb
similarity index 86%
rename from meta/recipes-support/vte/vte_0.44.2.bb
rename to meta/recipes-support/vte/vte_0.46.1.bb
index 8cddc98..0afe625 100644
--- a/meta/recipes-support/vte/vte_0.44.2.bb
+++ b/meta/recipes-support/vte/vte_0.46.1.bb
@@ -1,7 +1,7 @@
 SUMMARY = "Virtual terminal emulator GTK+ widget library"
 BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte";
 LICENSE = "LGPLv2.1+"
-DEPENDS = "glib-2.0 gtk+3 intltool-native libxml2-native"
+DEPENDS = "glib-2.0 gtk+3 libpcre2 intltool-native libxml2-native"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
@@ -11,8 +11,8 @@ inherit gnomebase gtk-doc distro_features_check 
upstream-version-is-even gobject
 SRC_URI += "file://0001-Don-t-enable-stack-protection-by-default.patch \
 ${@bb.utils.contains('PACKAGECONFIG', 'vala', '', 
'file://0001-Add-m4-vapigen.m4.patch', d) } \
 "
-SRC_URI[archive.md5sum] = "eca8f8a9d9f9bb8e9d592d0acfeec015"
-SRC_URI[archive.sha256sum] = 
"a1ea594814bb136a3a9a6c7656b46240571f6a198825c007fe99194b0949"
+SRC_URI[archive.md5sum] = "e8f4393b9f1ec2e2f3cdb3fd4f5a16de"
+SRC_URI[archive.sha256sum] = 
"8800cf8bc259704a12ad1853fb0eb43bfe3857af15242e6fb9f2c3fd95b3f5c6"
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
@@ -27,7 +27,7 @@ export XDG_DATA_DIRS = "${STAGING_DATADIR}"
 # Package additional files
 FILES_${PN}-dev += "${datadir}/vala/vapi/*"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "gnutls"
 PACKAGECONFIG[vala] = "--enable-vala,--disable-vala,vala-native vala"
 PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
 
-- 
2.1.4

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


Re: [OE-core] [PATCH v5][morty] openssl: CVE: CVE-2017-3731

2017-02-14 Thread Sona Sarmadi
Hi Alexandru,

Shouldn't CVE-2017-3731 in the patch files have CVE: tag? 

i.e. CVE-2017-3731  in 0001-CVE-2017-3731.patch & 0002-CVE-2017-3731.patch 

should be:

CVE: CVE-2017-3731

You have this tag in the meta patch, we add this normally inside the patch. 

> * CVE: CVE-2017-3731
> 
> Upstream-status: Backport

I am just curious if this is ok, or should we always put the CVE: tag inside 
the patch?

Thanks
//Sona

> -Original Message-
> From: openembedded-core-boun...@lists.openembedded.org
> [mailto:openembedded-core-boun...@lists.openembedded.org] On
> Behalf Of Alexandru Moise
> Sent: den 7 februari 2017 12:49
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH v5][morty] openssl: CVE: CVE-2017-3731
> 
> If an SSL/TLS server or client is running on a 32-bit host, and a specific
> cipher is being used, then a truncated packet can cause that server or
> client  to perform an out-of-bounds read, usually resulting in a crash.
> 
> Backported from:
> https://github.com/openssl/openssl/commit/8e20499629b6bcf868d007
> 2c7011e590b5c2294d
> https://github.com/openssl/openssl/commit/2198b3a55de681e1f3c23e
> db0586afe13f438051
> 
> * CVE: CVE-2017-3731
> 
> Upstream-status: Backport
> 
> Signed-off-by: Alexandru Moise 
> ---
>  .../openssl/openssl/0001-CVE-2017-3731.patch   | 46
> +++
>  .../openssl/openssl/0002-CVE-2017-3731.patch   | 53
> ++
>  .../recipes-connectivity/openssl/openssl_1.0.2j.bb |  2 +
>  3 files changed, 101 insertions(+)
>  create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-
> CVE-2017-3731.patch
>  create mode 100644 meta/recipes-connectivity/openssl/openssl/0002-
> CVE-2017-3731.patch
> 
> diff --git a/meta/recipes-connectivity/openssl/openssl/0001-CVE-2017-
> 3731.patch b/meta/recipes-connectivity/openssl/openssl/0001-CVE-
> 2017-3731.patch
> new file mode 100644
> index 000..b378c5e
> --- /dev/null
> +++ b/meta/recipes-connectivity/openssl/openssl/0001-CVE-2017-
> 3731.patch
> @@ -0,0 +1,46 @@
> +From 0cde9a9645c949fd0acf657dadc747676245cfaf Mon Sep 17
> 00:00:00 2001
> +From: Alexandru Moise 
> +Date: Tue, 7 Feb 2017 11:13:19 +0200
> +Subject: [PATCH 1/2] crypto/evp: harden RC4_MD5 cipher.
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Originally a crash in 32-bit build was reported CHACHA20-POLY1305
> +cipher. The crash is triggered by truncated packet and is result of
> +excessive hashing to the edge of accessible memory (or bogus MAC
> value
> +is produced if x86 MD5 assembly module is involved). Since hash
> +operation is read-only it is not considered to be exploitable beyond a
> +DoS condition.
> +
> +Thanks to Robert Święcki for report.
> +
> +CVE-2017-3731
> +
> +Backported from upstream commit:
> +8e20499629b6bcf868d0072c7011e590b5c2294d
> +
> +Upstream-Status: Backport
> +
> +Reviewed-by: Rich Salz 
> +Signed-off-by: Alexandru Moise 
> +---
> + crypto/evp/e_rc4_hmac_md5.c | 2 ++
> + 1 file changed, 2 insertions(+)
> +
> +diff --git a/crypto/evp/e_rc4_hmac_md5.c
> b/crypto/evp/e_rc4_hmac_md5.c
> +index 5e92855..3293419 100644
> +--- a/crypto/evp/e_rc4_hmac_md5.c
>  b/crypto/evp/e_rc4_hmac_md5.c
> +@@ -269,6 +269,8 @@ static int rc4_hmac_md5_ctrl(EVP_CIPHER_CTX
> *ctx, int type, int arg,
> + len = p[arg - 2] << 8 | p[arg - 1];
> +
> + if (!ctx->encrypt) {
> ++if (len < MD5_DIGEST_LENGTH)
> ++return -1;
> + len -= MD5_DIGEST_LENGTH;
> + p[arg - 2] = len >> 8;
> + p[arg - 1] = len;
> +--
> +2.10.2
> +
> diff --git a/meta/recipes-connectivity/openssl/openssl/0002-CVE-2017-
> 3731.patch b/meta/recipes-connectivity/openssl/openssl/0002-CVE-
> 2017-3731.patch
> new file mode 100644
> index 000..990cbfd
> --- /dev/null
> +++ b/meta/recipes-connectivity/openssl/openssl/0002-CVE-2017-
> 3731.patch
> @@ -0,0 +1,53 @@
> +From 6427f1accc54b515bb899370f1a662bfcb1caa52 Mon Sep 17
> 00:00:00 2001
> +From: Alexandru Moise 
> +Date: Tue, 7 Feb 2017 11:16:13 +0200
> +Subject: [PATCH 2/2] crypto/evp: harden AEAD ciphers.
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Originally a crash in 32-bit build was reported CHACHA20-POLY1305
> +cipher. The crash is triggered by truncated packet and is result of
> +excessive hashing to the edge of accessible memory. Since hash
> +operation is read-only it is not considered to be exploitable beyond a
> +DoS condition. Other ciphers were hardened.
> +
> +Thanks to Robert Święcki for report.
> +
> +CVE-2017-3731
> +
> +Backported from upstream commit:
> +2198b3a55de681e1f3c23edb0586afe13f438051
> +
> +Upstream-Status: Backport
> +
> +Reviewed-by: Rich Salz 
> +Signed-off-by: Alexandru Moise 
> +---
> + crypto/evp/e_aes.c | 7 ++-
> + 1 file changed, 6 insertions(+), 1 deletion(-)
> +
> +diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c