]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agognu-efi: Upgrade package to 3.0.6 and refresh patches
California Sullivan [Wed, 12 Jul 2017 00:47:29 +0000 (17:47 -0700)]
gnu-efi: Upgrade package to 3.0.6 and refresh patches

Version 3.0.6 fixes a failure when using the pxe headers and allows us
to drop the explicit fall through patch as it was fixed upstream.

Other patches were rebased on top of the new version.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorecipetool: git reformat URI mangling & parameter stripped
Stanley Cheong Kwan, Phoong [Wed, 12 Jul 2017 09:25:45 +0000 (17:25 +0800)]
recipetool: git reformat URI mangling & parameter stripped

recipetool seems to be mangling and stripping out the parameters for git
URI. This will fix this issue as well as resolve the conflict of
protocol parameter added by user. If a user adds their own protocol as
an argument, it'll be honored.

[YOCTO #11390]
[YOCTO #11391]

Signed-off-by: Stanley Cheong Kwan, Phoong <stanley.cheong.kwan.phoong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowayland-protocols: upgrade to 1.9
Denys Dmytriyenko [Tue, 11 Jul 2017 15:27:28 +0000 (11:27 -0400)]
wayland-protocols: upgrade to 1.9

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibarchive: Upgrade to 3.3.2 release
Otavio Salvador [Tue, 11 Jul 2017 15:06:14 +0000 (12:06 -0300)]
libarchive: Upgrade to 3.3.2 release

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: fix ptest compilation for PowerPC
Ross Burton [Fri, 14 Jul 2017 18:53:42 +0000 (19:53 +0100)]
valgrind: fix ptest compilation for PowerPC

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: Update 3.12.0 -> 3.13.0
Soren Brinkmann [Sun, 9 Jul 2017 07:35:37 +0000 (00:35 -0700)]
valgrind: Update 3.12.0 -> 3.13.0

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: fix link failure with gold
Ross Burton [Tue, 11 Jul 2017 21:50:41 +0000 (22:50 +0100)]
valgrind: fix link failure with gold

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-7.1: Update the libsanitize stack_t patch to upstreamed version
Khem Raj [Tue, 11 Jul 2017 16:02:33 +0000 (09:02 -0700)]
gcc-7.1: Update the libsanitize stack_t patch to upstreamed version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-cross: Fix linker and fortran symlinks
Khem Raj [Tue, 11 Jul 2017 14:05:46 +0000 (07:05 -0700)]
gcc-cross: Fix linker and fortran symlinks

If we used -fuse-ld gcc option, then it does not work
ending in

collect2: fatal error: cannot find 'ld'                                                                                                                                                                                                       compilation terminated.

This is because we are not creating proper symlinks for BFD
and Gold linker in gcc installation

Secondly, we end up with dangling fortran compiler symlinks
if fortran is not enabled when confguring gcc, therefore
create these symlinks only when fortran support is enabled
in gcc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxt: fix build failure
Maxin B. John [Tue, 11 Jul 2017 12:58:13 +0000 (15:58 +0300)]
libxt: fix build failure

libxt build fails with this error:

/home/maxin/poky/build/tmp/work/i586-poky-linux/libxt/1_1.1.5-r0/recipe-sysroot/usr/include/bits/long-double.h:57:33:
fatal error: bits/long-double-64.h: No such file or directory
| compilation terminated.
| Makefile:408: recipe for target 'makestrs.o' failed

Fix the makestrs build.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibx11: fix build error
Maxin B. John [Tue, 11 Jul 2017 12:58:12 +0000 (15:58 +0300)]
libx11: fix build error

libx11 build fails with this error:

fatal error: bits/long-double-64.h: No such file or directory
| compilation terminated.

This is due to the fact that "makekeys" should be compiled for the host
since it is executed at build time to generate ks_tables.h. Since we have
the X11 include files in the standard path of oe-core, we can remove the
X11_CFLAGS from Makefile.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest: Add vulkan-demos to checkpkg exceptions
Jussi Kukkonen [Fri, 14 Jul 2017 12:06:31 +0000 (15:06 +0300)]
selftest: Add vulkan-demos to checkpkg exceptions

vulkan-demos has not had any releases.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovulkan-demos: Add recipe
Jussi Kukkonen [Tue, 11 Jul 2017 12:26:21 +0000 (15:26 +0300)]
vulkan-demos: Add recipe

Sascha Willems collection of Vulkan demos is useful as a smoke testing
tool.

* Add patch to install binaries and data.
* Add patch to fix build on X86
* Use a combination of patch and do_install_append to avoid some 3D
models with unclear licensing.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoacpitests: Remove as unmaintained
Jussi Kukkonen [Tue, 11 Jul 2017 12:03:04 +0000 (15:03 +0300)]
acpitests: Remove as unmaintained

This recipe was last upgraded about ~30 releases or three years ago,
it seems to only be touched when something breaks. It also has an
'interesting' license that maybe is open source...

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosign_rpm: support signing files in RPM payload
Lans Zhang [Tue, 11 Jul 2017 04:43:03 +0000 (12:43 +0800)]
sign_rpm: support signing files in RPM payload

Currently, RPM4 supports to sign the files in RPM payload with plugin
mechanism. We introduce more definitions to make the file signing
available for the users:

- RPM_FILE_CHECKSUM_DIGEST
  Global switch to enable file signing.
- RPM_FSK_PATH
  The file signing key.
- RPM_FSK_PASSWORD
  The password of file signing key.
- RPM_FILE_CHECKSUM_DIGEST
  The file checksum digest.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogpg_sign.py: fix overwriting the RPM macro __gpg in a wrong way
Lans Zhang [Tue, 11 Jul 2017 04:43:02 +0000 (12:43 +0800)]
gpg_sign.py: fix overwriting the RPM macro __gpg in a wrong way

The RPM macro used in --define option should not be prefixed by %%.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage_types: fix squashfs-lzo and squashfs-xz builds
Ed Bartosh [Fri, 7 Jul 2017 15:03:45 +0000 (18:03 +0300)]
image_types: fix squashfs-lzo and squashfs-xz builds

Dependencies required for squashfs-lzo and squashfs-xz image builds were
assigned to do_image_squashfs-lzo and do_image_squashfs-xz. As these
tasks don't exist the dependencies were not installed and builds
were failing.

Correct task names for these image types are: do_image_squashfs_lzo and
do_image_squashfs_xz because '-' and '.' are replaced by '_' in all
do_image* task names.

[YOCTO #11760]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimagefeatures: add test_image_fstypes test case
Ed Bartosh [Fri, 7 Jul 2017 15:12:23 +0000 (18:12 +0300)]
imagefeatures: add test_image_fstypes test case

Tested if core-image-minimal can be built for existing fstypes by
building an image and checking if result file <image>.<fstype> exists
in the image deploy directory.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest: fixed 5 wic test cases
Ed Bartosh [Fri, 14 Jul 2017 12:33:07 +0000 (15:33 +0300)]
selftest: fixed 5 wic test cases

Added core-image-minimal -> syslinux dependency to ensure
syslinux artifacts are available from core-image-minimal
build. This should fix test_iso_image, test_bootloader_config and
test_default_output_dir test cases.

Used --native-sysroot in test_image_vars_dir_long and
test_image_vars_dir_short test cases to point out to wic-tools
native sysrtoot.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: isoimage-isohybrid: use grub-efi from deploy dir
Ed Bartosh [Fri, 14 Jul 2017 12:33:06 +0000 (15:33 +0300)]
wic: isoimage-isohybrid: use grub-efi from deploy dir

isoimage-isohybrid plugin tries to build grub-efi in its working
directory if it can't find efi binary. Wic should avoid doing anything
in working directories of other recipes. It should use artifacts from
the image deployment directory instead.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage_types_wic: set default WKS_FILE_DEPENDS
Ed Bartosh [Fri, 14 Jul 2017 12:33:05 +0000 (15:33 +0300)]
image_types_wic: set default WKS_FILE_DEPENDS

The default set of dependencies used via wic-tools is not used
anymore as wic images don't depend on wic-tools.

Set of packages required to produce wic image depends on the content
of the .wks file, so WKS_FILE_DEPENDS variable should be used to
provide correct list of dependencies when WKS_FILE variable is set.

As WKS_FILE_DEPENDS is not used in many existing recipes yet we need
to provide default value for it to ensure that removal of wic-tool
dependency doesn't cause image build failures.

Initialized WKS_FILE_DEPENDS with the set of dependencies previously
brought by wic-tool. This is done to provide compatibility and to
avoid breakages of existing image recipes that rely on current set
of dependencies.

Note: This is a temporary solution for transition period.
After some time the list will be either reduced or removed.
Recommended solution is to use WKS_FILE_DEPENDS in image recipes
together with WKS_FILE to specify dependencies.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic-tools: don't create wic-tools.env
Ed Bartosh [Fri, 14 Jul 2017 12:33:04 +0000 (15:33 +0300)]
wic-tools: don't create wic-tools.env

wic-tools.env was uses only when wic is run from bitbake.
As wic doesn't use wic-tools anymore in this mode there is
no need for this file.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: isoimage-isohybrid: check result of glob()
Ed Bartosh [Fri, 14 Jul 2017 12:33:03 +0000 (15:33 +0300)]
wic: isoimage-isohybrid: check result of glob()

isoimage-isohybrid plugin uses result of glob call to
get path to initrd image. When glob returns empty list
the plugin crashes with IndexError.

Checking if result of glob call is not empty should fix
the breakage.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: build wic-tools only if wic is run manually
Ed Bartosh [Fri, 14 Jul 2017 12:33:02 +0000 (15:33 +0300)]
wic: build wic-tools only if wic is run manually

When wic can't find native sysroot it tries to build wic-tools
However, it's not possible when wic is run from bitbake.
Moreover, it's not even feasible anymore as wic-tools should be
used only when wic is run manually.

Checked if wic is run manually before building wic-tools.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: isoimage: do not remove temp directory
Ed Bartosh [Fri, 14 Jul 2017 12:33:01 +0000 (15:33 +0300)]
wic: isoimage: do not remove temp directory

Removed isodir subrdirectory instead of removing temporary
working directory as working directory can contain copy of
rootfs partition and shouldn't be removed by any plugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: get rid of using wic-tools
Ed Bartosh [Fri, 14 Jul 2017 12:33:00 +0000 (15:33 +0300)]
wic: get rid of using wic-tools

At the moment, when building images with IMAGE_FSTYPES=wic one ends up
depending on wic-tools and thus syslinux and grub-efi even when not
using those at all. Ideally, building an image with wic should only
build the tools and components really needed.

The problem is that "wic-tools" is needed also for the manual
invocations of wic, in which case everything that might be needed has to
be built in advance.

Replaced dependency on wic-tools with dependency to a much shorter set
of tools that wic uses almost for any image: 'parted', 'gptfdisk',
'dosfstools' and 'mtools'.

[YOCTO #11552]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolive-vm-common: add MKDOSFS_EXTRAOPTS variable
Ed Bartosh [Thu, 6 Jul 2017 08:43:00 +0000 (11:43 +0300)]
live-vm-common: add MKDOSFS_EXTRAOPTS variable

Sometimes it's needed to create FAT filesystem with specific
sector or cluster size, FAT size or to use one of other useful
mkdosfs options.

Introduced MKDOSFS_EXTRAOPTS variable to set options for mkdosfs.

[YOCTO #11709]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodistro_alias.inc: update unmap packages to other distro
Shen Joon Tan [Thu, 13 Jul 2017 02:23:06 +0000 (10:23 +0800)]
distro_alias.inc: update unmap packages to other distro

Added packages with different names or based on sources that
generates multiple binaries eg: python-pycurl source generates
python3-pycurl as well. Currently, some of these packages are not
displayed as part of other distro due to naming differences on
the source rather than the binaries as a single source could
produce multiple binaries with different names.

Signed-off-by: Shen Joon Tan <shen.joon.tan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage_types: remove Hob convenience variable
Joshua Lock [Wed, 12 Jul 2017 19:08:20 +0000 (20:08 +0100)]
image_types: remove Hob convenience variable

IMAGE_EXTENSION_live is no longer used. It was used by Hob to map the
live image type, but Hob is no longer part of the Bitbake codebase.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/sanity: check for case-sensitive file systems
Ross Burton [Wed, 12 Jul 2017 19:32:26 +0000 (20:32 +0100)]
classes/sanity: check for case-sensitive file systems

Case-insensitive file systems fail during builds in very mysterious ways, such
as mpfr:

  ERROR: patch_do_patch: Not a directory

The problem here being that mpfr has a PATCHES file, so when we try to copy the
patches into ${S}/patches/ it fails.

We can't and won't support case-insensitive file systems so add a sanity check
to abort the build if one is found.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolib/oe/sstatesig: exclude ccache-native from signature hashes
Ross Burton [Mon, 10 Jul 2017 16:29:58 +0000 (17:29 +0100)]
lib/oe/sstatesig: exclude ccache-native from signature hashes

Enabling ccache should not cause a complete rebuild, so filter out ccache-native
from the dependencies the same way we do for quilt-native (so the world doesn't
repatch if quilt changes).

This doesn't effect the actual dependencies, just the dependencies that impact
the hash.

[ YOCTO #11417 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoccache: let ccache create CCACHE_DIR, reducing hash changes
Ross Burton [Mon, 10 Jul 2017 16:04:03 +0000 (17:04 +0100)]
ccache: let ccache create CCACHE_DIR, reducing hash changes

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobitbake.conf: add CCACHE_NOHASHDIR to hash whitelist
Ross Burton [Mon, 10 Jul 2017 16:03:37 +0000 (17:03 +0100)]
bitbake.conf: add CCACHE_NOHASHDIR to hash whitelist

7 years agoccache: don't export CCACHE_DISABLE globally
Ross Burton [Mon, 10 Jul 2017 15:31:31 +0000 (16:31 +0100)]
ccache: don't export CCACHE_DISABLE globally

CCACHE_DISABLE was added to bitbake.conf in oe-core dd2bab (June 2012) because
autogen-native exports HOME=/dev/null during the build, which is then used by a
host ccache to construct the path to it's cache (/dev/null/.ccache) and this
fails.

However we now always export CCACHE_DIR to solve the same problem in a more
efficient way so CCACHE_DISABLE can be deleted.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodistrooverrides.bbclass: fix default configuration
Patrick Ohly [Wed, 12 Jul 2017 09:08:34 +0000 (11:08 +0200)]
distrooverrides.bbclass: fix default configuration

When using distrooverrides.bbclass without setting
DISTRO_FEATURES_OVERRIDES, the code failed because of a spelling error
in the default.

[YOCTO #11759]

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agox86-base: build only hddimg, rather than iso and hddimg, for x86 machines
Joshua Lock [Wed, 12 Jul 2017 19:08:21 +0000 (20:08 +0100)]
x86-base: build only hddimg, rather than iso and hddimg, for x86 machines

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorunqemu: check exit code of 'ls -t'
Ed Bartosh [Tue, 11 Jul 2017 14:34:24 +0000 (17:34 +0300)]
runqemu: check exit code of 'ls -t'

Used check_output instead of Popen as it raises CalledProcessError
exception when command exits with non-zero exit code.

Catched the exception to produce user-friendly output.

[YOCTO #11719]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorunqemu: reworked exception handling
Ed Bartosh [Tue, 11 Jul 2017 14:34:23 +0000 (17:34 +0300)]
runqemu: reworked exception handling

Introduced custom RunQemuException that script raises on known
errors. This exception is handled in one place and prints
error output without printing Python traceback. This shoud make
error output less scary for the end user.

Handling of unknown errors has not been changed - both error and
traceback will be printed.

Reimplemented OEPathError exception code to handle it similarly
to RunQemuException.

Moved exception handling code into main() to keep it in one place.

[YOCTO #11719]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibiconv: remove 0001-Fix-link-error-when-compiling-with-gcc-O0.patch
Robert Yang [Mon, 10 Jul 2017 10:31:43 +0000 (03:31 -0700)]
libiconv: remove 0001-Fix-link-error-when-compiling-with-gcc-O0.patch

The recipe and patches (including this patch) had been moved into meta-mingw,
this dangling patch is useless here, so should be removed.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Split --with-platforms from egl PACKAGECONFIG
Jussi Kukkonen [Mon, 10 Jul 2017 11:54:08 +0000 (14:54 +0300)]
mesa: Split --with-platforms from egl PACKAGECONFIG

Mesa platforms no longer depend directly on egl. Current
implementation breaks without egl with x11 (which can happen with
mesa-gl).

Separate the platform selection. Make drm platform depend on gbm
PACKAGECONFIG by default.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agompeg2dec: Fix textrels QA errors on arm
Khem Raj [Thu, 6 Jul 2017 02:10:00 +0000 (19:10 -0700)]
mpeg2dec: Fix textrels QA errors on arm

Fixes
WARNING: mpeg2dec-0.5.1-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/oe/build/tmp/work/armv5te-bec-linux-musleabi/mpeg2dec/0.5.1-r0/packages-split/libmpeg2/usr/lib/libmpeg2.so.0.1.0' has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: tests build fixes for musl
Khem Raj [Thu, 6 Jul 2017 00:50:31 +0000 (17:50 -0700)]
valgrind: tests build fixes for musl

x86/aarch64 needed minor changes to make few testcases portable

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoworld-broken.inc: Remove packages which are now buildable on musl
Khem Raj [Wed, 5 Jul 2017 18:49:23 +0000 (11:49 -0700)]
world-broken.inc: Remove packages which are now buildable on musl

Delete the pinnings which are no longer required during world builds
becasue they have been fixed to build on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc: Fix libssh_nonshared linker specs for ppc/musl
Khem Raj [Wed, 5 Jul 2017 17:34:44 +0000 (10:34 -0700)]
gcc: Fix libssh_nonshared linker specs for ppc/musl

The change to link libssp_nonshared.a only for musl was to move
spec file changes to config/linux.h under a conditional when
DEFAULT_LIBC == LIBC_MUSL which worked fine for all but ppc
since gcc for ppc provided its own linux.h overrides which are
used. This patch duplicates the change in those headers too

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomusl: Update to latest on master
Khem Raj [Mon, 12 Jun 2017 21:54:24 +0000 (14:54 -0700)]
musl: Update to latest on master

Bring in following changes

* fix missing volatile qualifier on lock in __get_locale
* remove ineffective compiler assist from printf
* fix undefined behavior in ptrace
* unify the use of FUTEX_PRIVATE
* fix undefined behavior in free
* reapply va_arg hacks removal to wprintf
* remove useless declarations in string.h
* allow specifying argv[0] when invoking a program via ldso command
* fix regression in dlopen promotion from RTLD_LOCAL to RTLD_GLOBAL
* ldso: avoid spurious & possible erroneous work for libs with no deps
* powerpc64: add single-instruction math functions
* fix clang CFLAGS checks and silence unused argument warnings
* s390x: add single-instruction math functions
* fix arm run-time abi string functions
* fix regression in getspnam[_r] error code for insufficient buffer size
* fix omission of microblaze user.h definitions
* fix iconv conversions for iso88592-iso885916
* handle errors from localtime_r in ctime_r
* set errno when getpw*_r, getgr*_r, and getspnam_r fail
* handle localtime errors in ctime
* handle mremap failure in realloc of mmap-serviced allocations
* getdate: correctly specify error number
* catopen: set errno to EOPNOTSUPP
* fix glob failure to match plain "/" to root directory
* use hard-coded sh4a atomic opcodes to avoid linker errors on sh

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc: Use ucontext_t instead of ucontext
Khem Raj [Wed, 28 Jun 2017 07:28:47 +0000 (00:28 -0700)]
gcc: Use ucontext_t instead of ucontext

glibc 2.26 does not expose struct ucontext anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc-sanitizer: Fix build with glibc 2.26
Khem Raj [Sun, 11 Jun 2017 17:15:44 +0000 (10:15 -0700)]
gcc-sanitizer: Fix build with glibc 2.26

sigaltstack is no more exposed by glibc see (bug 21517)
therefore adjust to use stack_t instead

Use res_state typedef instead of referring to __res_state struct

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: Enable obsoleted nsl
Khem Raj [Tue, 25 Apr 2017 15:41:17 +0000 (08:41 -0700)]
glibc: Enable obsoleted nsl

libnsl has been obsoleted in 2.26 and will be removed in future
until them we enable it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: Drop obsoleted bits/string.h from multilibbing
Khem Raj [Wed, 28 Jun 2017 17:39:10 +0000 (10:39 -0700)]
glibc: Drop obsoleted bits/string.h from multilibbing

glibc 2.26 has dropped bits/string.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: Upgrade to 2.25.90
Khem Raj [Sat, 15 Apr 2017 01:23:20 +0000 (18:23 -0700)]
glibc: Upgrade to 2.25.90

Eventually it will be released as 2.26 final

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agopiglit: Update to current git master
Jussi Kukkonen [Fri, 7 Jul 2017 10:59:08 +0000 (13:59 +0300)]
piglit: Update to current git master

Update, remove backported patches.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/tinfoil: Improve test_wait_event for race issues
Richard Purdie [Fri, 7 Jul 2017 12:55:06 +0000 (13:55 +0100)]
oeqa/tinfoil: Improve test_wait_event for race issues

The test could break in a variety of ways:

a) If BB_HEARTBEAT_EVENT was less than ~0.25 it would hang indefinitely
b) The mask is set after draining the event queue meaning a heartbeat event
   could have happened
c) The test exits once it sees the events it wants, it doesn't check for
   spurious events such as heartbeats which shouldn't have occured.
d) The hardcoded delay of 0.25 is nasty and shouldn't be needed.

I found a bitbake bug and fixed that meaning we don't need the delay any
more which fixes d). That means a) is no longer an issue either.

We now set the mask, then drain the queue meaning no spurious events should
be able to sneak in. The test is also tweaked to wait for 5s in total to
ensure spurious events don't occur such as heartbeat events we shouldn't see.

[YOCTO #11045]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging: Ensure a clean recipe sysroot removes addto_recipe_sysroot stamps
Richard Purdie [Fri, 7 Jul 2017 12:12:31 +0000 (13:12 +0100)]
staging: Ensure a clean recipe sysroot removes addto_recipe_sysroot stamps

The commands:

bitbake nodejs-native;
bitbake nodejs-native -c clean;
bitbake nodejs-native;
bitbake -c addto_recipe_sysroot nodejs-native;
bitbake -c devshell nodejs-native;
bitbake -c addto_recipe_sysroot nodejs-native;
bitbake -c devshell nodejs-native;

never result in npm in the sysroot within devshell. The reason is the
addto_recipe_sysroot stamp isn't removed when do_fetch is run but the sysroot
is cleaned.

With this patch, the second devshell will contain npm, which I think is probably
the best outcome we can hope for here.

[YOCTO #11461]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/sdk: Replace buildiptables for buildlzip tests
Jose Perez Carranza [Mon, 3 Jul 2017 20:04:15 +0000 (13:04 -0700)]
oeqa/sdk: Replace buildiptables for buildlzip tests

Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.

[YOCTO #11713]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotestimage: Use the renamed buildlzip
Khem Raj [Thu, 6 Jul 2017 21:03:08 +0000 (14:03 -0700)]
testimage: Use the renamed buildlzip

buildiptables has been replaced with buildlzip

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/runtime: Replace buildiptables for buildlzip on runtime tests
Jose Perez Carranza [Thu, 6 Jul 2017 21:03:07 +0000 (14:03 -0700)]
oeqa/runtime: Replace buildiptables for buildlzip on runtime tests

Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.

This patch is applicable for testimage tests

[YOCTO # 11713]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomirrors.bbclass: remove stale lsof ftp mirrors
Andre McCurdy [Thu, 6 Jul 2017 19:49:02 +0000 (12:49 -0700)]
mirrors.bbclass: remove stale lsof ftp mirrors

Replace with an mapping for http://www.mirrorservice.org to align
with recent changes to SRC_URI in the lsof recipe and allow
non-current lsof tar files to be found in the /OLD subdirectory.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsof: update SRC_URI
Andre McCurdy [Thu, 6 Jul 2017 19:49:01 +0000 (12:49 -0700)]
lsof: update SRC_URI

Upstream lsof releases are hosted on an ftp server which times out
download attempts from hosts for which it can not perform a DNS
reverse-lookup. See:

  https://people.freebsd.org/~abe/

http://www.mirrorservice.org seems to be the most commonly used
alternative (and using it for SRC_URI allows the custom
UPSTREAM_CHECK_URI to be removed).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolsof: minor recipe cleanup
Andre McCurdy [Thu, 6 Jul 2017 19:49:00 +0000 (12:49 -0700)]
lsof: minor recipe cleanup

  - Add HOMEPAGE
  - Remove ${S} from LIC_FILES_CHKSUM path
  - Use tabs consistently to indent do_configure()
  - Re-order LIC_FILES_CHKSUM definition to follow OE style guide

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage_types: fix kernel target on elf's image dependencies
Leonardo Sandoval [Thu, 6 Jul 2017 15:17:05 +0000 (08:17 -0700)]
image_types: fix kernel target on elf's image dependencies

Kernel recipes provides 'virtual/kernel' so remove the native part.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinuxloader.bbclass: add musl libc support
Ming Liu [Thu, 6 Jul 2017 11:50:31 +0000 (13:50 +0200)]
linuxloader.bbclass: add musl libc support

Current linuxloader.bbclass does not support musl libc ldso, so add it
in.

After changing, now the linuxloader function will call a subfunction
according to which virtual/libc is being used, glibc or musl, the
linuxloader_musl function is made on top of the LDSO macro defined
in musl source, by mapping related OE variables to it.

Change tested on following machines:
"genericx86"
"genericx86-64"
"beaglebone"
"qemumips64"
"qemuarm64"
"mpc8315e-rdb"
"edgerouter"
"qemumips"
"kc705-microblazeel" - meta-xilinx
"qemuppc"

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovulkan: RRECOMMEND mesa drivers
Jussi Kukkonen [Thu, 6 Jul 2017 07:54:38 +0000 (10:54 +0300)]
vulkan: RRECOMMEND mesa drivers

One less thing to remember when trying to build an image
with working vulkan.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa, gstreamer: Add "vulkan" DISTRO_FEATURE
Jussi Kukkonen [Thu, 6 Jul 2017 07:54:37 +0000 (10:54 +0300)]
mesa, gstreamer: Add "vulkan" DISTRO_FEATURE

It doesn't do much but does make enabling vulkan a little less fiddly.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogstreamer1.0-plugins-bad: Add vulkan PACKAGECONFIG
Jussi Kukkonen [Thu, 6 Jul 2017 07:54:36 +0000 (10:54 +0300)]
gstreamer1.0-plugins-bad: Add vulkan PACKAGECONFIG

This adds a Vulkan video sink (using xcb and/or wayland).

Add a few patches to fix the build.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoassimp: Add as dependency of vulkan-demos
Jussi Kukkonen [Thu, 6 Jul 2017 07:54:34 +0000 (10:54 +0300)]
assimp: Add as dependency of vulkan-demos

Asset import library used by Sascha Willems Vulkan demos.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovulkan: Upgrade 1.0.39.1 -> 1.0.51.0
Jussi Kukkonen [Thu, 6 Jul 2017 07:54:33 +0000 (10:54 +0300)]
vulkan: Upgrade 1.0.39.1 -> 1.0.51.0

Remove a patch that's no longer needed

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoperl: Support musl-x32 build
sweeaun [Wed, 5 Jul 2017 23:56:37 +0000 (16:56 -0700)]
perl: Support musl-x32 build

Existing musl fixups in perl recipe doesn't cover linux-muslx32.
This is fixed to support musl-x32 build.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogrub-efi: Support musl-x32
sweeaun [Wed, 5 Jul 2017 23:56:35 +0000 (16:56 -0700)]
grub-efi: Support musl-x32

To build 64-bit binaries for musl-x32.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognu-efi: Support musl-x32 build
sweeaun [Wed, 5 Jul 2017 23:56:34 +0000 (16:56 -0700)]
gnu-efi: Support musl-x32 build

To build 64-bit binaries for musl-x32.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agositeinfo.bbclass: Support musl-x32
sweeaun [Wed, 5 Jul 2017 23:56:33 +0000 (16:56 -0700)]
siteinfo.bbclass: Support musl-x32

Modified targetinfo and osinfo to support musl-x32.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: Support musl-x32
sweeaun [Wed, 5 Jul 2017 23:56:32 +0000 (16:56 -0700)]
insane.bbclass: Support musl-x32

Added musl-x32 elf header into dictionary.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: etnaviv: fix shader miscompilation with more than 16 labels
Otavio Salvador [Wed, 5 Jul 2017 21:36:27 +0000 (18:36 -0300)]
mesa: etnaviv: fix shader miscompilation with more than 16 labels

The labels array may change its virtual address on a reallocation, so
it is invalid to cache pointers into the array. Rather than using the
pointer directly, remember the array index.

Fixes miscompilation of shaders in glmark2 ideas, leading to GPU hangs.

This is a backport from 17.1.5.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoovmf: Fix build with toolchain defaulting to PIE
Khem Raj [Tue, 4 Jul 2017 15:46:03 +0000 (08:46 -0700)]
ovmf: Fix build with toolchain defaulting to PIE

GCC44_IA32_X64_DLINK_COMMON and GCC49_IA32_X64_DLINK_COMMON
variables add to final linker flags that ovmf build forms
on its own, so trying to inject it from environment will not
work.

Here we add option to disable pie during linking, which should
have been accompanied with correcponding gcc/cflags.

Fixes

|   /mnt/a/oe/build/tmp/work/i586-bec-linux/ovmf/git-r0/git/Build/OvmfIa32/RELEASE_GCC5/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Facs.dll: Bad definition for symbol '<unknown>'@0 or unsupported symbol type.  For example, absolute and undefined symbols are not supported.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agosecurity_flags.inc: Do not build gcc for powerpc with PIE defaults
Khem Raj [Tue, 4 Jul 2017 01:33:10 +0000 (18:33 -0700)]
security_flags.inc: Do not build gcc for powerpc with PIE defaults

Since we have disabled FPIE from SECURITY_CFLAGS already, we have
to ensure the same with gcc, otherwise gcc (on-device) will be built
defaulting to PIE, and such binaries will fail to execute

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogstreamer1.0-plugins-bad: Fix missing library with bcm egl
Khem Raj [Sat, 27 May 2017 22:14:16 +0000 (15:14 -0700)]
gstreamer1.0-plugins-bad: Fix missing library with bcm egl

userland graphics driver provided libegl for rpi depends upon
symbols from vchostif library, therefore add it to linker cmdline

helps with loadng gst-gl plugins on rpi

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agolibunwind: We set -fPIE in security flags now if gcc is not configured for default PIE
Khem Raj [Wed, 14 Jun 2017 02:18:38 +0000 (19:18 -0700)]
libunwind: We set -fPIE in security flags now if gcc is not configured for default PIE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agosysklogd: Improve build and fix runtime crash
Khem Raj [Sat, 1 Jul 2017 07:04:35 +0000 (00:04 -0700)]
sysklogd: Improve build and fix runtime crash

Patch the makefile so it can respect flags from environment
add a patch to fix a run time crash

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogcc: Link libssp_nonshared.a only on musl targets
Khem Raj [Wed, 28 Jun 2017 02:11:44 +0000 (19:11 -0700)]
gcc: Link libssp_nonshared.a only on musl targets

glibc already provides the content for libssp_nonshared
in libc_nonshared.a therefore we dont need to make it
universal.

This also fixed build issues on glibc when linking statically
and using -fstack-protector

Fixed errors like
/mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libc.a(stack_chk_fail.o): In function `__stack_chk_fail':                                                                       /usr/src/debug/glibc/2.26-r0/git/debug/stack_chk_fail.c:27: multiple definition of `__stack_chk_fail_local'                                                                                                                                   /mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libssp_nonshared.a(libssp_nonshared_la-ssp-local.o):/usr/src/debug/gcc-runtime/7.1.0-r0/gcc-7.1.0/build.i586-bec-linux.i586-bec-linux/i586-bec-linux/libssp/../../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/libssp/ssp-local.c:47: first defined here                                                                                                              collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogcc7: Enable static PIE
Khem Raj [Tue, 13 Jun 2017 23:15:49 +0000 (16:15 -0700)]
gcc7: Enable static PIE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agodistutils,setuptools: Delete use of SECURITY_NO_PIE_CFLAGS
Khem Raj [Sat, 10 Jun 2017 15:06:17 +0000 (08:06 -0700)]
distutils,setuptools: Delete use of SECURITY_NO_PIE_CFLAGS

gcc can handle PIE in gcc driver

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agosecurity_flags.inc: Delete pinnings for SECURITY_NO_PIE_CFLAGS
Khem Raj [Sat, 10 Jun 2017 14:57:34 +0000 (07:57 -0700)]
security_flags.inc: Delete pinnings for SECURITY_NO_PIE_CFLAGS

GCC is configured correctly to pass PIE cflags/ldflags

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogcc: Introduce a knob to configure gcc to default to PIE
Khem Raj [Sat, 10 Jun 2017 14:51:58 +0000 (07:51 -0700)]
gcc: Introduce a knob to configure gcc to default to PIE

GCCPIE flag which is empty by default adds "--enable-default-pie"
configure option for harderned distros

We do not require to add -fpie -pie flag externally anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agobase: Add MultiConfigParsed handler to deal with unstable build signatures
Richard Purdie [Thu, 6 Jul 2017 11:54:15 +0000 (12:54 +0100)]
base: Add MultiConfigParsed handler to deal with unstable build signatures

This uses the newly added MultiConfigParsed event to handle problems where
checksums in multiconfig build were not fuctioning as expected.

The issue arises around SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS which contains
entries like:

* gcc-cross-${TARGET_ARCH}->virtual/${TARGET_PREFIX}libc-for-gcc
* gcc-cross-${TARGET_ARCH}->linux-libc-headers

These need to be expanded in the multiconfig data store but then placed
into the shared main datastore used by the siggen code. The only other
alternative would be a siggen instance for each multiconfig however that
seemed even more complex and invasive.

In real world usage, this issue would mean a qemux86 base config with
other armv5 and armv7 configs (e.g. beaglebone and qemuarm) would
try and build gcc-cross twice since dependencies normaly excluded
(e.g. linux-libc-headers) would now be included. This breaks sstate reuse
as well as breaking builds unless separate tmpdirs are used.

This patch adds all the entries for each multiconfig. Whilst there may
be duplicates, this shouldn't be an issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: create root symlinks in nativesdk target sysroot
Amarnath Valluri [Thu, 15 Jun 2017 10:32:39 +0000 (13:32 +0300)]
image.bbclass: create root symlinks in nativesdk target sysroot

To match with the target image, the generated nativesdk's target sysroot also
should have the root symlinks(/lib*, /bin/, /sbin). So, extended the
'create_merged_usr_symlinks' to reuse symlink creation part even for nativesdk
using POPULATE_SDK_PRE_TARGET_COMMAND.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinsane.bbclass: Add package QA check for merged /usr.
Amarnath Valluri [Wed, 14 Jun 2017 11:30:46 +0000 (14:30 +0300)]
insane.bbclass: Add package QA check for merged /usr.

This check makes sure that, when usrmerge distro feature enabled, no package
installs files to root (/bin, /sbin, /lib, /lib64) folders.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage: create symlinks needed for merged /usr
Amarnath Valluri [Wed, 14 Jun 2017 11:30:45 +0000 (14:30 +0300)]
image: create symlinks needed for merged /usr

Prepare the symlinks required for merged /usr at the time of rootfs creation.

The links created in rootfs are:
/bin --> /usr/sbin
/sbin --> /usr/sbin
/lib --> /usr/lib
/lib64 --> /usr/lib64

We cannot make these symlinks as part of 'base-files' or some other package.
Because at rootfs creation, installation of the package(say kernel) that depends
on these root folders/links fails, if package manager installs this package
prior to base-files.

These symbolic links in top level folder should be present as long as
 - kernel tools use /lib/{module,firmware}
 - shell scripts uses "#!/bin/sh"

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: changes to support merged /usr
Amarnath Valluri [Wed, 14 Jun 2017 11:30:44 +0000 (14:30 +0300)]
systemd: changes to support merged /usr

- Enable/disable the split-usr support in systemd based on 'usrmerge'
  DISTRO_FEATURE.
- Modify rootprefix to point to ${root_prefix}, rather than ${base_prefix}.
- And fixed firmware path to use ${nonarch_base_libdir} instead of hard-coded
  '/lib', because when 'usrmege' distro feature enabled this path would be
  '/usr/lib'.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocross.bbclass: merged /usr support
Amarnath Valluri [Wed, 14 Jun 2017 11:30:43 +0000 (14:30 +0300)]
cross.bbclass: merged /usr support

Use ${root_prefix} instead of ${base_prefix} while setting
${target_base_prefix}, otherwise we might loose the root prefix configuration
change in case of 'usrmerge' distro feature is enabled.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge
Amarnath Valluri [Wed, 14 Jun 2017 13:05:55 +0000 (16:05 +0300)]
bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

A new configuration variable ${root_prefix} added, which shall be used by all
base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled
${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix}

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agospeex: update SRC_URI
Ross Burton [Thu, 6 Jul 2017 11:43:23 +0000 (12:43 +0100)]
speex: update SRC_URI

The US download mirror appears to be down, so use the main host instead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoavahi-ui: reduce local pending patches
Dengke Du [Wed, 5 Jul 2017 08:33:29 +0000 (04:33 -0400)]
avahi-ui: reduce local pending patches

[Yocto #11548]

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomirrors: Add HTTP mirrors for ftp://sourceware.org
Soren Brinkmann [Tue, 4 Jul 2017 17:29:07 +0000 (10:29 -0700)]
mirrors: Add HTTP mirrors for ftp://sourceware.org

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolocal.conf.sample: drop image-swab reference
Ming Liu [Tue, 4 Jul 2017 08:32:21 +0000 (10:32 +0200)]
local.conf.sample: drop image-swab reference

The image swabber had been dropped by commit e18657df:
[ meta: Drop swabber ]

We need also drop its reference in local.conf.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoltp: add acl, attr, curl and util-linux runtime dependencies
Fathi Boudra [Wed, 5 Jul 2017 11:13:11 +0000 (14:13 +0300)]
ltp: add acl, attr, curl and util-linux runtime dependencies

* Use a list and re-order alphabetically to make it easier to read and
  update.
* Add missing runtime dependencies:
  - acl (getfacl/setfacl commands are required)
  - attr (getfattr/setfattr commands are required)
  - iproute2 (required for netns tests)
  - curl (curl command is required)
  - util-linux (ipcs command is required)

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoltp: Reduce local Pending patches
Dengke Du [Tue, 4 Jul 2017 03:36:21 +0000 (23:36 -0400)]
ltp: Reduce local Pending patches

Rebase the patch on latest ltp upstream:

    0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch

[Yocto #11548]

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoltp: syscalls/add_key02: fix for nonempty NULL payload
Fathi Boudra [Mon, 3 Jul 2017 11:45:34 +0000 (14:45 +0300)]
ltp: syscalls/add_key02: fix for nonempty NULL payload

Add upstream patch to fix syscalls/add_key02 test for nonempty
NULL payload:
https://github.com/linux-test-project/ltp/commit/25045624e941ee76a13febd36187e23c6c435507

Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibgfortran: Add missing fincludes
Ricardo Ribalda Delgado [Mon, 3 Jul 2017 21:57:43 +0000 (23:57 +0200)]
libgfortran: Add missing fincludes

ERROR: libgfortran-6.3.0-r0 do_package: QA Issue: libgfortran:
Files/directories were installed but not shipped in any package:
/usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude
/usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_features.mod
/usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_arithmetic.mod
/usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_exceptions.mod

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibgfortran: Add missing dependency gcc-cross
Ricardo Ribalda Delgado [Mon, 3 Jul 2017 21:57:42 +0000 (23:57 +0200)]
libgfortran: Add missing dependency gcc-cross

Due to the fact that the recipe uses INHIBIT_DEFAULT_DEPS, we need to
manually add the cross compiler as a dependency.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: Do not use xlocale.h
Khem Raj [Mon, 3 Jul 2017 15:59:27 +0000 (08:59 -0700)]
systemd: Do not use xlocale.h

glibc specific header which has been removed from glibc 2.26+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: Upgrade to 17.1.4 release
Otavio Salvador [Mon, 3 Jul 2017 20:02:10 +0000 (17:02 -0300)]
mesa: Upgrade to 17.1.4 release

This includes following upstream bug fixes:

Bug 77240 - khrplatform.h not installed if EGL is disabled
Bug 95530 - Stellaris - colored overlay of sectors doesn't render on i965
Bug 96958 - [SKL] Improper rendering in Europa Universalis IV
Bug 99467 - [radv] DOOM 2016 + wine. Green screen everywhere (but can be started)
Bug 101071 - compiling glsl fails with undefined reference to `pthread_create'
Bug 101252 - eglGetDisplay() is not thread safe
Bug 101294 - radeonsi minecraft forge splash freeze since 17.1
Bug 101451 - [G33] ES2-CTS.functional.clipping.polygon regression

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>