[OE-core] [PATCH] boost: Improve reproducibility

2018-05-30 Thread mingli.yu
From: Mingli Yu boost_context includes some assembly source files and will export the assembly object file make_x86_64_sysv_elf_gas.o which contains host path as below: $ readelf --wide --symbols /my-build/boost/1.67.0-r0/boost_1_67_0/x86_64-poky-linux/boost/bin.v2/libs/context/build/aca09349fdb

[OE-core] [PATCH v2] busybox: Fix zlma segfaults

2018-05-30 Thread Andrej Valek
- fix multiple lzma segmentation faults - patch includes multiple fixing commits - test-cases have been removed due to binary data Signed-off-by: Andrej Valek --- .../busybox/busybox-fix-unlzma-segfaults.patch | 106 + meta/recipes-core/busybox/busybox_1.27.2.bb|

[OE-core] [PATCH 1/2] qemux86*: change default wic wks to qemux86-directdisk

2018-05-30 Thread Anuj Mittal
When runqemu is invoked with an image type (wic, hddimg etc) as a parameter, the kernel value and command line parameters from qemuboot.conf are ignored and not passed to qemu cmdline. As an example, when using: $ runqemu wic kvm It results in no network interface and video mode warnings when qe

[OE-core] [PATCH 2/2] qemux86-directdisk.wks: remove uvesafb.mode_option

2018-05-30 Thread Anuj Mittal
Let this be dictated by the module parameter value being set by qemu machine configuration. Signed-off-by: Anuj Mittal --- scripts/lib/wic/canned-wks/qemux86-directdisk.wks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/canned-wks/qemux86-directdisk.wks b/sc

Re: [OE-core] [PATCH 1/1] linux-yocto: add ptest support

2018-05-30 Thread Bruce Ashfield
On Wed, May 30, 2018 at 11:08 PM, Dengke Du wrote: > Signed-off-by: Dengke Du > --- > meta/recipes-kernel/linux/files/run-ptest | 138 > ++ > Nothing else in linux-yocto uses "files", and this shouldn't either. We can't guarantee that these are version independent,

[OE-core] [PATCH 0/1] linux-yocto: add ptest support

2018-05-30 Thread Dengke Du
Add ptest for kernel samples. Prerequisite: 1. Install package kernel-modules 2. enable ptest distro feature Runtime testing(x86): 1. cd /usr/lib/linux-yocto/ptest 2. ./run-ptest Testing result: #result# dma-example: PASS bytestream-example: PASS inttype-example: PASS record-example: PA

[OE-core] [PATCH 1/1] linux-yocto: add ptest support

2018-05-30 Thread Dengke Du
Signed-off-by: Dengke Du --- meta/recipes-kernel/linux/files/run-ptest | 138 ++ meta/recipes-kernel/linux/linux-yocto.inc | 8 ++ meta/recipes-kernel/linux/linux-yocto_4.14.bb | 2 +- 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 meta/r

Re: [OE-core] meta-openembedded maintainer ship change.

2018-05-30 Thread Manjukumar Harthikote Matha
Thanks Armin for all the work. Thanks Khem -Manju > -Original Message- > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > akuster808 > Sent: Tuesday, May 22, 2018 8:41 AM > To: OpenEmbedded Devel List ; > Pat

[OE-core] [PATCH 6/7] meson: handle exe wrappers

2018-05-30 Thread Martin Kelly
Add patches to enable meson to handle being wrapped with a shell script. This will enable us to do so for supporting the SDK, which requires us to setup env vars and point to a meson.cross file inside the SDK. These patches are all merged upstream, so we can drop them soon. Signed-off-by: Martin

[OE-core] [PATCH 1/7] meson.bbclass: refactor native override

2018-05-30 Thread Martin Kelly
The native override is specified in two different places, so let's move it into a function to reduce code duplication. Signed-off-by: Martin Kelly --- meta/classes/meson.bbclass | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/meta/classes/meson.bbclass b/me

[OE-core] [PATCH 0/7] meson: implement nativesdk support

2018-05-30 Thread Martin Kelly
This patch series implements nativesdk support fer meson. In order to do so, it adds a few features to the toolchain-shar-extract functionality, which enables a script to run prior to the SDK being extracted. This is important because the meson.cross file (which meson uses to find its cross toolcha

Re: [OE-core] [PATCH] qemuwrapper-cross: fix postinst failed warning

2018-05-30 Thread cli10
On 05/30/2018 06:12 PM, Alexander Kanavin wrote: 2018-05-30 12:37 GMT+03:00 cli10 : if in the future, some recipe inherit allarch, but use @qemu_run_binary directly, not call qemuwrapper, I think maybe still will met problem of get wrong base_libdir. so I think maybe we should change qemu_wr

[OE-core] [PATCH] dropbear: drop run time detection of read-only rootfs

2018-05-30 Thread Andre McCurdy
Previously, when dropbear was started via its init script, relocation of DROPBEAR_RSAKEY_DIR to support read-only rootfs was handled at run time from within the init script. Update the init script to take advantage of the read-only rootfs config setup by read_only_rootfs_hook() and therefore be co

[OE-core] [PATCH 5/7] toolchain-shar-extract: pass env to post-relocate

2018-05-30 Thread Martin Kelly
It's useful for the post-relocate scripts to be able to see the SDK environment, for example to see the values of CC, CXX etc. in order to dynamically generate toolchain files. To enable this, source the SDK environment script prior to calling the relocate scripts. Signed-off-by: Martin Kelly --

[OE-core] [PATCH 3/7] toolchain-shar-extract: allow non-sh post-relocate

2018-05-30 Thread Martin Kelly
Currently, we look only for scripts matching *.sh, which means we can't write post-relocate scripts in other languages. Expand this to allow any type of script. Signed-off-by: Martin Kelly --- meta/classes/toolchain-scripts.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[OE-core] [PATCH 4/7] toolchain-shar-extract: print post-relocate error

2018-05-30 Thread Martin Kelly
Currently, if a post-relocate script fails, it fails silently. We should be louder about this, as it likely indicates a broken SDK. Print a message if a post-relocate script fails. Signed-off-by: Martin Kelly --- meta/classes/toolchain-scripts.bbclass | 5 + 1 file changed, 5 insertions(+)

[OE-core] [PATCH 2/7] nativesdk-python*: suppress user site dirs

2018-05-30 Thread Martin Kelly
Currently, $HOME/.local is being added into sys.path in the Python SDK causing subtle host contamination. Suppress this by exporting PYTHONNOUSERSITE = "1" as documented in PEP 370. This issue occurred in the past for python*-native and was fixed similarly in OE-core commit 8fe9fb4d5a61dcbcb3fc5b9

[OE-core] [PATCH 7/7] meson: enable nativesdk

2018-05-30 Thread Martin Kelly
Currently, we can't build meson into SDKs because we don't autogenerate the required meson.cross file. Enable this by using the post-relocate hooks and generating a meson.cross file based on the SDK environment passed into the post-relocate hook. Signed-off-by: Martin Kelly --- meta/recipes-dev

[OE-core] [PATCH] kernel-uimage.bbclass: introduce UBOOT_MKIMAGE_COMMANDS

2018-05-30 Thread liu . ming50
From: Ming Liu It allows the end users to be able to override it to set their own customized mkimage commands instead of a fixed uboot-mkimage command with fixed parameters. Also splits out normalize_entrypoint to be used by other tasks. Signed-off-by: Ming Liu --- meta/classes/kernel-uimage.

[OE-core] [PATCH] kernel-uimage.bbclass: use boolean to check KEEPUIMAGE

2018-05-30 Thread liu . ming50
From: Ming Liu It now accepts yes/on/1 as positive values. Signed-off-by: Ming Liu --- meta/classes/kernel-uimage.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass index 1d8656e..a3a3d33 10

Re: [OE-core] [PATCH v2 4/5] bitbake.conf: include ASNEEDED in TARGET_LDFLAGS directly

2018-05-30 Thread Khem Raj
On Wed, May 30, 2018 at 10:46 AM, Andre McCurdy wrote: > On Tue, May 29, 2018 at 7:13 PM, Khem Raj wrote: >> On Tue, May 29, 2018 at 2:29 PM, Andre McCurdy wrote: >>> Previously, ASNEEDED was appended to TARGET_LDFLAGS from >>> as-needed.inc via tcmode-default.inc and so may not have been enable

Re: [OE-core] [PATCH v2 4/5] bitbake.conf: include ASNEEDED in TARGET_LDFLAGS directly

2018-05-30 Thread Andre McCurdy
On Tue, May 29, 2018 at 7:13 PM, Khem Raj wrote: > On Tue, May 29, 2018 at 2:29 PM, Andre McCurdy wrote: >> Previously, ASNEEDED was appended to TARGET_LDFLAGS from >> as-needed.inc via tcmode-default.inc and so may not have been enabled >> for external toolchain builds or other configurations wh

Re: [OE-core] [PATCH] busybox: Enable FEATURE_MOUNT_NFS and use libtirpc

2018-05-30 Thread Andre McCurdy
On Thu, May 10, 2018 at 12:26 PM, Khem Raj wrote: > On 5/10/18 12:16 PM, Martin Jansa wrote: >>> >>> On second thought, this probably should be enabled using a config >>> fragment, since its not gonna link in another library it may not be >>> common case to justify for a default config. >> >> Tha

Re: [OE-core] [PATCH] busybox: Fix zlma segfaults

2018-05-30 Thread Khem Raj
The patch seems to be corrupt. On Wed, May 30, 2018 at 7:48 AM, Andrej Valek wrote: > - fix multiple lzma segmentation faults > - patch includes multiple fixing commits with tests-cases > > Signed-off-by: Andrej Valek > --- > .../busybox/busybox/busybox-fix-unlzma-segfaults.patch | Bin 0 -> 6

Re: [OE-core] [PATCH 2/3] qemu: upgrade to 2.12.0

2018-05-30 Thread Alistair Francis
On Tue, May 29, 2018 at 7:16 PM, Khem Raj wrote: > On Tue, May 29, 2018 at 4:14 PM, Alistair Francis > wrote: >> On Tue, May 29, 2018 at 1:40 PM, Martin Jansa wrote: >>> After removing ld-is-gold I was able to reproduce the issue. >>> >>> Unfortunately removing the >>> meta/recipes-devtools/qem

[OE-core] [PATCH] busybox: Fix zlma segfaults

2018-05-30 Thread Andrej Valek
- fix multiple lzma segmentation faults - patch includes multiple fixing commits with tests-cases Signed-off-by: Andrej Valek --- .../busybox/busybox/busybox-fix-unlzma-segfaults.patch | Bin 0 -> 6965 bytes meta/recipes-core/busybox/busybox_1.27.2.bb | 1 + 2 files changed, 1 i

[OE-core] Fwd: [poky][PATCH] systemd: resolved linked even if the option is disabled

2018-05-30 Thread nick83ola
-- Forwarded message -- From: nick83ola Date: 30 May 2018 at 14:24 Subject: [poky][PATCH] systemd: resolved linked even if the option is disabled To: p...@yoctoproject.org systemd: resolved linked even if the option is disabled in the do_install function in systemd recipe the co

[OE-core] [PATCH] hostapd defconfig: update defconfig from 2.6 hostapd package

2018-05-30 Thread nick83ola
hostapd defconfig: update defconfig from 2.6 hostapd package the previous implementation of this recipe use a very old defconfig from hostapd 0.7.3 Update it with the latest version and add some option from debian defconfig Signed-off-by: Nicola Lunghi --- .../hostapd/hostapd/defconfig

Re: [OE-core] [meta-oe][rocko][PATCH] protobuf: fix SRC_URI by removing branch

2018-05-30 Thread George McCollister
On Wed, May 30, 2018 at 8:27 AM, Martin Jansa wrote: > The change itself is OK, but you should update the commit message so that > other people won't get bad idea about how the fetcher works. Sounds good, I agree. > > Also please don't send meta-oe patches to both lists, it should go just to > o

Re: [OE-core] [meta-oe][rocko][PATCH] protobuf: fix SRC_URI by removing branch

2018-05-30 Thread Martin Jansa
The change itself is OK, but you should update the commit message so that other people won't get bad idea about how the fetcher works. Also please don't send meta-oe patches to both lists, it should go just to openembedded-devel (to prevent both patchwork instances picking this change). On Wed, M

Re: [OE-core] [meta-oe][rocko][PATCH] protobuf: fix SRC_URI by removing branch

2018-05-30 Thread George McCollister
On Wed, May 30, 2018 at 8:08 AM, Martin Jansa wrote: > This doesn't just rely on SRCREV (bitbake fetcher would be complaining if > the SRCREV isn't found in the branch used in SRC_URI), it relies on this > SRCREV to be in master branch (which is the default branch for git fetcher): Okay, point ta

Re: [OE-core] [meta-oe][rocko][PATCH] protobuf: fix SRC_URI by removing branch

2018-05-30 Thread Martin Jansa
This doesn't just rely on SRCREV (bitbake fetcher would be complaining if the SRCREV isn't found in the branch used in SRC_URI), it relies on this SRCREV to be in master branch (which is the default branch for git fetcher): docker-shr @ ~/projects/protobuf $ git branch -a --contains b04e5cba356212

[OE-core] [meta-oe][rocko][PATCH] protobuf: fix SRC_URI by removing branch

2018-05-30 Thread George McCollister
The 3.4.x branch was removed upstream but the commit referenced in SRCREV is the 3.4.1 release and is still available: https://github.com/google/protobuf/releases/tag/v3.4.1 Drop branch=3.4.x from SRC_URI and just rely on SRCREV. Signed-off-by: George McCollister --- meta-oe/recipes-devtools/pr

[OE-core] [PATCH] gcc-sanitizers: don't use thumb for armv[45]

2018-05-30 Thread Martin Jansa
* otherwise it fails with: sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8' @ 1538 "../../../../../../../../../work-shared/gcc-8.1.0-r0/gcc-8.1.0/libsanitizer/sanitizer_common/sanitizer_linux.cc" 1 swi 0x0 cmp r0, #0 bne 1f ldr r0, [sp, #4] ldr ip, [sp], #8 blx i

Re: [OE-core] [PATCH] qemuwrapper-cross: fix postinst failed warning

2018-05-30 Thread Alexander Kanavin
2018-05-30 12:37 GMT+03:00 cli10 : > if in the future, some recipe inherit allarch, but use @qemu_run_binary > directly, not call qemuwrapper, > > I think maybe still will met problem of get wrong base_libdir. so I think > maybe we should change qemu_wrapper_cmdline in > > qemu.bbclass, like thi

Re: [OE-core] [PATCH] qemuwrapper-cross: fix postinst failed warning

2018-05-30 Thread cli10
Hi, Alex I have test with your patch,  test passed,  all warnings are fixed:-). But I have a  problem about this, could you help to give some comments? Thanks. if in the future,  some recipe inherit allarch,  but use @qemu_run_binary directly,  not call qemuwrapper, I think maybe still wi

[OE-core] [PATCH] linux-firmware: package rtl8168 firmware

2018-05-30 Thread Liwei Song
Add package for rtl8168 firmware which is required by Realtek Ethernet Controller. Signed-off-by: Liwei Song --- meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 6 ++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/rec

[OE-core] [PATCH 16/16] openssl-nativesdk: Fix "can't open config file" warning

2018-05-30 Thread Robert Yang
From: Ovidiu Panait When SDK is not installed in the default location, openssl will not be able to find the the openssl.cnf config file: "WARNING: can't open config file: /usr/lib/ssl/openssl.cnf" To fix this, we need to provide the environment variable $OPENSSL_CONF pointing to the correct

[OE-core] [PATCH 15/16] rpcbind: add option to make user able to use fixed port number

2018-05-30 Thread Robert Yang
From: Li Wang Add option "-p" to specify fixed port number Signed-off-by: Li Wang Signed-off-by: Hongxu Jia Signed-off-by: Yi Zhao --- .../rpcbind_add_option_to_fix_port_number.patch| 130 + meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb | 1 + 2 files changed,

[OE-core] [PATCH 14/16] glibc: re-package for libnss-db

2018-05-30 Thread Robert Yang
From: Jackie Huang On other distros like ubuntu/centos, libnss-db usually provides: - The libraries - The Makefile to create database (in /var/db for centos, /var/lib/misc/ for ubuntu) - The makedb command (it's in glibc-common for centos7) What we had is: - The libraries are in glibc-extra-ns

[OE-core] [PATCH 11/16] toolchain-scripts.bbclass: do not extend dependency if extended already

2018-05-30 Thread Robert Yang
From: Kai Kang When set MULTILIBS with two or more items, such as for mips64: MULTILIBS ?= "multilib:lib32 multilib:libn32" It expands dependency once in mutlib.bbclass, and expand again in toolchain-scripts.bbclass which causes error: | ERROR: Nothing PROVIDES 'virtual/lib32-libn32-libc'. Clo

[OE-core] [PATCH 12/16] populate_sdk_ext.bbclass: add ESDK_MANIFEST_EXCLUDES

2018-05-30 Thread Robert Yang
From: Chen Qi Add ESDK_MANIFEST_EXCLUDES to enable excluding items in sdk-conf-manifest. By default, files under conf/ are all added to sdk-conf-manifest, as the manifest file is set to 'conf/*'. However, there are situations where some configuration files under conf/ directory are not intended

[OE-core] [PATCH 13/16] init-install: add timeout for legacy grub

2018-05-30 Thread Robert Yang
From: Catalin Enache After installing an image from an iso, booting the system using the legacy boots makes the grub prompt wait for an enter. This is not desirable since many of this devices are embedded devices that should start by them self without user entry. Signed-off-by: Catalin Enache

[OE-core] [PATCH 10/16] dropbear: add default config file to disable root login

2018-05-30 Thread Robert Yang
From: Jackie Huang root login is disabled by default for openssh and we can enable it through IMAGE_FEATURES 'debug-tweaks' or 'allow-empty-password', so change to the same default behavior for dropbear. Signed-off-by: Jackie Huang --- meta/recipes-core/dropbear/dropbear.inc | 3 +

[OE-core] [PATCH 07/16] oe/copy_buildsystem.py: add SDK_LAYERS_EXCLUDE_PATTERN

2018-05-30 Thread Robert Yang
It is helpful when exclude a lot of layers. It uses python re, and supports multiple patterns (separated by space). Signed-off-by: Robert Yang --- meta/lib/oe/copy_buildsystem.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe

[OE-core] [PATCH 06/16] gcc-sanitizers: Fix libtool .la files

2018-05-30 Thread Robert Yang
From: Yuanjie Huang Since libtool sysroot is not set when compiling sanitizers, the libtool does no prefix the dependency path correctly. Fix it, so that programs can link to sanitizer libraries without error. Signed-off-by: Yuanjie Huang Signed-off-by: Mark Hatle --- meta/recipes-devtools/gc

[OE-core] [PATCH 09/16] rootfs-postcommands: split ssh_allow_empty_password

2018-05-30 Thread Robert Yang
From: Jackie Huang "allow root login" should not be bundled in ssh_allow_empty_password, because some distro may want only one of "allow root login" and "allow empty password", so split it out into ssh_allow_root_login and add new imagefeature allow-root-login so they can be controlled separately

[OE-core] [PATCH 08/16] site/powerpc64-linux: add cvs_cv_func_printf_ptr

2018-05-30 Thread Robert Yang
Fixed when powerpc64: $ bitbake -ctestsdk [snip] checking whether printf supports %p... configure: error: cannot run test program while cross compiling See `config.log' for more details. test_cvs (oeqa.sdk.buildcvs.BuildCvsTest) ... FAIL [snip] The cvs_cv_func_printf_ptr is already in powerpc32-

[OE-core] [PATCH 02/16] runqemu-extract-sdk: allow install debugfs on rootfs

2018-05-30 Thread Robert Yang
Usually, the debugfs' (-dbg.tar.*) work follow is: 1) Install regular rootfs to dir_foo 2) Install debugfs (-dbg.tar.*) to the same dir_foo So we need to allow installing the debugfs on top of the rootfs. Signed-off-by: Robert Yang --- scripts/runqemu-extract-sdk | 4 +++- 1 file changed, 3 ins

[OE-core] [PATCH 05/16] xinetd: add Init Script Actions to xinetd script

2018-05-30 Thread Robert Yang
From: Shan Hai The chkconfig fails to list the xinetd service because the xinetd lacks Init Script Actions in it, add the actions to fix it. Signed-off-by: Shan Hai Signed-off-by: Mingli Yu --- meta/recipes-extended/xinetd/xinetd/xinetd.init | 12 +++- 1 file changed, 11 insertions(+)

[OE-core] [PATCH 04/16] busybox: handle syslog

2018-05-30 Thread Robert Yang
From: "Yadi.hu" If CONFIG_KLOGD is not enabled, then the related service file should not be installed, The error message is below: Cannot add dependency job for unit busybox-klogd.service, ignoring: Unit busybox-klogd.service failed to load: No such file or directory. So we should f

[OE-core] [PATCH 01/16] base.bbclass: Add buildcfg multilib values

2018-05-30 Thread Robert Yang
From: Mark Hatle When displaying the buildcfg for the end user, add in processing of the multilib variants. Only the items that are not the same as the DEFAULTTUNE are displayed. I.e.: Build Configuration: BB_VERSION= "1.19.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Cent

[OE-core] [PATCH 03/16] lsof: fix LSOF_CCV in version.h

2018-05-30 Thread Robert Yang
From: Jian Liu When using cross compiler to build the package "lsof" on a host, the value of LSOF_CCV in version.h genegrated by the Makefile is the version of the compiler on the host while it should be the version of cross compiler. On Ubuntu host before fixed: #define LSOF_CCV"4.6.3

[OE-core] [PATCH 00/16 V2] meta: various fixes

2018-05-30 Thread Robert Yang
* V2: Rebase to up-to-date master branch and drop already merged patches. * V1: Initial version // Robert The following changes since commit 760103cdaed3e820888d8984ec0b76cfc831d534: nativesdk-rpm: Add wrappers for nativesdk support (2018-05-29 21:06:03 +0100) are available in the git re

Re: [OE-core] [PATCH 06/24] at: add libselinux to PACKAGECONFIG

2018-05-30 Thread Robert Yang
On 05/30/2018 06:01 AM, Andre McCurdy wrote: On Thu, May 24, 2018 at 7:48 PM, Robert Yang wrote: From: Mingli Yu * add libselinux to PACKAGECONFIG for at Signed-off-by: Mingli Yu Signed-off-by: Robert Yang --- meta/recipes-extended/at/at_3.1.20.bb | 6 ++ 1 file changed, 6 inserti

Re: [OE-core] [PATCH] qemuwrapper-cross: fix postinst failed warning

2018-05-30 Thread cli10
OK, I will test with your patch:-) On 05/30/2018 02:41 PM, Alexander Kanavin wrote: 2018-05-30 7:27 GMT+03:00 : From: Changqing Li 1. some binary like udev-hwdb/pixbufcache/gio-module-cache/fontcache uses qemu usermode by default, but some architecture such as Intel skylake does not support