]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agorunqemu-internal: Fixes unary operator expected in new TCPSERIAL_PORTNUM
Aníbal Limón [Wed, 26 Aug 2015 14:48:18 +0000 (09:48 -0500)]
runqemu-internal: Fixes unary operator expected in new TCPSERIAL_PORTNUM

If $TCPSERIAL_PORTNUM is empty string causes an error because
expands the expresion to,

$TCPSERIAL_PORTNUM == "" -> == ""

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-dev: update to 4.2-rc
Bruce Ashfield [Mon, 24 Aug 2015 18:50:10 +0000 (14:50 -0400)]
linux-yocto-dev: update to 4.2-rc

The -dev kernel is now tracking 4.2 content, so we update the
linux-yocto-dev recipes PV to match.

(From OE-Core rev: fc22f6ee38731e60b2bc15640fa697e5af663422)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: CIRRUS config and quark thermal support
Bruce Ashfield [Tue, 25 Aug 2015 14:38:58 +0000 (10:38 -0400)]
linux-yocto/4.1: CIRRUS config and quark thermal support

Updating the meta SRCREVs for the following changes:

  92977854ff52 graphics: disable CIRRUS DRM for qemumips and qemuppc
  57f4dc4dfe16 intel-quark: Enable thermal support

(From OE-Core rev: 5c9d414fc8e88cd5ef8e7e530ba4c5e788e03bb7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: enable DRM_CIRRUS_QEMU and EXT4_USE_FOR_EXT23
Bruce Ashfield [Fri, 21 Aug 2015 18:18:12 +0000 (14:18 -0400)]
linux-yocto/4.1: enable DRM_CIRRUS_QEMU and EXT4_USE_FOR_EXT23

Updating the meta SRCREV to enable cirrus graphics emulation and wider
compatibility for the ext4 driver.

[YOCTO: #7348]
[YOCTO: #6667]

(From OE-Core rev: 530c51e5354d5cd233b7015a3d0dfe94cb9cbaa1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: update to v4.1.6 and v4.1.6-rt5
Bruce Ashfield [Fri, 21 Aug 2015 17:23:22 +0000 (13:23 -0400)]
linux-yocto/4.1: update to v4.1.6 and v4.1.6-rt5

Bumping the SRCREVs to import the latest 4.1-stable and 4.1-rt changes.

(From OE-Core rev: 21fd4093bbd0177453a1e749d825cf510746f201)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: cleanups and gcc5 ARM build fixes
Bruce Ashfield [Thu, 20 Aug 2015 20:24:56 +0000 (16:24 -0400)]
linux-yocto/3.14: cleanups and gcc5 ARM build fixes

Updating the 3.14 SRCREVs to match the latest kernel meta data updates
and also to merge four patches Richard Purdie located that fix the
gcc 5.x ARM build (we still have boot issues, but building is the
first step).

(From OE-Core rev: 24a888ddd04e44f8a069364bfbde06871ad33ae8)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: quark configuration and thermal support
Bruce Ashfield [Thu, 20 Aug 2015 19:29:44 +0000 (15:29 -0400)]
linux-yocto/4.1: quark configuration and thermal support

Updating the 4.1 SRECREVs to reflect the following changes:

  74159a303c21 thermal: intel Quark SoC X1000 DTS thermal driver

  833214b33303 intel-quark-tiny: Add tiny KTYPE .scc file
  45ecab18d462 amd.cfg: Add X86_AMD_PLAFORM_DEVICE to default
  9a31d2cbc251 intel-quark-standard: add mass storage and boot live support
  4ea43922558a bsp: add coretemp to intel-common-drivers

(From OE-Core rev: e1aa475dd362d3545911b0677404ced644e394eb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.19/4.1: add coretemp to intel-common-drivers
Bruce Ashfield [Wed, 19 Aug 2015 19:39:57 +0000 (15:39 -0400)]
linux-yocto/3.19/4.1: add coretemp to intel-common-drivers

Updating the 3.19 and 4.1 meta SRCREVs to pull in the coretemp
configuration values.

Partial fix for [YOCTO #8107].

(From OE-Core rev: 4511961afca854d8006c0d058f46f8ba46f277c4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: fix qemuarm preempt-rt configuration
Bruce Ashfield [Tue, 18 Aug 2015 17:55:11 +0000 (13:55 -0400)]
linux-yocto/4.1: fix qemuarm preempt-rt configuration

With the recent changes to the kernel meta data handling and the
removal of BSP branches, we need to shuffle some patches around to
match.

This prevents patches from being applied twice, and the qemuarm BSP
can be configured for preempt-rt.

[YOCTO: #8122]

(From OE-Core rev: b6b7a80440521a8e82cfe6c56dddedf061de6208)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/patch: handle patches that delete files with older git
Paul Eggleton [Fri, 28 Aug 2015 09:13:20 +0000 (10:13 +0100)]
lib/oe/patch: handle patches that delete files with older git

When running "git add" on a directory with older git versions, deleted
files aren't added to what is to be committed unless you explicitly
specify the -A option. The result of this is that when applying a patch
from a recipe which doesn't apply with "git am" (and we fall back to
applying the patch through other means then "git add" following by
a "git commit") these deletes weren't committed with the patch, leaving
them sitting deleted but not committed at the end.

This should fix test_devtool_modify_native (which unwittingly exercises
this scenario by attempting to run "devtool modify" on apt-native) on
machines with older git versions.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoos-release: Exclude DATETIME from sstate signature
Richard Purdie [Tue, 25 Aug 2015 16:58:55 +0000 (17:58 +0100)]
os-release: Exclude DATETIME from sstate signature

I'm torn over this, I can see someone wanting this to vary in each
build. What pushed me to believe its incorrect in its current form
is that it changes for every MACHINE build, making a complete mess
if you try and generate package feeds using it.

The alternative would be to give up on allarch in this case and make
it MACHINE specific which at least would then be more consistent when
the package makes it to a package feed. If someone wants to do that,
the can propose another patch but this change at least make package
feed usage 'sane' again and avoids the perpetual rebuilds.

Incidentally, its worth noting that changes in source metadata revision
used for the build and included in this recipe would still trigger
rebuilds which is likely the common use case people actually care about.

(From OE-Core rev: 46de6f6eb9c4387298fafb48fb9c36abc3ff48a4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Add several allarch dependency exclusions
Richard Purdie [Tue, 25 Aug 2015 16:58:12 +0000 (17:58 +0100)]
layer.conf: Add several allarch dependency exclusions

These are dependencies that our allarch packages have in OE-Core that cause
those allarch packages to rebuild every time MACHINE changes.

With these changes, OE-Core allarch packages all have a common sstate
signatures and no longer rebuild.

(From OE-Core rev: 63bff90fa4fb4a95e8c79f9f8e5dd90ae1dfc69d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage_*.bbclass: Ensure OVERRIDES doesn't change sstate signature
Richard Purdie [Tue, 25 Aug 2015 16:57:37 +0000 (17:57 +0100)]
package_*.bbclass: Ensure OVERRIDES doesn't change sstate signature

Changes to OVERRIDES (e.g. from changing MACHINE) should not change
the sstate signatures of do_package_write_*. Exclude the variable
explicitly in the package classes to avoid this.

(From OE-Core rev: 5826a9260138c437f87ba1a9f84d5c08442b997d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: Optimise sstate tests
Richard Purdie [Tue, 25 Aug 2015 16:56:12 +0000 (17:56 +0100)]
oeqa: Optimise sstate tests

We can use "none" here instead of printdiff for some small performance
gains. This also means we can remove the ignore exit code hack which
leads to safer code.

Also drop an unused variable.

(From OE-Core rev: e2b8d6fa45b1ae530be2ffabf48ea61d4c467066)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agojpeg: update to version 9a
Alexander Kanavin [Thu, 4 Jun 2015 10:21:50 +0000 (13:21 +0300)]
jpeg: update to version 9a

Previous webkit version was blocking this; latest webkit works fine.

(From OE-Core rev: 5d9d179023857c53801e24b18f9b3051d9c84145)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-video-intel: fix missing fstat() prototype
Ross Burton [Tue, 25 Aug 2015 09:23:26 +0000 (10:23 +0100)]
xf86-video-intel: fix missing fstat() prototype

What I'm guessing is an updated systemd exposes less system headers, so
xf86-video-intel was using fstat() without the required includes.

Backport a patch from upstream to fix this problem.

(From OE-Core rev: 3f38c912384d7398516f689bc5934d36cbfdd4d0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibatomic-ops: move to recipes-support, fix recipe name
Christopher Larson [Mon, 24 Aug 2015 22:19:44 +0000 (15:19 -0700)]
libatomic-ops: move to recipes-support, fix recipe name

- This recipe is useful for more than just pulseaudio, so move it to
  recipes-support.
- Rename to the correct upstream name, which corresponds to the library name.
  Keep a PROVIDES of libatomics-ops for compatibility.

(From OE-Core rev: 5014de67fa6da1672626e3ec92fc51430fca3262)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibunwind: always depend on libatomics-ops
Christopher Larson [Mon, 24 Aug 2015 22:19:43 +0000 (15:19 -0700)]
libunwind: always depend on libatomics-ops

- Depend on libatomics-ops unconditionally for all archs, as it's used by more
  than just arm, and currently the configure script auto-detects and enables
  its use based on the existence of its header, resulting in non-deterministic
  builds.
- Drop the ldflags bits which link against libatomic_ops, because libunwind
  doesn't actually link against it, nor does it need to, as it currently uses
  all inline functions from the header file.

(From OE-Core rev: 83bb89502e2f05b8b78b14532ad96abc400ab264)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk.bbclass: set sbindir to bindir
Christopher Larson [Mon, 24 Aug 2015 22:18:35 +0000 (15:18 -0700)]
nativesdk.bbclass: set sbindir to bindir

The sbindir vs bindir separation really doesn't mean much in this context, and
toolchain-scripts.bbclass doesn't add sbindir to the PATH, so set the former
to the latter.

(From OE-Core rev: 51a19850700bd96e3d2e104e1626aceb73a48e72)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoupdate-rc.d.bbclass: explicitly dep on initscripts
Christopher Larson [Mon, 24 Aug 2015 22:18:34 +0000 (15:18 -0700)]
update-rc.d.bbclass: explicitly dep on initscripts

update-rc.d doesn't just want an initscripts package, it wants
initscripts-functions. In the case where VIRTUAL-RUNTIME_initscripts is set to
nothing, update-rc.d still needs initscripts-functions to satisfy its runtime
dependencies. Further, we shouldn't be using a *runtime* virtual in a *build
time* variable. This should resolve image creation failures with
configurations without sysv initscripts when a recipe inherits update-rc.d and
doesn't inherit systemd.

(From OE-Core rev: e6642ae0849e5ac3174c643a7693af25d829d6d1)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: re-run do_rootfs when feature packages change
Christopher Larson [Mon, 24 Aug 2015 22:18:33 +0000 (15:18 -0700)]
image.bbclass: re-run do_rootfs when feature packages change

Currently, FEATURE_PACKAGE_<feature> isn't in any vardeps, so changing the
packages for a feature won't change the checksum for do_rootfs. Rather than
explicitly adding those to vardeps, just use the expanded form of
FEATURE_INSTALL and FEATURE_INSTALL_OPTIONAL, so the actual list of packages
from the features goes into the checksum.

(From OE-Core rev: fdd1669e04bd8219344b1896b9d9c6a187e4f84e)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: set PATCHRESOLVE to noop by default
Christopher Larson [Mon, 24 Aug 2015 22:18:39 +0000 (15:18 -0700)]
bitbake.conf: set PATCHRESOLVE to noop by default

Automatically spawning a devshell, rather than doing so on demand, is
questionable default behavior, and is potentially problematic in headless
builds. Further, there are problems with the patch resolver today. Default to
noop, and the user can always opt-in to use of the patch resolver by setting
PATCHRESOLVE to user.

(From OE-Core rev: 7964936dd1fb202373e58048c19a91d4b27cdfd6)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: set USE_NLS based on DISTRO_FEATURES
Christopher Larson [Mon, 24 Aug 2015 22:18:38 +0000 (15:18 -0700)]
bitbake.conf: set USE_NLS based on DISTRO_FEATURES

If our libc doesn't support locales, we don't need gettext nls bits enabled.

(From OE-Core rev: f1bc8afa6ee584a81fb65bcf77e5ae1a8889f47c)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: unexport SHELL
Christopher Larson [Mon, 24 Aug 2015 22:18:37 +0000 (15:18 -0700)]
bitbake.conf: unexport SHELL

The user's shell shouldn't be allowed to affect the build (and it can break
the flock command and possibly more, if the user's shell isn't POSIX
compliant).

(From OE-Core rev: fc5e1cfcc3ab7acfb6e7e12cb2cf7fa4699ae7b3)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: Cache/define tool paths for target
Khem Raj [Sat, 15 Aug 2015 22:04:31 +0000 (15:04 -0700)]
systemd: Cache/define tool paths for target

Recently, systemd has added a patch

f00929ad622c978f8ad83590a15a765b4beecac9

where it now pokes at the system to find
out the path of mount/umount tools, this caused the builds to fail
because it ended up with identifying these programs from native sysroot
but they were actually meant for target, this lead to boot failures due
to none of mount worked because the paths are encoded into systemd
binaries during build time.

Correct few others while here, these are not yet detected wrongly in my
build, because those binaries are not found in my native sysroot but if
some one staged the native providers of these packages they will fail too.

(From OE-Core rev: 9d87fbc87276673d958a65d476d06fec96add8e7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocore-image-minimal: Add 4M extra space when using systemd
Khem Raj [Sat, 15 Aug 2015 22:02:16 +0000 (15:02 -0700)]
core-image-minimal: Add 4M extra space when using systemd

qemu images fail to rebuild the hwdb due to no space letf on device

 systemd-hwdb-update.service - Rebuild Hardware Database
   Loaded: loaded (/lib/systemd/system/systemd-hwdb-update.service;
   static; vendor preset: enabled)
      Active: failed (Result: exit-code) since Sat 2015-08-15 21:39:28
      UTC; 28s ago
      Docs: man:hwdb(7)
            man:systemd-hwdb(8)
        Process: 92 ExecStart=/bin/systemd-hwdb update
(code=exited, status=1/FAILURE)
 Main PID: 92 (code=exited, status=1/FAILURE)

 Aug 15 21:39:28 qemux86 systemd-hwdb[92]:
 Failure writing database //etc/udev/hwdb.bin:
 No space left on device
 Aug 15 21:39:28 qemux86 systemd[1]:
 systemd-hwdb-update.service: Main process
 exited, code=exited, status=1/FAILURE
 Aug 15 21:39:28 qemux86 systemd[1]: Failed to
 start Rebuild Hardware Database.

(From OE-Core rev: 4086c539d47bc837e775972016e1844a3676c8e7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodiffstat: Add TOOLCHAIN_OPTIONS to Linker calls
Khem Raj [Mon, 24 Aug 2015 01:31:20 +0000 (18:31 -0700)]
diffstat: Add TOOLCHAIN_OPTIONS to Linker calls

configure in this case does a novel thing where it drops all additional
compiler options from CC variable into CFLAGS which in OE's case include
the options added by TOOLCHAIN_OPTIONS and then it does exactly same for
LD as well, the problem starts when we miss the --sysroot options and
ABI options which are part of CC variables usually in OE, in the end it
assigns LD = CC but doesnt add newly separated CFLAGS to LDFLAGS hence
the compile still works since all those needed options are getting into
compiler cmdline but link step fails especially when using gold, since
it does not find --sysroot option on cmdline it starts to complain about
missing libraries and paths

This shows up with clang more so because clang does not have implicit
sysroot that it silently passes down to linker like gcc does when
confgured with sysroot

We see errors like

arm-angstrom-linux-gnueabi-clang -c -I.
-I/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/diffstat/1.60-r0/diffstat-1.60
-DHAVE_CONFIG_H   -D__extern_always_inline=inline -D_GNU_SOURCE -O2
-pipe -g -feliminate-unused-debug-types  -march=armv7-a -mthumb
-mfloat-abi=hard -mfpu=neon -no-integrated-as
--sysroot=/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/diffstat/1.60-r0/diffstat-1.60/diffstat.c
NOTE: make -j 16
arm-angstrom-linux-gnueabi-clang -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -o diffstat diffstat.o
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot open crt1.o: No such file or directory
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot open crti.o: No such file or directory
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot open crtbegin.o: No such file or directory
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot open crtend.o: No such file or directory
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot open crtn.o: No such file or directory
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot find -lgcc
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot find -lgcc
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot find -lgcc
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
error: cannot find -lgcc

(From OE-Core rev: ebee06dbf195b74791feb63c23a637324c1656e8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoliburcu: Fix atomic function parameter types in calls
Khem Raj [Mon, 24 Aug 2015 01:40:43 +0000 (18:40 -0700)]
liburcu: Fix atomic function parameter types in calls

__sync_val_compare_and_swap family specifically asks for proper types of
pointer type parameters, gcc does not notice it but clang does and sends
out errors calling it out.

(From OE-Core rev: 2767b6be71ca809f4a39ba9b8707b311b8334434)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: Remove exporting special CPP
Khem Raj [Sun, 23 Aug 2015 02:46:23 +0000 (19:46 -0700)]
systemd: Remove exporting special CPP

This is no more needed.
it was done long ago while systemd lived in meta-openembedded
http://lists.openembedded.org/pipermail/openembedded-commits/2012-August/141061.html
The accompanying patch has been applied to systemd already so we were
not needing to set CPP for sometime now.

as a nice side effect it helps compiling systemd with clang

(From OE-Core rev: b816e3f520bf71c9b681ccea30c8eefd62fb20a2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Define fallback DISTRO_NAME
Khem Raj [Sun, 23 Aug 2015 02:38:55 +0000 (19:38 -0700)]
bitbake.conf: Define fallback DISTRO_NAME

When using OE-Core only we miss this define and its now used in recipes
like os-release, which goes undefined and when booting we see messages
like

Welcome to ${DISTRO_NAME} nodistro.0!

This would change to
Welcome to OpenEmbedded nodistro.0!

Remove all trailing whitespaces while touching this file

(From OE-Core rev: cf2383a63975ac7a51729a313fe0a52b559d2c61)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomdadm: Upgrade mdadm_3.3.2.bb -> mdadm_3.3.4.bb
Khem Raj [Sat, 22 Aug 2015 15:52:58 +0000 (08:52 -0700)]
mdadm: Upgrade mdadm_3.3.2.bb -> mdadm_3.3.4.bb

Drop upstreamed patch for gcc5 compatibility
Forward port x32 patch

(From OE-Core rev: 2782ae4dfb417ba377f861283792d7d9929f2ae3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopsplash: Turn psplash_fb_plot_pixel() into static inline
Khem Raj [Sat, 22 Aug 2015 14:16:20 +0000 (07:16 -0700)]
psplash: Turn psplash_fb_plot_pixel() into static inline

This function is not used anywhere except psplash-fb.c so make it static
inline function which is portable across compilers

Fixes issues like
psplash-fb.o: In function `psplash_fb_draw_rect':
|
/mnt/home/kraj/work/angstrom/sources/openembedded-core/build/tmp-glibc/work/i586-oe-linux/psplash/0.1+gitAUTOINC+14c8f7b705-r15/git/psplash-fb.c:363:
undefined reference to `psplash_fb_plot_pixel'

(From OE-Core rev: 2429932c2dc1f81bf04f4377911094e2c8a04a19)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibvorbis: Update libvorbis_1.3.4.bb -> libvorbis_1.3.5.bb
Khem Raj [Sat, 22 Aug 2015 06:59:02 +0000 (23:59 -0700)]
libvorbis: Update libvorbis_1.3.4.bb -> libvorbis_1.3.5.bb

Licence years have changes causing checksum changes

-Copyright (c) 2002-2008 Xiph.org Foundation
+Copyright (c) 2002-2015 Xiph.org Foundation

(From OE-Core rev: cb034175054ae31f7065677ba36b6a45dc067be0)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agojson-c: Include math_compat.c for NAN/INF values
Khem Raj [Sat, 22 Aug 2015 06:26:38 +0000 (23:26 -0700)]
json-c: Include math_compat.c for NAN/INF values

The backport patch also fixes the warning which was being work arounded
by disabling unused-but-set-variable

(From OE-Core rev: ebce241d0badff0a12b4c03a428720e0b4a59f32)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosysvinit: Fix makefile bug found with clang
Khem Raj [Sat, 22 Aug 2015 15:58:10 +0000 (08:58 -0700)]
sysvinit: Fix makefile bug found with clang

This is due to specifying .h files on linker cmdline
clang driver is picky about it, and its not entirely correct
either

(From OE-Core rev: de45b5e68faeefe3d68818d456f280b98f397634)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian.bbclass: support for TCLIBC="baremetal"
Juro Bystricky [Sat, 22 Aug 2015 16:55:19 +0000 (09:55 -0700)]
cross-canadian.bbclass: support for TCLIBC="baremetal"

Allow "baremetal" builds.

(From OE-Core rev: 0cd3121058ea620c74622f1200c8040696b4d1d8)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgcc-common.inc: overrides for libc-baremetal
Juro Bystricky [Sat, 22 Aug 2015 16:55:18 +0000 (09:55 -0700)]
libgcc-common.inc: overrides for libc-baremetal

Added TCLIBC="baremetal" specific overrides.

(From OE-Core rev: 044f989b34e46f919e6b28860d7a1b396b2c3808)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross.inc: overrides for libc-baremetal
Juro Bystricky [Sat, 22 Aug 2015 16:55:17 +0000 (09:55 -0700)]
gcc-cross.inc: overrides for libc-baremetal

Modifications to to support build for TCLIBC="baremetal"

(From OE-Core rev: 9e7da158e0e7628c22013fbee34270f7d2db621f)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross-canadian.inc: overrides for libc-baremetal
Juro Bystricky [Sat, 22 Aug 2015 16:55:16 +0000 (09:55 -0700)]
gcc-cross-canadian.inc: overrides for libc-baremetal

Modify configure arguments (EXTRA_OECONF) to support build for
TCLIBC="baremetal"

(From OE-Core rev: 87e81e469fd941fa1b41ded3e02644695cafd2dc)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotclibc-baremetal.inc: baremetal specific distro policy file
Juro Bystricky [Sat, 22 Aug 2015 16:55:15 +0000 (09:55 -0700)]
tclibc-baremetal.inc: baremetal specific distro policy file

Support for TCLIBC="baremetal".
Allows building "baremetal" toolchains.

(From OE-Core rev: f1972eea0145ca54f0c087c0f29fd2e54d6b95e8)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-lib: Lift the limitation to use gcc only cross compiler
Khem Raj [Sat, 22 Aug 2015 15:58:11 +0000 (08:58 -0700)]
alsa-lib: Lift the limitation to use gcc only cross compiler

alsa-lib configure tries to see that if CC variabled doesnt contain
'gcc' then it tries to guess and redefine CC to be something gcc, which
doesnt work with OE since we define CC to have sysroot and options
attached to it. So all tests fail when configure constructs the CC for
cross compiler like this. This portion is not needed at all

(From OE-Core rev: 33a7eb64cded61601c6ad6883e4d64ebe9ff547c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: implement build-image plugin
Ed Bartosh [Fri, 21 Aug 2015 13:00:57 +0000 (16:00 +0300)]
devtool: implement build-image plugin

Implemented new plugin to build image from workspace packages.

Plugin creates <image>.bbappend file, adds
all workspace packages to the image using IMAGE_INSTALL_append
variable in bbappend file. After that it runs 'bitbake <image>'.

(From OE-Core rev: 00bc43868da3ea2a4532215d3abef8e150c7b2e5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: make add_md5 a public API
Ed Bartosh [Fri, 21 Aug 2015 12:57:00 +0000 (15:57 +0300)]
devtool: make add_md5 a public API

Moved _add_md5 function from standard.py to __init__.py to
be able to call it from other modules.

(From OE-Core rev: ee38bb20dc7ba21dac782d8d13383f81dfedef55)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoharfbuzz: upgrade to 1.0.2
Cristian Iorga [Mon, 24 Aug 2015 14:30:13 +0000 (17:30 +0300)]
harfbuzz: upgrade to 1.0.2

Bugfix release.

(From OE-Core rev: 71dbd7cc2333fdf830f0f483774faeadbb0e2236)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobtrfs-tools: 4.1.1 -> 4.1.2
Robert Yang [Thu, 20 Aug 2015 06:42:26 +0000 (23:42 -0700)]
btrfs-tools: 4.1.1 -> 4.1.2

* Rename btrfs-tools_git.bb to btrfs-tools_4.1.2.bb
* Remove PV in the recipe.

(From OE-Core rev: 4b55d7e02cecc4f9cd5028185f9452f0c90cbf89)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-octeon.inc: add BASE_LIB settings
Dmitry Eremin-Solenikov [Thu, 20 Aug 2015 15:56:04 +0000 (18:56 +0300)]
tune-octeon.inc: add BASE_LIB settings

Provide BASE_LIB settings for octeon* tunes that follow the practice of
mips64/mips64-n32 tunes (lib64 for N64 ABI, lib32 for N32 ABI).

(From OE-Core rev: 2b52312174e52886b0a978ece41f66b4fb455604)

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-octeon.inc: correct packaging suffix
Dmitry Eremin-Solenikov [Thu, 20 Aug 2015 15:56:03 +0000 (18:56 +0300)]
tune-octeon.inc: correct packaging suffix

Octeon II/III binaries can contain instructions that are not compatible
with MIPS64 processors. Thus Octeon II/III packages should go to
separate directories. Set MIPSPKGSFX_VARIANT_tune-* to Octeon-specific
values and update PACKAGE_EXTRA_ARCHS_tune-* accordingly.

(From OE-Core rev: 69798449a8c1049728674dd352cf828063974cd0)

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooprofile: 1.0.0 -> 1.1.0
Robert Yang [Thu, 20 Aug 2015 06:48:10 +0000 (23:48 -0700)]
oprofile: 1.0.0 -> 1.1.0

* Remove backport patch filemode-fix.patch.
* Update --with-kernel=${STAGING_DIR_HOST}/${prefix} to find kernel
  headers (linux/*.h) to fix the error:
| checking kernel supports perf_events... unknown -- perf_event.h not found
| ERROR: You requested to build oprofile with '--with-kernel=/buildarea/lyang1/test_f2/tmp/work-shared/qemux86/kernel-source',
| but headers were not accessible at the given location.
| Be sure you have run the following command from within your kernel source tree:
|      make headers_install INSTALL_HDR_PATH=<kernel-hdrs-install-dir>
| Then pass <kernel-hdrs-install-dir> to oprofile's '--with-kernel' configure option.
| configure: error: Unable to build oprofile. Exiting.

(From OE-Core rev: b2200152deef0aec3cd8fe55bb73d6e8fccfe159)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognu-efi: 3.0.2 -> 3.0.3
Robert Yang [Thu, 20 Aug 2015 06:19:28 +0000 (23:19 -0700)]
gnu-efi: 3.0.2 -> 3.0.3

(From OE-Core rev: c731ecab0a6cb31198ec8270dc9381b14964dd3c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognupg: 2.1.6 -> 2.1.7
Robert Yang [Thu, 20 Aug 2015 06:04:48 +0000 (23:04 -0700)]
gnupg: 2.1.6 -> 2.1.7

(From OE-Core rev: 78b159bf753c43c78bb0f283add7d447b96e08f1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu-native: Enable temporary debug info as default.
Aníbal Limón [Fri, 28 Aug 2015 20:12:32 +0000 (15:12 -0500)]
qemu-native: Enable temporary debug info as default.

We recently enable backtrace print rev[1] for address
qemu_cpu_kick_thread() issue but without debug information
isn't useful.

[YOCTO #8143]

[1] 73a876e4ff04ebbbcd3bde62efe02146ab601e25

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: Increase devices timeout in QEMU machines to avoid failures on serial-getty
Aníbal Limón [Fri, 28 Aug 2015 16:15:01 +0000 (11:15 -0500)]
systemd: Increase devices timeout in QEMU machines to avoid failures on serial-getty

Systemd serial-getty is failing because dev-tty ends with timeout, systemd
uses a default timeout of 90 secs that it's reached on AB's production environment
due to high I/O loads (nfs).

When use QEMU is used without KVM support, the machine code is executed by TCG
(software code execution) that is dependent on devices layer and causes locks
 between TCG/Devices increasing the machine code execution time [1].

QEMU don't support configuration of device timeout always uses a default one that is
90 secs, so the next patch increases the device timeout to 240 secs [2] in order give
enough time to get devices ready. It ONLY applies on QEMU machines.

[YOCTO #8141]

[1] http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-and.html
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8141#c10

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-source: exlude from world
Randy MacLeod [Fri, 28 Aug 2015 03:09:47 +0000 (23:09 -0400)]
gcc-source: exlude from world

Exclude all versions of gcc-source from world builds so that:
   bitbake -c <stage> world
will work. gcc-source deletes most bitbake build stages
since it is a source-only package.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoEmpty image: filesystem allocation
Alex Franco [Wed, 26 Aug 2015 21:57:35 +0000 (16:57 -0500)]
Empty image: filesystem allocation

Increase sparse image block size when ROOTFS_SIZE is smaller than
the minimum needed for ext4 to fit into it.

[YOCTO #7664]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoEmpty image: package list splitting and iteration
Alex Franco [Wed, 26 Aug 2015 21:57:34 +0000 (16:57 -0500)]
Empty image: package list splitting and iteration

A few short fixes to splitting/iteration done over package lists
in license.bbclass, package_manager.py and rootfs.py.

[YOCTO #7664]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime/multilib: fix and improve multilib test
Ross Burton [Fri, 28 Aug 2015 23:43:13 +0000 (00:43 +0100)]
oeqa/runtime/multilib: fix and improve multilib test

Replace the previous shell magic with a Python function to parse the readelf
output, and fix the package names to include the lib32- prefix.

[ YOCTO #8219 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemuarm64.conf: Make the second serial console /dev/hvc0
Randy Witt [Fri, 28 Aug 2015 02:42:43 +0000 (19:42 -0700)]
qemuarm64.conf: Make the second serial console /dev/hvc0

Since the qemu for aarch64 must use a virtual console for the second
serial port rather than emulating actual hardware, make sure the correct
device is specified so that a tty is actually started.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosysvinit-inittab: Run ttys on ttys that don't have tty in the name
Randy Witt [Fri, 28 Aug 2015 02:40:18 +0000 (19:40 -0700)]
sysvinit-inittab: Run ttys on ttys that don't have tty in the name

On qemuarm64 the second serial port in SERIAL_CONSOLES will be hvc0.
Since that doesn't have tty in the name, a correct label didn't get
added to inittab.

This change makes both names with tty and without work.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobind: remove dependency on bind in bind-dev
Ross Burton [Thu, 27 Aug 2015 15:58:52 +0000 (16:58 +0100)]
bind: remove dependency on bind in bind-dev

bind doesn't ship shared libraries only static libraries, so the default
dependency on PN from PN-dev is pointless and means that an image with bind-dev
installed (via dhcp-dev's automatic dependency) ends up with named installed and
started on boot which is rarely intended.

If and when we ship bind's shared libraries we should ensure that the libraries
go into a separate package.

Also remove an old comment about --enable-exportlib which isn't supported by
configure anymore.

[ YOCTO #8216 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Don't loop on EWOULDBLOCK in logging thread.
Randy Witt [Thu, 27 Aug 2015 09:04:10 +0000 (02:04 -0700)]
qemurunner: Don't loop on EWOULDBLOCK in logging thread.

EAGAIN/EWOULDBLOCK can be followed by no data. So don't tight loop
waiting for data.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-internal: Make sure tcpserial is always last
Randy Witt [Wed, 26 Aug 2015 22:15:34 +0000 (15:15 -0700)]
runqemu-internal: Make sure tcpserial is always last

If this is not the case, sometimes the additional tcpserial will be
enumerated as ttyS0, which is not what we want. Because then it would be
the console, and qemurunner would not log things properly.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoruntime/syslog.py: fix syslog test crash
Costin Constantin [Wed, 26 Aug 2015 12:54:21 +0000 (15:54 +0300)]
runtime/syslog.py: fix syslog test crash

This patch fixes the ability to correctly identify syslog's package
name for the built image. It is derived from modifying oeqa/oetest.py
for [YOCTO #8170]

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/oetest.py: add better package search for hasPackage()
Costin Constantin [Fri, 21 Aug 2015 11:37:49 +0000 (14:37 +0300)]
oeqa/oetest.py: add better package search for hasPackage()

Modified hasPackage() to split the content of pacakage manifest file
in containing lines and search at the begining of each line the
existance of the needed pkg.

[YOCTO #8170]

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: In the logging thread retry on EAGAIN, EWOULDBLOCK
Randy Witt [Wed, 26 Aug 2015 07:15:15 +0000 (00:15 -0700)]
qemurunner: In the logging thread retry on EAGAIN, EWOULDBLOCK

On a nonblocking socket an exception can be generated for the EAGAIN
and EWOULDBLOCK errnos. Since these aren't actually errors make sure to
retry rather than bailing out.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibnotify: update to version 0.7.6
Alexander Kanavin [Wed, 10 Jun 2015 12:39:18 +0000 (15:39 +0300)]
libnotify: update to version 0.7.6

New webkit requires at least version 0.7

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemurunner: Shut down logging thread successfully when test fails
Randy Witt [Tue, 25 Aug 2015 20:58:47 +0000 (13:58 -0700)]
qemurunner: Shut down logging thread successfully when test fails

Before this change on a test failure an exception would be generated due
to runqemu being killed before the logging thread which was on the other
end of the socket.

The exception was actually correct saying there was no data on a socket
marked readable, but this was because the qemu process was killed before
the listener thread.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Increase layer version to 6
Richard Purdie [Tue, 25 Aug 2015 09:28:39 +0000 (10:28 +0100)]
layer.conf: Increase layer version to 6

This means we can use this as a test to enable certain autobuilder tests
such as testsdk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: Add a tcpserial option
Randy Witt [Mon, 24 Aug 2015 07:25:03 +0000 (00:25 -0700)]
runqemu: Add a tcpserial option

The option was added so that the qemurunner could start a second tcp
serial port without adding machine conditional logic to qemurunner.

The issue that made this necessary was that when "virt" is passed to
qemu-system-aarch64, the normal mechanism for specifying a tcp serial
port does not work. This is because the hardware for the "virt" machine
is hardcoded in the device tree blob and the addition devices must be
virtio devices.

So runqemu can specify virtio for qemuarm64 whereas it seems all other
qemu machines work with the "-serial tcp*" option.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Use two serial ports and log console with a thread
Randy Witt [Thu, 20 Aug 2015 20:01:25 +0000 (13:01 -0700)]
qemurunner: Use two serial ports and log console with a thread

qemu can freeze and stop responding if the socket buffer connected to a tcp
serial connection fills up. This happens of course when the reader of
the serial data doesn't actually read it.

This happened in the qemurunner code, because after checking for the
"login:" sentinel, data was never again read from the serial connection.

This patch solves the potential freeze by adding a thread to continuously
read the data from the console and log it. So it also will give a full log
of the console, rather than just up to the login prompt.

To simplify this patch, another serial port was also added to use for the
sole purpose of watching for the sentinel as well as being the interactive
serial port. This will also prevent the possibility of lots of debug
data on the console preventing the sentinel value from being seen due to
interleaved text.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemurunner: Make create_socket() return data and use exceptions
Randy Witt [Thu, 20 Aug 2015 17:55:17 +0000 (10:55 -0700)]
qemurunner: Make create_socket() return data and use exceptions

So that create_socket() can be called more than once to create sockets,
it now returns the socket and port rather than setting class variables
directly.

create_socket() now only uses exceptions for errors, not the return
value from the function.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemurunner.py: Move some class variables that should only be local
Randy Witt [Tue, 18 Aug 2015 23:44:25 +0000 (16:44 -0700)]
qemurunner.py: Move some class variables that should only be local

The bootlog and qemusock variables were set in the class as part of the
create_socket() routine. However those variables are never used outside
of the same function and thus serve no purpose as class variables.

This initializes those variables near where they are used.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibcap-ng: add package 0.7.7
Wenzong Fan [Fri, 21 Aug 2015 05:38:59 +0000 (01:38 -0400)]
libcap-ng: add package 0.7.7

Pull package from meta-oe to oe-core:
meta-oe commit: bce4dba5546480c8e43c6442959ac7d0a4ef32f6

The libcap-ng library is intended to make programming with posix
capabilities much easier than the traditional libcap library.

It's not a replacement to libcap, it provides different library
(libcap-ng.so) while packages explicitly look for libcap.so. It
could be used by qemu, util-linux, libvirt, audit ...

With adding it to oe-core, the copies from following layers could
be removed:

* meta-oe, meta-selinux, meta-security-framework ...

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoswig: add package 3.0.6
Wenzong Fan [Fri, 21 Aug 2015 05:38:58 +0000 (01:38 -0400)]
swig: add package 3.0.6

Ackage from meta-oe to oe-core:
meta-oe commit: 9cc54e10efa5ca70d9980f833a8e5a310e5ad21d

It's required for libcap-ng to build python bindings.

With adding it to oe-core, the copies from following layers could
be removed:

* meta-oe, meta-selinux, meta-intel-iot-middleware ...

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxf86-video-intel: enable xvmc feature by default and fix dependency
Reinette Chatre [Thu, 20 Aug 2015 21:34:33 +0000 (14:34 -0700)]
xf86-video-intel: enable xvmc feature by default and fix dependency

XvMC extends the X Video extension (Xv) and enables hardware rendered
motion compensation support. In a test build enabling this feature
increased the size of the xf86-video-intel package from 1386841 to
1847154 bytes.

When we enable the xvmc feature in xf86-video-intel we see the
following QA issue reported:
QA Issue: xf86-video-intel rdepends on xcb-util, but it isn't
a build dependency?

We fix this by ensuring the build dependencies are set correctly when
the xvmc feature is enabled.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_rpm.bbclass : escape "%" in files and directories name
Sébastien Mennetrier [Wed, 20 May 2015 14:48:19 +0000 (16:48 +0200)]
package_rpm.bbclass : escape "%" in files and directories name

The rpm process replace all the "%name" in the spec file by the name of
the package. So, if the package is composed of some files or directories
named "%name...", the rpm package process failed.

Replace all "%" present in files or directories names by "%%%%%%%%" to
correctly escape "%" due to the number of times that % is treated as an
escape character.  Jeff Johnson says this is the Right Thing To Do.

[ YOCTO #5397 ]

Signed-off-by: Sébastien Mennetrier <smennetrier@voxtok.com>
Signed-off-by: Michaël Burtin <mburtin@voxtok.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackagegroup-qt*-toolchain-target: fix hard dependency on phonon library
Paul Eggleton [Thu, 20 Aug 2015 08:10:16 +0000 (09:10 +0100)]
packagegroup-qt*-toolchain-target: fix hard dependency on phonon library

Having disabled phonon by default in Qt4 we need to ensure this
packagegroup is still buildable when it's not available.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoservice: tweak example recipe
Paul Eggleton [Wed, 5 Aug 2015 08:42:07 +0000 (09:42 +0100)]
service: tweak example recipe

* Drop PR = "r0"
* Reorder lines so that packaging definitions are at the end

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agohello-mod: drop PV and PR
Paul Eggleton [Wed, 5 Aug 2015 08:41:08 +0000 (09:41 +0100)]
hello-mod: drop PV and PR

* PR = "r0" is the default, no need to set it (and most people won't
  need to set it anyway with the PR service)
* PV = "0.1" is already set by virtue of 0.1 being in the filename

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: replace assertTrue(False, ...) with fail(...)
Paul Eggleton [Wed, 5 Aug 2015 13:37:13 +0000 (14:37 +0100)]
oe-selftest: replace assertTrue(False, ...) with fail(...)

I'd somehow missed the existence of fail() when I wrote these. It's
preferable here so you don't get the somewhat useless "false is not
true" message in the case of failure.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/insane: fix QA check message referring to nativesdk
Paul Eggleton [Mon, 8 Jun 2015 09:35:35 +0000 (10:35 +0100)]
classes/insane: fix QA check message referring to nativesdk

nativesdk has been a prefix rather than a suffix for some time now.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/create-recipe: drop
Paul Eggleton [Thu, 23 Jul 2015 13:56:02 +0000 (14:56 +0100)]
scripts/create-recipe: drop

We have "recipetool create" (or "devtool add" which wraps it) instead
which works pretty well now, is written in Python and thus can call
into BitBake/OE code easily, and can do things that create-recipe can't;
any future improvements should go into recipetool and therefore I think
we'd rather people used it instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoman-pages: update to 4.02
Maxin B. John [Thu, 20 Aug 2015 11:11:27 +0000 (13:11 +0200)]
man-pages: update to 4.02

4.01 -> 4.02

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsbinitscripts: Upgrade 9.63 -> 9.64
Jussi Kukkonen [Thu, 20 Aug 2015 11:39:19 +0000 (14:39 +0300)]
lsbinitscripts: Upgrade 9.63 -> 9.64

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsof: Upgrade 4.88 -> 4.89
Jussi Kukkonen [Thu, 20 Aug 2015 11:39:18 +0000 (14:39 +0300)]
lsof: Upgrade 4.88 -> 4.89

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-*: Remove unused GSTREAMER_1_0_ORC variable
Carlos Rafael Giani [Thu, 20 Aug 2015 12:54:50 +0000 (14:54 +0200)]
gstreamer1.0-plugins-*: Remove unused GSTREAMER_1_0_ORC variable

Nobody sets this. The orc packageconfig already does everything we need.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins: Ensure the native OE orcc is used
Carlos Rafael Giani [Thu, 20 Aug 2015 12:54:49 +0000 (14:54 +0200)]
gstreamer1.0-plugins: Ensure the native OE orcc is used

Without this, gstreamer configure scripts may choose the host orcc instead

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoiso-codes: add a recipe from meta-oe
Alexander Kanavin [Wed, 10 Jun 2015 12:40:51 +0000 (15:40 +0300)]
iso-codes: add a recipe from meta-oe

iso-codes is a dependency of epiphany

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglib: add a warning suppression patch to glib
Alexander Kanavin [Fri, 12 Jun 2015 16:11:57 +0000 (19:11 +0300)]
glib: add a warning suppression patch to glib

Otherwise QA check will fail.
Some schemas in gsettings-desktop-schemas (such as proxy and locale)
are still using deprecated paths, as of 3.16.1. This causes warning
messages, and meta/lib/oe/rootfs.py complaints about them.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/cmake: add arch conversion routine
Alexander Kanavin [Wed, 29 Jul 2015 11:57:14 +0000 (14:57 +0300)]
classes/cmake: add arch conversion routine

cmake expects target architecture strings in the format of uname(2),
which do not always match TARGET_ARCH (e.g. powerpc vs ppc).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoharfbuzz: enable icu feature
Alexander Kanavin [Mon, 15 Jun 2015 13:46:35 +0000 (16:46 +0300)]
harfbuzz: enable icu feature

This is required to build latest webkitgtk

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/gnomebase: change tarball compression to xz
Alexander Kanavin [Wed, 10 Jun 2015 12:39:40 +0000 (15:39 +0300)]
classes/gnomebase: change tarball compression to xz

Upstream, xz has been the only format for some time now, so let's
make it the default and adjust recipes that package old stuff.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoperl: Undefine finitel for uclibc
Yen-Chin Lee [Wed, 19 Aug 2015 05:54:03 +0000 (05:54 +0000)]
perl: Undefine finitel for uclibc

finitel is not implemented in uclibc and since its not posix, it wont be
implemented in future too.

Fixes perl 5.22 build error

perl/5.22.0-r0/perl-5.22.0/sv.c:12135: undefined reference to `finitel'
 | collect2: error: ld returned 1 exit status

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokernel-arch: Force BFD kernel when using gcc for linking
Khem Raj [Wed, 19 Aug 2015 17:44:56 +0000 (10:44 -0700)]
kernel-arch: Force BFD kernel when using gcc for linking

We redefine LD to point to ld.bfd when building kernel, which works in
most cases since kbuild system calls out for bare LD most of the time,
however some of newer kernels e.g. 4.1+ have some code added which can
call gcc directly to do the linking job e.g. arm vdso code

This causes build failures when we have configured the default cross
toolchain to use gold linker as default. Errors like

BFD: arch/arm/vdso/vdso.so: Not enough room for program headers, try
linking with -N
| arm-angstrom-linux-gnueabi-objcopy:arch/arm/vdso/vdso.so[.hash]: Bad
value

start happening.

With this patch we force gcc to choose bfd linker as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibinput: Upgrade 0.18.0 -> 0.21.0
Jussi Kukkonen [Wed, 19 Aug 2015 14:06:48 +0000 (17:06 +0300)]
libinput: Upgrade 0.18.0 -> 0.21.0

Include a workaround patch suggested by upstream when using
kernel 4.1.x.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Test creation of iso image
Mihaly Varga [Thu, 6 Aug 2015 17:04:52 +0000 (20:04 +0300)]
wic: Test creation of iso image

Added new wic testcase, for testing the creation of the hybrid iso
image with isoimage-isohybrid plugin.

Signed-off-by: Mihaly Varga <mihaly.varga@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: add mkhybridiso kickstart file
Mihaly Varga [Thu, 6 Aug 2015 17:04:51 +0000 (20:04 +0300)]
wic: add mkhybridiso kickstart file

Add kickstart file for generating a hybrid bootable iso image using
isoimage-isohybrid plugin, the output image is HYBRID_ISO_IMG-cd.iso,
the label is HYBRIDISO, and the rootfs.img file is an image with ext3
file system, and uses grub as bootloader for EFI boot and
syslinux for legacy boot.

Signed-off-by: Mihaly Varga <mihaly.varga@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add plugin for hybrid iso image
Mihaly Varga [Thu, 6 Aug 2015 17:04:50 +0000 (20:04 +0300)]
wic: Add plugin for hybrid iso image

This plugin creates a hybrid, legacy and EFI bootable ISO image.
The generated image can be used on optical media as well as
USB media.

Legacy boot uses syslinux and EFI boot uses grub or gummiboot (not
implemented yet) as bootloader. The plugin creates the directories
required by bootloaders and populates them by creating and
configuring the bootloader files.

The plugin adds an image file to the iso which
contains the directory tree of the rootfs folder specified by the
--rootfs argument or by the IMAGE_ROOTFS bitbake variable.

Using the isohybryd tool, the created .iso image is enhanced by a MBR
for booting from disk storage devices, consequently the provided
iso image could be copyed directly by dd comand onto USB drive or
could be burned to an optical media by using a suitable image burner.

The plugin depends on parted, e2fstools, syslinux, grub, cdrtools,
dosfstools and mtools program.

Some of the functions in this plugin were inspired from bootimg-efi.py
and bootimg-pcbios.py plugins implemented by Tom Zanussi.

Signed-off-by: Mihaly Varga <mihaly.varga@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoparted: set VERSION number same as recipe's version
Ajay M [Wed, 19 Aug 2015 06:49:46 +0000 (12:19 +0530)]
parted: set VERSION number same as recipe's version

There is a parameter VERSION in workdir Makefile which tells the version
number of parted. While running ptest for parted we are getting failure because
of VERSION mismatch

--snip--
root@qemux86:/usr/lib/parted/ptest# ./run-ptest
make: Entering directory '/usr/lib/parted/ptest/tests'
make[1]: Entering directory '/usr/lib/parted/ptest/tests'
help-version.sh: failed test: --version-$VERSION mismatch
FAIL: help-version.sh
--CUT--

[YOCTO #8172]

Signed-off-by: Ajay M <ajay.gju@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglibc: use cross-rpcgen to replace host's rpcgen
Robert Yang [Wed, 19 Aug 2015 07:51:01 +0000 (00:51 -0700)]
glibc: use cross-rpcgen to replace host's rpcgen

There might be unexpected errors when use host's rpcgen.

[YOCTO #8181]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssh: build regression test binaries
Jussi Kukkonen [Wed, 19 Aug 2015 08:51:04 +0000 (11:51 +0300)]
openssh: build regression test binaries

ptests were failing and many more were being silently skipped because
required binaries were not being built.

Build the binaries in regress/ and set SUDO environment variable in
run-ptests: after this all tests in regress/ are now run. Continue to
skip building binaries in regress/unittests/: unittest runtime is
excessive.

On a NUC running intel-corei7-64 core-image-sato, new results are:
PASS: 55, SKIP: 3, FAIL: 0

[YOCTO #8153]

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