]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agorun-postinsts: remove the init script after a clean start-up
Chen Qi [Mon, 13 Jan 2014 04:59:42 +0000 (23:59 -0500)]
run-postinsts: remove the init script after a clean start-up

If we enable ipk/deb package back-end, and we have 'package-management'
in our IMAGE_FEATURES, then the /etc/rcS.d/S99run-postinsts would
still exist in our system after a clean start-up.

The initial design for run-postinsts requires the related init script
to be removed if there's no more post-install script left in the system.

This patch fixes this problem.

[YOCTO #5718]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosanity.bbclass: check required perl modules
Robert Yang [Wed, 22 Jan 2014 10:45:42 +0000 (18:45 +0800)]
sanity.bbclass: check required perl modules

Several required perl modules may missing on the host, for example the
Text::ParseWords, Thread::Queue and Data::Dumper are not installed by
default on recent Fedora releases (19 and 20 AFAIK). There would be wild
errors if they don't exist, so check them in sanity.bbclass.

And add perl to SANITY_REQUIRED_UTILITIES.

[YOCTO #5744]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-firmware: split out ATI/AMD Radeon firmware
Koen Kooi [Wed, 22 Jan 2014 19:37:12 +0000 (20:37 +0100)]
linux-firmware: split out ATI/AMD Radeon firmware

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agofeature-arm-thumb: Fix missing t2 suffix for armv7a MACHINEs
Martin Jansa [Tue, 21 Jan 2014 23:43:12 +0000 (00:43 +0100)]
feature-arm-thumb: Fix missing t2 suffix for armv7a MACHINEs

* unfortunatelly that note about armv7 matching also armv7a is no
  longer valid since armv7 include in armv7 was replaced with
  armv6+neon in this commit:

  commit 75b8adbc042e0f65fb1286bc550d02becd3b6aea
  Author: Khem Raj <raj.khem@gmail.com>
  Date:   Tue Mar 27 18:37:45 2012 -0700

    tune/armv7: Delete

  since then thumb and arm feeds had the same architecture
* be aware that this will rename lots of feeds

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopkg-utils: Add RPROVIDES/RREPLACES/RCONFLICTS to fix upgrade-path
Martin Jansa [Tue, 21 Jan 2014 23:43:11 +0000 (00:43 +0100)]
opkg-utils: Add RPROVIDES/RREPLACES/RCONFLICTS to fix upgrade-path

* now with update-alternatives-cworth completely gone should correctly
  replace it on target as well

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoconnman: upgrade to 1.21
Cristian Iorga [Tue, 21 Jan 2014 13:55:44 +0000 (15:55 +0200)]
connman: upgrade to 1.21

This is mainly a bug fix release.

- gtk-doc infrastructure has been removed
starting with connman 1.21; as such, support
for it has been removed from the recipe;
- Updated bug tracker site;
- Cosmetic cleanup;

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agominicom: upgrade to 2.7
Cristian Iorga [Tue, 21 Jan 2014 08:55:20 +0000 (10:55 +0200)]
minicom: upgrade to 2.7

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibpcap: upgrade to 1.5.3
Cristian Iorga [Mon, 20 Jan 2014 18:04:03 +0000 (20:04 +0200)]
libpcap: upgrade to 1.5.3

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoneard: upgrade to 0.14
Cristian Iorga [Mon, 13 Jan 2014 13:53:43 +0000 (15:53 +0200)]
neard: upgrade to 0.14

switched from git version to tarball,
as new releases are now versioned.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoinitscripts: define failure/success/warning/pass functions
Roy Li [Wed, 22 Jan 2014 08:57:38 +0000 (16:57 +0800)]
initscripts: define failure/success/warning/pass functions

define failure/success/warning/pass functions, some packages' initscript
need them, and /etc/core-lsb/lsb_log_message from lsb needs them too.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogawk: enable ptest support
Chong Lu [Wed, 22 Jan 2014 04:55:34 +0000 (12:55 +0800)]
gawk: enable ptest support

Install gawk test suite and run it as ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibcgroup: Update to 0.41
Saul Wold [Tue, 21 Jan 2014 02:55:27 +0000 (18:55 -0800)]
libcgroup: Update to 0.41

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolsbinitscripts: Update to 9.52
Saul Wold [Tue, 21 Jan 2014 02:54:30 +0000 (18:54 -0800)]
lsbinitscripts: Update to 9.52

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolib/oe/patch.py: Prefer "git am" over "git apply" when applying git patches
Laszlo Papp [Tue, 24 Dec 2013 12:44:10 +0000 (12:44 +0000)]
lib/oe/patch.py: Prefer "git am" over "git apply" when applying git patches

It is better to use "git am" when possible to preserve the commit messages and
the mail format in general for patches when those are present. A typical use
case is when developers would like to keep the changes on top of the latest
upstream, and they may occasionally need to rebase. This is not possible with
"git diff" and "diff" generated patches.

Since this is not always the case, the fallback would be the "git apply"
operation which is currently available.

Signed-off-by: Laszlo Papp <lpapp@kde.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocmake: Fix freetype detection
Martin Jansa [Sun, 12 Jan 2014 17:33:11 +0000 (18:33 +0100)]
cmake: Fix freetype detection

* since last freetype upgrade cmake cannot detect it
* e.g. webkit-efl requires freetype and is failing because of this

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agospeex: configure in float or fixed mode based on TARGET_FPU
Fahad Arslan [Mon, 20 Jan 2014 10:38:20 +0000 (15:38 +0500)]
speex: configure in float or fixed mode based on TARGET_FPU

Decide float or fixed mode usage depending on whether hardware
FPU is present or not.

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoalsa-utils: Add PACKAGECONFIG for udev
Phil Blundell [Mon, 20 Jan 2014 05:30:49 +0000 (05:30 +0000)]
alsa-utils: Add PACKAGECONFIG for udev

Commit b92a3e9d093bc9421aa38a40bc6bfd559a16b3be introduced a dependency
on udev, which is undesirable for distros which don't otherwise require
or build udev (and, as such, don't have any interest in the rules.d files).

Make this conditional on a PACKAGECONFIG setting so that it can be turned
off.  If it's off, we don't depend on udev and don't ship the rules.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopackage_{ipk, deb, rpm}.bbclass: support additional user-defined metadata
Leonid Borisenko [Fri, 16 Nov 2012 18:29:26 +0000 (18:29 +0000)]
package_{ipk, deb, rpm}.bbclass: support additional user-defined metadata

Additional metadata from user-defined variable is written into
control/spec file of binary package.

Three variables are searched for adiitional package metadata:

  * PACKAGE_ADD_METADATA_<PKGTYPE>_<PN>
  * PACKAGE_ADD_METADATA_<PKGTYPE>
  * PACKAGE_ADD_METADATA

First found variable with defined value wins.

<PN> is a package name. <PKGTYPE> is a distinct name of specific
package type:

  * IPK for .ipk packages
  * DEB for .deb packages
  * RPM for .rpm packages

Variable can contain multiple [one-line] metadata fields separated by
literal sequence '\n'. Separator can be redefined through variable flag
'separator'. In package control/spec file separator is replaced by
newline character.

Signed-off-by: Leonid Borisenko <ive.found@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopackage.bbclass: add getter of additional metadata
Leonid Borisenko [Fri, 16 Nov 2012 18:29:25 +0000 (18:29 +0000)]
package.bbclass: add getter of additional metadata

Two variables are searched for value of additional package metadata:

  * PACKAGE_ADD_METADATA_<PKGTYPE>
  * PACKAGE_ADD_METADATA

First found variable with defined value wins.

<PKGTYPE> is a parameter of getter and expected to be a distinct name
of specific package type. For example: 'DEB' or 'RPM'.

Variable can contain multiple [one-line] metadata fields, separated by
literal sequence '\n'. Separator can be redefined through variable flag
'separator'. Getter returns found value with separator replaced with
newline character.

As side-effect, searched variables acquired flags 'type' (equals to
'list') and 'separator'.

Signed-off-by: Leonid Borisenko <ive.found@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoat: add systemd support
Chen Qi [Fri, 17 Jan 2014 06:22:42 +0000 (01:22 -0500)]
at: add systemd support

Add systemd support for at.

This patch mainly comes from meta-systemd.

[YOCTO #4420]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodistcc: add systemd support
Chen Qi [Fri, 17 Jan 2014 05:51:12 +0000 (00:51 -0500)]
distcc: add systemd support

Add systemd support for distcc.

These unit files mainly use the same files in Fedora 20 as a reference.

[YOCTO #4420]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopenssh: fixes for systemd
Chen Qi [Fri, 17 Jan 2014 03:03:22 +0000 (22:03 -0500)]
openssh: fixes for systemd

This patch contains a few fixes for the systemd unit files of openssh.
The fixes use the same unit files in Fedora 20 as a reference.

1) Remove sshdgenkeys.service and sshd@.service from SYSTEMD_SERVICE.
2) Fix the dependency and logic of sshdgenkeys.service.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodropbear: add systemd unit files
Chen Qi [Thu, 16 Jan 2014 09:24:53 +0000 (04:24 -0500)]
dropbear: add systemd unit files

This patch mainly comes from meta-systemd with a few modifications.
The purpose is to get rid of the LSB init scripts in systemd images.

[YOCTO #4420]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoapr-util: enable ptest support
Chong Lu [Fri, 17 Jan 2014 07:59:57 +0000 (15:59 +0800)]
apr-util: enable ptest support

Install apr-util test suite and run it as ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoapr: enable ptest support
Chong Lu [Tue, 14 Jan 2014 09:42:39 +0000 (17:42 +0800)]
apr: enable ptest support

Install apr test suite and run it as ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemd: fix ptest to make it able to run on target
Chen Qi [Mon, 23 Dec 2013 08:17:18 +0000 (03:17 -0500)]
systemd: fix ptest to make it able to run on target

This patch mainly involves four changes.
1. Ship the sys.tar.xz and extract it on target to avoid ELOOP error.
2. Make systemd-ptest rdepend on bash and perl as the test cases need them.
3. Fix paths in Makefile so that the test cases could run on target.
4. Install ${libdir}/udev/rules.d directory to make udev-test.pl work.

[YOCTO #5664]
[YOCTO #5673]
[YOCTO #5674]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoeglibc-ld.inc: Update the inc file to match the new x86 tune
Darren Hart [Tue, 21 Jan 2014 23:43:08 +0000 (23:43 +0000)]
eglibc-ld.inc: Update the inc file to match the new x86 tune

I created this after a git grep to look for files impacted by the x86
tune changes. I need a careful review here to determine if this is in
fact the right thing to do.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemux86_64: Use the core2-64 tune
Darren Hart [Tue, 21 Jan 2014 17:58:41 +0000 (17:58 +0000)]
qemux86_64: Use the core2-64 tune

As x86_64 has been "demoted" to an ABI definition rather than a concrete
tune file, replace it with core2-64 for the qemux86-64 machine.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune: README: Typographical corrections
Darren Hart [Fri, 17 Jan 2014 22:27:00 +0000 (22:27 +0000)]
tune: README: Typographical corrections

No new content, just correcting a few typographical errors.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune: README: Document best practice
Darren Hart [Fri, 17 Jan 2014 22:26:32 +0000 (22:26 +0000)]
tune: README: Document best practice

Describe the expected usage of base architecture tune files and
arch-specific files, specifically the stacking of generations.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune: README: Whitespace cleanup
Darren Hart [Fri, 17 Jan 2014 22:26:21 +0000 (22:26 +0000)]
tune: README: Whitespace cleanup

Before making content changes, cleanup the various whitespace errors in
this file. Mostly end-of-line whitepsace.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune: Remove tune-x86_64.inc
Darren Hart [Tue, 21 Jan 2014 17:45:38 +0000 (17:45 +0000)]
tune: Remove tune-x86_64.inc

The tune-x86_64.inc file is conceptually flawed. x86_64 is more akin to
the x86 and x86-32 ABIs defined in arch-x86.inc than it is a concrete
tune file, such as i586 or core2 - to the extent that everything but the
default tune is defined in the arch-x86.inc file. This becomes very
apparant when attempting to include tune-x86_64.inc in the x86 tune
hierarchy.

Remove the tune-x86_64.inc tune file in favor of it being an ABI
definition in arch-x86.inc and relying on the linear hierarchy of
concrete cpu-types in tune-i586, tune-core2, and tune-corei7.

core2_64 should suffice in lieu of x86_64 for all but a couple esoteric
corner cases involving older pre-core2 CPUs. In these cases, if they
exist at all, the BSP can replace the include tune-x86_64.inc with
arch-x86.inc and set the default tune to x86_64.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune-corei7: Add support for cpu-type corei7
Darren Hart [Fri, 17 Jan 2014 22:26:11 +0000 (22:26 +0000)]
tune-corei7: Add support for cpu-type corei7

corei7 offers a significant advancement since the previous core2
cpu-type described in the tune-core2 file.

From the GCC(1):
Intel Core i7 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3,
               SSSE3, SSE4.1 and SSE4.2 instruction set support.

This offers optimizations for Nehalem and Silvermont (e.g. Bay Trail)
CPUs (and beyond).

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune: Make 32b or 64b explicit in tune name for core2
Darren Hart [Tue, 21 Jan 2014 17:51:59 +0000 (17:51 +0000)]
tune: Make 32b or 64b explicit in tune name for core2

Core2 has both a 32b and a 64b variant. Currently, core2 implies 32b,
while core2_64 is the 64b version. This implicit 32b mode will become
confusing in later architectures, such as corei7, where it would be
natural for people to assume "corei7" meant 64 bit.

Rather than carrying forward an implicit 32b mode and rather than
changing the naming scheme part way through the architecture hiearchy,
make the 32b and 64b variant explicit in the tune name by changing core2
to core2-32. This patch also standardises on using '-' in the names.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune-core2: Only add the current ARCH to PACKAGE_EXTRA_ARCHS
Darren Hart [Fri, 17 Jan 2014 22:26:00 +0000 (22:26 +0000)]
tune-core2: Only add the current ARCH to PACKAGE_EXTRA_ARCHS

Inherit the PACKAGE_EXTRA_ARCHS from i586 and only explicitly add core2
here.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune-core2: Replace -mtune=generic with -mtune=core2
Darren Hart [Fri, 17 Jan 2014 22:25:49 +0000 (22:25 +0000)]
tune-core2: Replace -mtune=generic with -mtune=core2

-march specifies which ISA to use. -mtune specifies which cpu-type to
optimize instruction ordering for, but not which ISA to use. There are
times when it may make sense to specify mtune=generic and use a more
specific march, such as core2, but the opposite makes little sense at
all: use cpu-type specific ISA, but order the instructions
generically. While the -mtune is implied by -march, gcc does not verify
it is using -mtune=core2 with:

    gcc -Q -march=core2 --help=target

Explicitly specify -mtune=core2 to be sure.

Add a comment header describing the CPUs targeted by this tune file.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoi586: Only add the current tune to PACKAGE_EXTRA_ARCHS
Darren Hart [Fri, 17 Jan 2014 22:28:33 +0000 (22:28 +0000)]
i586: Only add the current tune to PACKAGE_EXTRA_ARCHS

The generic x86 build supports i586 by default, so this specific tune
file technically doesn't add any specific ARCHes to PACKAGE_EXTRA_ARCHS.
For consistency, append the current tune to PACKAGE_EXTRA_ARCHS.

Since we do not have specific tune files for i386 and i486, just drop
them.

These could be added to tune-x86 version if there is a need to
maintain them, but they really do not belong here.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox86: Replace ia32 with x86 when referring to the generic architecture
Darren Hart [Fri, 17 Jan 2014 22:25:36 +0000 (22:25 +0000)]
x86: Replace ia32 with x86 when referring to the generic architecture

ia32 implies 32bit, while these files provide descriptions for IA32,
X86_64, and X32 architectures. The term "x86" fits this used better
without resorting to using the term "Intel" which isn't quite right as
it excludes things like the tune-c3 file describing a Via CPU.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolocal.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE
Richard Purdie [Mon, 27 Jan 2014 14:39:48 +0000 (14:39 +0000)]
local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE

Its rather sad that people don't appear to read local.conf and then complain
about slow builds when they're just using a single thread. Most systems have
more than one core now so we might as well use a more automatic default
for these values. This may lead to better experiences for new users.

[YOCTO #2528]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils: Add a cpu_count wrapper function
Richard Purdie [Mon, 27 Jan 2014 14:38:08 +0000 (14:38 +0000)]
utils: Add a cpu_count wrapper function

Add a cpu_count wrapper function (useful from annonymous python where
the import would be trickier).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtool-cross/native: Force usage of bash due to sstate inconsistencies
Richard Purdie [Thu, 23 Jan 2014 12:10:01 +0000 (12:10 +0000)]
libtool-cross/native: Force usage of bash due to sstate inconsistencies

Scenario:
a) libtool script is built on system with bash as /bin/sh
b) machine B installs sstate from build a)
c) machine B has dash as /bin/sh

In this scenario, the script fails to work properly since its expecting
/bin/sh to have bash like syntax and it no longer does have it.

This patch forces the configure process to use /bin/bash, not /bin/sh
and hence allows the scripts to work correctly when used from sstate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "e2fsprogs/populate-extfs.sh: fix a problem on dash"
Richard Purdie [Thu, 23 Jan 2014 10:28:32 +0000 (10:28 +0000)]
Revert "e2fsprogs/populate-extfs.sh: fix a problem on dash"

This reverts commit 22f90c5aec4f0b0360d1d960226f9965d83d589b.

This causes build failures with:

| dirname: missing operand
| Try 'dirname --help' for more information.

under some circumstances.

11 years agoboot-directdisk: fix the support of vmdk
Joao Henrique Ferreira de Freitas [Thu, 23 Jan 2014 06:50:14 +0000 (22:50 -0800)]
boot-directdisk: fix the support of vmdk

Previous change (086ce22b88f5ef5f75a83119a32c8b3fdcfa296d) broke
the creating of vmdk images. This protects shell expansion variables
and let dd generate the image to be transformed to vmdk by image-vmdk.class.

Signed-off-by: Joao Henrique Ferreira de Freitas <joaohf@gmail.com>
[edit to change the usage of IMAGE_FSTYPE to IS_VMDK]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopybootchartgui: Add option -T to allways use the full time
Peter Kjellerstedt [Tue, 21 Jan 2014 15:22:35 +0000 (16:22 +0100)]
pybootchartgui: Add option -T to allways use the full time

When --full-time (or -T) is used, the graph allways shows the full
time regardless of which processes are currently shown. This is
especially useful in combinationm with the -s flag when outputting to
multiple files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopybootchartgui: Adopt the width of the index in split output files
Peter Kjellerstedt [Tue, 21 Jan 2014 15:22:34 +0000 (16:22 +0100)]
pybootchartgui: Adopt the width of the index in split output files

Add minimum width zero-padding to the index used in split output files
with -s and -o. I.e., if -s 200 is used, then the index will be
zero-padded to three digits width.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopybootchartgui: Simplify adding processes to the trace
Peter Kjellerstedt [Tue, 21 Jan 2014 15:22:33 +0000 (16:22 +0100)]
pybootchartgui: Simplify adding processes to the trace

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopybootchartgui: Correct the legend
Peter Kjellerstedt [Tue, 21 Jan 2014 15:22:32 +0000 (16:22 +0100)]
pybootchartgui: Correct the legend

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopybootchartgui: Make the -s option work again
Peter Kjellerstedt [Tue, 21 Jan 2014 15:22:31 +0000 (16:22 +0100)]
pybootchartgui: Make the -s option work again

[YOCTO #5588]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtool: remove the unrecognized configure option
Chen Qi [Wed, 15 Jan 2014 06:51:34 +0000 (14:51 +0800)]
libtool: remove the unrecognized configure option

Remove the unrecognized configure option '--with-sysroot' to avoid
build time warnings.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocmake.bbclass: fix note when warning about deprecated variables
Ross Burton [Tue, 21 Jan 2014 11:37:36 +0000 (11:37 +0000)]
cmake.bbclass: fix note when warning about deprecated variables

The note issues when OECMAKE_BUILDPATH and OECMAKE_SOURCEPATH were being used
stated that an in-tree build would be done, but the default is in fact an
out-of-tree build.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoadt_installer: do not install rootfs if target is not selected
Laurentiu Palcu [Fri, 17 Jan 2014 15:16:18 +0000 (17:16 +0200)]
adt_installer: do not install rootfs if target is not selected

Currently, if YOCTOADT_TARGETS does not contain an architecture but the
rootfs/machine settings are uncommented, then the rootfs is installed
and adt will throw an error because is not able to find the toolchain
environment script.

This patch will:
 * not allow to install a target rootfs if the toolchain for the
   target architecture is not selected;
 * uncomment the target rootfs/machine settings for the other
   architectures since it's easier for the user to just add a new
   architecture in YOCTOADT_TARGETS and have the target rootfs
   installed;

[YOCTO #5727]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: sshcontrol: fix false timeout failures
Stefan Stanacar [Fri, 17 Jan 2014 15:57:47 +0000 (17:57 +0200)]
lib/oeqa: sshcontrol: fix false timeout failures

Ocasionally AB shows odd false fails like:
http://autobuilder.yoctoproject.org/main/builders/nightly-arm/builds/1/steps/Running%20Sanity%20Tests/logs/stdio
This should fix that by checking for eof instead of
polling the return code of the ssh process, because the process
might still be there.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdk-pixbuf: use PACKAGECONFIG to control loaders with external dependencies
Ross Burton [Mon, 20 Jan 2014 22:45:02 +0000 (22:45 +0000)]
gdk-pixbuf: use PACKAGECONFIG to control loaders with external dependencies

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdk-pixbuf: don't forcibly disable GIO sniffing, use PACKAGECONFIG.
Ross Burton [Mon, 20 Jan 2014 22:45:01 +0000 (22:45 +0000)]
gdk-pixbuf: don't forcibly disable GIO sniffing, use PACKAGECONFIG.

There's a configure option for GIO sniffing so don't use a patch to disable it.
Instead use a PACKAGECONFIG for this and default to off, as using GIO for
sniffing means a hard dependency on shared-mime-info.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdk-pixbuf: upgrade to 2.30.3
Ross Burton [Mon, 20 Jan 2014 22:45:00 +0000 (22:45 +0000)]
gdk-pixbuf: upgrade to 2.30.3

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibxcb: upgrade to 1.10
Ross Burton [Mon, 20 Jan 2014 21:07:34 +0000 (21:07 +0000)]
libxcb: upgrade to 1.10

Remove spurious libxcb-xinerama addition to PACKAGES, this is handled by the
dynamic split_packages() now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxcb-proto: upgrade to 1.10
Ross Burton [Mon, 20 Jan 2014 21:07:33 +0000 (21:07 +0000)]
xcb-proto: upgrade to 1.10

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglproto: upgrade to 1.4.17
Ross Burton [Mon, 20 Jan 2014 21:07:32 +0000 (21:07 +0000)]
glproto: upgrade to 1.4.17

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate.bbclass: remove previous version's stamp
Robert Yang [Mon, 20 Jan 2014 11:42:34 +0000 (19:42 +0800)]
sstate.bbclass: remove previous version's stamp

There is a potential problem if we don't remove the previous version's
stamp, for example:

The depend chain is:
libtool-native -> autoconf-native -> m4-native
We have two m4-native: 1.4.9 and 1.4.7

1) Clean all of them to make a fresh build so that we can reproduce the
   problem
$ bitbake m4-native autoconf-native libtool-native -ccleansstate

2) Build libtool-native so that the m4-native_1.4.17 will be built
$ bitbake libtool-native

3) Set PREFERRED_VERSION_m4-native = "1.4.9" and build again
$ bitbake libtool-native

4) Set PREFERRED_VERSION_m4-native = "1.4.17" and build again
$ bitbake libtool-native -ccleansstate && bitbake libtool-native

Then the build will fail:
[snip]
| m4: unrecognized option '--gnu'
| Try `m4 --help' for more information.
| autom4te: m4 failed with exit status: 1
[snip]

The is because when we change m4-native to 1.4.17 and build
libtool-native again:
5) libtool-native depends on autoconf-native, and autoconf-native's
   version isn't change, so it can remove the current stamp and mirror
   the sstate (the one depends on m4-native_1.4.9) from the SSTATE_DIR
   correctly.

6) The mirrored autoconf-native depends on m4-native_1.4.17's
   do_populate_sysroot, and the stamp is already there (which is made
   by step 2), so it would do nothing, but this is incorrect, since
   the one that really in the sysroot is m4-native_1.4.9, then the
   error happens.

Remove previous version's stamp in sstate_clean() will fix the problem.

[YOCTO #5422]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoe2fsprogs/populate-extfs.sh: fix a problem on dash
Robert Yang [Mon, 20 Jan 2014 12:24:43 +0000 (20:24 +0800)]
e2fsprogs/populate-extfs.sh: fix a problem on dash

The dash can't handle the or [[ in parameter expansion, for example:

A=/usr/bin/[[
B=[[
C="${A%$B}"

The C should be "/usr/bin" in common, but it will be /usr/bin/[[ on
dash, use dirname to fix it.

NOTE:
There are 3 lines about parameter expansion, only fix the
DIR="${DIR%$TGT}" since the other 2 works will and are very useful in
this case.

[YOCTO #5712]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: package Marvell SD8797 firmware
Andreas Oberritter [Mon, 20 Jan 2014 14:55:36 +0000 (15:55 +0100)]
linux-firmware: package Marvell SD8797 firmware

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoguile: don't use the identifier 'noreturn'
Robert Yang [Tue, 21 Jan 2014 10:22:21 +0000 (18:22 +0800)]
guile: don't use the identifier 'noreturn'

Fix the build error of autogen-native which depends on guile-native:

ysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected ')' before '__attribute__'
sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected ',' or ';' before ')' token
sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:42:27: error: expected ')' before '__attribute__'

[YOCTO #5743]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage.bbclass: show warning when package is providing already provided shlib
Martin Jansa [Sun, 19 Jan 2014 15:24:19 +0000 (16:24 +0100)]
package.bbclass: show warning when package is providing already provided shlib

* move read_shlib_providers before registering package as provider
  and show warning when different package tries to provide something
  already provided.

[YOCTO #4628]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage.bbclass: move reading shlibs providers to separate function
Martin Jansa [Sat, 18 Jan 2014 14:02:06 +0000 (15:02 +0100)]
package.bbclass: move reading shlibs providers to separate function

* prepare for reading shlibs providers only from dependency tree of
  current recipe

[YOCTO #4628]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc: use exact match in blacklists, re-start with empty system_package_blacklist
Martin Jansa [Sat, 18 Jan 2014 14:01:54 +0000 (15:01 +0100)]
icecc: use exact match in blacklists, re-start with empty system_package_blacklist

* unify debug messages a bit
* old implementation allowed partial match in blacklist, it's safer
  to explicitly list exact matches
* I was able to build all entries from system_package_blacklist with
  icecc enabled, lets assume that they were already resolved by newer
  versions (we've fixed a lot of parallel issues in recipes which were
  detected even without icecc and this list is very old).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc: Fix allarch and native recipes having different signatures
Martin Jansa [Sat, 18 Jan 2014 14:01:53 +0000 (15:01 +0100)]
icecc: Fix allarch and native recipes having different signatures

* for different MACHINES
* is there more elegant way to have "overridable" function so that
  signature handler properly uses only the branch without
  STAGING_BINDIR_TOOLCHAIN?

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc: use bb.utils.which also for 'as'
Martin Jansa [Sat, 18 Jan 2014 14:01:52 +0000 (15:01 +0100)]
icecc: use bb.utils.which also for 'as'

* it was introduced in
  commit 3a842ec52e7d010767b13bdcb5629ac07b3ee9e7
  Author: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  Date:   Fri Sep 16 10:55:16 2011 +0400
  Subject: icecc.bbclass: replace with updated version

  without any explanation in which case
    ${ICECC_CC} -print-prog-name=as
  is returning as in current working directory, but will keep old
  behavior just in case

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc: Don't replace non-empty PARALLEL_MAKE with empty ICECC_PARALLEL_MAKE
Martin Jansa [Sat, 18 Jan 2014 14:01:51 +0000 (15:01 +0100)]
icecc: Don't replace non-empty PARALLEL_MAKE with empty ICECC_PARALLEL_MAKE

* it's needed for use-case like this:
  # Inherit icecc here, so that all builders have the same sstate signatures
  INHERIT_DISTRO += "icecc"
  # and then disable its function by default (so that people still need to explicity
  # enable it in local.conf if they have configured icecc and want to use it.
  # You need to set _empty_ value in local.conf to enable icecc function:
  # ICECC_DISABLED = ""
  ICECC_DISABLED ??= "1"
* so default ICECC_PARALLEL_MAKE is still empty, but we want build
  to respect our PARALLEL_MAKE, unfortunately we cannot do something
  like ICECC_PARALLEL_MAKE ??= "${PARALLEL_MAKE}", because that would
  cause PARALLEL_MAKE to reference itself.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoallarch: Set empty TARGET_PREFIX and TARGET_FPU
Martin Jansa [Sat, 18 Jan 2014 14:02:40 +0000 (15:02 +0100)]
allarch: Set empty TARGET_PREFIX and TARGET_FPU

* set empty TARGET_PREFIX
  This has a bit weird reason caused by unsupported setup where
  external-toolchain is used in some DISTRO only for some MACHINEs
  and internal is used for other MACHINEs.
  Because external-toolchain usually comes with different TARGET_PREFIX
  it was causing allarch recipes to have different signatures even
  when they don't use toolchain at all.
  Empty TARGET_PREFIX also helps to find allarch recipes which still
  have default dependency on e.g. virtual/${TARGET_PREFIX}gcc.
* add TARGET_FPU just for completeness (it was used in icecc.bbclass
  but now it's vardepexcluded there as well)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstatesig: include native/cross/nativesdk deps in target signatures
Martin Jansa [Sat, 18 Jan 2014 14:02:39 +0000 (15:02 +0100)]
sstatesig: include native/cross/nativesdk deps in target signatures

* I don't have any real evidence or good statistics for this, but when
  comparing signature dumps from my big bitbake world builds I usually
  see a lot of rebuilds caused by changes in .bbclasses and only very
  rare would be the case where oe-core upgrade brings changes in -native
  recipes and no change in .bbclasses used from target recipes
* changing the default to include them shouldn't cause significant
  increase in rebuilds and sstate reuse a bit safer
* people working on toolchain (e.g. using gcc from AUTOREV) can easily
  extend sstate_rundepfilter to ignore them again (it's easier than
  removing existing filter), example how add own signature handler in
  your layer is here:
  https://github.com/openwebos/meta-webos/commit/9ac3a7c803e7793b3274e4998f167b6278db8042

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg-utils: Remove strange PACKAGES native override
Richard Purdie [Fri, 17 Jan 2014 11:41:06 +0000 (11:41 +0000)]
opkg-utils: Remove strange PACKAGES native override

This code makes no sense, native.bbclass clears PACKAGES anyway. Drop
it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg-utils: Add basic PACKAGECONFIG for python dependencies
Richard Purdie [Fri, 17 Jan 2014 11:39:40 +0000 (11:39 +0000)]
opkg-utils: Add basic PACKAGECONFIG for python dependencies

In small configurations its useful not to have python dependencies. This
patch adds code to disable those using PACKAGECONFIG. This allows us to
fix poky-tiny after the recent move of update-alternatives to opkg-utils.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0: add explicit build dependency on DBus when ptest is enabled
Ross Burton [Fri, 17 Jan 2014 11:09:32 +0000 (11:09 +0000)]
glib-2.0: add explicit build dependency on DBus when ptest is enabled

If the tests are enabled then configure will check for the presence DBus.  It's
generally present through the runtime dependencies so this often succeeds but as
it isn't a build dependency it's possible for DBus to be present at configure
time but removed at compile time, resulting in build failures.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-selftest: Patch sstate tests to work with new sstate-cache naming and content
Corneliu Stoicescu [Fri, 17 Jan 2014 11:23:29 +0000 (12:23 +0100)]
oe-selftest: Patch sstate tests to work with new sstate-cache naming and content

Made modifications to account for:
- .siginfo files present in sstate-cache from non sstate-enabled tasks
- new naming format for sstate files

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: fix the TCL_INCLUDE_SPEC
Robert Yang [Fri, 17 Jan 2014 09:16:51 +0000 (17:16 +0800)]
tcl: fix the TCL_INCLUDE_SPEC

We have moved the header files to ${includedir}/tcl${VERSION}, but we
didn't fix the TCL_INCLUDE_SPEC which is still ${includedir}, it should
also be ${includedir}/tcl${VERSION}

Note: this commit modifiey alter-includedir.patch, so it doesn't look
very clear, I only fixed one line in both configure and configure.in:

-eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
+eval "TCL_INCLUDE_SPEC=\"-I${includedir}/tcl${VERSION}\""

The other changes are because I use git to create the patch while the
previous one uses svn.

[YOCTO #5732]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg/opkg-utils/chkconfig: Clean up u-a-cworth references
Richard Purdie [Fri, 17 Jan 2014 10:25:53 +0000 (10:25 +0000)]
opkg/opkg-utils/chkconfig: Clean up u-a-cworth references

Catch some u-a-cworth references that slipped through the move of u-a
to opkg-utils and its rename to -opkg.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoupdate-alternatives: We now use u-a in nativesdk so make sure the dependency is present
Richard Purdie [Fri, 17 Jan 2014 10:25:18 +0000 (10:25 +0000)]
update-alternatives: We now use u-a in nativesdk so make sure the dependency is present

When update-alternatives was part of opkg which got built in most nativesdk
scenarios, this missing dependency wasn't an issue. We now need nativesdk-opkg-utils
so we need to ensure the dependency is present in nativesdk cases.

This avoids build failures with the recent u-a move to opkg-utils.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto-dev: bump version to 3.13+
Bruce Ashfield [Thu, 16 Jan 2014 21:55:48 +0000 (16:55 -0500)]
linux-yocto-dev: bump version to 3.13+

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: allow a layer to provide it's own TEST_TARGET class
Stefan Stanacar [Thu, 16 Jan 2014 12:48:59 +0000 (14:48 +0200)]
lib/oeqa: allow a layer to provide it's own TEST_TARGET class

Allows a layer to define new classes in <layer>/lib/oeqa/utils/controllers.py
and completely control or extend deployment of a target. (core currently
has QemuTarget and SimpleRemoteTarget).
The value of TEST_TARGET must be the name of the new class.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox11vnc: fix CAPS_LOCK issues
Laurentiu Palcu [Thu, 16 Jan 2014 14:25:08 +0000 (16:25 +0200)]
x11vnc: fix CAPS_LOCK issues

Currently, pressing CAPS_LOCK on the viewer changes the lock state on
the server and the key will not change the case.

To fix this, use -skip_lockkeys option to ignore all Caps_Lock,
Shift_Lock, Num_Lock, Scroll_Lock keysyms received from viewers, in
order to leave the lock state on the server side unchanged. However, the
keys will appear correctly on the remote side.

[YOCTO #4149]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: depend on drm for 'launch' packageconfig enabled
Andreas Müller [Thu, 16 Jan 2014 18:09:44 +0000 (19:09 +0100)]
weston: depend on drm for 'launch' packageconfig enabled

configure fails with:

| configure:15654: checking for WESTON_LAUNCH
| configure:15661: $PKG_CONFIG --exists --print-errors "libdrm"
| Package libdrm was not found in the pkg-config search path.
| Perhaps you should add the directory containing `libdrm.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'libdrm' found
| configure:15664: $? = 1
| configure:15678: $PKG_CONFIG --exists --print-errors "libdrm"
| Package libdrm was not found in the pkg-config search path.
| Perhaps you should add the directory containing `libdrm.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'libdrm' found
| configure:15681: $? = 1
| configure:15695: result: no
| No package 'libdrm' found
| configure:15711: error: Package requirements (libdrm) were not met:
|
| No package 'libdrm' found

and configure.ac says:

| if test x$enable_weston_launch == xyes; then
|  PKG_CHECK_MODULES(WESTON_LAUNCH, [libdrm])

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg: No longer PROVIDES update-alternatives
Paul Barker [Thu, 16 Jan 2014 17:59:26 +0000 (17:59 +0000)]
opkg: No longer PROVIDES update-alternatives

The new provider is the opkg-utils recipe.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodefault-providers: Change update-alternatives provider to opkg-utils
Paul Barker [Thu, 16 Jan 2014 17:59:25 +0000 (17:59 +0000)]
default-providers: Change update-alternatives provider to opkg-utils

This allows dependencies to be added to the opkg recipe without causing circular
dependency loops. As opkg-utils has minimal dependencies it is the best recipe
to provide update-alternatives.

This partially solves Yocto Project issue 4836. More work is still needed for a
complete solution.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg-utils: Upgrade to latest git HEAD
Paul Barker [Thu, 16 Jan 2014 17:59:24 +0000 (17:59 +0000)]
opkg-utils: Upgrade to latest git HEAD

The latest version of opkg-utils PROVIDES virtual/update-alternatives via a
script copied from opkg, packaged as update-alternatives-opkg.

The nativesdk class is added to the recipe to ensure that
nativesdk-update-alternatives-opkg is built.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowpa-supplicant-2.0: don't exit in pkg_postinst
Alexandre Belloni [Thu, 16 Jan 2014 13:34:39 +0000 (14:34 +0100)]
wpa-supplicant-2.0: don't exit in pkg_postinst

Exiting explicitly in pkg_postinst makes it impossible to use the
update-rc.d class in a .bbappend because the link creation is appended
to the pkg_postinst script.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0: fix mapped file ptest
Ross Burton [Thu, 16 Jan 2014 13:31:39 +0000 (13:31 +0000)]
glib-2.0: fix mapped file ptest

The mappedfile ptest was attempting to write into directories that may not exist
on a non-Sato image.  Instead, write into TMPDIR.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0: fix the dbus-appinfo test when running outside of X
Ross Burton [Thu, 16 Jan 2014 13:31:38 +0000 (13:31 +0000)]
glib-2.0: fix the dbus-appinfo test when running outside of X

This test was attempting to connect to a session bus and hanging if it couldn't.
Take a patch from upstream to correctly use a private bus.

[ YOCTO #5696 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-selftest: separated the SStateBase and SStateTests in different modules
Corneliu Stoicescu [Tue, 14 Jan 2014 13:21:21 +0000 (14:21 +0100)]
oe-selftest: separated the SStateBase and SStateTests in different modules

- SStateBase now has its own module to be imported by itself by other modules like sstatetests.py

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-selftest: renamed sstate.py module to sstatetests.py
Corneliu Stoicescu [Tue, 14 Jan 2014 13:21:20 +0000 (14:21 +0100)]
oe-selftest: renamed sstate.py module to sstatetests.py

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-selftest: New object SStateBase cut off from SStateTests.
Corneliu Stoicescu [Tue, 14 Jan 2014 13:21:19 +0000 (14:21 +0100)]
oe-selftest: New object SStateBase cut off from SStateTests.

- SStateBase object contains basic methods used to run sstate related tests
- SStateTests now contains only sstate-related tests

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: add reset.1 manpage in update-alternatives
Matthieu Crapet [Tue, 14 Jan 2014 15:09:45 +0000 (16:09 +0100)]
util-linux: add reset.1 manpage in update-alternatives

Adding "doc-pkgs" to IMAGE_FEATURES (in an image recipe) reports a conflict with reset.1 file, present both in util-linux and ncurses-doc packages.

<log>
| Collected errors:
|  * check_data_file_clashes: Package util-linux-doc wants to install file /home/matt/tmp/oe-p/build/tmp-eglibc/work/qemux86_64-tiny-linux/test-image/1.0-r3/rootfs/usr/share/man/man1/reset.1
|       But that file is already provided by package  * ncurses-doc
|  * opkg_install_cmd: Cannot install package util-linux-doc.
| WARNING: /home/matt/tmp/oe-p/build/tmp-eglibc/work/qemux86_64-tiny-linux/test-image/1.0-r3/temp/run.do_rootfs.13877:1 exit 255 from
|   opkg-cl -f $INSTALL_CONF_IPK -o $INSTALL_ROOTFS_IPK --force_postinstall --prefer-arch-to-version install `cat $1`
| ERROR: Function failed: do_rootfs (log file is located at /home/matt/tmp/oe-p/build/tmp-eglibc/work/qemux86_64-tiny-linux/test-image/1.0-r3/temp/log.do_rootfs.13877)
</log>

Same issue already occured few months ago:
Re: [OE-core] Clashing man pages
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg38590.html

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinitrdscripts: add $CMDLINE to init-live switch_root
Krzysztof Sywula [Wed, 15 Jan 2014 11:27:04 +0000 (11:27 +0000)]
initrdscripts: add $CMDLINE to init-live switch_root

init-live.sh: $CMDLINE variable should be provided to switch_root
to let user specify runlevel on grub command line.
Feeding with -c /dev/console as well as busybox switch_root enables that option.

Signed-off-by: Krzysztof Sywula <krzysztof.m.sywula@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_rpm: Fix a race with package_deb/package_ipk
Richard Purdie [Wed, 15 Jan 2014 17:47:45 +0000 (17:47 +0000)]
package_rpm: Fix a race with package_deb/package_ipk

We have the odd situation where the CONTROL/DEBIAN directory can be removed
in the middle of the walk, the isdir() test would then fail and the walk code
would assume its a file hence we check for the names in files too.

This resolves the autobuilder failure:

error: File not found: /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/xinit/1_1.3.3-r0/package/DEBIAN

RPM build errors:
     File not found: /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/xinit/1_1.3.3-r0/package/DEBIAN

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-lib: remove hard-coded /usr/include in dev package
Andrew McDermott [Wed, 15 Jan 2014 23:03:51 +0000 (23:03 +0000)]
alsa-lib: remove hard-coded /usr/include in dev package

Specify the location of the alsa headers using ${includedir}. Without
this no headers get added to the image when the alsa-lib-dev package is
included.

Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: add firmware for additional iwlwifi devices
Saul Wold [Thu, 16 Jan 2014 04:05:50 +0000 (20:05 -0800)]
linux-firmware: add firmware for additional iwlwifi devices

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonativesdk-packagegroup-sdk-host: reverse inherit order
Laurentiu Palcu [Thu, 16 Jan 2014 11:16:56 +0000 (13:16 +0200)]
nativesdk-packagegroup-sdk-host: reverse inherit order

Currently, tow successive toolchain builds for different hosts, will
issue a warning:

WARNING: The recipe nativesdk-packagegroup-sdk-host is trying to install
files into a shared area when those files already exist. Those files and
their manifest location are:
   /ssd/work/yp1/build/tmp/deploy/ipk/all/nativesdk-packagegroup-sdk-host_1.0-r11_all.ipk
   Matched in manifest-x86_64-nativesdk-packagegroup-sdk-host.package_write_ipk
Please verify which package should provide the above files.

That's because packagegroup is manually inherited after nativesdk which
is usually a BBCLASSEXTEND operation, done last.

[YOCTO #5396]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoallarch.bbclass: set SDK_ARCH and SDK_CC_ARCH to "none"
Laurentiu Palcu [Thu, 16 Jan 2014 11:16:55 +0000 (13:16 +0200)]
allarch.bbclass: set SDK_ARCH and SDK_CC_ARCH to "none"

allarch packages shouldn't use these variables.

[YOCTO #5396]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib: add missing dependencies for ptest
Ross Burton [Wed, 15 Jan 2014 17:32:11 +0000 (17:32 +0000)]
glib: add missing dependencies for ptest

Some of the GLib tests that we run under ptest are missing runtime dependencies.

iochannel-test needs the EUC-JP encoding.

convert needs the ISO-8859-1 and ISO-8859-15 encodings.

contenttype needs shared-mime-info.

Add these to the RDEPENDS so that these tests pass.

[ YOCTO #5696 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: cleanup mesa depends
Andreas Müller [Wed, 15 Jan 2014 10:11:10 +0000 (11:11 +0100)]
weston: cleanup mesa depends

* do not depend by default
* depend on virtual/mesa instead of mesa

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: mohonpeak bsp config and scc files
Bruce Ashfield [Wed, 15 Jan 2014 05:57:44 +0000 (00:57 -0500)]
linux-yocto/3.10: mohonpeak bsp config and scc files

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>