Re: [OE-core] [PATCH v2] u-boot.inc: Add host compiler flags and openssl-native dependency

2015-09-14 Thread Otavio Salvador
On Mon, Sep 14, 2015 at 6:29 AM, Nathan Rossi  wrote:
> On Fri, Sep 11, 2015 at 3:50 AM, Otavio Salvador
>  wrote:
>> On Thu, Sep 10, 2015 at 7:24 AM, Nathan Rossi  wrote:
>>> U-Boot will compile its own tools during the build, with specific
>>> configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
>>> require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
>>> enables the use of openssl-native as a dependency and also adds the
>>> HOSTCC flags that U-Boot uses when compiling the host tools.
>>>
>>> Signed-off-by: Nathan Rossi 
>>
>> Ideally we ought to ensure U-Boot stops to build the native part when
>> doing the target one.
>
> Are you suggesting that the compile step (of the recipe) should build
> the "tools"/native make target first, then execute the make target for
> the rest afterwards as two separate steps?

Two separated _recipes_.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] u-boot.inc: Add host compiler flags and openssl-native dependency

2015-09-14 Thread Otavio Salvador
On Mon, Sep 14, 2015 at 9:05 AM, Nathan Rossi  wrote:
> On Mon, Sep 14, 2015 at 9:49 PM, Otavio Salvador
>  wrote:
>> On Mon, Sep 14, 2015 at 6:29 AM, Nathan Rossi  wrote:
>>> On Fri, Sep 11, 2015 at 3:50 AM, Otavio Salvador
>>>  wrote:
 On Thu, Sep 10, 2015 at 7:24 AM, Nathan Rossi  
 wrote:
> U-Boot will compile its own tools during the build, with specific
> configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
> require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
> enables the use of openssl-native as a dependency and also adds the
> HOSTCC flags that U-Boot uses when compiling the host tools.
>
> Signed-off-by: Nathan Rossi 

 Ideally we ought to ensure U-Boot stops to build the native part when
 doing the target one.
>>>
>>> Are you suggesting that the compile step (of the recipe) should build
>>> the "tools"/native make target first, then execute the make target for
>>> the rest afterwards as two separate steps?
>>
>> Two separated _recipes_.
>
> Ah ok, to some degree that already exists with the u-boot-mkimage and
> u-boot-fw-utils recipes. However the problem is that there is
> currently no easy way (at least with mainline U-Boot) to get U-Boot to
> use the tools provided by the host/sysroot/PATH instead of building
> them.

I know but this seems to be the route we ought to pursuit.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] u-boot.inc: Add host compiler flags and openssl-native dependency

2015-09-14 Thread Nathan Rossi
On Mon, Sep 14, 2015 at 9:49 PM, Otavio Salvador
 wrote:
> On Mon, Sep 14, 2015 at 6:29 AM, Nathan Rossi  wrote:
>> On Fri, Sep 11, 2015 at 3:50 AM, Otavio Salvador
>>  wrote:
>>> On Thu, Sep 10, 2015 at 7:24 AM, Nathan Rossi  
>>> wrote:
 U-Boot will compile its own tools during the build, with specific
 configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
 require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
 enables the use of openssl-native as a dependency and also adds the
 HOSTCC flags that U-Boot uses when compiling the host tools.

 Signed-off-by: Nathan Rossi 
>>>
>>> Ideally we ought to ensure U-Boot stops to build the native part when
>>> doing the target one.
>>
>> Are you suggesting that the compile step (of the recipe) should build
>> the "tools"/native make target first, then execute the make target for
>> the rest afterwards as two separate steps?
>
> Two separated _recipes_.

Ah ok, to some degree that already exists with the u-boot-mkimage and
u-boot-fw-utils recipes. However the problem is that there is
currently no easy way (at least with mainline U-Boot) to get U-Boot to
use the tools provided by the host/sysroot/PATH instead of building
them.

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


[OE-core] [PATCH v3 1/2] dbus: add user sessions support

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/dbus/dbus_1.10.0.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/dbus/dbus_1.10.0.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
index 31cbef0..e099f4b 100644
--- a/meta/recipes-core/dbus/dbus_1.10.0.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -68,7 +68,9 @@ FILES_${PN} = "${bindir}/dbus-daemon* \
${datadir}/dbus-1/session.conf \
${datadir}/dbus-1/system.d \
${datadir}/dbus-1/system.conf \
-   ${systemd_unitdir}/system/"
+   ${systemd_system_unitdir} \
+   ${systemd_user_unitdir} \
+"
 FILES_${PN}-lib = "${libdir}/lib*.so.*"
 RRECOMMENDS_${PN}-lib = "${PN}"
 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool 
${bindir}/dbus-test-tool"
@@ -105,6 +107,7 @@ PACKAGECONFIG_class-nativesdk = ""
 PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
 PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
 PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor"
+PACKAGECONFIG[user-session] = "--enable-user-session,--disable-user-session"
 
 do_install() {
autotools_do_install
-- 
2.1.4

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


[OE-core] [PATCH v3 2/2] dbus: build with systemd support

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/dbus/dbus_1.10.0.bb | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus_1.10.0.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
index e099f4b..a2bb493 100644
--- a/meta/recipes-core/dbus/dbus_1.10.0.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -92,8 +92,7 @@ pkg_postinst_dbus() {
 EXTRA_OECONF = "--disable-tests \
 --disable-xml-docs \
 --disable-doxygen-docs \
---disable-libaudit \
---disable-systemd"
+--disable-libaudit"
 
 EXTRA_OECONF_append_class-native = " --disable-selinux"
 
@@ -102,9 +101,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 
'systemd', 'systemd',
 PACKAGECONFIG_class-native = ""
 PACKAGECONFIG_class-nativesdk = ""
 
-# Would like to --enable-systemd but that's a circular build-dependency between
-# systemd<->dbus
-PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
+PACKAGECONFIG[systemd] = "--enable-systemd 
--with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd 
--without-systemdsystemunitdir,systemd"
 PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
 PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor"
 PACKAGECONFIG[user-session] = "--enable-user-session,--disable-user-session"
-- 
2.1.4

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


Re: [OE-core] [PATCH] quashfs-tools: make it be able to be compiled by gcc5 with "-O0"

2015-09-14 Thread Mike Looijmans

Typo: "(s)quashfs"



Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijm...@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail





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


Re: [OE-core] [PATCH][v2] perf: fix the install-python_ext

2015-09-14 Thread Saul Wold

On 08/25/2015 10:58 PM, rongqing...@windriver.com wrote:

From: Roy Li 

1. $(grep xxx xxx) never returns 0, it maybe return empty or string, and
can not compare with 0, this fixes that python module never are installed.

2. python library is installed into /usr/lib/ by default, but we expect
it is installed into ${libdir}, so add --install-lib parameter for python
setup.py to set the library dir;
this fixes not shipped warning, since python modules are installed into
/usr/lib/, but FILE_${PN}-python expects it is under ${libdir}, which is
/usr/lib64/ for 64bit machine

3. the makefile target install-python_ext is moved from Makefile to
Makefile.perf from linux v3.13, so match install-python_ext in Makefile.*
and --root='/\$(DESTDIR_SQ)' before linux v3.13 will install the target
python library to native sysroot, so replace it with --prefix as after linux
3.13;
this fixes not shipped warning, and install target files to native dir, like
below:
ERROR: QA Issue: perf: Files/directories were installed but not shipped in any 
package:
   /home
   /home/pokybuild
   /home/pokybuild/yocto-autobuilder
   /home/pokybuild/yocto-autobuilder/yocto-worker
   /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb
   /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf.so
   
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf-0.1-py2.7.egg-info



This patch actually seems to introduce this failure,

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm/builds/494/steps/BuildImages/logs/stdio

This needs to be addressed.

Sau!


Signed-off-by: Roy Li 
---
  meta/recipes-kernel/perf/perf.bb | 8 +++-
  1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index b18e474..adb3a2c 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -44,6 +44,7 @@ export STAGING_INCDIR
  export STAGING_LIBDIR
  export BUILD_SYS
  export HOST_SYS
+export PYTHON_SITEPACKAGES_DIR

  #kernel 3.1+ supports WERROR to disable warnings as errors
  export WERROR = "0"
@@ -111,7 +112,7 @@ do_install() {
unset CFLAGS
oe_runmake DESTDIR=${D} install
# we are checking for this make target to be compatible with older perf 
versions
-   if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep 
install-python_ext ${S}/tools/perf/Makefile) = "0" ]; then
+   if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" ] && 
grep -q install-python_ext ${S}/tools/perf/Makefile*; then
oe_runmake DESTDIR=${D} install-python_ext
fi
  }
@@ -143,7 +144,12 @@ do_configure_prepend () {
  if [ -e "${S}/tools/perf/Makefile.perf" ]; then
  sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \
  ${S}/tools/perf/Makefile.perf
+sed -i -e "s,prefix='\$(DESTDIR_SQ)/usr'$,prefix='\$(DESTDIR_SQ)/usr' 
--install-lib='\$(DESTDIR)\$(PYTHON_SITEPACKAGES_DIR)',g" \
+${S}/tools/perf/Makefile.perf
  fi
+sed -i -e "s,--root='/\$(DESTDIR_SQ)',--prefix='\$(DESTDIR_SQ)/usr' 
--install-lib='\$(DESTDIR)\$(PYTHON_SITEPACKAGES_DIR)',g" \
+${S}/tools/perf/Makefile
+
  if [ -e "${S}/tools/build/Makefile.build" ]; then
  sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \
  ${S}/tools/build/Makefile.build


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


Re: [OE-core] [PATCH V3 1/3] iasl: Recipe taken from the luv-yocto repository

2015-09-14 Thread Leonardo Sandoval



On 09/12/2015 05:00 PM, Richard Purdie wrote:

On Tue, 2015-07-14 at 20:07 +,
leonardo.sandoval.gonza...@linux.intel.com wrote:

From: Leonardo Sandoval 

Taken from [1]. ACPICA is licensed under two main licenses:
1) An Intel license (Intel-ACPI) and 2) a dual GPL/BSP license. This
recipe uses the latter.

[1] 
https://github.com/01org/luv-yocto/tree/master/meta-luv/recipes-extended/iasl

Signed-off-by: Leonardo Sandoval 
---
  meta/recipes-extended/iasl/iasl_20150515.bb | 27 +++
  1 file changed, 27 insertions(+)
  create mode 100644 meta/recipes-extended/iasl/iasl_20150515.bb


Sadly this and the ovmf patch trigger failures in world and world-lsb
builds:


RP, Working on it. I will send an update ASAP.



https://autobuilder.yoctoproject.org/main/builders/nightly-world/builds/495
https://autobuilder.yoctoproject.org/main/builders/nightly-world-lsb/builds/213

Cheers,

Richard


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


[OE-core] [PATCH v2 0/1] Fixes for a distro with a merged /usr

2015-09-14 Thread Joshua Lock
This fixes the previous kmod submission to use the lnr script from OE-Core
rather than requiring a version of coreutils where ln supports the -r switch,
thus ensuring compatibility with Debian 7 (though only tested locally on
Ubuntu 15.04).

The following changes since commit 2c8c3d9c4b65d2a5c7976d530138ebcaac2b1447:

  gcc: reformat 0063-nativesdk-gcc-support.patch (2015-09-12 23:01:31 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib joshuagl/merged-usr
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=joshuagl/merged-usr

Joshua Lock (1):
  kmod: fix link creation when base_bindir != /bin

 meta/recipes-kernel/kmod/kmod_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.1.4

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


Re: [OE-core] [PATCH] glibc: don't require bash for nscd init script

2015-09-14 Thread Burton, Ross
On 14 September 2015 at 17:06, Khem Raj  wrote:

> it used to be like that and then changed to use translated strings. Do you
> see any downsides of removing it ?
> locales related or otherwise ? if not then it looks ok to me.
>

When given the choice of translated strings in an *init script* with
enforced bash or English strings with no bash, I think most people here
would go for English and not enforced bash.  Nobody noticed this as the
bash dependency wasn't declared (and thus was a QA warning with Poky at
least).

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


[OE-core] [PATCH] prelink: Move to latest release

2015-09-14 Thread Mark Hatle
[YOCTO #8227]

The latest release has a fix for prelinking on ARM with recent binutils.

For more information on why the change was necessary, see:

  https://sourceware.org/ml/binutils/2014-06/msg00228.html

Signed-off-by: Mark Hatle 
---
 meta/recipes-devtools/prelink/prelink_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/prelink/prelink_git.bb 
b/meta/recipes-devtools/prelink/prelink_git.bb
index 6ff6917..79a5f50 100644
--- a/meta/recipes-devtools/prelink/prelink_git.bb
+++ b/meta/recipes-devtools/prelink/prelink_git.bb
@@ -8,7 +8,7 @@ and executables, so that far fewer relocations need to be 
resolved at \
 runtime and thus programs come up faster."
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"
-SRCREV = "40327fb99654e96db6ef15e2f2d5ef140ac3e998"
+SRCREV = "cdee5a4dd226cc5e9f30f370067a9031f398ef3c"
 PV = "1.0+git${SRCPV}"
 
 #
-- 
1.9.3

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


Re: [OE-core] [PATCH] glibc: don't require bash for nscd init script

2015-09-14 Thread Khem Raj

> On Sep 14, 2015, at 8:57 AM, Ross Burton  wrote:
> 
> The nscd init script uses #! /bin/bash but only really uses one bashism
> (translated strings), so remove them and switch the shell to #! /bin/sh.
> 
> Signed-off-by: Ross Burton 
> ---
> meta/recipes-core/glibc/glibc/nscd-no-bash.patch | 61 
> meta/recipes-core/glibc/glibc_2.22.bb|  1 +
> 2 files changed, 62 insertions(+)
> create mode 100644 meta/recipes-core/glibc/glibc/nscd-no-bash.patch
> 
> diff --git a/meta/recipes-core/glibc/glibc/nscd-no-bash.patch 
> b/meta/recipes-core/glibc/glibc/nscd-no-bash.patch
> new file mode 100644
> index 000..c306ce6
> --- /dev/null
> +++ b/meta/recipes-core/glibc/glibc/nscd-no-bash.patch
> @@ -0,0 +1,61 @@
> +Don't use bashisms (except for echo -n, which busybox supports) to avoid 
> needing bash to start nscd.
> +

it used to be like that and then changed to use translated strings. Do you see 
any downsides of removing it ?
locales related or otherwise ? if not then it looks ok to me.

> +Upstream-Status: Pending
> +Signed-off-by: Ross Burton 
> +
> +diff --git a/nscd/nscd.init b/nscd/nscd.init
> +index a882da7..b02986e 100644
> +--- a/nscd/nscd.init
>  b/nscd/nscd.init
> +@@ -1,4 +1,4 @@
> +-#!/bin/bash
> ++#!/bin/sh
> + #
> + # nscd: Starts the Name Switch Cache Daemon
> + #
> +@@ -49,7 +49,7 @@ prog=nscd
> + start () {
> + [ -d /var/run/nscd ] || mkdir /var/run/nscd
> + [ -d /var/db/nscd ] || mkdir /var/db/nscd
> +-echo -n $"Starting $prog: "
> ++echo -n "Starting $prog: "
> + daemon /usr/sbin/nscd
> + RETVAL=$?
> + echo
> +@@ -58,7 +58,7 @@ start () {
> + }
> + 
> + stop () {
> +-echo -n $"Stopping $prog: "
> ++echo -n "Stopping $prog: "
> + /usr/sbin/nscd -K
> + RETVAL=$?
> + if [ $RETVAL -eq 0 ]; then
> +@@ -67,9 +67,9 @@ stop () {
> + # a non-privileged user
> + rm -f /var/run/nscd/nscd.pid
> + rm -f /var/run/nscd/socket
> +-success $"$prog shutdown"
> ++success "$prog shutdown"
> + else
> +-failure $"$prog shutdown"
> ++failure "$prog shutdown"
> + fi
> + echo
> + return $RETVAL
> +@@ -103,13 +103,13 @@ case "$1" in
> + RETVAL=$?
> + ;;
> + force-reload | reload)
> +-echo -n $"Reloading $prog: "
> ++echo -n "Reloading $prog: "
> + killproc /usr/sbin/nscd -HUP
> + RETVAL=$?
> + echo
> + ;;
> + *)
> +-echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
> ++echo "Usage: $0 {start|stop|status|restart|reload|condrestart}"
> + RETVAL=1
> + ;;
> + esac
> diff --git a/meta/recipes-core/glibc/glibc_2.22.bb 
> b/meta/recipes-core/glibc/glibc_2.22.bb
> index f0e1fad..09f0428 100644
> --- a/meta/recipes-core/glibc/glibc_2.22.bb
> +++ b/meta/recipes-core/glibc/glibc_2.22.bb
> @@ -38,6 +38,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${BRANCH};name=glibc \
>file://0025-eglibc-Install-PIC-archives.patch \
>
> file://0026-eglibc-dl_debug_mask-is-controlled-by-__OPTION_EGLIB.patch \
>
> file://0027-eglibc-use-option-groups-Conditionally-exclude-c-tes.patch \
> +   file://nscd-no-bash.patch \
> "
> 
> SRC_URI += "\
> -- 
> 2.3.2 (Apple Git-55)
> 
> -- 
> ___
> 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 1/1] kmod: fix link creation when base_bindir != /bin

2015-09-14 Thread Joshua Lock
If base_bindir is not a direct child of / the link creation in
do_install_append creates incorrect relative links.

Instead pass a full path to the link source too the lnr script
to create a relative link.

Signed-off-by: Joshua Lock 
---
 meta/recipes-kernel/kmod/kmod_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/kmod/kmod_git.bb 
b/meta/recipes-kernel/kmod/kmod_git.bb
index ba4d85e..e0bb95c 100644
--- a/meta/recipes-kernel/kmod/kmod_git.bb
+++ b/meta/recipes-kernel/kmod/kmod_git.bb
@@ -21,9 +21,9 @@ do_install_append () {
 install -dm755 ${D}${base_bindir}
 install -dm755 ${D}${base_sbindir}
 # add symlinks to kmod
-ln -s ..${base_bindir}/kmod ${D}${base_bindir}/lsmod
+lnr ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod
 for tool in insmod rmmod depmod modinfo modprobe; do
-ln -s ..${base_bindir}/kmod ${D}${base_sbindir}/${tool}
+lnr ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool}
 done
 # configuration directories
 install -dm755 ${D}${base_libdir}/depmod.d
-- 
2.1.4

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


[OE-core] [PATCH] glibc: don't require bash for nscd init script

2015-09-14 Thread Ross Burton
The nscd init script uses #! /bin/bash but only really uses one bashism
(translated strings), so remove them and switch the shell to #! /bin/sh.

Signed-off-by: Ross Burton 
---
 meta/recipes-core/glibc/glibc/nscd-no-bash.patch | 61 
 meta/recipes-core/glibc/glibc_2.22.bb|  1 +
 2 files changed, 62 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/nscd-no-bash.patch

diff --git a/meta/recipes-core/glibc/glibc/nscd-no-bash.patch 
b/meta/recipes-core/glibc/glibc/nscd-no-bash.patch
new file mode 100644
index 000..c306ce6
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/nscd-no-bash.patch
@@ -0,0 +1,61 @@
+Don't use bashisms (except for echo -n, which busybox supports) to avoid 
needing bash to start nscd.
+
+Upstream-Status: Pending
+Signed-off-by: Ross Burton 
+
+diff --git a/nscd/nscd.init b/nscd/nscd.init
+index a882da7..b02986e 100644
+--- a/nscd/nscd.init
 b/nscd/nscd.init
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # nscd:   Starts the Name Switch Cache Daemon
+ #
+@@ -49,7 +49,7 @@ prog=nscd
+ start () {
+ [ -d /var/run/nscd ] || mkdir /var/run/nscd
+ [ -d /var/db/nscd ] || mkdir /var/db/nscd
+-echo -n $"Starting $prog: "
++echo -n "Starting $prog: "
+ daemon /usr/sbin/nscd
+ RETVAL=$?
+ echo
+@@ -58,7 +58,7 @@ start () {
+ }
+ 
+ stop () {
+-echo -n $"Stopping $prog: "
++echo -n "Stopping $prog: "
+ /usr/sbin/nscd -K
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+@@ -67,9 +67,9 @@ stop () {
+   # a non-privileged user
+   rm -f /var/run/nscd/nscd.pid
+   rm -f /var/run/nscd/socket
+-  success $"$prog shutdown"
++  success "$prog shutdown"
+ else
+-  failure $"$prog shutdown"
++  failure "$prog shutdown"
+ fi
+ echo
+ return $RETVAL
+@@ -103,13 +103,13 @@ case "$1" in
+   RETVAL=$?
+   ;;
+ force-reload | reload)
+-  echo -n $"Reloading $prog: "
++  echo -n "Reloading $prog: "
+   killproc /usr/sbin/nscd -HUP
+   RETVAL=$?
+   echo
+   ;;
+ *)
+-  echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
++  echo "Usage: $0 {start|stop|status|restart|reload|condrestart}"
+   RETVAL=1
+   ;;
+ esac
diff --git a/meta/recipes-core/glibc/glibc_2.22.bb 
b/meta/recipes-core/glibc/glibc_2.22.bb
index f0e1fad..09f0428 100644
--- a/meta/recipes-core/glibc/glibc_2.22.bb
+++ b/meta/recipes-core/glibc/glibc_2.22.bb
@@ -38,6 +38,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${BRANCH};name=glibc \
file://0025-eglibc-Install-PIC-archives.patch \

file://0026-eglibc-dl_debug_mask-is-controlled-by-__OPTION_EGLIB.patch \

file://0027-eglibc-use-option-groups-Conditionally-exclude-c-tes.patch \
+   file://nscd-no-bash.patch \
 "
 
 SRC_URI += "\
-- 
2.3.2 (Apple Git-55)

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


[OE-core] OE Changelog since 2015-09-06 until 2015-09-13

2015-09-14 Thread cliff . brake
Changelog since 2015-09-06 until 2015-09-13.  Projects included in this report:

bitbake: git://git.openembedded.org/bitbake
openembedded-core: git://git.openembedded.org/openembedded-core
meta-openembedded: git://git.openembedded.org/meta-openembedded
meta-angstrom: git://github.com/Angstrom-distribution/meta-angstrom.git
meta-arago: git://arago-project.org/git/meta-arago.git
meta-atmel: https://github.com/linux4sam/meta-atmel.git
meta-beagleboard: git://github.com/beagleboard/meta-beagleboard.git
meta-browser: git://github.com/OSSystems/meta-browser.git
meta-bug: git://github.com/buglabs/meta-bug.git
meta-chicken: git://github.com/OSSystems/meta-chicken
meta-efikamx: git://github.com/kraj/meta-efikamx.git
meta-ettus: http://github.com/koenkooi/meta-ettus.git
meta-fsl-arm: git://git.yoctoproject.org/meta-fsl-arm
meta-fsl-arm-extra: git://github.com/Freescale/meta-fsl-arm-extra.git
meta-fsl-ppc: git://git.yoctoproject.org/meta-fsl-ppc
meta-guacamayo: git://github.com/Guacamayo/meta-guacamayo.git
meta-gumstix: git://github.com/gumstix/meta-gumstix.git
meta-gumstix-community: 
https://github.com/schnitzeltony/meta-gumstix-community.git
meta-handheld: git://git.openembedded.org/meta-handheld
meta-igep: http://github.com/ebutera/meta-igep.git
meta-intel: git://git.yoctoproject.org/meta-intel
meta-ivi: git://git.yoctoproject.org/meta-ivi
meta-java: git://github.com/woglinde/meta-java
meta-jetson-tk1: https://github.com/cubicool/meta-jetson-tk1.git
meta-kde: git://gitorious.org/openembedded-core-layers/meta-kde.git
meta-micro: git://git.openembedded.org/meta-micro
meta-mono: git://git.yoctoproject.org/meta-mono.git
meta-netbookpro: git://github.com/tworaz/meta-netbookpro
meta-nodejs: https://github.com/imyller/meta-nodejs.git
meta-nslu2: git://github.com/kraj/meta-nslu2
meta-opie: git://git.openembedded.org/meta-opie
meta-qt3: git://git.yoctoproject.org/meta-qt3
meta-qt5: git://github.com/meta-qt5/meta-qt5.git
meta-slugos: git://github.com/kraj/meta-slugos
meta-systemd: git://git.yoctoproject.org/meta-systemd
meta-raspberrypi: git://github.com/djwillis/meta-raspberrypi.git
meta-smartphone: http://git.shr-project.org/repo/meta-smartphone.git
meta-ti: git://git.yoctoproject.org/meta-ti
meta-webos: git://github.com/openwebos/meta-webos.git
meta-xilinx: git://git.yoctoproject.org/meta-xilinx
meta-yocto: git://git.yoctoproject.org/meta-yocto
openembedded: git://git.openembedded.org/openembedded


Changelog for bitbake:

Belen Barros Pena (4):
  toaster: remove unnecessary white space
  toaster: fix project names in latest builds
  toaster: replace ETA with % of tasks done
  toaster: Changes to navigation

Ed Bartosh (1):
  toaster: increase waiting time

Richard Purdie (7):
  toastergui: Add missing files from 1c2f6b9b7b9e700146944b9d6d2114e0d014ee81
  server/process: Handle SIGTERM more gracefully
  utils: Add signal_on_parent_exit() function
  prserv: SIGTERM and deamonization fixes
  bitbake-worker: Simple code cleanup
  bitbake-worker: Handle SIGKILL of parent gracefully
  bitbake-worker: Ensure pipe closure doesn't crash before killpg()


Changelog for openembedded-core:

Alejandro del Castillo (1):
  adt-installer: upgrade to opkg 0.3.0

Alex Franco (1):
  scripts: Move BUILDDIR chmod fix after checks in oe-setup-builddir

Alexander Kanavin (11):
  libyaml: add a recipe from meta-oe
  ruby: add a recipe from meta-ruby
  libsecret: add a recipe from meta-gnome
  libwebp: add a recipe from meta-oe
  p11-kit: add a recipe from meta-oe
  gcr: add a recipe from meta-gnome
  libwnck3: add a recipe from meta-gnome
  gnome-desktop3: add a recipe from meta-gnome
  gsettings-desktop-schemas: add a recipe from meta-gnome
  pcmanfm: add an icon theme dependency
  gnome-icon-theme: remove the recipe

Armin Kuster (1):
  bind: update to 9.10.2-p4

Brendan Le Foll (4):
  toolchain-shar-extract.sh: ensure extensible SDK install path obeys restrict
  toolchain-shar-extract.sh: better default install path for extensible SDK
  toolchain-shar-extract.sh: explain why we cannot use sudo in extensible SDK
  devtool: add package plugin that lets you create package via devtool

Bruce Ashfield (1):
  linux-yocto/3.14: fix edgerouter (octeon) build

Chen Qi (1):
  bind: fix compile failure when building path is long

Christopher Larson (1):
  sanity.bbclass: remove abspath warning for SSTATE_MIRRORS

Cristian Iorga (1):
  connman: upgrade to 1.30

Cristina Agurida (1):
  oeqa/parselogs: Updated log error whitelist.

Ed Bartosh (3):
  wic: round variable before converting to int
  wic-image-minimal: add wic image recipe and .wks
  devtool: make plugin_init optional

Jagadeesh Krishnanjanappa (1):
  binutils: Add thunderx support to gas

Kai Kang (1):
  screen: backport to fix build error

Khem Raj (19):
  busybox: Enable getopt applet
  rootfs: Do not uninstall update-rc.d
  rootfs: Conditionally uninstall update-rc.d
  systemd: 

[OE-core] [PATCH] libgcc.inc: package baremetal multilib libraries

2015-09-14 Thread Juro Bystricky
When building libgcc for baremetal cross-compilers, some files and libraries
may be built but not packaged. This patch fixes errors such as these:

ERROR: QA Issue: libgcc: Files/directories were installed but not shipped in 
any package:
  /usr/lib/arm-poky-eabi/4.9.3/thumb
  /usr/lib/arm-poky-eabi/4.9.3/fpu
  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcov.a
  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtn.o
  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtend.o
  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtbegin.o
  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcc.a
  /usr/lib/arm-poky-eabi/4.9.3/thumb/crti.o
  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcov.a
  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtn.o
  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtend.o
  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtbegin.o
  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcc.a
  /usr/lib/arm-poky-eabi/4.9.3/fpu/crti.o
Please set FILES such that these items are packaged. Alternatively if they are 
unneeded,
avoid installing them or delete them within do_install. [installed-vs-shipped]

Signed-off-by: Juro Bystricky 
---
 meta/recipes-devtools/gcc/libgcc.inc | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-devtools/gcc/libgcc.inc 
b/meta/recipes-devtools/gcc/libgcc.inc
index 739adbd..95709e4 100644
--- a/meta/recipes-devtools/gcc/libgcc.inc
+++ b/meta/recipes-devtools/gcc/libgcc.inc
@@ -28,6 +28,12 @@ FILES_${PN}-dev = "\
 ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
 "
 
+FILES_${PN}-dev_libc-baremetal = "\
+${base_libdir}/ \
+${libdir}/* \
+${libdir}/${TARGET_SYS}/* \
+"
+
 FILES_${PN}-dbg += "${base_libdir}/.debug/"
 
 LIBGCCBUILDTREENAME = "gcc-build-internal-"
-- 
1.9.1

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


[OE-core] [PATCH 02/12] hostap-utils: Use C99 stddefs in defining local typedefs

2015-09-14 Thread Khem Raj
The code is creating more abstract types which is nice however it should
be using standard defines from stdint.h and not random defines to base
its own type system

Signed-off-by: Khem Raj 
---
 ...-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch | 36 ++
 meta/recipes-bsp/hostap/hostap-utils.inc   |  4 ++-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch

diff --git 
a/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch
 
b/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch
new file mode 100644
index 000..b44dca3
--- /dev/null
+++ 
b/meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch
@@ -0,0 +1,36 @@
+From 742fb110d9841a04b3ced256b0bf80ff304dcaff Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Mon, 31 Aug 2015 05:45:08 +
+Subject: [PATCH] Define _u32/__s32/__u16/__s16/__u8 in terms of c99 types
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Pending
+
+ wireless_copy.h | 10 +-
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/wireless_copy.h b/wireless_copy.h
+index 8208258..1171a35 100644
+--- a/wireless_copy.h
 b/wireless_copy.h
+@@ -86,11 +86,11 @@
+ #else
+ #include 
+ #include 
+-typedef __uint32_t __u32;
+-typedef __int32_t __s32;
+-typedef __uint16_t __u16;
+-typedef __int16_t __s16;
+-typedef __uint8_t __u8;
++typedef u_int32_t __u32;
++typedef int32_t __s32;
++typedef u_int16_t __u16;
++typedef int16_t __s16;
++typedef u_int8_t __u8;
+ #ifndef __user
+ #define __user
+ #endif /* __user */
+-- 
+2.5.1
+
diff --git a/meta/recipes-bsp/hostap/hostap-utils.inc 
b/meta/recipes-bsp/hostap/hostap-utils.inc
index 89d977a..140321d 100644
--- a/meta/recipes-bsp/hostap/hostap-utils.inc
+++ b/meta/recipes-bsp/hostap/hostap-utils.inc
@@ -10,7 +10,9 @@ SECTION = "kernel/userland"
 PR = "r4"
 
 SRC_URI = "http://hostap.epitest.fi/releases/hostap-utils-${PV}.tar.gz \
-  file://hostap-fw-load.patch"
+   file://hostap-fw-load.patch \
+   
file://0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch \
+"
 S = "${WORKDIR}/hostap-utils-${PV}"
 
 BINARIES = "hostap_crypt_conf hostap_diag hostap_fw_load hostap_io_debug \
-- 
2.5.2

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


[OE-core] [PATCH 00/12] Fixes with clang

2015-09-14 Thread Khem Raj
These fixes generic in nature helps improve the portability of patches and make 
them work
on non GNU toolchain components

The following changes since commit 2c8c3d9c4b65d2a5c7976d530138ebcaac2b1447:

  gcc: reformat 0063-nativesdk-gcc-support.patch (2015-09-12 23:01:31 +0100)

are available in the git repository at:

  git://github.com/kraj/openembedded-core kraj/misc-fixes
  https://github.com//tree/kraj/misc-fixes

Khem Raj (12):
  xz: Correctly specify GPL-3.0 with autoconf exception
  hostap-utils: Use C99 stddefs in defining local typedefs
  xorg-driver: Fix logical && with bitwise and operation
  qt4: Fix kmap2qmap build with clang
  gummiboot: Fix build warnings seen with gcc5
  gnu-efi, syslinux: Support gcc < 4.7
  syslinux: Dont bypass gcc driver for dependency generation options
  opkg: Include stdio.h for FILE definition
  quota: Replace using -I= with STAGING_INCDIR
  connman: Fix build with musl
  waffle: upgrade waffle_1.5.1.bb -> waffle_1.5.2.bb
  sysstat: Include needed headers explicitly

 .../gnu-efi/gnu-efi/gcc46-compatibility.patch  | 21 ++
 meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb  |  1 +
 ...-C-syntax-errors-for-function-declaration.patch | 74 +++
 meta/recipes-bsp/gummiboot/gummiboot_git.bb|  3 +
 ...-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch | 36 +
 meta/recipes-bsp/hostap/hostap-utils.inc   |  4 +-
 meta/recipes-connectivity/connman/connman.inc  |  1 +
 ...acktrace-API-availability-before-using-it.patch | 55 ++
 ...resolve-musl-does-not-implement-res_ninit.patch | 77 
 .../0003-Fix-header-inclusions-for-musl.patch  | 85 ++
 meta/recipes-connectivity/connman/connman_1.30.bb  |  3 +
 ...-include-stdio.h-for-getting-FILE-defined.patch | 45 
 meta/recipes-devtools/opkg/opkg_0.3.0.bb   |  1 +
 .../syslinux/0010-gcc46-compatibility.patch| 37 ++
 .../0011-mk-MMD-does-not-take-any-arguments.patch  | 33 +
 meta/recipes-devtools/syslinux/syslinux_6.03.bb|  2 +
 .../quota/quota/remove_non_posix_types.patch   | 13 
 meta/recipes-extended/quota/quota_4.02.bb  |  2 +-
 .../0001-Include-needed-headers-explicitly.patch   | 62 
 meta/recipes-extended/sysstat/sysstat_11.1.5.bb|  2 +
 meta/recipes-extended/xz/xz_5.2.1.bb   |  2 +-
 ...-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch | 54 ++
 .../waffle/{waffle_1.5.1.bb => waffle_1.5.2.bb}|  8 +-
 ...put_dpms-Replace-logical-with-bitwise-ope.patch | 31 
 .../xorg-driver/xf86-video-omap_0.4.3.bb   |  2 +
 meta/recipes-qt/qt4/qt4-4.8.7.inc  |  1 +
 .../0034-Fix-kmap2qmap-build-with-clang.patch  | 34 +
 27 files changed, 683 insertions(+), 6 deletions(-)
 create mode 100644 meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch
 create mode 100644 
meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch
 create mode 100644 
meta/recipes-bsp/hostap/hostap-utils-0.4.7/0001-Define-_u32-__s32-__u16-__s16-__u8-in-terms-of-c99-t.patch
 create mode 100644 
meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
 create mode 100644 
meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch
 create mode 100644 
meta/recipes-connectivity/connman/connman/0003-Fix-header-inclusions-for-musl.patch
 create mode 100644 
meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch
 create mode 100644 
meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch
 create mode 100644 
meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch
 create mode 100644 
meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
 create mode 100644 
meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch
 rename meta/recipes-graphics/waffle/{waffle_1.5.1.bb => waffle_1.5.2.bb} (84%)
 create mode 100644 
meta/recipes-graphics/xorg-driver/xf86-video-omap/0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch
 create mode 100644 
meta/recipes-qt/qt4/qt4-4.8.7/0034-Fix-kmap2qmap-build-with-clang.patch

-- 
2.5.2

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


[OE-core] [PATCH 03/12] xorg-driver: Fix logical && with bitwise and operation

2015-09-14 Thread Khem Raj
This must have been a typo which is a bug infact we should have used
bitwise & in first place.

Signed-off-by: Khem Raj 
---
 ...put_dpms-Replace-logical-with-bitwise-ope.patch | 31 ++
 .../xorg-driver/xf86-video-omap_0.4.3.bb   |  2 ++
 2 files changed, 33 insertions(+)
 create mode 100644 
meta/recipes-graphics/xorg-driver/xf86-video-omap/0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch

diff --git 
a/meta/recipes-graphics/xorg-driver/xf86-video-omap/0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch
 
b/meta/recipes-graphics/xorg-driver/xf86-video-omap/0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch
new file mode 100644
index 000..41e77d3
--- /dev/null
+++ 
b/meta/recipes-graphics/xorg-driver/xf86-video-omap/0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch
@@ -0,0 +1,31 @@
+From fc653ca3b36435aea281ae409fb90f85e1bc0d81 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Mon, 7 Sep 2015 08:44:13 +
+Subject: [freedreno][PATCH] drmmode_output_dpms: Replace logical && with 
bitwise &
+ operation
+
+This is a mask calculation so bitbwise & should have been used
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Submitted
+
+ src/drmmode_display.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/drmmode_display.c b/src/drmmode_display.c
+index c3cf4f8..eb54b59 100644
+--- a/src/drmmode_display.c
 b/src/drmmode_display.c
+@@ -777,7 +777,7 @@ drmmode_output_dpms(xf86OutputPtr output, int mode)
+ 
+   for (i = 0; i < koutput->count_props; i++) {
+   props = drmModeGetProperty(drmmode->fd, koutput->props[i]);
+-  if (props && (props->flags && DRM_MODE_PROP_ENUM)) {
++  if (props && (props->flags & DRM_MODE_PROP_ENUM)) {
+   if (!strcmp(props->name, "DPMS")) {
+   mode_id = koutput->props[i];
+   drmModeFreeProperty(props);
+-- 
+2.5.1
+
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-omap_0.4.3.bb 
b/meta/recipes-graphics/xorg-driver/xf86-video-omap_0.4.3.bb
index 5f3a532..76682ed 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-video-omap_0.4.3.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-omap_0.4.3.bb
@@ -24,6 +24,8 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=10ce5de3b111315ea652a5f74ec0c602"
 DEPENDS += "virtual/libx11 libdrm xf86driproto"
 
+SRC_URI += 
"file://0001-drmmode_output_dpms-Replace-logical-with-bitwise-ope.patch"
+
 SRC_URI[md5sum] = "be35daf6fa4b75092cc4a8978c437bc5"
 SRC_URI[sha256sum] = 
"db1e0e69fd4c4c8fdca5ef2cb0447bccd7518a718495876a6904bef57b39986d"
 
-- 
2.5.2

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


[OE-core] [PATCH 04/12] qt4: Fix kmap2qmap build with clang

2015-09-14 Thread Khem Raj
Adapted and backported https://codereview.qt-project.org/#/c/107464/

Fixes errors like
../../include/QtCore/../../src/corelib/tools/qalgorithms.h:161:20:
error: call to function 'operator<' that is neither visible in the
template definition nor found by argument-dependent lookup
return (t1 < t2);

Signed-off-by: Khem Raj 
---
 meta/recipes-qt/qt4/qt4-4.8.7.inc  |  1 +
 .../0034-Fix-kmap2qmap-build-with-clang.patch  | 34 ++
 2 files changed, 35 insertions(+)
 create mode 100644 
meta/recipes-qt/qt4/qt4-4.8.7/0034-Fix-kmap2qmap-build-with-clang.patch

diff --git a/meta/recipes-qt/qt4/qt4-4.8.7.inc 
b/meta/recipes-qt/qt4/qt4-4.8.7.inc
index 5257e76..d38637c 100644
--- a/meta/recipes-qt/qt4/qt4-4.8.7.inc
+++ b/meta/recipes-qt/qt4/qt4-4.8.7.inc
@@ -25,6 +25,7 @@ SRC_URI = 
"http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever
file://0030-aarch64_arm64_qatomic_support.patch \
file://0031-aarch64_arm64_mkspecs.patch \
file://0032-aarch64_add_header.patch \
+   file://0034-Fix-kmap2qmap-build-with-clang.patch \
file://Fix-QWSLock-invalid-argument-logs.patch \
file://add_check_for_aarch64_32.patch \
file://g++.conf \
diff --git 
a/meta/recipes-qt/qt4/qt4-4.8.7/0034-Fix-kmap2qmap-build-with-clang.patch 
b/meta/recipes-qt/qt4/qt4-4.8.7/0034-Fix-kmap2qmap-build-with-clang.patch
new file mode 100644
index 000..f47a1d9
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt4-4.8.7/0034-Fix-kmap2qmap-build-with-clang.patch
@@ -0,0 +1,34 @@
+From: Samuel Gaist 
+Date: Wed, 4 Mar 2015 20:16:50 + (+0100)
+Subject: Fix kmap2qmap build on OS X
+X-Git-Tag: v5.4.2~6
+X-Git-Url: 
https://codereview.qt-project.org/gitweb?p=qt%2Fqttools.git;a=commitdiff_plain;h=cf196a2565235f649b88fac55b53270bea23458d;hp=3070815a24239bd0f469bfeb8d0a1f091974e28e
+
+Fix kmap2qmap build on OS X
+
+Currently kmap2qmap fails to build on OS X (clang) This patch aims to
+fix this.
+
+Change-Id: I61c985dc7ad1f2486368c39aa976599d274942ab
+Reviewed-by: Friedemann Kleint 
+---
+Upstream-Status: Backport
+Index: qt-everywhere-opensource-src-4.8.7/tools/kmap2qmap/main.cpp
+===
+--- qt-everywhere-opensource-src-4.8.7.orig/tools/kmap2qmap/main.cpp
 qt-everywhere-opensource-src-4.8.7/tools/kmap2qmap/main.cpp
+@@ -385,9 +385,11 @@ static const int symbol_synonyms_size =
+ 
+ // makes the generated array in --header mode a bit more human readable
+ QT_BEGIN_NAMESPACE
+-static bool operator<(const QWSKeyboard::Mapping , const 
QWSKeyboard::Mapping )
+-{
+-return m1.keycode != m2.keycode ? m1.keycode < m2.keycode : m1.modifiers 
< m2.modifiers;
++namespace QWSKeyboard {
++static bool operator<(const Mapping , const Mapping )
++{
++return m1.keycode != m2.keycode ? m1.keycode < m2.keycode : 
m1.modifiers < m2.modifiers;
++}
+ }
+ QT_END_NAMESPACE
+ 
-- 
2.5.2

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


[OE-core] [PATCH 10/12] connman: Fix build with musl

2015-09-14 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/recipes-connectivity/connman/connman.inc  |  1 +
 ...acktrace-API-availability-before-using-it.patch | 55 ++
 ...resolve-musl-does-not-implement-res_ninit.patch | 77 
 .../0003-Fix-header-inclusions-for-musl.patch  | 85 ++
 meta/recipes-connectivity/connman/connman_1.30.bb  |  3 +
 5 files changed, 221 insertions(+)
 create mode 100644 
meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
 create mode 100644 
meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch
 create mode 100644 
meta/recipes-connectivity/connman/connman/0003-Fix-header-inclusions-for-musl.patch

diff --git a/meta/recipes-connectivity/connman/connman.inc 
b/meta/recipes-connectivity/connman/connman.inc
index 17dc4b9..fd9640e 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -30,6 +30,7 @@ EXTRA_OECONF += "\
 --disable-polkit \
 --enable-client \
 "
+CFLAGS += "-D_GNU_SOURCE"
 
 PACKAGECONFIG ??= "wispr \
${@bb.utils.contains('DISTRO_FEATURES', 
'systemd','systemd', '', d)} \
diff --git 
a/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
 
b/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
new file mode 100644
index 000..5dc6fd6
--- /dev/null
+++ 
b/meta/recipes-connectivity/connman/connman/0001-Detect-backtrace-API-availability-before-using-it.patch
@@ -0,0 +1,55 @@
+From 00d4447395725abaa651e12ed40095081e04011e Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Sun, 13 Sep 2015 13:22:01 -0700
+Subject: [PATCH 1/3] Detect backtrace() API availability before using it
+
+C libraries besides glibc do not have backtrace() implemented
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Pending
+
+ configure.ac | 2 ++
+ src/log.c| 5 ++---
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 69c0eeb..90099f2 100644
+--- a/configure.ac
 b/configure.ac
+@@ -171,6 +171,8 @@ fi
+ AM_CONDITIONAL(PPTP, test "${enable_pptp}" != "no")
+ AM_CONDITIONAL(PPTP_BUILTIN, test "${enable_pptp}" = "builtin")
+ 
++AC_CHECK_HEADERS([execinfo.h])
++
+ AC_CHECK_HEADERS(resolv.h, dummy=yes,
+   AC_MSG_ERROR(resolver header files are required))
+ AC_CHECK_LIB(resolv, ns_initparse, dummy=yes, [
+diff --git a/src/log.c b/src/log.c
+index a693bd0..5b40c1f 100644
+--- a/src/log.c
 b/src/log.c
+@@ -30,7 +30,6 @@
+ #include 
+ #include 
+ #include 
+-#include 
+ #include 
+ 
+ #include "connman.h"
+@@ -215,9 +214,9 @@ static void print_backtrace(unsigned int offset)
+ static void signal_handler(int signo)
+ {
+   connman_error("Aborting (signal %d) [%s]", signo, program_exec);
+-
++#ifdef HAVE_EXECINFO_H
+   print_backtrace(2);
+-
++#endif /* HAVE_EXECINFO_H */
+   exit(EXIT_FAILURE);
+ }
+ 
+-- 
+2.5.1
+
diff --git 
a/meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch
 
b/meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch
new file mode 100644
index 000..0593427
--- /dev/null
+++ 
b/meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch
@@ -0,0 +1,77 @@
+From 10b0d16d04b811b1ccd1f9b0cfe757bce8d876a1 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Mon, 6 Apr 2015 23:02:21 -0700
+Subject: [PATCH 2/3] resolve: musl does not implement res_ninit
+
+ported from
+http://git.alpinelinux.org/cgit/aports/plain/testing/connman/libresolv.patch
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj 
+---
+ gweb/gresolv.c | 33 -
+ 1 file changed, 12 insertions(+), 21 deletions(-)
+
+diff --git a/gweb/gresolv.c b/gweb/gresolv.c
+index 5cf7a9a..3ad8e70 100644
+--- a/gweb/gresolv.c
 b/gweb/gresolv.c
+@@ -875,8 +875,6 @@ GResolv *g_resolv_new(int index)
+   resolv->index = index;
+   resolv->nameserver_list = NULL;
+ 
+-  res_ninit(>res);
+-
+   return resolv;
+ }
+ 
+@@ -916,8 +914,6 @@ void g_resolv_unref(GResolv *resolv)
+ 
+   flush_nameservers(resolv);
+ 
+-  res_nclose(>res);
+-
+   g_free(resolv);
+ }
+ 
+@@ -1020,24 +1016,19 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const 
char *hostname,
+   debug(resolv, "hostname %s", hostname);
+ 
+   if (!resolv->nameserver_list) {
+-  int i;
+-
+-  for (i = 0; i < resolv->res.nscount; i++) {
+-  char buf[100];
+-  int family = resolv->res.nsaddr_list[i].sin_family;
+-  void *sa_addr = >res.nsaddr_list[i].sin_addr;
+-
+-  if (family != AF_INET &&
+-  

[OE-core] [PATCH 12/12] sysstat: Include needed headers explicitly

2015-09-14 Thread Khem Raj
It depends on defines from .h files that are not includes as part of
source file, on glibc it works because they get included indirectly but
that can change any time since its internal glibc behaviour, at user
level the header needed should be explicitly included.

Signed-off-by: Khem Raj 
---
 .../0001-Include-needed-headers-explicitly.patch   | 62 ++
 meta/recipes-extended/sysstat/sysstat_11.1.5.bb|  2 +
 2 files changed, 64 insertions(+)
 create mode 100644 
meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch

diff --git 
a/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
 
b/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
new file mode 100644
index 000..c126523
--- /dev/null
+++ 
b/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
@@ -0,0 +1,62 @@
+From 42325faa88d64cce799977d611b2792beb154643 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Mon, 14 Sep 2015 08:36:59 +
+Subject: [PATCH] Include needed headers explicitly
+
+on glibc these headers get pulled in indirectly via other .h files
+but right fix is to include them directly when used
+
+fixes
+
+error: use of undeclared identifier 'PATH_MAX'
+error: called object type 'unsigned int' is not a function or function pointer
+dm_major = major(aux.st_rdev);
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Pending
+
+ common.c| 1 +
+ ioconf.c| 1 +
+ sa_common.c | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/common.c b/common.c
+index a23155b..ad86446 100644
+--- a/common.c
 b/common.c
+@@ -20,6 +20,7 @@
+  */
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+diff --git a/ioconf.c b/ioconf.c
+index 7d88c5d..6d67691 100644
+--- a/ioconf.c
 b/ioconf.c
+@@ -27,6 +27,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include "ioconf.h"
+ #include "common.h"
+diff --git a/sa_common.c b/sa_common.c
+index b7351d9..c9e3299 100644
+--- a/sa_common.c
 b/sa_common.c
+@@ -20,6 +20,7 @@
+  */
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+-- 
+2.5.2
+
diff --git a/meta/recipes-extended/sysstat/sysstat_11.1.5.bb 
b/meta/recipes-extended/sysstat/sysstat_11.1.5.bb
index 69d2ec2..bff8616 100644
--- a/meta/recipes-extended/sysstat/sysstat_11.1.5.bb
+++ b/meta/recipes-extended/sysstat/sysstat_11.1.5.bb
@@ -2,6 +2,8 @@ require sysstat.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
 
+SRC_URI += "file://0001-Include-needed-headers-explicitly.patch"
+
 SRC_URI[md5sum] = "4d8e6e72d057189a1660462a678d9ada"
 SRC_URI[sha256sum] = 
"feb3a90d86ffd69cf5b88144a8876ae05bd42384f559676f08100671589fa2bb"
 
-- 
2.5.2

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


[OE-core] [PATCH 11/12] waffle: upgrade waffle_1.5.1.bb -> waffle_1.5.2.bb

2015-09-14 Thread Khem Raj
Backport needed patches for compilation fixes on musl

Signed-off-by: Khem Raj 
---
 ...-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch | 54 ++
 .../waffle/{waffle_1.5.1.bb => waffle_1.5.2.bb}|  8 ++--
 2 files changed, 59 insertions(+), 3 deletions(-)
 create mode 100644 
meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch
 rename meta/recipes-graphics/waffle/{waffle_1.5.1.bb => waffle_1.5.2.bb} (84%)

diff --git 
a/meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch
 
b/meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch
new file mode 100644
index 000..a0c826e
--- /dev/null
+++ 
b/meta/recipes-graphics/waffle/waffle/0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch
@@ -0,0 +1,54 @@
+From 3b9b8f5f6d1b99af43e95ec0868404e552a85b73 Mon Sep 17 00:00:00 2001
+From: Emil Velikov 
+Date: Thu, 19 Mar 2015 22:26:11 +
+Subject: [PATCH] third_party/threads: Use PTHREAD_MUTEX_RECURSIVE by default
+
+PTHREAD_MUTEX_RECURSIVE_NP was used for compatibility with old glibc.
+Although due to the_GNU_SOURCES define the portable,
+PTHREAD_MUTEX_RECURSIVE will be available for Linuxes since at least
+1998. Simplify things giving us compatibility with musl which
+apparently does not provide the non-portable define.
+
+Inspired by almost identical commit in mesa aead7fe2e2b(c11/threads: Use
+PTHREAD_MUTEX_RECURSIVE by default) by Felix Janda.
+
+Signed-off-by: Emil Velikov 
+Reviewed-by: Chad Versace 
+---
+Upstream-Status: Backport
+
+ third_party/threads/threads_posix.c | 10 --
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/third_party/threads/threads_posix.c 
b/third_party/threads/threads_posix.c
+index 5835e43..e122bf9 100644
+--- a/third_party/threads/threads_posix.c
 b/third_party/threads/threads_posix.c
+@@ -26,6 +26,9 @@
+  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+  * DEALINGS IN THE SOFTWARE.
+  */
++
++#define _GNU_SOURCE
++
+ #include 
+ #ifndef assert
+ #include 
+@@ -150,13 +153,8 @@ int mtx_init(mtx_t *mtx, int type)
+   && type != (mtx_try|mtx_recursive))
+ return thrd_error;
+ pthread_mutexattr_init();
+-if ((type & mtx_recursive) != 0) {
+-#if defined(__linux__) || defined(__linux)
+-pthread_mutexattr_settype(, PTHREAD_MUTEX_RECURSIVE_NP);
+-#else
++if ((type & mtx_recursive) != 0)
+ pthread_mutexattr_settype(, PTHREAD_MUTEX_RECURSIVE);
+-#endif
+-}
+ pthread_mutex_init(mtx, );
+ pthread_mutexattr_destroy();
+ return thrd_success;
+-- 
+2.5.2
+
diff --git a/meta/recipes-graphics/waffle/waffle_1.5.1.bb 
b/meta/recipes-graphics/waffle/waffle_1.5.2.bb
similarity index 84%
rename from meta/recipes-graphics/waffle/waffle_1.5.1.bb
rename to meta/recipes-graphics/waffle/waffle_1.5.2.bb
index b8aa05a..6923f1c 100644
--- a/meta/recipes-graphics/waffle/waffle_1.5.1.bb
+++ b/meta/recipes-graphics/waffle/waffle_1.5.2.bb
@@ -3,9 +3,11 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \
 
file://include/waffle/waffle.h;endline=24;md5=61dbf8697f61c78645e75a93c585b1bf"
 
-SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz;
-SRC_URI[md5sum] = "c0d802bc3d0aba87c51e423a3a8bdd69"
-SRC_URI[sha256sum] = 
"cbab0e926515064e818bf089a5af04be33307e5f40d07659fb40d59b2bfe20aa"
+SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz 
\
+   
file://0001-third_party-threads-Use-PTHREAD_MUTEX_RECURSIVE-by-d.patch \
+  "
+SRC_URI[md5sum] = "c669c91bf2f7e13a5d781c3dbb30fd8c"
+SRC_URI[sha256sum] = 
"d2c096cf654bf0061323a4b9231a1ef5b749a1e5c7c5bfe067e964219c2a851c"
 
 inherit cmake distro_features_check lib_package
 
-- 
2.5.2

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


[OE-core] [PATCH 05/12] gummiboot: Fix build warnings seen with gcc5

2015-09-14 Thread Khem Raj
gummiboot uses -mno-sse so we should disble using sse for mfpmath as
well

Fix syntax errors in struct defines

Signed-off-by: Khem Raj 
---
 ...-C-syntax-errors-for-function-declaration.patch | 74 ++
 meta/recipes-bsp/gummiboot/gummiboot_git.bb|  3 +
 2 files changed, 77 insertions(+)
 create mode 100644 
meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch

diff --git 
a/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch
 
b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch
new file mode 100644
index 000..fa50bc4
--- /dev/null
+++ 
b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch
@@ -0,0 +1,74 @@
+From 55957faf1272c8f5f304909faeebf647a78e3701 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 9 Sep 2015 07:19:45 +
+Subject: [PATCH] console: Fix C syntax errors for function declaration
+
+To address this, the semicolons after the function parameters should be
+replaced by commas, and the last one should be omitted
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Pending
+
+ src/efi/console.c | 26 +-
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+diff --git a/src/efi/console.c b/src/efi/console.c
+index 6206c80..66aa88f 100644
+--- a/src/efi/console.c
 b/src/efi/console.c
+@@ -27,8 +27,8 @@
+ struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL;
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_INPUT_RESET_EX)(
+-struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This;
+-BOOLEAN ExtendedVerification;
++struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
++BOOLEAN ExtendedVerification
+ );
+ 
+ typedef UINT8 EFI_KEY_TOGGLE_STATE;
+@@ -44,29 +44,29 @@ typedef struct {
+ } EFI_KEY_DATA;
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_INPUT_READ_KEY_EX)(
+-struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This;
+-EFI_KEY_DATA *KeyData;
++struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
++EFI_KEY_DATA *KeyData
+ );
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_SET_STATE)(
+-struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This;
+-EFI_KEY_TOGGLE_STATE *KeyToggleState;
++struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
++EFI_KEY_TOGGLE_STATE *KeyToggleState
+ );
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_KEY_NOTIFY_FUNCTION)(
+-EFI_KEY_DATA *KeyData;
++EFI_KEY_DATA *KeyData
+ );
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY)(
+-struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This;
+-EFI_KEY_DATA KeyData;
+-EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction;
+-VOID **NotifyHandle;
++struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
++EFI_KEY_DATA KeyData,
++EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
++VOID **NotifyHandle
+ );
+ 
+ typedef EFI_STATUS (EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)(
+-struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This;
+-VOID *NotificationHandle;
++struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
++VOID *NotificationHandle
+ );
+ 
+ typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL {
+-- 
+2.5.1
+
diff --git a/meta/recipes-bsp/gummiboot/gummiboot_git.bb 
b/meta/recipes-bsp/gummiboot/gummiboot_git.bb
index 91c3db9..376ab54 100644
--- a/meta/recipes-bsp/gummiboot/gummiboot_git.bb
+++ b/meta/recipes-bsp/gummiboot/gummiboot_git.bb
@@ -13,6 +13,7 @@ PV = "48+git${SRCPV}"
 SRCREV = "2bcd919c681c952eb867ef1bdb458f1bc49c2d55"
 SRC_URI = "git://anongit.freedesktop.org/gummiboot \
file://fix-objcopy.patch \
+   
file://0001-console-Fix-C-syntax-errors-for-function-declaration.patch \
   "
 
 # Note: Add COMPATIBLE_HOST here is only because it depends on gnu-efi
@@ -28,6 +29,8 @@ EXTRA_OECONF = "--disable-manpages 
--with-efi-includedir=${STAGING_INCDIR} \
 
 EXTRA_OEMAKE += "gummibootlibdir=${libdir}/gummiboot"
 
+TUNE_CCARGS_remove = "-mfpmath=sse"
+
 do_deploy () {
 install ${B}/gummiboot*.efi ${DEPLOYDIR}
 }
-- 
2.5.2

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


[OE-core] [PATCH 07/12] syslinux: Dont bypass gcc driver for dependency generation options

2015-09-14 Thread Khem Raj
GCC docs also do not recommend using -Wp instead pass the option via gcc
driver and let it process it as needed

This also helps in making it work with clang as well

Signed-off-by: Khem Raj 
---
 .../0011-mk-MMD-does-not-take-any-arguments.patch  | 33 ++
 meta/recipes-devtools/syslinux/syslinux_6.03.bb|  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 
meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch

diff --git 
a/meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch
 
b/meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch
new file mode 100644
index 000..443c1cc
--- /dev/null
+++ 
b/meta/recipes-devtools/syslinux/syslinux/0011-mk-MMD-does-not-take-any-arguments.patch
@@ -0,0 +1,33 @@
+From 0f3d83c25491951f1fa84c7957358ef3d1bcd8a9 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 9 Sep 2015 17:39:22 +
+Subject: [PATCH] mk: -MMD does not take any arguments
+
+Specify -Wp for each option, clang seems to not accept
+-Wp,-x,y,-a,b
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Pending
+
+ mk/syslinux.mk | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: syslinux-6.03/mk/syslinux.mk
+===
+--- syslinux-6.03.orig/mk/syslinux.mk
 syslinux-6.03/mk/syslinux.mk
+@@ -82,11 +82,11 @@ ARCH ?= $(strip $(SUBARCH))
+ GCCWARN  = -W -Wall -Wstrict-prototypes $(DEBUGOPT)
+ 
+ # Common stanza to make gcc generate .*.d dependency files
+-MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
++MAKEDEPS = -MT $@ -MD
+ 
+ # Dependencies that exclude system headers; use whenever we use
+ # header files from the platform.
+-UMAKEDEPS = -Wp,-MT,$@,-MMD,$(dir $@).$(notdir $@).d
++UMAKEDEPS = -MT $@ -MMD
+ 
+ # Items that are only appropriate during development; this file is
+ # removed when tarballs are generated.
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.03.bb 
b/meta/recipes-devtools/syslinux/syslinux_6.03.bb
index 94077da..8534528 100644
--- a/meta/recipes-devtools/syslinux/syslinux_6.03.bb
+++ b/meta/recipes-devtools/syslinux/syslinux_6.03.bb
@@ -22,6 +22,7 @@ SRC_URI = 
"${KERNELORG_MIRROR}/linux/utils/boot/syslinux/syslinux-${PV}.tar.xz \

file://0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch \
file://0009-linux-syslinux-implement-install_bootblock.patch \
file://0010-gcc46-compatibility.patch \
+   file://0011-mk-MMD-does-not-take-any-arguments.patch \
"
 
 SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13"
-- 
2.5.2

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


[OE-core] [PATCH 09/12] quota: Replace using -I= with STAGING_INCDIR

2015-09-14 Thread Khem Raj
-I= is gcc specific, using STAGING_INCDIR makes it compiler independent
Update posix types patch to include new u_int -> uint32_t changes

Signed-off-by: Khem Raj 
---
 .../quota/quota/remove_non_posix_types.patch| 13 +
 meta/recipes-extended/quota/quota_4.02.bb   |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/quota/quota/remove_non_posix_types.patch 
b/meta/recipes-extended/quota/quota/remove_non_posix_types.patch
index 5442d98..06ff13c 100644
--- a/meta/recipes-extended/quota/quota/remove_non_posix_types.patch
+++ b/meta/recipes-extended/quota/quota/remove_non_posix_types.patch
@@ -183,3 +183,16 @@ Index: quota-tools/quot.h
  } du_t;
  
  #define   NDU 6
+Index: quota-tools/rquota_server.c
+===
+--- quota-tools.orig/rquota_server.c
 quota-tools/rquota_server.c
+@@ -60,7 +60,7 @@ extern char nfs_pseudoroot[PATH_MAX];
+  */
+ extern struct authunix_parms *unix_cred;
+ 
+-int in_group(gid_t * gids, u_int len, gid_t gid)
++int in_group(gid_t * gids, uint32_t len, gid_t gid)
+ {
+   gid_t *gidsp = gids + len;
+ 
diff --git a/meta/recipes-extended/quota/quota_4.02.bb 
b/meta/recipes-extended/quota/quota_4.02.bb
index 124b0a3..673d584 100644
--- a/meta/recipes-extended/quota/quota_4.02.bb
+++ b/meta/recipes-extended/quota/quota_4.02.bb
@@ -23,7 +23,7 @@ DEPENDS = "gettext-native e2fsprogs"
 
 inherit autotools-brokensep gettext pkgconfig
 
-CFLAGS += "-I=${includedir}/tirpc"
+CFLAGS += "-I${STAGING_INCDIR}/tirpc"
 LDFLAGS += "-ltirpc"
 ASNEEDED = ""
 EXTRA_OEMAKE += 'STRIP=""'
-- 
2.5.2

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


[OE-core] [PATCH 08/12] opkg: Include stdio.h for FILE definition

2015-09-14 Thread Khem Raj
Helps with compling it on musl

Signed-off-by: Khem Raj 
---
 ...-include-stdio.h-for-getting-FILE-defined.patch | 45 ++
 meta/recipes-devtools/opkg/opkg_0.3.0.bb   |  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 
meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch

diff --git 
a/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch
 
b/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch
new file mode 100644
index 000..acc1338
--- /dev/null
+++ 
b/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch
@@ -0,0 +1,45 @@
+From 58f4d3d63cd6097154205ea7ee042005036659b3 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Thu, 10 Sep 2015 21:43:32 -0700
+Subject: [PATCH] libopkg: include stdio.h for getting FILE defined
+To: opkg-de...@googlegroups.com
+Cc: p...@paulbarker.me.uk
+
+For some libc(musl) stdio.h may not get included indirectly which means
+we need to mention it in explicit include list
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Submitted
+
+ libopkg/opkg_verify.c | 1 +
+ libopkg/pkg_src.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/libopkg/opkg_verify.c b/libopkg/opkg_verify.c
+index 41dc3f4..a71591d 100644
+--- a/libopkg/opkg_verify.c
 b/libopkg/opkg_verify.c
+@@ -18,6 +18,7 @@
+ 
+ #include 
+ #include 
++#include 
+ 
+ #include "file_util.h"
+ #include "opkg_conf.h"
+diff --git a/libopkg/pkg_src.c b/libopkg/pkg_src.c
+index e31ec21..6b49a00 100644
+--- a/libopkg/pkg_src.c
 b/libopkg/pkg_src.c
+@@ -20,6 +20,7 @@
+ 
+ #include 
+ #include 
++#include 
+ 
+ #include "file_util.h"
+ #include "opkg_conf.h"
+-- 
+2.5.1
+
diff --git a/meta/recipes-devtools/opkg/opkg_0.3.0.bb 
b/meta/recipes-devtools/opkg/opkg_0.3.0.bb
index f4dbb2d..884368f 100644
--- a/meta/recipes-devtools/opkg/opkg_0.3.0.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.3.0.bb
@@ -15,6 +15,7 @@ SRC_URI = 
"http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz
file://opkg-configure.service \
file://opkg.conf \

file://0001-opkg_archive-add-support-for-empty-compressed-files.patch \
+   file://0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch \
 "
 
 SRC_URI[md5sum] = "3412cdc71d78b98facc84b19331ec64e"
-- 
2.5.2

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


Re: [OE-core] [PATCH] libgcc.inc: package baremetal multilib libraries

2015-09-14 Thread Khem Raj

> On Sep 14, 2015, at 9:22 AM, Juro Bystricky  wrote:
> 
> When building libgcc for baremetal cross-compilers, some files and libraries
> may be built but not packaged. This patch fixes errors such as these:
> 
> ERROR: QA Issue: libgcc: Files/directories were installed but not shipped in 
> any package:
>  /usr/lib/arm-poky-eabi/4.9.3/thumb
>  /usr/lib/arm-poky-eabi/4.9.3/fpu
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcov.a
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtn.o
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtend.o
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtbegin.o
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcc.a
>  /usr/lib/arm-poky-eabi/4.9.3/thumb/crti.o
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcov.a
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtn.o
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtend.o
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtbegin.o
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcc.a
>  /usr/lib/arm-poky-eabi/4.9.3/fpu/crti.o
> Please set FILES such that these items are packaged. Alternatively if they 
> are unneeded,
> avoid installing them or delete them within do_install. [installed-vs-shipped]
> 
> Signed-off-by: Juro Bystricky 
> ---
> meta/recipes-devtools/gcc/libgcc.inc | 6 ++
> 1 file changed, 6 insertions(+)
> 
> diff --git a/meta/recipes-devtools/gcc/libgcc.inc 
> b/meta/recipes-devtools/gcc/libgcc.inc
> index 739adbd..95709e4 100644
> --- a/meta/recipes-devtools/gcc/libgcc.inc
> +++ b/meta/recipes-devtools/gcc/libgcc.inc
> @@ -28,6 +28,12 @@ FILES_${PN}-dev = "\
> ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
> "
> 
> +FILES_${PN}-dev_libc-baremetal = "\
> +${base_libdir}/ \
> +${libdir}/* \
> +${libdir}/${TARGET_SYS}/* \
> +”

why not put it into libgcc-dev itself 

> +

> FILES_${PN}-dbg += "${base_libdir}/.debug/"
> 
> LIBGCCBUILDTREENAME = "gcc-build-internal-"
> -- 
> 1.9.1
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

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


[OE-core] [PATCH] image.bbclass: add do_rootfs vardeps for IMAGE_{CMD, TYPEDEP}_*

2015-09-14 Thread Christopher Larson
From: Christopher Larson 

We want do_rootfs to rerun if the image commands or dependencies change for any 
of
our configured fstypes (IMGE_FSTYPES).

Signed-off-by: Christopher Larson 
---
 meta/classes/image.bbclass | 24 +++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index fc7d64d..d81fa27 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -106,14 +106,36 @@ python () {
 d.setVarFlag(var, 'func', '1')
 }
 
+def fstype_variables(d):
+fstype_vars = set()
+fstypes = set(d.getVar('IMAGE_FSTYPES', True).split())
+def _typedeps(fstype, seen):
+if fstype in seen:
+return
+
+yield fstype
+for typedep in (d.getVar('IMAGE_TYPEDEP_%s' % fstype, True) or 
"").split():
+for _typedep in _typedeps(typedep, seen):
+yield _typedep
+
+seen = set()
+for fstype in list(fstypes):
+fstypes |= set(_typedeps(fstype, seen))
+
+for fstype in fstypes:
+fstype_vars.add('IMAGE_TYPEDEP_%s' % fstype)
+fstype_vars.add('IMAGE_CMD_%s' % fstype)
+return sorted(fstype_vars)
+
 def rootfs_variables(d):
 from oe.rootfs import variable_depends
-variables = 
['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPEDEP_','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE',
+variables = 
['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE',
  
'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS',
  
'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP',
  
'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS',
  
'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS',
  'COMPRESSIONTYPES', 'IMAGE_GEN_DEBUGFS']
+variables.extend(fstype_variables(d))
 variables.extend(command_variables(d))
 variables.extend(variable_depends(d))
 return " ".join(variables)
-- 
2.2.1

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


[OE-core] [PATCH V4] mkefidisk: Create interactive menu for the script

2015-09-14 Thread Bruno Bottazzini
If it is passed only the image parameter, it will show some interactive
options to help to conclude the script.

With this patch it will detect devices available in the machine, asking
to choose what it is wanted to be flashed.

it will suggest the target device. If it is a SD card the suggestion
is /dev/mmcblk0. If it is a pendrive it will suggest to use /dev/sda.

Signed-off-by: Bruno Bottazzini 
---
 scripts/contrib/mkefidisk.sh | 63 
 1 file changed, 58 insertions(+), 5 deletions(-)

diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index 55f72b0..cd4de05 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -152,8 +152,55 @@ unmount() {
 # Parse and validate arguments
 #
 if [ $# -lt 3 ] || [ $# -gt 4 ]; then
-   usage
-   exit 1
+if [ $# -eq 1 ]; then
+AVAILABLE_DISK=`lsblk | grep "disk" | cut -f 1 -d " "`
+X=0
+for disk in `echo $AVAILABLE_DISK`; do
+mounted=`lsblk /dev/$disk | awk {'print $7'} | sed 
"s/MOUNTPOINT//"`
+if [ -z "$mounted" ]; then
+UNMOUNTED_AVAILABLES="$UNMOUNTED_AVAILABLES /dev/$disk"
+info "$X - /dev/$disk"
+X=`expr $X + 1`
+fi
+done
+if [ $X -eq 0 ]; then
+die "No unmounted device found."
+fi
+read -p "Choose unmounted device number: " DISK_NUMBER
+X=0
+for line in `echo $UNMOUNTED_AVAILABLES`; do
+if [ $DISK_NUMBER -eq $X ]; then
+DISK_TO_BE_FLASHED=$line
+break
+else
+X=`expr $X + 1`
+fi
+done
+if [ -z "$DISK_TO_BE_FLASHED" ]; then
+die "Option \"$DISK_NUMBER\" is invalid. Choose a valid option"
+else
+if [ -z `echo $DISK_TO_BE_FLASHED | grep "mmc"` ]; then
+TARGET_TO_BE_BOOT="/dev/sda"
+else
+TARGET_TO_BE_BOOT="/dev/mmcblk0"
+fi
+fi
+echo ""
+echo "Choose a name of the device that will be boot from"
+echo -n "Recommended name is: "
+info "$TARGET_TO_BE_BOOT"
+read -p "Is target device okay? [y/N]: " RESPONSE
+if [ "$RESPONSE" != "y" ]; then
+read -p "Choose target device name: " TARGET_TO_BE_BOOT
+fi
+echo ""
+if [ -z "$TARGET_TO_BE_BOOT" ]; then
+die "Error: choose a valid target name"
+fi
+else
+usage
+   exit 1
+fi
 fi
 
 if [ "$1" = "-v" ]; then
@@ -162,9 +209,15 @@ if [ "$1" = "-v" ]; then
shift
 fi
 
-DEVICE=$1
-HDDIMG=$2
-TARGET_DEVICE=$3
+if [ -z "$AVAILABLE_DISK" ]; then
+DEVICE=$1
+HDDIMG=$2
+TARGET_DEVICE=$3
+else
+DEVICE=$DISK_TO_BE_FLASHED
+HDDIMG=$1
+TARGET_DEVICE=$TARGET_TO_BE_BOOT
+fi
 
 LINK=$(readlink $DEVICE)
 if [ $? -eq 0 ]; then
-- 
2.5.1

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


[OE-core] [PATCH V4] mkefidisk: Create interactive menu for the script

2015-09-14 Thread Bruno Bottazzini
Differences from v3:
- Fix issue that was listing mounted devices as unmounted.

Differences from v2:
- Removing unecessary \n as Saul Wold has suggested.

Differences from v1:
- Now it will show only unmounted devices as Saul Wold has suggested
- Commit message changed as Saul Wold has suggested

Bruno Bottazzini (1):
  mkefidisk: Create interactive menu for the script

 scripts/contrib/mkefidisk.sh | 63 
 1 file changed, 58 insertions(+), 5 deletions(-)

-- 
2.5.1

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


Re: [OE-core] [PATCH] image.bbclass: add do_rootfs vardeps for IMAGE_{CMD, TYPEDEP}_*

2015-09-14 Thread Christopher Larson
On Mon, Sep 14, 2015 at 2:38 PM, Christopher Larson 
wrote:

> From: Christopher Larson 
>
> We want do_rootfs to rerun if the image commands or dependencies change
> for any of
> our configured fstypes (IMGE_FSTYPES).
>
> Signed-off-by: Christopher Larson 
>

Hold off on accepting this, need to account compression types and
COMPRESS_CMD. Expect a v2.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] image.bbclass: add do_rootfs vardeps for {COMPRESS, IMAGE}_CMD_*

2015-09-14 Thread Christopher Larson
From: Christopher Larson 

We want do_rootfs to rerun if the fstype or compression commands or
dependencies change for any of our configured fstypes (IMAGE_FSTYPES).
IMAGE_TYPEDEP isn't explicitly handled, as it's traversed already, so the end
result will change if it does, and we only really care about the results, not
how we got there. This uses oe.image.Image()._get_image_types() to get the
info about the image and compression types in use.

Signed-off-by: Christopher Larson 
---
 meta/classes/image.bbclass | 18 +-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index fc7d64d..86a98bb 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -106,14 +106,30 @@ python () {
 d.setVarFlag(var, 'func', '1')
 }
 
+def fstype_variables(d):
+import oe.image
+
+image = oe.image.Image(d)
+alltypes, fstype_groups, cimages = image._get_image_types()
+fstype_vars = set()
+for fstype_group in fstype_groups:
+for fstype in fstype_group:
+fstype_vars.add('IMAGE_CMD_' + fstype)
+if fstype in cimages:
+for ctype in cimages[fstype]:
+fstype_vars.add('COMPRESS_CMD_' + ctype)
+
+return sorted(fstype_vars)
+
 def rootfs_variables(d):
 from oe.rootfs import variable_depends
-variables = 
['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPEDEP_','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE',
+variables = 
['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE',
  
'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS',
  
'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP',
  
'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS',
  
'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS',
  'COMPRESSIONTYPES', 'IMAGE_GEN_DEBUGFS']
+variables.extend(fstype_variables(d))
 variables.extend(command_variables(d))
 variables.extend(variable_depends(d))
 return " ".join(variables)
-- 
2.2.1

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


Re: [OE-core] [PATCH] image.bbclass: add do_rootfs vardeps for IMAGE_{CMD, TYPEDEP}_*

2015-09-14 Thread Christopher Larson
On Mon, Sep 14, 2015 at 4:41 PM, Christopher Larson  wrote:

> On Mon, Sep 14, 2015 at 2:38 PM, Christopher Larson 
> wrote:
>
>> From: Christopher Larson 
>>
>> We want do_rootfs to rerun if the image commands or dependencies change
>> for any of
>> our configured fstypes (IMGE_FSTYPES).
>>
>> Signed-off-by: Christopher Larson 
>>
>
> Hold off on accepting this, need to account compression types and
> COMPRESS_CMD. Expect a v2.


'[PATCH] image.bbclass: add do_rootfs vardeps for {COMPRESS,IMAGE}_CMD_*'
is submitted, and supercedes this.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] image.bbclass: add do_rootfs vardeps for {COMPRESS, IMAGE}_CMD_*

2015-09-14 Thread Christopher Larson
On Mon, Sep 14, 2015 at 5:10 PM, Christopher Larson 
wrote:

> From: Christopher Larson 
>
> We want do_rootfs to rerun if the fstype or compression commands or
> dependencies change for any of our configured fstypes (IMAGE_FSTYPES).
> IMAGE_TYPEDEP isn't explicitly handled, as it's traversed already, so the
> end
> result will change if it does, and we only really care about the results,
> not
> how we got there. This uses oe.image.Image()._get_image_types() to get the
> info about the image and compression types in use.
>
> Signed-off-by: Christopher Larson 
>

This version supercedes '[PATCH] image.bbclass: add do_rootfs vardeps for
IMAGE_{CMD,TYPEDEP}_*' (didn't send as v2 as the commit summary message
changed), but it's essentially a v2).
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] prelink: Move to latest release

2015-09-14 Thread Mark Hatle
On 9/14/15 2:59 PM, Phil Blundell wrote:
> On Mon, 2015-09-14 at 10:47 -0500, Mark Hatle wrote:
>> [YOCTO #8227]
>>
>> The latest release has a fix for prelinking on ARM with recent binutils.
>>
>> For more information on why the change was necessary, see:
>>
>>   https://sourceware.org/ml/binutils/2014-06/msg00228.html
> 
> That link isn't particularly illuminating for someone not well versed in
> the art of prelink.  I assume the significant thing is that the default
> MAXPAGESIZE has changed for arm, but it's not entirely obvious why this
> matters to prelink, what problem it caused, or what the change in
> prelink is that fixes the problem.  Can you elaborate?

Prelink patch in question:

http://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/commit/?h=cross_prelink=3a559ca14412f6e87874e5cf88f974e373cdfd27

It's both pieces listed that matter:

"Increase the maximum page size to 64kB and align the TEXT_START_ADDR
to a 64kB boundary."

The TEXT_START_ADDR has moved in memory outside of the original TEXT_START_ADDR.
 Prelink has a verification in it that checks to make sure the program is
requesting a start address and page size within the bounds of the prelinkers
knowledge of the ABI.

The so the page size was increased which caused the text_start_addr to move --
together causing the integrity check in the prelinker to fail.

The new prelinker will still be able to prelink older executables as the older
page size (and thus start address) are within the bounds of the expected system.

This is my understand, but I'm not an ARM ABI expect.  So if I'm wrong, you'll
have to query the person who submitted the patch that fixed the issue.  (And yes
the patch has been verified as working both with the internal prelink tests and
also on the target inspecting the ld.so statistics to show that the prelink
settings are being honored.)

--Mark

> thanks
> 
> p.
> 
> 

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


[OE-core] Re: [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold

2015-09-14 Thread Carlos Alberto Lopez Perez
On 14/09/15 09:24, Khem Raj wrote:
> 
>> On Sep 11, 2015, at 7:51 AM, Phil Blundell  wrote:
>>
>> On Fri, 2015-09-11 at 14:49 +0200, Carlos Alberto Lopez Perez wrote:
>>>  * When ld-is-gold is enabled in DISTRO_FEATURES, matchbox-keyboard
>>>will fail to build with this error:
>>>
>>>ld: error: matchbox-keyboard-image.o: requires unsupported dynamic
>>>   reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
>>
>> This is only an issue for ARM (and only for Thumb2 at that).  I don't
>> think it's necessarily appropriate to force -fPIC on all targets.
>>
>> Also, before adding this sort of hack it would be worth verifying
>> whether this is in fact a toolchain bug and, if it is, fixing it there.
>>
> 
> This may not be a toolchain bug if there is a MOVW_ABS relocation being 
> emitted
> into an object that is eventually linked into shared library. Using -fPIC 
> seems to be right fix
> I know bfd linker silently ignored these relocations and generated bad .so 
> files but that was fixed
> several years ago. So I think what needs to be looked at is why does same .o 
> links ok with bfd linker
> is it some linker trampoline code thats in question here which may be 
> different between gold and ld
> 
> Carlos
> 
> Can you check the linker cmdline of failing link step and see if its 
> generating a shared object there ?
> if thats the case and I assume gcc is generating this relocation into both
> 

It looks is generating an executable (matchbox-keyboard).

Full log: http://sprunge.us/VPIN



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


Re: [OE-core] [oe-commits] Aníbal Limón : systemd: Increase devices timeout in QEMU machines to avoid failures on serial-getty

2015-09-14 Thread Martin Jansa
On Sat, Aug 29, 2015 at 12:39:35PM +, g...@git.openembedded.org wrote:
> Module: openembedded-core.git
> Branch: master
> Commit: 5196d7bacaef1076c361adaa2867be31759c1b52
> URL:
> http://git.openembedded.org/?p=openembedded-core.git=commit;h=5196d7bacaef1076c361adaa2867be31759c1b52
> 
> Author: Aníbal Limón 
> Date:   Fri Aug 28 11:15:01 2015 -0500
> 
> systemd: Increase devices timeout in QEMU machines to avoid failures on 
> serial-getty
> 
> Systemd serial-getty is failing because dev-tty ends with timeout, systemd
> uses a default timeout of 90 secs that it's reached on AB's production 
> environment
> due to high I/O loads (nfs).
> 
> When use QEMU is used without KVM support, the machine code is executed by TCG
> (software code execution) that is dependent on devices layer and causes locks
>  between TCG/Devices increasing the machine code execution time [1].
> 
> QEMU don't support configuration of device timeout always uses a default one 
> that is
> 90 secs, so the next patch increases the device timeout to 240 secs [2] in 
> order give
> enough time to get devices ready. It ONLY applies on QEMU machines.
> 
> [YOCTO #8141]
> 
> [1] 
> http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-and.html
> [2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8141#c10
> 
> Signed-off-by: Aníbal Limón 
> Signed-off-by: Richard Purdie 
> 
> ---
> 
>  c-Change-the-default-device-timeout-to-2.patch | 31 
> ++
>  meta/recipes-core/systemd/systemd_219.bb   |  1 +
>  2 files changed, 32 insertions(+)
> 
> diff --git 
> a/meta/recipes-core/systemd/systemd/qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch
>  
> b/meta/recipes-core/systemd/systemd/qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch
> new file mode 100644
> index 000..c7e1711
> --- /dev/null
> +++ 
> b/meta/recipes-core/systemd/systemd/qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch
> @@ -0,0 +1,31 @@
> +Upstream-Status: Inappropriate [Specific case QEMU/AB]
> +
> +From 7b8c4e0a67a79a75e1bd77df3a452a5497322108 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= 
> +Date: Thu, 27 Aug 2015 17:58:26 -0500
> +Subject: [PATCH] core/device.c: Change the default device timeout to 240 sec.
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Signed-off-by: Aníbal Limón 
> +---
> + src/core/device.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/core/device.c b/src/core/device.c
> +index e7efcf0..4ed8f08 100644
> +--- a/src/core/device.c
>  b/src/core/device.c
> +@@ -110,7 +110,7 @@ static void device_init(Unit *u) {
> +  * indefinitely for plugged in devices, something which cannot
> +  * happen for the other units since their operations time out
> +  * anyway. */
> +-u->job_timeout = u->manager->default_timeout_start_usec;
> ++u->job_timeout = (240 * USEC_PER_SEC);
> + 
> + u->ignore_on_isolate = true;
> + u->ignore_on_snapshot = true;
> +-- 
> +1.9.1
> +
> diff --git a/meta/recipes-core/systemd/systemd_219.bb 
> b/meta/recipes-core/systemd/systemd_219.bb
> index e187cea..2326753 100644
> --- a/meta/recipes-core/systemd/systemd_219.bb
> +++ b/meta/recipes-core/systemd/systemd_219.bb
> @@ -50,6 +50,7 @@ SRC_URI = 
> "git://github.com/systemd/systemd-stable;branch=v219-stable;protocol=g
> file://init \
> file://run-ptest \
>"
> +SRC_URI_append_qemuall = 
> "file://qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch"

Most appends need to start with leading space, this breaks all build
where SRC_URI doesn't end with a space already (e.g. if some layer
appends something to SRC_URI).

I'll send patch, but be more careful next time.

>  
>  S = "${WORKDIR}/git"
>  
> 
> -- 
> ___
> Openembedded-commits mailing list
> openembedded-comm...@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-commits

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


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


[OE-core] [PATCH][master][fido][dizzy] Revert "perf: fix for rebuilding"

2015-09-14 Thread Martin Jansa
* This reverts commit 9dafa571ed0a40d21a886dec7704c31150b21942.

* The "fix" is causing more issues then it's fixing and there was no
  feedback in many months.
* More info:
  
http://lists.openembedded.org/pipermail/openembedded-core/2015-June/105684.html
  
http://lists.openembedded.org/pipermail/openembedded-core/2015-September/109870.html
  
http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110338.html

Signed-off-by: Martin Jansa 
---
 meta/recipes-kernel/perf/perf.bb | 4 
 1 file changed, 4 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index adb3a2c..f1d7894 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -118,10 +118,6 @@ do_install() {
 }
 
 do_configure_prepend () {
-# Fix for rebuilding
-rm -rf ${B}/
-mkdir ${B}/
-
 # If building a multlib based perf, the incorrect library path will be
 # detected by perf, since it triggers via: ifeq ($(ARCH),x86_64). In a 32 
bit
 # build, with a 64 bit multilib, the arch won't match and the detection of 
a 
-- 
2.5.1

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


[OE-core] [PATCH] systemd: fix missing space in SRC_URI append

2015-09-14 Thread Martin Jansa
* it was introduced in:
  commit 5196d7bacaef1076c361adaa2867be31759c1b52
  Author: Aníbal Limón 
  Date:   Fri Aug 28 11:15:01 2015 -0500
  Subject: systemd: Increase devices timeout in QEMU machines to avoid failures 
on serial-getty

Signed-off-by: Martin Jansa 
---
 meta/recipes-core/systemd/systemd_225.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_225.bb 
b/meta/recipes-core/systemd/systemd_225.bb
index 6ac99cd..f7d4c7d 100644
--- a/meta/recipes-core/systemd/systemd_225.bb
+++ b/meta/recipes-core/systemd/systemd_225.bb
@@ -46,7 +46,7 @@ SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \
file://init \
file://run-ptest \
   "
-SRC_URI_append_qemuall = 
"file://qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch"
+SRC_URI_append_qemuall = " 
file://qemuall_io_latency-core-device.c-Change-the-default-device-timeout-to-2.patch"
 
 S = "${WORKDIR}/git"
 
-- 
2.5.1

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


Re: [OE-core] [PATCH][v2] perf: fix the install-python_ext

2015-09-14 Thread Rongqing Li



On 2015年09月14日 22:43, Saul Wold wrote:

On 08/25/2015 10:58 PM, rongqing...@windriver.com wrote:

From: Roy Li 

1. $(grep xxx xxx) never returns 0, it maybe return empty or string, and
can not compare with 0, this fixes that python module never are
installed.

2. python library is installed into /usr/lib/ by default, but we expect
it is installed into ${libdir}, so add --install-lib parameter for python
setup.py to set the library dir;
this fixes not shipped warning, since python modules are installed into
/usr/lib/, but FILE_${PN}-python expects it is under ${libdir}, which is
/usr/lib64/ for 64bit machine

3. the makefile target install-python_ext is moved from Makefile to
Makefile.perf from linux v3.13, so match install-python_ext in Makefile.*
and --root='/\$(DESTDIR_SQ)' before linux v3.13 will install the target
python library to native sysroot, so replace it with --prefix as after
linux
3.13;
this fixes not shipped warning, and install target files to native
dir, like
below:
ERROR: QA Issue: perf: Files/directories were installed but not
shipped in any package:
   /home
   /home/pokybuild
   /home/pokybuild/yocto-autobuilder
   /home/pokybuild/yocto-autobuilder/yocto-worker
   /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb

/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build

/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf.so


/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf-0.1-py2.7.egg-info




This patch actually seems to introduce this failure,

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm/builds/494/steps/BuildImages/logs/stdio


This needs to be addressed.

Sau!



Ok, I will see it

-Roy





Signed-off-by: Roy Li 
---
  meta/recipes-kernel/perf/perf.bb | 8 +++-
  1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/perf/perf.bb
b/meta/recipes-kernel/perf/perf.bb
index b18e474..adb3a2c 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -44,6 +44,7 @@ export STAGING_INCDIR
  export STAGING_LIBDIR
  export BUILD_SYS
  export HOST_SYS
+export PYTHON_SITEPACKAGES_DIR

  #kernel 3.1+ supports WERROR to disable warnings as errors
  export WERROR = "0"
@@ -111,7 +112,7 @@ do_install() {
  unset CFLAGS
  oe_runmake DESTDIR=${D} install
  # we are checking for this make target to be compatible with
older perf versions
-if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1"
-a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0" ]; then
+if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1"
] && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
  oe_runmake DESTDIR=${D} install-python_ext
  fi
  }
@@ -143,7 +144,12 @@ do_configure_prepend () {
  if [ -e "${S}/tools/perf/Makefile.perf" ]; then
  sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \
  ${S}/tools/perf/Makefile.perf
+sed -i -e
"s,prefix='\$(DESTDIR_SQ)/usr'$,prefix='\$(DESTDIR_SQ)/usr'
--install-lib='\$(DESTDIR)\$(PYTHON_SITEPACKAGES_DIR)',g" \
+${S}/tools/perf/Makefile.perf
  fi
+sed -i -e
"s,--root='/\$(DESTDIR_SQ)',--prefix='\$(DESTDIR_SQ)/usr'
--install-lib='\$(DESTDIR)\$(PYTHON_SITEPACKAGES_DIR)',g" \
+${S}/tools/perf/Makefile
+
  if [ -e "${S}/tools/build/Makefile.build" ]; then
  sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \
  ${S}/tools/build/Makefile.build






--
Best Reagrds,
Roy | RongQing Li
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH][master][fido][dizzy] Revert "perf: fix for rebuilding"

2015-09-14 Thread Robert Yang


Hi Martin,

Sorry, I'm blocked by mutitlib SDK issues recently, I will fix it sooner.
Revert the patch is fine to me if it is urgent.

// Robert

On 09/15/2015 01:29 PM, Martin Jansa wrote:

* This reverts commit 9dafa571ed0a40d21a886dec7704c31150b21942.

* The "fix" is causing more issues then it's fixing and there was no
   feedback in many months.
* More info:
   
http://lists.openembedded.org/pipermail/openembedded-core/2015-June/105684.html
   
http://lists.openembedded.org/pipermail/openembedded-core/2015-September/109870.html
   
http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110338.html

Signed-off-by: Martin Jansa 
---
  meta/recipes-kernel/perf/perf.bb | 4 
  1 file changed, 4 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index adb3a2c..f1d7894 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -118,10 +118,6 @@ do_install() {
  }

  do_configure_prepend () {
-# Fix for rebuilding
-rm -rf ${B}/
-mkdir ${B}/
-
  # If building a multlib based perf, the incorrect library path will be
  # detected by perf, since it triggers via: ifeq ($(ARCH),x86_64). In a 32 
bit
  # build, with a 64 bit multilib, the arch won't match and the detection 
of a


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


[OE-core] [PATCH] quashfs-tools: make it be able to be compiled by gcc5 with "-O0"

2015-09-14 Thread rongqing.li
From: Roy Li 

Signed-off-by: Roy Li 
---
 ...shfs.c-get-inline-functions-work-with-C99.patch | 154 +
 .../squashfs-tools/squashfs-tools_git.bb   |   1 +
 2 files changed, 155 insertions(+)
 create mode 100644 
meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch

diff --git 
a/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
 
b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
new file mode 100644
index 000..fefe9f6
--- /dev/null
+++ 
b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
@@ -0,0 +1,154 @@
+From ac6268e843c43286eebff2a1052182c2393cdb2e Mon Sep 17 00:00:00 2001
+From: Roy Li 
+Date: Mon, 14 Sep 2015 12:31:42 +0800
+Subject: [PATCH] mksquashfs.c:  get inline functions work with both gnu11 and 
gnu89
+
+Upstream-status: pending
+
+After gcc upgraded to gcc5, and if the codes is compiled without 
optimization(-O0),
+and the below error will happen:
+
+| mksquashfs.o: In function `create_inode':
+| git/squashfs-tools/mksquashfs.c:897: undefined reference to `get_inode_no'
+| git/squashfs-tools/mksquashfs.c:960: undefined reference to `get_parent_no'
+| git/squashfs-tools/mksquashfs.c:983: undefined reference to `get_parent_no'
+| mksquashfs.o: In function `reader_read_process':
+| git/squashfs-tools/mksquashfs.c:2132: undefined reference to `is_fragment'
+| mksquashfs.o: In function `reader_read_file':
+| git/squashfs-tools/mksquashfs.c:2228: undefined reference to `is_fragment'
+| mksquashfs.o: In function `dir_scan':
+| git/squashfs-tools/mksquashfs.c:3101: undefined reference to 
`create_dir_entry'
+
+gcc5 defaults to -std=gnu11 instead of -std=gnu89, and it requires that 
exactly one C
+source file has the callable copy of the inline function. Consider the 
following
+program:
+
+  inline int
+  foo (void)
+  {
+return 42;
+  }
+
+  int
+  main (void)
+  {
+return foo ();
+  }
+
+The program above will not link with the C99 inline semantics, because no 
out-of-line
+function foo is generated. To fix this, either mark the function foo as 
static, or
+add the following declaration:
+  static inline int foo (void);
+
+more information refer to: https://gcc.gnu.org/gcc-5/porting_to.html;
+
+but the use of "extern inline" will lead to the compilation issue if gcc is not
+gcc5, as the commit in oe-core d0af30c92fde [alsa-lib: Change function type to
+"static __inline__"]
+"static __inline__ function()" is the inlined version that
+can be used in this compilation unit, but there will be another
+definition of this function somewhere, so compiler will not emit
+any code for the function body. This causes problem in -O0,
+where functions are never inlined, the function call is preserved,
+but linker can't find the symbol, thus the error happens.
+
+so replace "inline" with "static inline" to make it work with both gnu11 and 
gnu89
+
+Signed-off-by: Roy Li 
+---
+ squashfs-tools/mksquashfs.c | 20 ++--
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index d221c35..6bba1d2 100644
+--- a/squashfs-tools/mksquashfs.c
 b/squashfs-tools/mksquashfs.c
+@@ -828,13 +828,13 @@ char *subpathname(struct dir_ent *dir_ent)
+ }
+ 
+ 
+-inline unsigned int get_inode_no(struct inode_info *inode)
++static inline unsigned int get_inode_no(struct inode_info *inode)
+ {
+   return inode->inode_number;
+ }
+ 
+ 
+-inline unsigned int get_parent_no(struct dir_info *dir)
++static inline unsigned int get_parent_no(struct dir_info *dir)
+ {
+   return dir->depth ? get_inode_no(dir->dir_ent->inode) : inode_no;
+ }
+@@ -2027,7 +2027,7 @@ struct file_info *duplicate(long long file_size, long 
long bytes,
+ }
+ 
+ 
+-inline int is_fragment(struct inode_info *inode)
++static inline int is_fragment(struct inode_info *inode)
+ {
+   off_t file_size = inode->buf.st_size;
+ 
+@@ -2996,13 +2996,13 @@ struct inode_info *lookup_inode2(struct stat *buf, int 
pseudo, int id)
+ }
+ 
+ 
+-inline struct inode_info *lookup_inode(struct stat *buf)
++static inline struct inode_info *lookup_inode(struct stat *buf)
+ {
+   return lookup_inode2(buf, 0, 0);
+ }
+ 
+ 
+-inline void alloc_inode_no(struct inode_info *inode, unsigned int use_this)
++static inline void alloc_inode_no(struct inode_info *inode, unsigned int 
use_this)
+ {
+   if (inode->inode_number == 0) {
+   inode->inode_number = use_this ? : inode_no ++;
+@@ -3013,7 +3013,7 @@ inline void alloc_inode_no(struct inode_info *inode, 
unsigned int use_this)
+ }
+ 
+ 
+-inline struct dir_ent *create_dir_entry(char *name, char *source_name,
++static inline 

Re: [OE-core] [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold

2015-09-14 Thread Khem Raj

> On Sep 11, 2015, at 7:51 AM, Phil Blundell  wrote:
> 
> On Fri, 2015-09-11 at 14:49 +0200, Carlos Alberto Lopez Perez wrote:
>>  * When ld-is-gold is enabled in DISTRO_FEATURES, matchbox-keyboard
>>will fail to build with this error:
>> 
>>ld: error: matchbox-keyboard-image.o: requires unsupported dynamic
>>   reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
> 
> This is only an issue for ARM (and only for Thumb2 at that).  I don't
> think it's necessarily appropriate to force -fPIC on all targets.
> 
> Also, before adding this sort of hack it would be worth verifying
> whether this is in fact a toolchain bug and, if it is, fixing it there.
> 

This may not be a toolchain bug if there is a MOVW_ABS relocation being emitted
into an object that is eventually linked into shared library. Using -fPIC seems 
to be right fix
I know bfd linker silently ignored these relocations and generated bad .so 
files but that was fixed
several years ago. So I think what needs to be looked at is why does same .o 
links ok with bfd linker
is it some linker trampoline code thats in question here which may be different 
between gold and ld

Carlos

Can you check the linker cmdline of failing link step and see if its generating 
a shared object there ?
if thats the case and I assume gcc is generating this relocation into both
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] quashfs-tools: make it be able to be compiled by gcc5 with "-O0"

2015-09-14 Thread Khem Raj

> On Sep 14, 2015, at 12:33 AM,  
>  wrote:
> 
> From: Roy Li 
> 
> Signed-off-by: Roy Li 
> ---
> ...shfs.c-get-inline-functions-work-with-C99.patch | 154 +
> .../squashfs-tools/squashfs-tools_git.bb   |   1 +
> 2 files changed, 155 insertions(+)
> create mode 100644 
> meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
> 
> diff --git 
> a/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
>  
> b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
> new file mode 100644
> index 000..fefe9f6
> --- /dev/null
> +++ 
> b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
> @@ -0,0 +1,154 @@
> +From ac6268e843c43286eebff2a1052182c2393cdb2e Mon Sep 17 00:00:00 2001
> +From: Roy Li 
> +Date: Mon, 14 Sep 2015 12:31:42 +0800
> +Subject: [PATCH] mksquashfs.c:  get inline functions work with both gnu11 
> and gnu89
> +

this looks ok.

> +Upstream-status: pending
> +
> +After gcc upgraded to gcc5, and if the codes is compiled without 
> optimization(-O0),
> +and the below error will happen:
> +
> +| mksquashfs.o: In function `create_inode':
> +| git/squashfs-tools/mksquashfs.c:897: undefined reference to `get_inode_no'
> +| git/squashfs-tools/mksquashfs.c:960: undefined reference to `get_parent_no'
> +| git/squashfs-tools/mksquashfs.c:983: undefined reference to `get_parent_no'
> +| mksquashfs.o: In function `reader_read_process':
> +| git/squashfs-tools/mksquashfs.c:2132: undefined reference to `is_fragment'
> +| mksquashfs.o: In function `reader_read_file':
> +| git/squashfs-tools/mksquashfs.c:2228: undefined reference to `is_fragment'
> +| mksquashfs.o: In function `dir_scan':
> +| git/squashfs-tools/mksquashfs.c:3101: undefined reference to 
> `create_dir_entry'
> +
> +gcc5 defaults to -std=gnu11 instead of -std=gnu89, and it requires that 
> exactly one C
> +source file has the callable copy of the inline function. Consider the 
> following
> +program:
> +
> +  inline int
> +  foo (void)
> +  {
> +return 42;
> +  }
> +
> +  int
> +  main (void)
> +  {
> +return foo ();
> +  }
> +
> +The program above will not link with the C99 inline semantics, because no 
> out-of-line
> +function foo is generated. To fix this, either mark the function foo as 
> static, or
> +add the following declaration:
> +  static inline int foo (void);
> +
> +more information refer to: https://gcc.gnu.org/gcc-5/porting_to.html;
> +
> +but the use of "extern inline" will lead to the compilation issue if gcc is 
> not
> +gcc5, as the commit in oe-core d0af30c92fde [alsa-lib: Change function type 
> to
> +"static __inline__"]
> +"static __inline__ function()" is the inlined version that
> +can be used in this compilation unit, but there will be another
> +definition of this function somewhere, so compiler will not emit
> +any code for the function body. This causes problem in -O0,
> +where functions are never inlined, the function call is preserved,
> +but linker can't find the symbol, thus the error happens.
> +
> +so replace "inline" with "static inline" to make it work with both gnu11 and 
> gnu89
> +
> +Signed-off-by: Roy Li 
> +---
> + squashfs-tools/mksquashfs.c | 20 ++--
> + 1 file changed, 10 insertions(+), 10 deletions(-)
> +
> +diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
> +index d221c35..6bba1d2 100644
> +--- a/squashfs-tools/mksquashfs.c
>  b/squashfs-tools/mksquashfs.c
> +@@ -828,13 +828,13 @@ char *subpathname(struct dir_ent *dir_ent)
> + }
> + 
> + 
> +-inline unsigned int get_inode_no(struct inode_info *inode)
> ++static inline unsigned int get_inode_no(struct inode_info *inode)
> + {
> + return inode->inode_number;
> + }
> + 
> + 
> +-inline unsigned int get_parent_no(struct dir_info *dir)
> ++static inline unsigned int get_parent_no(struct dir_info *dir)
> + {
> + return dir->depth ? get_inode_no(dir->dir_ent->inode) : inode_no;
> + }
> +@@ -2027,7 +2027,7 @@ struct file_info *duplicate(long long file_size, long 
> long bytes,
> + }
> + 
> + 
> +-inline int is_fragment(struct inode_info *inode)
> ++static inline int is_fragment(struct inode_info *inode)
> + {
> + off_t file_size = inode->buf.st_size;
> + 
> +@@ -2996,13 +2996,13 @@ struct inode_info *lookup_inode2(struct stat *buf, 
> int pseudo, int id)
> + }
> + 
> + 
> +-inline struct inode_info *lookup_inode(struct stat *buf)
> ++static inline struct inode_info *lookup_inode(struct stat *buf)
> + {
> + return lookup_inode2(buf, 0, 0);
> + }
> + 
> + 
> +-inline void alloc_inode_no(struct inode_info *inode, unsigned int use_this)
> ++static inline 

Re: [OE-core] How to put a correct dependency with regards to gcc?

2015-09-14 Thread Randy MacLeod

On 2015-09-09 12:09 PM, Reshetova, Elena wrote:

Maybe we have to fix gcc-source after all rather than use the EXCLUDE_WORLD

change I made in:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7878


Should I file a bug about this for easy tracking? My problem really seems
that do_fetch on some related to gcc packages doesn't result in fetch of
sources.


I'll send a fix early this week.

../Randy




Does your scheme work for the kernel source? See:



Search for "kernel-devsrc" here:
  http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/68352


There doesn't seem to be an issue with kernel source packages for my task. I
think this is because the sources are correctly fetched by dependent
packages.

Best Regards,
Elena.




--
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, 
Canada, K2K 2W5

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


Re: [OE-core] How to put a correct dependency with regards to gcc?

2015-09-14 Thread Reshetova, Elena

On 2015-09-09 12:09 PM, Reshetova, Elena wrote:
>> Maybe we have to fix gcc-source after all rather than use the 
>> EXCLUDE_WORLD
> change I made in:
>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7878
>
> Should I file a bug about this for easy tracking? My problem really 
> seems that do_fetch on some related to gcc packages doesn't result in 
> fetch of sources.

I'll send a fix early this week.


Thank you very much! Greatly appreciated!

Best Regards,
Elena.


smime.p7s
Description: S/MIME cryptographic signature
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] libgcc.inc: package baremetal multilib libraries

2015-09-14 Thread Phil Blundell
On Mon, 2015-09-14 at 09:38 -0700, Khem Raj wrote:
> > On Sep 14, 2015, at 9:22 AM, Juro Bystricky  
> > wrote:
> > 
> > When building libgcc for baremetal cross-compilers, some files and libraries
> > may be built but not packaged. This patch fixes errors such as these:
> > 
> > ERROR: QA Issue: libgcc: Files/directories were installed but not shipped 
> > in any package:
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcov.a
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtn.o
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtend.o
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/crtbegin.o
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/libgcc.a
> >  /usr/lib/arm-poky-eabi/4.9.3/thumb/crti.o
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcov.a
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtn.o
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtend.o
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/crtbegin.o
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/libgcc.a
> >  /usr/lib/arm-poky-eabi/4.9.3/fpu/crti.o
> > Please set FILES such that these items are packaged. Alternatively if they 
> > are unneeded,
> > avoid installing them or delete them within do_install. 
> > [installed-vs-shipped]
> > 
> > Signed-off-by: Juro Bystricky 
> > ---
> > meta/recipes-devtools/gcc/libgcc.inc | 6 ++
> > 1 file changed, 6 insertions(+)
> > 
> > diff --git a/meta/recipes-devtools/gcc/libgcc.inc 
> > b/meta/recipes-devtools/gcc/libgcc.inc
> > index 739adbd..95709e4 100644
> > --- a/meta/recipes-devtools/gcc/libgcc.inc
> > +++ b/meta/recipes-devtools/gcc/libgcc.inc
> > @@ -28,6 +28,12 @@ FILES_${PN}-dev = "\
> > ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
> > "
> > 
> > +FILES_${PN}-dev_libc-baremetal = "\
> > +${base_libdir}/ \
> > +${libdir}/* \
> > +${libdir}/${TARGET_SYS}/* \
> > +”
> 
> why not put it into libgcc-dev itself 

Agreed.  I think the real issue here is nothing really to do with
baremetal, it's just that the existing FILES_${PN}-dev pattern doesn't
consider multilib for anything other than IA and mips.

p.


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


Re: [OE-core] [PATCH] prelink: Move to latest release

2015-09-14 Thread Phil Blundell
On Mon, 2015-09-14 at 10:47 -0500, Mark Hatle wrote:
> [YOCTO #8227]
> 
> The latest release has a fix for prelinking on ARM with recent binutils.
> 
> For more information on why the change was necessary, see:
> 
>   https://sourceware.org/ml/binutils/2014-06/msg00228.html

That link isn't particularly illuminating for someone not well versed in
the art of prelink.  I assume the significant thing is that the default
MAXPAGESIZE has changed for arm, but it's not entirely obvious why this
matters to prelink, what problem it caused, or what the change in
prelink is that fixes the problem.  Can you elaborate?

thanks

p.


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


Re: [OE-core] [PATCH][fido] wic: fix path parsing, use last occurrence

2015-09-14 Thread Ed Bartosh
Hi George,

Thank you for the fix!

Acked-by: Ed Bartosh 

On Thu, Sep 10, 2015 at 12:30:52PM -0500, George McCollister wrote:
> If the path contains 'scripts' more than once the first occurrence will be
> incorrectly used. Use rfind instead of find to find the last occurrence.
> 
> Signed-off-by: George McCollister 
> ---
>  scripts/lib/wic/plugin.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py
> index 41a8017..3acd5b4 100644
> --- a/scripts/lib/wic/plugin.py
> +++ b/scripts/lib/wic/plugin.py
> @@ -42,7 +42,7 @@ class PluginMgr(object):
>  
>  def __init__(self):
>  wic_path = os.path.dirname(__file__)
> -eos = wic_path.find('scripts') + len('scripts')
> +eos = wic_path.rfind('scripts') + len('scripts')
>  scripts_path = wic_path[:eos]
>  self.scripts_path = scripts_path
>  self.plugin_dir = scripts_path + PLUGIN_DIR
> -- 
> 2.4.5
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

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


Re: [OE-core] [PATCH v2] u-boot.inc: Add host compiler flags and openssl-native dependency

2015-09-14 Thread Nathan Rossi
On Fri, Sep 11, 2015 at 3:50 AM, Otavio Salvador
 wrote:
> On Thu, Sep 10, 2015 at 7:24 AM, Nathan Rossi  wrote:
>> U-Boot will compile its own tools during the build, with specific
>> configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
>> require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
>> enables the use of openssl-native as a dependency and also adds the
>> HOSTCC flags that U-Boot uses when compiling the host tools.
>>
>> Signed-off-by: Nathan Rossi 
>
> Ideally we ought to ensure U-Boot stops to build the native part when
> doing the target one.

Are you suggesting that the compile step (of the recipe) should build
the "tools"/native make target first, then execute the make target for
the rest afterwards as two separate steps?

For reference the U-Boot makefile setup handles the dependence on the
tools, and will ensure they are built before needed. So splitting out
the steps is probably not necessary.

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


Re: [OE-core] [PATCH] quashfs-tools: make it be able to be compiled by gcc5 with "-O0"

2015-09-14 Thread Rongqing Li



On 2015年09月14日 17:07, Mike Looijmans wrote:

Typo: "(s)quashfs"




thanks

-Roy



Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijm...@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail









--
Best Reagrds,
Roy | RongQing Li
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH][v2] squashfs-tools: make it be able to be compiled by gcc5 with "-O0"

2015-09-14 Thread rongqing.li
From: Roy Li 

Signed-off-by: Roy Li 
---
 ...shfs.c-get-inline-functions-work-with-C99.patch | 154 +
 .../squashfs-tools/squashfs-tools_git.bb   |   1 +
 2 files changed, 155 insertions(+)
 create mode 100644 
meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch

diff --git 
a/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
 
b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
new file mode 100644
index 000..fefe9f6
--- /dev/null
+++ 
b/meta/recipes-devtools/squashfs-tools/squashfs-tools/0001-mksquashfs.c-get-inline-functions-work-with-C99.patch
@@ -0,0 +1,154 @@
+From ac6268e843c43286eebff2a1052182c2393cdb2e Mon Sep 17 00:00:00 2001
+From: Roy Li 
+Date: Mon, 14 Sep 2015 12:31:42 +0800
+Subject: [PATCH] mksquashfs.c:  get inline functions work with both gnu11 and 
gnu89
+
+Upstream-status: pending
+
+After gcc upgraded to gcc5, and if the codes is compiled without 
optimization(-O0),
+and the below error will happen:
+
+| mksquashfs.o: In function `create_inode':
+| git/squashfs-tools/mksquashfs.c:897: undefined reference to `get_inode_no'
+| git/squashfs-tools/mksquashfs.c:960: undefined reference to `get_parent_no'
+| git/squashfs-tools/mksquashfs.c:983: undefined reference to `get_parent_no'
+| mksquashfs.o: In function `reader_read_process':
+| git/squashfs-tools/mksquashfs.c:2132: undefined reference to `is_fragment'
+| mksquashfs.o: In function `reader_read_file':
+| git/squashfs-tools/mksquashfs.c:2228: undefined reference to `is_fragment'
+| mksquashfs.o: In function `dir_scan':
+| git/squashfs-tools/mksquashfs.c:3101: undefined reference to 
`create_dir_entry'
+
+gcc5 defaults to -std=gnu11 instead of -std=gnu89, and it requires that 
exactly one C
+source file has the callable copy of the inline function. Consider the 
following
+program:
+
+  inline int
+  foo (void)
+  {
+return 42;
+  }
+
+  int
+  main (void)
+  {
+return foo ();
+  }
+
+The program above will not link with the C99 inline semantics, because no 
out-of-line
+function foo is generated. To fix this, either mark the function foo as 
static, or
+add the following declaration:
+  static inline int foo (void);
+
+more information refer to: https://gcc.gnu.org/gcc-5/porting_to.html;
+
+but the use of "extern inline" will lead to the compilation issue if gcc is not
+gcc5, as the commit in oe-core d0af30c92fde [alsa-lib: Change function type to
+"static __inline__"]
+"extern __inline__ function()" is the inlined version that
+can be used in this compilation unit, but there will be another
+definition of this function somewhere, so compiler will not emit
+any code for the function body. This causes problem in -O0,
+where functions are never inlined, the function call is preserved,
+but linker can't find the symbol, thus the error happens.
+
+so replace "inline" with "static inline" to make it work with both gnu11 and 
gnu89
+
+Signed-off-by: Roy Li 
+---
+ squashfs-tools/mksquashfs.c | 20 ++--
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index d221c35..6bba1d2 100644
+--- a/squashfs-tools/mksquashfs.c
 b/squashfs-tools/mksquashfs.c
+@@ -828,13 +828,13 @@ char *subpathname(struct dir_ent *dir_ent)
+ }
+ 
+ 
+-inline unsigned int get_inode_no(struct inode_info *inode)
++static inline unsigned int get_inode_no(struct inode_info *inode)
+ {
+   return inode->inode_number;
+ }
+ 
+ 
+-inline unsigned int get_parent_no(struct dir_info *dir)
++static inline unsigned int get_parent_no(struct dir_info *dir)
+ {
+   return dir->depth ? get_inode_no(dir->dir_ent->inode) : inode_no;
+ }
+@@ -2027,7 +2027,7 @@ struct file_info *duplicate(long long file_size, long 
long bytes,
+ }
+ 
+ 
+-inline int is_fragment(struct inode_info *inode)
++static inline int is_fragment(struct inode_info *inode)
+ {
+   off_t file_size = inode->buf.st_size;
+ 
+@@ -2996,13 +2996,13 @@ struct inode_info *lookup_inode2(struct stat *buf, int 
pseudo, int id)
+ }
+ 
+ 
+-inline struct inode_info *lookup_inode(struct stat *buf)
++static inline struct inode_info *lookup_inode(struct stat *buf)
+ {
+   return lookup_inode2(buf, 0, 0);
+ }
+ 
+ 
+-inline void alloc_inode_no(struct inode_info *inode, unsigned int use_this)
++static inline void alloc_inode_no(struct inode_info *inode, unsigned int 
use_this)
+ {
+   if (inode->inode_number == 0) {
+   inode->inode_number = use_this ? : inode_no ++;
+@@ -3013,7 +3013,7 @@ inline void alloc_inode_no(struct inode_info *inode, 
unsigned int use_this)
+ }
+ 
+ 
+-inline struct dir_ent *create_dir_entry(char *name, char *source_name,
++static inline 

[OE-core] [PATCH 1/1] qemu: remove redundant lines in smc91c111_fix.patch

2015-09-14 Thread kai.kang
From: Kai Kang 

Remove redundant lines in smc91c111_fix.patch which caused command patch
of lower version fails to work.

Signed-off-by: Kai Kang 
---
 meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch 
b/meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch
index e69af94..e37e777 100644
--- a/meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch
+++ b/meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch
@@ -63,7 +63,7 @@ Index: qemu-2.4.0/hw/net/smc91c111.c
  return 0;
  return 1;
  }
-@@ -671,9 +671,11 @@ static ssize_t smc91c111_receive(NetClie
+@@ -671,6 +671,8 @@ static ssize_t smc91c111_receive(NetClie
  /* TODO: Flag overrun and receive errors.  */
  if (packetsize > 2048)
  return -1;
@@ -72,6 +72,3 @@ Index: qemu-2.4.0/hw/net/smc91c111.c
  packetnum = smc91c111_allocate_packet(s);
  if (packetnum == 0x80)
  return -1;
- s->rx_fifo[s->rx_fifo_len++] = packetnum;
- 
- p = >data[packetnum][0];
-- 
1.9.1

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


[OE-core] [PATCH 0/1] Update context of qemu patch

2015-09-14 Thread kai.kang
From: Kai Kang 

The following changes since commit 75bad1b64bd485a50af69ed1f8663a0dadbb5f9e:

  gcc: reformat 0063-nativesdk-gcc-support.patch (2015-09-12 23:01:53 +0100)

are available in the git repository at:

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

Kai Kang (1):
  qemu: remove redundant lines in smc91c111_fix.patch

 meta/recipes-devtools/qemu/qemu/smc91c111_fix.patch | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

-- 
1.9.1

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


[OE-core] [PATCH] webkitgtk: Add patch to fix gcc5 compile issues

2015-09-14 Thread Richard Purdie
Without this patch, webkitgtk fails to build with gcc5. I found Khem had
sent the patch against Qt for the same issue we were seeing on mips/ppc.

Signed-off-by: Richard Purdie 

diff --git a/meta/recipes-sato/webkit/webkitgtk/gcc5.patch 
b/meta/recipes-sato/webkit/webkitgtk/gcc5.patch
new file mode 100644
index 000..5951a81
--- /dev/null
+++ b/meta/recipes-sato/webkit/webkitgtk/gcc5.patch
@@ -0,0 +1,26 @@
+JSObject: Create explicit instantiation of 
putByIndexBeyondVectorLengthWithoutAttributes
+
+Reason for change: newer gcc might optimize away the templates
+and they wont be available for other .cpp files to use as these
+are used in a different .cpp we need to tell compiler to explicitly
+instantiate them.
+
+Signed-off-by: Khem Raj 
+
+Upstream-Status: Pending
+
+Index: webkitgtk-2.8.5/Source/JavaScriptCore/runtime/JSObject.cpp
+===
+--- webkitgtk-2.8.5.orig/Source/JavaScriptCore/runtime/JSObject.cpp
 webkitgtk-2.8.5/Source/JavaScriptCore/runtime/JSObject.cpp
+@@ -1965,6 +1965,10 @@ void JSObject::putByIndexBeyondVectorLen
+ }
+ }
+ 
++template void 
JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* 
exec, unsigned i, JSValue value);
++template void 
JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* 
exec, unsigned i, JSValue value);
++template void 
JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState*
 exec, unsigned i, JSValue value);
++
+ void JSObject::putByIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, 
unsigned i, JSValue value, bool shouldThrow, ArrayStorage* storage)
+ {
+ VM& vm = exec->vm();
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb 
b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
index 365f20b..82d670d 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = 
"file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d842
 SRC_URI = "\
   http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
   file://0001-This-patch-fixes-a-command-line-that-is-too-long-ove.patch \
+  file://gcc5.patch \
   "
 SRC_URI[md5sum] = "df79991848a5096d3a75289ebce547ae"
 SRC_URI[sha256sum] = 
"3d1f0c534935f43fd74df90f2648fcee672d60f1f57a30fa557a77891ae04d20"


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


[OE-core] [PATCH][fido][dizzy] libtasn1: CVE-2015-3622

2015-09-14 Thread Sona Sarmadi
_asn1_extract_der_octet: prevent past of boundary access

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3622
http://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=patch;
h=f979435823a02f842c41d49cd41cc81f25b5d677

Signed-off-by: Sona Sarmadi 
---
 .../gnutls/libtasn1/libtasn1-CVE-2015-3622.patch   | 44 ++
 meta/recipes-support/gnutls/libtasn1_4.0.bb|  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 
meta/recipes-support/gnutls/libtasn1/libtasn1-CVE-2015-3622.patch

diff --git a/meta/recipes-support/gnutls/libtasn1/libtasn1-CVE-2015-3622.patch 
b/meta/recipes-support/gnutls/libtasn1/libtasn1-CVE-2015-3622.patch
new file mode 100644
index 000..0989ef6
--- /dev/null
+++ b/meta/recipes-support/gnutls/libtasn1/libtasn1-CVE-2015-3622.patch
@@ -0,0 +1,44 @@
+From f979435823a02f842c41d49cd41cc81f25b5d677 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos 
+Date: Mon, 20 Apr 2015 14:56:27 +0200
+Subject: [PATCH] _asn1_extract_der_octet: prevent past of boundary access
+
+Fixes CVE-2015-3622.
+Upstream-Status: Backport
+
+Reported by Hanno Böck.
+---
+ lib/decoding.c |3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/lib/decoding.c b/lib/decoding.c
+index 7fbd931..42ddc6b 100644
+--- a/lib/decoding.c
 b/lib/decoding.c
+@@ -732,6 +732,7 @@ _asn1_extract_der_octet (asn1_node node, const unsigned 
char *der,
+ return ASN1_DER_ERROR;
+ 
+   counter = len3 + 1;
++  DECR_LEN(der_len, len3);
+ 
+   if (len2 == -1)
+ counter_end = der_len - 2;
+@@ -740,6 +741,7 @@ _asn1_extract_der_octet (asn1_node node, const unsigned 
char *der,
+ 
+   while (counter < counter_end)
+ {
++  DECR_LEN(der_len, 1);
+   len2 = asn1_get_length_der (der + counter, der_len, );
+ 
+   if (IS_ERR(len2, flags))
+@@ -764,7 +766,6 @@ _asn1_extract_der_octet (asn1_node node, const unsigned 
char *der,
+ len2 = 0;
+   }
+ 
+-  DECR_LEN(der_len, 1);
+   counter += len2 + len3 + 1;
+ }
+ 
+-- 
+1.7.2.5
+
diff --git a/meta/recipes-support/gnutls/libtasn1_4.0.bb 
b/meta/recipes-support/gnutls/libtasn1_4.0.bb
index 289833ec..16cf4d6 100644
--- a/meta/recipes-support/gnutls/libtasn1_4.0.bb
+++ b/meta/recipes-support/gnutls/libtasn1_4.0.bb
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
 SRC_URI = "${GNU_MIRROR}/libtasn1/libtasn1-${PV}.tar.gz \
file://libtasn1_fix_for_automake_1.12.patch \
file://dont-depend-on-help2man.patch \
+   file://libtasn1-CVE-2015-3622.patch \
"
 
 SRC_URI[md5sum] = "d3d2d9bce3b6668b9827a9df52635be1"
-- 
1.9.1

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


[OE-core] [PATCH v2 1/7] dbus: merge .bb and .inc

2015-09-14 Thread Andrew Shadura
The split is no longer necessary, and only makes it more complicated to
do changes in external layers.
---
 meta/recipes-core/dbus/dbus.inc   | 170 -
 meta/recipes-core/dbus/dbus_1.8.20.bb | 171 +-
 2 files changed, 170 insertions(+), 171 deletions(-)
 delete mode 100644 meta/recipes-core/dbus/dbus.inc

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
deleted file mode 100644
index 3971081..000
--- a/meta/recipes-core/dbus/dbus.inc
+++ /dev/null
@@ -1,170 +0,0 @@
-SUMMARY = "D-Bus message bus"
-DESCRIPTION = "D-Bus is a message bus system, a simple way for applications to 
talk to one another. In addition to interprocess communication, D-Bus helps 
coordinate process lifecycle; it makes it simple and reliable to code a 
\"single instance\" application or daemon, and to launch applications and 
daemons on demand when their services are needed."
-HOMEPAGE = "http://dbus.freedesktop.org;
-SECTION = "base"
-LICENSE = "AFL-2 | GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
-
file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c"
-DEPENDS = "expat virtual/libintl"
-RDEPENDS_dbus_class-native = ""
-RDEPENDS_dbus_class-nativesdk = ""
-PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', 
'', d)}"
-ALLOW_EMPTY_dbus-ptest = "1"
-RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest"
-
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
-   file://tmpdir.patch \
-   file://dbus-1.init \
-   file://os-test.patch \
-   file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
-"
-
-inherit useradd autotools pkgconfig gettext update-rc.d
-
-INITSCRIPT_NAME = "dbus-1"
-INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
-
-python __anonymous() {
-if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
-d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
-}
-
-USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "-r netdev"
-USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
-   --no-create-home --shell /bin/false \
-   --user-group messagebus"
-
-CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf 
${sysconfdir}/dbus-1/session.conf"
-
-DEBIANNAME_${PN} = "dbus-1"
-
-PACKAGES =+ "${PN}-lib"
-
-OLDPKGNAME = "dbus-x11"
-OLDPKGNAME_class-nativesdk = ""
-
-# for compatibility
-RPROVIDES_${PN} = "${OLDPKGNAME}"
-RREPLACES_${PN} += "${OLDPKGNAME}"
-
-FILES_${PN} = "${bindir}/dbus-daemon* \
-   ${bindir}/dbus-uuidgen \
-   ${bindir}/dbus-cleanup-sockets \
-   ${bindir}/dbus-send \
-   ${bindir}/dbus-monitor \
-   ${bindir}/dbus-launch \
-   ${bindir}/dbus-run-session \
-   ${libexecdir}/dbus* \
-   ${sysconfdir} \
-   ${localstatedir} \
-   ${datadir}/dbus-1/services \
-   ${datadir}/dbus-1/system-services \
-   ${systemd_unitdir}/system/"
-FILES_${PN}-lib = "${libdir}/lib*.so.*"
-RRECOMMENDS_${PN}-lib = "${PN}"
-FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
-
-pkg_postinst_dbus() {
-   # If both systemd and sysvinit are enabled, mask the dbus-1 init script
-if ${@bb.utils.contains('DISTRO_FEATURES','systemd 
sysvinit','true','false',d)}; then
-   if [ -n "$D" ]; then
-   OPTS="--root=$D"
-   fi
-   systemctl $OPTS mask dbus-1.service
-   fi
-
-   if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
-   /etc/init.d/populate-volatile.sh update
-   fi
-}
-
-EXTRA_OECONF = "--disable-tests \
---disable-xml-docs \
---disable-doxygen-docs \
---disable-libaudit \
---disable-systemd \
---without-dbus-glib"
-
-EXTRA_OECONF_append_class-native = " --disable-selinux"
-
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'systemd', '', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', 
d)}"
-PACKAGECONFIG_class-native = ""
-PACKAGECONFIG_class-nativesdk = ""
-
-# Would like to --enable-systemd but that's a circular build-dependency between
-# systemd<->dbus
-PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
-PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
-
-do_install() {
-   autotools_do_install
-
-   if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', 
d)}; then
-   install -d ${D}${sysconfdir}/init.d
-   sed 's:@bindir@:${bindir}:' < ${WORKDIR}/dbus-1.init 
>${WORKDIR}/dbus-1.init.sh
-   install -m 0755 

[OE-core] [PATCH v2 4/7] systemd: don't build against dbus unless required

2015-09-14 Thread Andrew Shadura
Modern systemd doesn't need dbus libraries normally, as it
ships with its own dbus library. This is required to proceed
with systemd support in dbus, as otherwise dependency loops
occur.
---
 meta/recipes-core/systemd/systemd_225.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_225.bb 
b/meta/recipes-core/systemd/systemd_225.bb
index 6ac99cd..5751bea 100644
--- a/meta/recipes-core/systemd/systemd_225.bb
+++ b/meta/recipes-core/systemd/systemd_225.bb
@@ -18,7 +18,7 @@ PROVIDES = "udev"
 
 PE = "1"
 
-DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
+DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline libcap libcgroup glib-2.0 qemu-native util-linux"
 
 SECTION = "base/shell"
 
@@ -87,6 +87,7 @@ PACKAGECONFIG[iptc] = 
"--enable-libiptc,--disable-libiptc,iptables"
 PACKAGECONFIG[ldconfig] = "--enable-ldconfig,--disable-ldconfig,,"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
 PACKAGECONFIG[valgrind] = "ac_cv_header_valgrind_memcheck_h=yes 
ac_cv_header_valgrind_valgrind_h=yes ,ac_cv_header_valgrind_memcheck_h=no 
ac_cv_header_valgrind_valgrind_h=no ,valgrind"
+PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
 
 CACHED_CONFIGUREVARS += "ac_cv_path_KILL=${base_bindir}/kill"
 CACHED_CONFIGUREVARS += "ac_cv_path_KMOD=${base_bindir}/kmod"
-- 
2.1.4

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


[OE-core] [PATCH v2 5/7] systemd: add gnuefi package configuration option, switched off by default

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/systemd/systemd_225.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_225.bb 
b/meta/recipes-core/systemd/systemd_225.bb
index 5751bea..942f6ce 100644
--- a/meta/recipes-core/systemd/systemd_225.bb
+++ b/meta/recipes-core/systemd/systemd_225.bb
@@ -88,6 +88,7 @@ PACKAGECONFIG[ldconfig] = 
"--enable-ldconfig,--disable-ldconfig,,"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
 PACKAGECONFIG[valgrind] = "ac_cv_header_valgrind_memcheck_h=yes 
ac_cv_header_valgrind_valgrind_h=yes ,ac_cv_header_valgrind_memcheck_h=no 
ac_cv_header_valgrind_valgrind_h=no ,valgrind"
 PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
+PACKAGECONFIG[efi] = "--enable-gnuefi,--disable-gnuefi,gnu-efi"
 
 CACHED_CONFIGUREVARS += "ac_cv_path_KILL=${base_bindir}/kill"
 CACHED_CONFIGUREVARS += "ac_cv_path_KMOD=${base_bindir}/kmod"
-- 
2.1.4

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


[OE-core] [PATCH v2 2/7] dbus: update the recipes to 1.10.0

2015-09-14 Thread Andrew Shadura
---
 .../dbus/{dbus-test_1.8.20.bb => dbus-test_1.10.0.bb}  |  6 +++---
 meta/recipes-core/dbus/dbus/python-config.patch| 13 +++--
 meta/recipes-core/dbus/{dbus_1.8.20.bb => dbus_1.10.0.bb}  | 14 +-
 3 files changed, 19 insertions(+), 14 deletions(-)
 rename meta/recipes-core/dbus/{dbus-test_1.8.20.bb => dbus-test_1.10.0.bb} 
(91%)
 rename meta/recipes-core/dbus/{dbus_1.8.20.bb => dbus_1.10.0.bb} (93%)

diff --git a/meta/recipes-core/dbus/dbus-test_1.8.20.bb 
b/meta/recipes-core/dbus/dbus-test_1.10.0.bb
similarity index 91%
rename from meta/recipes-core/dbus/dbus-test_1.8.20.bb
rename to meta/recipes-core/dbus/dbus-test_1.10.0.bb
index 704070b..7dec16e 100644
--- a/meta/recipes-core/dbus/dbus-test_1.8.20.bb
+++ b/meta/recipes-core/dbus/dbus-test_1.10.0.bb
@@ -5,7 +5,7 @@ LICENSE = "AFL-2 | GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
 
file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c"
 
-DEPENDS = "python-pygobject dbus dbus-glib"
+DEPENDS = "python-pygobject dbus"
 
 RDEPENDS_${PN} += "make"
 RDEPENDS_${PN}-dev = ""
@@ -18,8 +18,8 @@ SRC_URI = 
"http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
"
 
-SRC_URI[md5sum] = "b49890bbabedab3a1c3f4f73c7ff8b2b"
-SRC_URI[sha256sum] = 
"5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a"
+SRC_URI[md5sum] = "5af6297348107a906c8449817a728b3b"
+SRC_URI[sha256sum] = 
"1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b"
 
 S="${WORKDIR}/dbus-${PV}"
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:"
diff --git a/meta/recipes-core/dbus/dbus/python-config.patch 
b/meta/recipes-core/dbus/dbus/python-config.patch
index 2944002..fbb4ede 100644
--- a/meta/recipes-core/dbus/dbus/python-config.patch
+++ b/meta/recipes-core/dbus/dbus/python-config.patch
@@ -6,19 +6,20 @@ Disable the python module check for cross compiling.
 Upstream-Status: Inappropriate [oe specific]
 
 Signed-off-by: Mark Hatle 
+Signed-off-by: Andrew Shadura 
 
 dbus-1.6.8/configure.ac.orig   2013-07-11 14:15:58.834554799 -0500
-+++ dbus-1.6.8/configure.ac2013-07-11 14:14:40.969554848 -0500
-@@ -257,13 +257,6 @@
+--- a/configure.ac
 b/configure.ac
+@@ -267,13 +267,6 @@
# full test coverage is required, Python is a hard dependency
-   AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, 
dbus-python, pygobject])
+   AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, 
dbus-python, pygi])
AM_PATH_PYTHON([2.6])
 -  AC_MSG_CHECKING([for Python modules for full test coverage])
--  if "$PYTHON" -c "import dbus, gobject, dbus.mainloop.glib"; then
+-  if "$PYTHON" -c "import dbus, gi.repository.GObject, dbus.mainloop.glib"; 
then
 -AC_MSG_RESULT([yes])
 -  else
 -AC_MSG_RESULT([no])
--AC_MSG_ERROR([cannot import dbus, gobject, dbus.mainloop.glib Python 
modules])
+-AC_MSG_ERROR([cannot import dbus, gi.repository.GObject, 
dbus.mainloop.glib Python modules])
 -  fi
  else
# --enable-tests not given: do not abort if Python is missing
diff --git a/meta/recipes-core/dbus/dbus_1.8.20.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
similarity index 93%
rename from meta/recipes-core/dbus/dbus_1.8.20.bb
rename to meta/recipes-core/dbus/dbus_1.10.0.bb
index 207a018..cbfdf05 100644
--- a/meta/recipes-core/dbus/dbus_1.8.20.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -19,8 +19,8 @@ SRC_URI = 
"http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
 "
 
-SRC_URI[md5sum] = "b49890bbabedab3a1c3f4f73c7ff8b2b"
-SRC_URI[sha256sum] = 
"5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a"
+SRC_URI[md5sum] = "5af6297348107a906c8449817a728b3b"
+SRC_URI[sha256sum] = 
"1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b"
 
 inherit useradd autotools pkgconfig gettext update-rc.d
 
@@ -58,15 +58,20 @@ FILES_${PN} = "${bindir}/dbus-daemon* \
${bindir}/dbus-monitor \
${bindir}/dbus-launch \
${bindir}/dbus-run-session \
+   ${bindir}/dbus-update-activation-environment \
${libexecdir}/dbus* \
${sysconfdir} \
${localstatedir} \
${datadir}/dbus-1/services \
${datadir}/dbus-1/system-services \
+   ${datadir}/dbus-1/session.d \
+   ${datadir}/dbus-1/session.conf \
+   ${datadir}/dbus-1/system.d \
+   ${datadir}/dbus-1/system.conf \
${systemd_unitdir}/system/"
 FILES_${PN}-lib = "${libdir}/lib*.so.*"
 RRECOMMENDS_${PN}-lib = "${PN}"
-FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
+FILES_${PN}-dev += "${libdir}/dbus-1.0/include 

[OE-core] [PATCH v2 7/7] dbus: build with systemd support

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/dbus/dbus_1.10.0.bb | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/dbus/dbus_1.10.0.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
index 58210f4..d2bea13 100644
--- a/meta/recipes-core/dbus/dbus_1.10.0.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -92,8 +92,7 @@ pkg_postinst_dbus() {
 EXTRA_OECONF = "--disable-tests \
 --disable-xml-docs \
 --disable-doxygen-docs \
---disable-libaudit \
---disable-systemd"
+--disable-libaudit"
 
 EXTRA_OECONF_append_class-native = " --disable-selinux"
 
@@ -102,9 +101,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 
'systemd', 'systemd',
 PACKAGECONFIG_class-native = ""
 PACKAGECONFIG_class-nativesdk = ""
 
-# Would like to --enable-systemd but that's a circular build-dependency between
-# systemd<->dbus
-PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
+PACKAGECONFIG[systemd] = "--enable-systemd 
--with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd 
--without-systemdsystemunitdir,systemd"
 PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
 PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor"
 PACKAGECONFIG[user-session] = "--enable-user-session,--disable-user-session"
-- 
2.1.4

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


[OE-core] [PATCH v2 3/7] dbus: add apparmor support

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/dbus/dbus_1.10.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/dbus/dbus_1.10.0.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
index cbfdf05..31cbef0 100644
--- a/meta/recipes-core/dbus/dbus_1.10.0.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -104,6 +104,7 @@ PACKAGECONFIG_class-nativesdk = ""
 # systemd<->dbus
 PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
 PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
+PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor"
 
 do_install() {
autotools_do_install
-- 
2.1.4

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


[OE-core] [PATCH v2 6/7] dbus: add user sessions support

2015-09-14 Thread Andrew Shadura
---
 meta/recipes-core/dbus/dbus_1.10.0.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/dbus/dbus_1.10.0.bb 
b/meta/recipes-core/dbus/dbus_1.10.0.bb
index 31cbef0..58210f4 100644
--- a/meta/recipes-core/dbus/dbus_1.10.0.bb
+++ b/meta/recipes-core/dbus/dbus_1.10.0.bb
@@ -68,7 +68,9 @@ FILES_${PN} = "${bindir}/dbus-daemon* \
${datadir}/dbus-1/session.conf \
${datadir}/dbus-1/system.d \
${datadir}/dbus-1/system.conf \
-   ${systemd_unitdir}/system/"
+   ${systemd_unitdir}/system/ \
+   ${libdir}/systemd/user/* \
+"
 FILES_${PN}-lib = "${libdir}/lib*.so.*"
 RRECOMMENDS_${PN}-lib = "${PN}"
 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool 
${bindir}/dbus-test-tool"
@@ -105,6 +107,7 @@ PACKAGECONFIG_class-nativesdk = ""
 PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
 PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x 
--disable-x11-autolaunch, virtual/libx11 libsm"
 PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor"
+PACKAGECONFIG[user-session] = "--enable-user-session,--disable-user-session"
 
 do_install() {
autotools_do_install
-- 
2.1.4

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