]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agopopulate_sdk_base: Ensure PKGDATA_DIR exists
Richard Purdie [Fri, 23 Oct 2015 03:30:36 +0000 (20:30 -0700)]
populate_sdk_base: Ensure PKGDATA_DIR exists

The code assumes that PKG_DATADIR exists and will fail if an image has not been
generated which creates it. This occurs when something like buildtools-tarball
is built which doesn't have target packages, only nativesdk ones.

Since this shouldn't be fatal, workaround this by creating the missing
directory.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoPerl: Use CC version not $Config(gccversion)
Jeremy Puhlman [Fri, 23 Oct 2015 17:18:07 +0000 (10:18 -0700)]
Perl: Use CC version not $Config(gccversion)

Get version data from querying $CC rather then
$Config(gccversion) which comes from running version of
perl. Since perl-native is not likely compiled by gcc
5 at this point, it will never trigger the required
fixes for gcc 5.

[YOCTO #8367]

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic/utils/oe/misc.py: Preserve PATH when running native tools
Randy Witt [Fri, 23 Oct 2015 02:53:56 +0000 (19:53 -0700)]
wic/utils/oe/misc.py: Preserve PATH when running native tools

Previously exec_native_cmd() would remove all items from PATH except for
the native sysroot. This can cause issues for the tools that are created
using create_wrapper().

Now instead of wiping out the PATH, run a sanity check to check if the
command is in the native sysroot.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomtools_4.0.18.bb: Use create_wrapper() for mcopy
Randy Witt [Fri, 23 Oct 2015 02:46:11 +0000 (19:46 -0700)]
mtools_4.0.18.bb: Use create_wrapper() for mcopy

mcopy uses the IBM850 codepage from gconv. The default install location
for gconv will not match the actual install location since it can be
pulled from sstate. This patch overrides the default location when
running by adding GCONV_PATH to the environment for mcopy.

[YOCTO #7629]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/oe-pkgdata-util: Fix variable name in error handling
Richard Purdie [Mon, 19 Oct 2015 19:50:39 +0000 (19:50 +0000)]
scripts/oe-pkgdata-util: Fix variable name in error handling

Fix:
    logger.error('Unable to find pkgdata directory %s' % pkgdata_dir)
NameError: global name 'pkgdata_dir' is not defined

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoAdd 850 codepage to uninative-tarball
Randy Witt [Mon, 19 Oct 2015 05:27:02 +0000 (22:27 -0700)]
Add 850 codepage to uninative-tarball

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoe2fsprogs: backport a patch to fix filetype for hardlink
Robert Yang [Fri, 23 Oct 2015 11:22:04 +0000 (04:22 -0700)]
e2fsprogs: backport a patch to fix filetype for hardlink

Backport a patch to fix hardlinks filetype:
IMAGE_INSTALL_append = " e2fsprogs"
$ ./tmp/sysroots/x86_64-linux/sbin/fsck.ext4 tmp/deploy/images/qemux86/core-image-minimal-qemux86.ext4 -f
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Setting filetype for entry 'fsck.ext2' in /sbin (80) to 1.
Setting filetype for entry 'mkfs.ext4' in /sbin (80) to 1.
Setting filetype for entry 'fsck.ext4' in /sbin (80) to 1.
Setting filetype for entry 'mkfs.ext4dev' in /sbin (80) to 1.
Setting filetype for entry 'fsck.ext3' in /sbin (80) to 1.
Setting filetype for entry 'mkfs.ext2' in /sbin (80) to 1.
Setting filetype for entry 'mkfs.ext3' in /sbin (80) to 1.
Setting filetype for entry 'e2fsck' in /sbin (80) to 1.
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

test.img: ***** FILE SYSTEM WAS MODIFIED *****
test.img: 799/65536 files (0.1% non-contiguous), 14652/262144 blocks

Now when run it again, we may get:
[snip]
Pass 3A: Optimizing directories
[snip]
test.img: ***** FILE SYSTEM WAS MODIFIED *****
test.img: 799/65536 files (0.1% non-contiguous), 14652/262144 blocks

This is fine since it is optimizing, from "man e2fsck":
e2fsck may sometimes optimize a few directories --- for example, if
directory indexing is enabled and a directory is not indexed and would
benefit from being indexed, or if the index structures are corrupted
and need to be rebuilt.

[YOCTO #8544]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: Added testcase decorators.
Daniel Istrate [Fri, 23 Oct 2015 12:07:51 +0000 (15:07 +0300)]
oeqa/selftest: Added testcase decorators.

Added testcase decorators for testopia integration.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-ifup: Check if the tap interface is set up correctly
Mariano Lopez [Thu, 22 Oct 2015 13:39:20 +0000 (13:39 +0000)]
runqemu-ifup: Check if the tap interface is set up correctly

The process to set up a tap interface is as follows:
    - tap interface is created
    - An IP address is assigned to the tap interface
    - The interface is bring up
    - A route is added to the target using the tap
      interface

Of all the previous steps, only the first one is
check if it was sucessful. The status of the others
are ignored and all of them are required to have
basic connectivity in the target.

This patch adds the checks for the rest of the stpes
needed to set up the tap interface.

[YOCTO #8550]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemurunner: Show the output of runqemu script
Mariano Lopez [Thu, 22 Oct 2015 13:39:19 +0000 (13:39 +0000)]
qemurunner: Show the output of runqemu script

This change will show runqemu output in the logs
when running the runtime tests. This is helpful
for debugging testimage errors.

[YOCTO #8550]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: Enable support for use virtio devices.
Aníbal Limón [Thu, 22 Oct 2015 15:18:39 +0000 (10:18 -0500)]
runqemu-internal: Enable support for use virtio devices.

Enable virtio usage for default in runqemu also get rid
of duplicate configuration from now all qemu machines uses
virtio.

[YOCTO #8427]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto{, -rt}: Enable support for virtio drivers in qemu machines.
Aníbal Limón [Thu, 22 Oct 2015 15:18:38 +0000 (10:18 -0500)]
linux-yocto{, -rt}: Enable support for virtio drivers in qemu machines.

In order to use virtio devices as default in runqemu script
because these drivers are designed to use in vrit providing
better performance.

[YOCTO #8427]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu: Enable support for kvm without vhost in x86 and x86_64
Aníbal Limón [Thu, 22 Oct 2015 15:18:37 +0000 (10:18 -0500)]
runqemu: Enable support for kvm without vhost in x86 and x86_64

KVM can be used without vhost so add a new option to runqemu for
use kvm with vhost.

Example,
runqemu qemux86 core-image-minimal kvm # kvm without vhost
runqemu qemux86 core-image-minimal kvm-vhost # kvm with vhost

[YOCTO #7443]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoprserv.bbclass: remove it since it is null
Robert Yang [Tue, 20 Oct 2015 09:25:50 +0000 (02:25 -0700)]
prserv.bbclass: remove it since it is null

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitscripts/sysfs.sh: Mount devtmpfs on /dev/ if needed
Mike Looijmans [Tue, 20 Oct 2015 06:43:47 +0000 (08:43 +0200)]
initscripts/sysfs.sh: Mount devtmpfs on /dev/ if needed

When booting from an initrd disk, or when the kernel config option
DEVTMPFS_MOUNT isn't provided, /dev/ will not be mounted at boot.

This small addition will check if /dev/ is "useful", and if not, will
mount devtmpfs if the kernel provides it.

With this change, it is possible to set an initscripts style image type
to "cpio.gz" and boot it as initrd. Without this change, the image won't
work properly because of the missing devices.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage-mklibs.bbclass: update i586 TARGET_ARCH test to i*86
Andre McCurdy [Wed, 21 Oct 2015 06:01:56 +0000 (23:01 -0700)]
image-mklibs.bbclass: update i586 TARGET_ARCH test to i*86

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobase.bbclass: considering multilib when setting LICENSE_EXCLUSION
Jian Liu [Thu, 8 Oct 2015 06:47:51 +0000 (14:47 +0800)]
base.bbclass: considering multilib when setting LICENSE_EXCLUSION

The PACKAGES is not mapped with MLPREFIX when setting LICENSE_EXCLUSION
in base.bbclass. For example,
  For libgcc-dev,
    LICENSE_EXCLUSION-libgcc-dev=1
   but for lib32-libgcc-dev,
    LICENSE_EXCLUSION-libgcc-dev=1
Obviously it is wrong for lib32-libgcc-dev.

Add MLPREFIX before the package name during setting LICENSE_EXCLUSION

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-target.inc: Add support for executable thats may have a suffix
Mark Hatle [Tue, 20 Oct 2015 16:29:37 +0000 (11:29 -0500)]
gcc-target.inc: Add support for executable thats may have a suffix

In the past GCC has used a wildcard to permit generating executables
that may have a suffix, such as .exe.  This wild card was lost in one
of the updates.  Adding the wild card back in fixes a number of issues
when generating a mingw gcc.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocairo: backport fix for compatibility with OpenGL ES 2.0
Andre McCurdy [Wed, 21 Oct 2015 03:20:35 +0000 (20:20 -0700)]
cairo: backport fix for compatibility with OpenGL ES 2.0

To maintain compatibility with OpenGL ES 2.0, the matrix in
_cairo_gl_shader_bind_matrix() should be manually transposed,
and GL_FALSE passed as the transpose argument to the
glUniformMatrix3fv() call as it is the only valid value for
that parameter in OpenGL ES 2.0.

  http://lists.cairographics.org/archives/cairo/2015-May/026253.html
  http://cgit.freedesktop.org/cairo/commit/?id=f52f0e2feb1ad0a4de23c475a8c020d41a1764a8

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomesa-demos: fix deadlock in sharedtex_mt
Awais Belal [Thu, 8 Oct 2015 14:16:57 +0000 (19:16 +0500)]
mesa-demos: fix deadlock in sharedtex_mt

This patch fixes a deadlock that occurs between the main
thread and rendering threads of the sharedtex_mt demo.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobzip2: fix bunzip2 -qt returns 0 for corrupt archives
Wenzong Fan [Wed, 14 Oct 2015 02:55:17 +0000 (22:55 -0400)]
bzip2: fix bunzip2 -qt returns 0 for corrupt archives

"bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file.
"bzip2 -qt FILE" returns 0 when this happens, although it does print out
an error message as is does so.

This has been fix by Debian, just port changes from Debian patch file
"20-legacy.patch".

Debian defect:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279025

Fix item from changelog:
http://archive.debian.net/changelogs/pool/main/b/bzip2/bzip2_1.0.2-7/changelog

  * Fixed "bunzip2 -qt returns 0 for corrupt archives" (Closes: #279025).

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognome-desktop: add xkeyboard-config dependency
Pushpal Sidhu [Wed, 21 Oct 2015 15:44:47 +0000 (08:44 -0700)]
gnome-desktop: add xkeyboard-config dependency

gnome-desktop will fail during do_configure if xkeyboard-config had not already
been built. Please see the following for the error:

| configure: error: Package requirements (gdk-pixbuf-2.0 >= 2.21.3
|                                  gtk+-3.0 >= 3.3.6
|                                  glib-2.0 >= 2.38.0
|                                  gio-2.0 >= 2.38.0
|                                  gsettings-desktop-schemas >= 3.5.91
|                                  xrandr >= 1.3
|                                  xext >= 1.1
|                                  xkeyboard-config
|                                  iso-codes) were not met:
|
| No package 'xkeyboard-config' found

Add dependency of xkeyboard-config to this to resolve this issue.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+3: Do not try to initialize GL without libgl
Jussi Kukkonen [Wed, 21 Oct 2015 13:25:31 +0000 (16:25 +0300)]
gtk+3: Do not try to initialize GL without libgl

Gdk initialization ends up calling epoxy GLX api, which calls exit()
if libGL.so.1 is not present. In practice this prevents all GTK+
applications from starting if GLX is not present.

If opengl and x11 distro features are set, make gtk+3 RDEPEND on libgl.
If opengl and x11 distro features are not set, use #ifdef to prevent
the GL initialization.

Remove libgl dependency from gtk3-demo: it can now run without
libgl (although trying to run the glarea demo will exit in that case).

[YOCTO #8529]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/insane: rename invalid-pkgconfig QA check to invalid-packageconfig
Paul Eggleton [Wed, 21 Oct 2015 13:18:50 +0000 (14:18 +0100)]
classes/insane: rename invalid-pkgconfig QA check to invalid-packageconfig

We have enough confusing name clashes already, let's not precipitate
another one.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouclibc: Implement syncfs and AT_EMPTY_PATH for all and O_PATH for arm
Khem Raj [Fri, 16 Oct 2015 07:50:20 +0000 (00:50 -0700)]
uclibc: Implement syncfs and AT_EMPTY_PATH for all and O_PATH for arm

needed for systemd 225 to compile with uclibc

Change-Id: Id5f990edf4a773de49742f9f9ea5139e55e21f69
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosystemd: Fix build with uclibc
Khem Raj [Fri, 16 Oct 2015 07:48:59 +0000 (00:48 -0700)]
systemd: Fix build with uclibc

225 needs additional patches for cater for new APIs used
in systemd

Change-Id: Idb66c2c6bb65c94b52ba35b276ca12cc868b043e
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibtirpc: Fix a bug exposed by uclibc
Khem Raj [Fri, 16 Oct 2015 07:47:17 +0000 (00:47 -0700)]
libtirpc: Fix a bug exposed by uclibc

to have va_list we need to include stdarg.h no matter what
but it was latent since with glibc it was getting pull in silently
via other headers

Change-Id: Ie5f1af4c1374fa525647fcb3ae936ec525a99da1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpam: Fix build with uclibc
Khem Raj [Fri, 16 Oct 2015 07:45:54 +0000 (00:45 -0700)]
libpam: Fix build with uclibc

libpam needs to adjust for posix utmpx
uclibc now disables utmp

Change-Id: Ibcb7cb621527f318eb8b6e2741647ccb4c6bb39c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocoreutils: Do not use host paths in getloadavg.m4
Khem Raj [Tue, 13 Oct 2015 20:47:51 +0000 (20:47 +0000)]
coreutils: Do not use host paths in getloadavg.m4

helps configure QA pass when building for uclibc

Change-Id: I42e9542829bc3678ee777d0a8768aecdf77eaead
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocoreutils-6.9: Add missing dependency on virtual/libiconv
Khem Raj [Tue, 13 Oct 2015 03:43:10 +0000 (03:43 +0000)]
coreutils-6.9: Add missing dependency on virtual/libiconv

Surfaces on uclibc where libiconv is not coming from libc but from
separate package.

Change-Id: I8eef52a69d2b6830deff94531631ca098bce2a89
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouclibc: Fix build with gcc5
Khem Raj [Thu, 15 Oct 2015 00:43:12 +0000 (17:43 -0700)]
uclibc: Fix build with gcc5

An agressive optimization in gcc5 meant that we get linking errors
with uclibc build, this patch fixes the issue by letting gcc know
that these funcitons are used.

Change-Id: I8ecf3999a0855b3bbf4bc2df576be5351f9be5b0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibtirpc: Refresh uclibc patches
Khem Raj [Wed, 14 Oct 2015 05:00:11 +0000 (22:00 -0700)]
libtirpc: Refresh uclibc patches

patch fails to apply otherwise

Change-Id: Ic16912e6e0e8ba75253a4aa0b357b91cabefbf5c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpcbind: Fix build with uclibc
Khem Raj [Tue, 13 Oct 2015 03:40:56 +0000 (03:40 +0000)]
rpcbind: Fix build with uclibc

The 0001-uclibc-nss.patch has been applied upstream
in a bit different way but solves the issue at hand

Change-Id: I7312d109d01c08338d4673383e2eaccee219b7bd
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/oe-publish-sdk: create directory before making git repo
Costin Constantin [Thu, 22 Oct 2015 14:16:12 +0000 (17:16 +0300)]
scripts/oe-publish-sdk: create directory before making git repo

This patch fixes a small bug that prevents seting a git repo in exported SDK
layers dir. Before setting a git repo, that directory needs to be created.

[ YOCTO #6659 ]

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorootfs.py: add more info to the warning message
Ed Bartosh [Wed, 21 Oct 2015 16:18:08 +0000 (16:18 +0000)]
rootfs.py: add more info to the warning message

Since the log_check_regex can potentially be false positive it
makes sense to print the whole line where error is found.
This way user will be able to see the error and understand
if it's valid or not.

[YOCTO: #7789]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage signing: automatically export public keys
Markus Lehtonen [Fri, 16 Oct 2015 10:37:32 +0000 (13:37 +0300)]
package signing: automatically export public keys

Automatically export public key(s) of the signing key(s) from the gpg
keyring. Adds a new simple recipe that does the actual task of exporting
the keys.  This patch makes the RPM_GPG_PUBKEY and PACKAGE_FEED_GPG
PUBKEY settings obsolete.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopackage_manager: fail if signed feeds are enabled for ipk or dpkg
Markus Lehtonen [Fri, 16 Oct 2015 10:33:00 +0000 (13:33 +0300)]
package_manager: fail if signed feeds are enabled for ipk or dpkg

Signed package feeds are not yet implemented for these package formats.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoAdd new bbclass for package feed signing
Markus Lehtonen [Fri, 16 Oct 2015 10:25:34 +0000 (13:25 +0300)]
Add new bbclass for package feed signing

After this change signed package feeds should be enabled by adding
INERIT += "sign_package_feed"
instead of definining PACKAGE_FEED_SIGN="1".

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agosign_rpm.bbclass: make RPM_GPG_NAME a mandatory setting
Markus Lehtonen [Thu, 15 Oct 2015 11:35:20 +0000 (14:35 +0300)]
sign_rpm.bbclass: make RPM_GPG_NAME a mandatory setting

Simplifies the configuration. Makes way for the removal of
RPM_GPG_PUBKEY setting and possible future implementation of a separate
signing server support. Also, moves the configuration sanity checking
into a separate function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agosign_rpm.bbclass: be more verbose in case of error
Markus Lehtonen [Thu, 15 Oct 2015 11:19:15 +0000 (14:19 +0300)]
sign_rpm.bbclass: be more verbose in case of error

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopackage_manager: support GPG_PATH variable
Markus Lehtonen [Wed, 14 Oct 2015 13:54:42 +0000 (16:54 +0300)]
package_manager: support GPG_PATH variable

If defined, use GPG_PATH as the gpg home directory when signing package
feeds. This setting is only used by package_manager if package feed
singning has been enabled, i.e.  PACKAGE_FEED_SIGN="1".

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agosign_rpm.bbclass: introduce GPG_PATH variable
Markus Lehtonen [Wed, 14 Oct 2015 13:46:39 +0000 (16:46 +0300)]
sign_rpm.bbclass: introduce GPG_PATH variable

This bitbake configuration variable can be used to define the gpg home
directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoapr: remove conflict with ccache
Dmitry Eremin-Solenikov [Mon, 19 Oct 2015 14:19:15 +0000 (17:19 +0300)]
apr: remove conflict with ccache

If ccache is enabled, compiling apr-utils fails with the following error
messages because libtool is confused by the "ccache gcc" appearing on
the command line. Disable ccache for apr, so that ccache don't get
enabled in all software using apr's rules.mk.

The error message from apr-utils-native:

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto: nf_tables: Add nf_tables feature
Bruce Ashfield [Fri, 23 Oct 2015 20:18:30 +0000 (16:18 -0400)]
linux-yocto: nf_tables: Add nf_tables feature

Updating the META SRCREVs to make the nf_tables feature available.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.19: fix ARM boot with gcc5.x
Bruce Ashfield [Fri, 23 Oct 2015 20:18:33 +0000 (16:18 -0400)]
linux-yocto/3.19: fix ARM boot with gcc5.x

Updating the SRCREVs to apply the same fix as 3.14 and 4.1 already
have to fix qemuarm boots with gcc5.x

[YOCTO: #8415]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: skip kernel meta data branches when finding machine branch
Bruce Ashfield [Fri, 23 Oct 2015 20:18:32 +0000 (16:18 -0400)]
linux-yocto: skip kernel meta data branches when finding machine branch

Before the fetcher validated the specified SRCREV was reachable on a
specified branch, linux-yocto style kernel's were comparing the value
of KBRANCH and branch on the SRC_URI and then allowing a SRC_URI
specified branch to override KBRANCH.

With the introduction of kernel meta data on the SRC_URI, this routine
is incorrectly picking up a kernel-cache repository and then attempting
to apply that branch information to the kernel repository.

The rationalization of the branch specification is largely no longer
required, and will may be removed in the future. But for now, to keep
changes minimal, we can simply not return branch information that comes
from kernel meta data by checking the 'type' parameter and skipping
if it is of type 'kmeta'.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokern-tools: avoid duplicate .scc file processing
Bruce Ashfield [Fri, 23 Oct 2015 20:18:31 +0000 (16:18 -0400)]
kern-tools: avoid duplicate .scc file processing

With the recent changes to improve patch processing times, the ability
to skip already applied patches is not active by default.

The automatic detection and resume was hiding issues with the include
files generated by scripts like yocto-bsp.

If a .scc file that contains a patch is included twice, the patch is
applied twice, and the second appliation fails for obvious reasons.

We can partially fix this by ensuring that already included
configuration fragments are not forced into the meta-series.

.scc files that are explicitly listed twice will continue to fail, and
recipes must be modified to avoid this.

[YOCTO: #8486]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: drm/i915: Fix the VBT child device parsing for BSW
Bruce Ashfield [Fri, 23 Oct 2015 20:18:29 +0000 (16:18 -0400)]
linux-yocto/4.1: drm/i915: Fix the VBT child device parsing for BSW

Updating the 4.1 SRCREVs to integrate the following fix:

[
    drm/i915: Fix the VBT child device parsing for BSW

    Recent BSW VBT has a VBT child device size 37 bytes instead of the 33
    bytes our code assumes. This means we fail to parse the VBT and thus
    fail to detect eDP ports properly and just register them as DP ports
    instead.

    Fix it up by using the reported child device size from the VBT instead
    of assuming it matches out struct defintions.

    The latest spec I have shows that the child device size should be 36
    bytes for rev >= 195, however on my BSW the size is actually 37 bytes.
    And our current struct definition is 33 bytes.

    Feels like the entire VBT parses would need to be rewritten to handle
    changes in the layout better, but for now I've decided to do just the
    bare minimum to get my eDP port back.

Cc: Vijay Purushothaman <vijay.a.purushothaman@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    (cherry picked from commit 90e4f1592bb6e82f6690f0e05a8aadcf04d7bce7)
Signed-off-by: abdul arif abdul muttalib
    <abdul.arif.b.abdul.muttalib@intel.com>
Signed-off-by: Tan Jui Nee <jui.nee.tan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: axxia configuration updates
Bruce Ashfield [Fri, 23 Oct 2015 20:18:28 +0000 (16:18 -0400)]
linux-yocto: axxia configuration updates

Updating the configuration fragments for the Intel Axxia on the 3.14
and 4.1 kernels.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Wed, 21 Oct 2015 22:13:03 +0000 (23:13 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver.bbclass: Fixes and improves archiver class for kernel and gcc packages
Alejandro Hernandez [Tue, 6 Oct 2015 23:05:09 +0000 (23:05 +0000)]
archiver.bbclass: Fixes and improves archiver class for kernel and gcc packages

gcc packages use a shared source directory, this causes an issue since the archiver will
try to patch the same source several times (one for each gcc package), producing an error,
the archiver class used stamp-base to check this, nonetheless our gcc packages no longer
use stamp-base, they use gcc-shared instead, which is what broke this functionality.
This patch adds a check to see whether or not the source should be patched,
avoiding patching the source when it shouldn't.

Also, we dont need to create multiple identical tarballs for all gcc packages,
this patch fixes this and creates a single source tarball for gcc.

When requesting patched sources, a race condition is created for linux-yocto tasks,
unpack_and_patch is executed along with kernel_configme, which most of the time
causes errors during configure, since kernel_configme task is specific to the kernel,
simply modifying the tasks order by creating a dependency to kernel_configme was impossible,
causing errors on all other packages that didnt use kernel_configme, this is fixed by
creating a special case for the kernel, adding tasks with correct dependencies,
avoiding the race condition and behaving the way it should for all other packages as well.

[YOCTO #8378]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: improve config writing and cleanup
Ross Burton [Mon, 19 Oct 2015 14:58:26 +0000 (15:58 +0100)]
oeqa/selftest: improve config writing and cleanup

The selftest.inc configuration file is deleted in both tearDown() and setUp() so
there's no need to use addCleanup() to remove statements from it.

Use write_config instead of append_config if the intention is to start from an
empty config file, for clarity.

Finally remove some misleading comments that claim that append_config() writes
to local.conf when it doesn't.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/wic: remove numbers from test names
Ross Burton [Fri, 16 Oct 2015 10:43:06 +0000 (11:43 +0100)]
oeqa/selftest/wic: remove numbers from test names

There isn't any required ordering of tests, and the numbers meant that the tests
didn't appear in oe-selftest --list-classes.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: clean up selftest.inc in teardown
Ross Burton [Fri, 16 Oct 2015 10:44:49 +0000 (11:44 +0100)]
oeqa/selftest: clean up selftest.inc in teardown

Test cases may want to do call bitbake in setUpClass() but at that point the
previous selftest.inc is still present which could change the build
configuration and result in any built artifacts being removed in the next
bitbake invocation as part of the sysroot clean up.

Resolve this by cleaning selftest.inc in the tearDown, the clean in setUp should
be considered a safety net.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/wic: fix cleaning
Ross Burton [Thu, 15 Oct 2015 15:53:47 +0000 (16:53 +0100)]
oeqa/selftest/wic: fix cleaning

In some situations the native tools built in setUpClass() are wiped from the
sysroot by the time the tests are executed, likely due to the cleanup performed
in the base setUp() method.

Avoid this by doing all of the preparatory building in setUpLocal.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/wic: corrected testcase decorator for test18_iso_image
Daniel Istrate [Thu, 15 Oct 2015 13:16:37 +0000 (16:16 +0300)]
oeqa/selftest/wic: corrected testcase decorator for test18_iso_image

Changed testcase decorator for TC test18_iso_image from 1264 to 1346.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: verify that devtool can use plugins in other layers
Ross Burton [Mon, 12 Oct 2015 11:55:04 +0000 (12:55 +0100)]
oeqa/selftest: verify that devtool can use plugins in other layers

In selftest we want to exercise devtool's ability to use plugins from other
layers, so add a basic command to reverse a string to meta-selftest and a test
in oe-selftest to call it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/buildoptions: Use the correct script for cleaning the workdir
Leonardo Sandoval [Wed, 14 Oct 2015 05:37:55 +0000 (05:37 +0000)]
oeqa/selftest/buildoptions: Use the correct script for cleaning the workdir

The script 'cleanupworkdir' does not exit, so changing it to 'cleanup-workdir'.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/bbtests: Updated bitbake TCs
Daniel Istrate [Tue, 13 Oct 2015 15:00:40 +0000 (18:00 +0300)]
oeqa/selftest/bbtests: Updated bitbake TCs

- Added new TC test_force_task_1 (1354);
check that do_package_write_rpm() re-executes
upon changes in package image.

- Updated TC test_force_task_2 (163);
changed test recipe to zlib and added
do_package() to the task execution list.

- Removed unnecessary imports.

Fix for bug [YOCTO #5875].

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/bbtests: clean up local DL_DIR/SSTATE_DIR safely
Ross Burton [Tue, 20 Oct 2015 12:49:04 +0000 (13:49 +0100)]
oeqa/selftest/bbtests: clean up local DL_DIR/SSTATE_DIR safely

Now that the selftests clean selftest.inc in the tearDown using bitbake in a
function passed to addCleanup (which happens after teardown) will use the
default configuration and not the customised one.

As the intention was to clean away the temporary DL_DIR and SSTATE_DIR, simple
use track_for_cleanup to delete the entire directory instead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/utils/ftools: From functions that expect data, check if None
Leonardo Sandoval [Mon, 19 Oct 2015 21:38:43 +0000 (21:38 +0000)]
oeqa/utils/ftools: From functions that expect data, check if None

ftools functions that expect data may get 'None'; this patch does this check
and return immediately if this is the case.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/utils/ftools: Ignore the exception if file does not exist
Leonardo Sandoval [Mon, 19 Oct 2015 21:38:42 +0000 (21:38 +0000)]
oeqa/utils/ftools: Ignore the exception if file does not exist

There may be cases where the configuration file (path) does not exist,
thus the remove_from_file should catch this exception. In case the exception
is not the latter (errno.ENOENT), then re-raise it.

[YOCTO #8540]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest/manifest.py: Test support for manifests
Benjamin Esquivel [Wed, 7 Oct 2015 19:41:23 +0000 (14:41 -0500)]
oeqa/selftest/manifest.py: Test support for manifests

adding support for tests to verify that manifest contents
contain entries that exist in an specified pkgdata dir

tests added:
 - manifest.VerifyManifest.test_image_manifest_entries
 - manifest.VerifyManifest.test_SDK_manifest_entries
test support written for future tests:
 -adding a setUpClass that supports other manifest tests
 -a get dir from bb var function that verifies if the dir exists
 -a ManifestEntry class defined with missing items list
 -check for the paths and fail gracefully if not there
 -debug prints for failure analysis

[YOCTO#8028]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouseradd_base.bbclass: Do not warn without a reason
Peter Kjellerstedt [Tue, 20 Oct 2015 17:14:14 +0000 (19:14 +0200)]
useradd_base.bbclass: Do not warn without a reason

In c0da4270c76375a7a8cbcc09319fe4570ebbc5bd two bbwarn were changed to
bbnote for the case where an added user or group already exists. The
same should have been done for groupmems, groupdel and userdel as well
since the warnings that are currently generated are superflouous.

The two remaining similar bbwarn for groupmod and usermod are left as
is since there they actually make sense.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: disable Valgrind
Ross Burton [Tue, 20 Oct 2015 21:19:08 +0000 (22:19 +0100)]
qemu: disable Valgrind

Qemu has an automatic dependency on valgrind which cannot be disabled, which
causes non-deterministic builds and build failures.  As Valgrind wasn't enabled
previously make this deterministic by forcibly disabling it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoi2c-tools: fix inverted RDEPENDS
Matt Madison [Tue, 20 Oct 2015 14:28:05 +0000 (07:28 -0700)]
i2c-tools: fix inverted RDEPENDS

The runtime dependency between i2c-tools and i2c-tools-misc was
backwards when the packages were split.  With this change,
including i2c-tools in an image no longer drags in perl.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: remove spurious build dependencies
Ross Burton [Mon, 19 Oct 2015 21:42:47 +0000 (22:42 +0100)]
rpm: remove spurious build dependencies

make, patch and binutils are assumed to exist on the host, so there's no need to
have them in DEPENDS and can result in the building of make-native for no good
reason.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.2: Fix various _FOR_BUILD and related variables
Mark Hatle [Mon, 19 Oct 2015 15:29:49 +0000 (10:29 -0500)]
gcc-5.2: Fix various _FOR_BUILD and related variables

When doing a FOR_BUILD thing, you have to override CFLAGS with
CFLAGS_FOR_BUILD. And if you use C++, you also have to override
CXXFLAGS with CXXFLAGS_FOR_BUILD.
Without this, when building for mingw, you end up trying to use
the mingw headers for a host build.

The same goes for other variables as well, such as CPPFLAGS,
CPP, and GMPINC.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: fix file permission for /etc/pam.d/sudo
Chen Qi [Mon, 19 Oct 2015 03:16:41 +0000 (11:16 +0800)]
sudo: fix file permission for /etc/pam.d/sudo

The file permission should be 0644 instead of 0664.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssh: fix file permission for /etc/pam.d/sshd
Chen Qi [Mon, 19 Oct 2015 03:16:40 +0000 (11:16 +0800)]
openssh: fix file permission for /etc/pam.d/sshd

The file permission should be 0644 instead of 0755.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: expand warning when chmod fails
Alex Franco [Fri, 16 Oct 2015 22:51:12 +0000 (17:51 -0500)]
sanity.bbclass: expand warning when chmod fails

As suggested, add exception message to warning in
sanity.bbclass when chmod fails on TMPDIR.

[YOCTO #7669]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopopulate SDK: prepare calling of bb.utils for exceptions
Benjamin Esquivel [Fri, 16 Oct 2015 21:50:08 +0000 (16:50 -0500)]
populate SDK: prepare calling of bb.utils for exceptions

bb.utils.remove, bb.utils.movefile and bb.utils.mkdirhier can throw
exceptions that need handling and proper error messages
more work is required for these methods to handle properly the
exceptions that can be raised within the various OS calls they make
but this is a start to at least not hide the errors in the requested
operations

[YOCTO#8213]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: handle virtual providers
Paul Eggleton [Wed, 14 Oct 2015 18:19:23 +0000 (19:19 +0100)]
devtool: handle virtual providers

For modify / extract / upgrade, if the specified "recipe" is not
actually a recipe but a virtual target such as virtual/kernel, map it
correctly to the actual recipe and make sure we use that name within the
workspace. Thanks to Chris Larson for reminding me this was still broken
and for a hint on how to fix it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibc-package: Fix localedef multilib dependency issues
Richard Purdie [Mon, 19 Oct 2015 16:41:16 +0000 (17:41 +0100)]
libc-package: Fix localedef multilib dependency issues

Building nativesdk-glibc-locale results in many messages like:

QA Issue: nativesdk-locale-base-en-sg rdepends on localedef, but it isn't a build dependency? [build-deps]

It should depend on ${MLPREFIX}localedef, not just localedef
to fix these warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: print full-length title underline
Paul Eggleton [Mon, 19 Oct 2015 16:33:12 +0000 (17:33 +0100)]
toolchain-shar-extract.sh: print full-length title underline

Print a line that's the full length of the title that it's underneath.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: detect and warn if running in OE environment
Paul Eggleton [Mon, 19 Oct 2015 16:33:11 +0000 (17:33 +0100)]
classes/populate_sdk_ext: detect and warn if running in OE environment

If you run the extensible SDK environment setup script in a shell
session where oe-init-build-env has been run already, and attempt to use
the two together, strange things happen - you may not even be running
devtool from the extensible SDK, but the OE tree. This isn't a supported
use case anyway, so show a warning recommending starting a new shell
session.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: add note to env setup script
Paul Eggleton [Mon, 19 Oct 2015 16:33:10 +0000 (17:33 +0100)]
classes/populate_sdk_ext: add note to env setup script

Print a note at the end of the environment setup script pointing to
devtool.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: prevent image construction from executing on install
Paul Eggleton [Mon, 19 Oct 2015 16:33:09 +0000 (17:33 +0100)]
classes/populate_sdk_ext: prevent image construction from executing on install

In order to prepare the build system within the extensible SDK, we
actually go ahead and build the targets specified by SDK_TARGETS (by
default the image the SDK was built for). Assuming that's an image, we
don't actually need to build the image itself - we just need to have
everything done up to the point before building the image, so that we
have everything needed in the sysroot.

In order to do this, create temporary bbappends for each of the targets
in the workspace layer that stub out do_rootfs and related tasks if they
exist. This is a little bit of a hack but is the least intrusive fix at
this point. To make things a bit tidier, I have split out the
preparation commands into a separate script so we can run that in the
appropriate environment rather than all the commands separately.

Fixes [YOCTO #7590].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: consistent indentation
Paul Eggleton [Mon, 19 Oct 2015 16:33:08 +0000 (17:33 +0100)]
classes/populate_sdk_ext: consistent indentation

Make indentation consistent here in preparation for the changes that
follow.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Fix setUp and tearDown methods
Mariano Lopez [Thu, 15 Oct 2015 06:29:38 +0000 (06:29 +0000)]
oeqa/runtime: Fix setUp and tearDown methods

Currently some of the runtime test overwrites
the setUp and tearDown methods provided by
oeRuntimeTest, this will avoid some checks
required when running the test suit.

This patch changes the setUp and tearDown methods
for their local counterparts, so when these
tests are called, it will run the parent setUp
and tearDown and also the local ones.

[YOCTO #8465]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooetest: Add tearDownLocal class
Mariano Lopez [Thu, 15 Oct 2015 06:29:37 +0000 (06:29 +0000)]
oetest: Add tearDownLocal class

In the current state there are some runtime test that
don't run the tearDown method fromm oeRuntimeTest class
because the tearDown class is overwritten in the child
class.

This change adds tearDownLocal method in oeRuntimeTest
class that will run after tearDown. This method can be
overwritten in the child classes to implement specific
test functionality.

[YOCTO #8465]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotest-empty-image: rename from core-image-empty
Alex Franco [Wed, 7 Oct 2015 15:51:12 +0000 (10:51 -0500)]
test-empty-image: rename from core-image-empty

As the empty image isn't a "core" image, and it's meant for testing

Additionally, don't set LICENSE as it is inherited from image

[YOCTO #7664]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/gen-lockedsig-cache: fix race with temp file creation
Paul Eggleton [Fri, 16 Oct 2015 10:34:39 +0000 (11:34 +0100)]
scripts/gen-lockedsig-cache: fix race with temp file creation

As part of populating the sstate-cache with an artifact (.tgz file) we
create a temp file and then atomically move it to the final name. Due to
the glob used in this script such temp files were being matched, and
between the time they were matched and the time the script started
copying files, the temp file may have vanished.

This fixes random "No such file or directory" failures building the
extensible SDK on build setups where the sstate-cache directory is shared
amongst multiple build machines.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage-live: make SYSLINUX_ROOT changable in image recipes
Chris Hallinan [Wed, 14 Oct 2015 16:14:35 +0000 (12:14 -0400)]
image-live: make SYSLINUX_ROOT changable in image recipes

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-shar-extract.sh: provide proper path for env_setup_script
Maxin B. John [Thu, 15 Oct 2015 07:00:40 +0000 (10:00 +0300)]
toolchain-shar-extract.sh: provide proper path for env_setup_script

The toolchain install script suggest the user to source env_setup_script
from wrong path now. eg:

" Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
$ . /opt/poky/2.0//opt/poky/2.0/environment-setup-armv5e-poky-linux-gnueabi
"

fix it.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/base: provide hints on PACKAGECONFIG error
Joe MacDonald [Wed, 14 Oct 2015 19:27:53 +0000 (15:27 -0400)]
classes/base: provide hints on PACKAGECONFIG error

Commit 771f89498c introduces an error message that is very rarely hit and
when it is, it is usually easy to trace the root cause very quickly.  The
information provided in the error message isn't enough to lead you back to
the actual failure, however, so expand upon it a bit, pinpointing the
specific package and flag that fails.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: extract: fix error handling
Paul Eggleton [Wed, 14 Oct 2015 15:43:24 +0000 (16:43 +0100)]
devtool: extract: fix error handling

If recipe parsing fails we need to exit out instead of attempting to use
the data object that's set to None, which resulted in a traceback.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agometadata_scm: rewrite git hash logic
Ross Burton [Tue, 13 Oct 2015 14:52:20 +0000 (15:52 +0100)]
metadata_scm: rewrite git hash logic

The code to get the git and branch hash for the current commit in a specific
repository was quite complex and prone to breakage, replace it with subprocess
and git rev-parse.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto-custom: fix typo in Upstream-Status tag
Ross Burton [Tue, 13 Oct 2015 12:56:22 +0000 (13:56 +0100)]
linux-yocto-custom: fix typo in Upstream-Status tag

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub-efi, gummiboot: Emit correct path in startup.nsh
Khem Raj [Sat, 10 Oct 2015 01:53:25 +0000 (01:53 +0000)]
grub-efi, gummiboot: Emit correct path in startup.nsh

when we generate hddimage and use it to prepare SD card
using scripts/contrib/mkefidisk.sh as described here

http://elinux.org/Minnowboard:MinnowMaxYoctoProject

The content of startup.nsh contains

bootx64.efi

but this file is actually not in same dir as startup.nsh
its in /EFI/BOOT so for this to work entry in startup.nsh
should be

fs0:\EFI\BOOT\bootx64.efi

Otherwise the image is D-O-A

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocoreutils: fix for native and nativesdk
Robert Yang [Sat, 10 Oct 2015 07:04:29 +0000 (00:04 -0700)]
coreutils: fix for native and nativesdk

The do_install_append is used for moving/renaming for ALTERNATIVE, but
it breaks native and nativesdk, for example there is no ln, but
ln.coreutils, that makes coreutils-native or nativesdk-coreutils doesn't
work. This patch fixes the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-4.x: fix wrong warning when using the universal zero initializer {0}
Kai Kang [Sat, 10 Oct 2015 07:27:07 +0000 (15:27 +0800)]
gcc-4.x: fix wrong warning when using the universal zero initializer {0}

When I upgrade efivar to 0.21, it fails to compile with error messages:

| linux.c:850:9: error: missing braces around initializer
[-Werror=missing-braces]
|   struct ifreq ifr = { 0, };
|          ^

It is a known issue of gcc. Backport patch from

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

to fix wrong warning when using the universal zero initializer {0}.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: reinstate changes reverted in 2014c upgrade
Paul Eggleton [Mon, 12 Oct 2015 13:49:11 +0000 (14:49 +0100)]
tzdata: reinstate changes reverted in 2014c upgrade

OE-Core commit 57af3fb9662106f0a65a1b4edf83e2398be0a8f1 upgraded tzdata
but also reverted a couple of changes to SUMMARY and LIC_FILES_CHKSUM.
Reinstate these (with an update to the README md5 value since that has
changed slightly, without any change to the licensing statements
within).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobuild-compare: drop PATCHTOOL setting
Paul Eggleton [Mon, 12 Oct 2015 13:49:10 +0000 (14:49 +0100)]
build-compare: drop PATCHTOOL setting

We don't need PATCHTOOL to be set to git in this recipe, and setting it
that way requires that the running user has git user & email configured,
which on a build server it might well not be.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocommon-licenses: use correct GFDL-1.1 license text
Paul Eggleton [Mon, 12 Oct 2015 13:49:09 +0000 (14:49 +0100)]
common-licenses: use correct GFDL-1.1 license text

It seems that the GFDL 1.1 license file that was originally committed
was actually the 1.2 version. Replace it with the 1.1 version fetched
from http://www.gnu.org/licenses/old-licenses/fdl-1.1.txt.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/image.py: Fix dependency handling for compressed types
Otavio Salvador [Tue, 13 Oct 2015 15:29:37 +0000 (12:29 -0300)]
lib/oe/image.py: Fix dependency handling for compressed types

The dependency code needs to also include the dependency of base
types. For example:

 - sdcard.gz image with ext4

The dependency chain needs to include:

 - sdcard
 - ext4
 - gz

Until this change, the ext4 dependency were not being taken into
account when using the compressed one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: Disable custom memory allocator
Aníbal Limón [Fri, 9 Oct 2015 22:21:44 +0000 (17:21 -0500)]
bash: Disable custom memory allocator

Bash is failing trying to allocate memory [1] using the custom
memory allocator if we disable it the issue is fixed.

The major distributions also disabled by default [2], so we
don't have a good reason to use it.

The underlying issue is due to bash’s malloc using brk() calls
to allocate memory, which fail when address randomization is
enabled in kernel. sbrk() based custom allocators are obsolete.
There may be some performance impact of this however correctness
is more important.

[YOCTO #8452]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c0
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c5

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoicu: fix install race
Ross Burton [Fri, 9 Oct 2015 16:50:41 +0000 (17:50 +0100)]
icu: fix install race

ICU was invoking install-local twice in parallel which can lead to install
failures as one install deletes files the other is attempting to chown.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowebkitgtk, gcr, libsecret: force ARM mode
Martin Jansa [Fri, 9 Oct 2015 15:11:29 +0000 (17:11 +0200)]
webkitgtk, gcr, libsecret: force ARM mode

* gcr, libsecret are new since switch to gcc 5.2
* webkitgtk is old but it was removed while migrating from
  webkit-gtk to webkitgtl (like REQUIRED_DISTRO_FEATURES were) :/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+3: gtk3-demo needs libgl
Jussi Kukkonen [Fri, 9 Oct 2015 12:20:55 +0000 (15:20 +0300)]
gtk+3: gtk3-demo needs libgl

The demo app uses OpenGL (within a GtkGLArea): it needs a runtime
dependency on a GL library. Current GTK+ can only handle
full GL (libGL.so.1) so RDEPEND on libgl.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>