]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agolttng-ust: Move lttng-gen-tp to ${PN}-bin
Phil Blundell [Sun, 2 Feb 2014 12:19:09 +0000 (12:19 +0000)]
lttng-ust: Move lttng-gen-tp to ${PN}-bin

This helper script is used only during development and is not generally
useful on the target.  Inherit lib_package to move it to a different
package from the libraries.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: Also uninstall update-alternatives and shadow for read-only-rootfs
Phil Blundell [Sun, 2 Feb 2014 11:38:57 +0000 (11:38 +0000)]
image.bbclass: Also uninstall update-alternatives and shadow for read-only-rootfs

If the rootfs is read-only then we aren't going to be updating any
alternatives or modifying the password file and these binaries will
be redundant.  In an ideal world we would be able to stop them from
being installed in the first place but this is non-trivial to arrange.
As a workaround in the meantime, let's just uninstall them once image
construction is finished.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-passwd: Remove unnecessary DEPENDS
Phil Blundell [Sun, 2 Feb 2014 11:37:53 +0000 (11:37 +0000)]
base-passwd: Remove unnecessary DEPENDS

Commit 5cab5935d6924e0aca5da4b682bb83e54f20bc1d added dependencies on
docbook-utils-native and linuxdoc-tools-native, even though the same
commit ostensibly disabled building of the documentation and there was
no explanation of why these dependencies might be necessary.  It appears
that they don't serve any useful purpose so let's remove them again.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowireless-tools: Upgrade 29 -> 30.pre9
Khem Raj [Sat, 1 Feb 2014 08:51:17 +0000 (00:51 -0800)]
wireless-tools: Upgrade 29 -> 30.pre9

This also fixes the underlinking problems that
are unearthed with newer binutils 2.24
where one of the wireless-tools libraries is asking
for symbols from libm but all the symbols it asks
for are unfortunately weak and they do not let new
linker convince enough to link libm even though -lm
is on cmdline since we are using --as-needed by default
in linker, which means we end up with errors like

| make: *** [iwconfig] Error 1
| libiw.so.30: undefined reference to `ceil'
| libiw.so.30: undefined reference to `pow'
| libiw.so.30: undefined reference to `log10'
| libiw.so.30: undefined reference to `floor'
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibcgroup: Add bison-native and flex-native in depends
Noor [Thu, 30 Jan 2014 11:06:05 +0000 (16:06 +0500)]
libcgroup: Add bison-native and flex-native in depends

* libcgroup requires native packages for bison and flex to configure
  itself successfully. Added those in its DEPENDS.

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: allow multiple layers to provide their own TEST_TARGET class
Sipke Vriend [Thu, 30 Jan 2014 06:25:54 +0000 (16:25 +1000)]
lib/oeqa: allow multiple layers to provide their own TEST_TARGET class

Use a python module "folder" rather than a single module within
layers to ensure multiple layers can define a TEST_TARGET class.
Current implementation using controllers.py module will only allow
a single layer to define test targets.

Add a controllers folder as well as a TestTargetLoader class whose
job is to load the given TEST_TARGET class from any number of
python modules within the oeqa/controllers/ directory of any
layer.
The only condition will be that layers will need to ensure
the TEST_TARGET class name they provide is unique otherwise there
is no guarantee which class is instantiated. a bb.warn is used
to alude to this if it happens.

Signed-off-by: Sipke Vriend <sipke.vriend@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0: fix handling of skipped tests
Ross Burton [Thu, 30 Jan 2014 11:51:57 +0000 (11:51 +0000)]
glib-2.0: fix handling of skipped tests

Backport a patch from upstream to fix skipped tests, essential for gdk-pixbuf to
pass without enabling all loaders.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa/recipes-core/base-passwd/base-passwd/noshadow.patch: Split it into two parts
Laszlo Papp [Thu, 30 Jan 2014 18:41:35 +0000 (18:41 +0000)]
meta/recipes-core/base-passwd/base-passwd/noshadow.patch: Split it into two parts

The current change contains two different logics resulting that users like me
may need to partially override the behavior of it. It would be easier for end
users to keep one change while dropping the other if needed, like in our case.

Signed-off-by: Laszlo Papp <lpapp@kde.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpng: upgrade to 1.6.8
Marius Avram [Fri, 31 Jan 2014 12:32:28 +0000 (14:32 +0200)]
libpng: upgrade to 1.6.8

Note: license has not changed. MD5 sum of files changed because new
contributors were added to LICENSE and png.h file contains the
version of the new release.

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobinutils: Upgrade to 2.24
Khem Raj [Sat, 1 Feb 2014 09:00:15 +0000 (01:00 -0800)]
binutils: Upgrade to 2.24

This builds and runs images for all qemu machines

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonss: Add nativesdk to BBCLASSEXTEND and bugfix
David Nyström [Fri, 31 Jan 2014 09:30:03 +0000 (10:30 +0100)]
nss: Add nativesdk to BBCLASSEXTEND and bugfix

Since shsignlibs is used
from the nss postinstall hook. It should be included in
nativesdk to make offline rootfs construction possible.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonspr: Added nativesdk to BBCLASSEXTEND
David Nyström [Fri, 31 Jan 2014 09:30:02 +0000 (10:30 +0100)]
nspr: Added nativesdk to BBCLASSEXTEND

nspr is a dependency of nss. Since shsignlibs is used
from the nss postinstall hook. It should be included in
nativesdk to make offline rootfs construction possible.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept to SDK
David Nyström [Fri, 31 Jan 2014 09:30:01 +0000 (10:30 +0100)]
nativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept to SDK

Adding ability to use postinstalls intercepts in the nativesdk env, and
making sure the correlate between repo + SDK.

This to enable rootfs generation from a package repository using only a
package repository and the toolchain tarball.

See https://github.com/nysan/rootfs-sandbox for examples.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopostinst-intercept: New recipe to include postinstall intercepts in nativesdk
David Nyström [Fri, 31 Jan 2014 09:30:00 +0000 (10:30 +0100)]
postinst-intercept: New recipe to include postinstall intercepts in nativesdk

Adding ability to use postinstalls intercepts in the nativesdk env, and
making sure the correlate between repo + SDK.

This to enable rootfs generation from a package repository using only a
package repository and the toolchain tarball.

See https://github.com/nysan/rootfs-sandbox for examples.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-setuptools: Remove its provided by python-distribute
Khem Raj [Thu, 30 Jan 2014 04:00:14 +0000 (20:00 -0800)]
python-setuptools: Remove its provided by python-distribute

Use python-distribute-native in packagegroup-toolset-native

Also fixes warnings like

WARNING: The recipe python-setuptools is trying to install files into a
shared area when those files already exist. Those files and their
manifest location are:

/srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/setuptools.pth
    Matched in manifest-qemux86-64-python-distribute

/srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/site.pyc
    Matched in manifest-qemux86-64-python-distribute

/srv/ssd/sgw/builds/world/tmp/sysroots/qemux86-64/usr/lib/python2.7/site-packages/site.py
    Matched in manifest-qemux86-64-python-distribute

Conflicts:
meta/recipes-devtools/python/python-setuptools_1.4.bb

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopython-distribute: Add recipes for python2 and python3
Khem Raj [Sun, 10 Mar 2013 06:10:50 +0000 (22:10 -0800)]
python-distribute: Add recipes for python2 and python3

in python3-distribute rename easy_install to easy3_install

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopython_2.7.3.bb: Inherit python-dir
Khem Raj [Sun, 10 Mar 2013 06:13:58 +0000 (22:13 -0800)]
python_2.7.3.bb: Inherit python-dir

So it can get the correct python direcotries for python2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopython3: Add target and native recipes
Khem Raj [Tue, 14 May 2013 22:00:26 +0000 (15:00 -0700)]
python3: Add target and native recipes

3.3.3 is latest bugfix release in 3.3 series

License text is changed to reflect year and prev releases

+++ ../Python-3.3.2/LICENSE     2013-05-15 09:32:54.000000000 -0700
@@ -74,7 +74,9 @@
     3.2.1           3.2         2011        PSF         yes
     3.2.2           3.2.1       2011        PSF         yes
     3.2.3           3.2.2       2012        PSF         yes
+    3.2.4           3.2.3       2013        PSF         yes
     3.3.0           3.2         2012        PSF         yes
+    3.3.1           3.3.0       2013        PSF         yes

 Footnotes:

@@ -110,8 +112,8 @@
 distribute, and otherwise use Python alone or in any derivative
version,
 provided, however, that PSF's License Agreement and PSF's notice of
copyright,
 i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010,
-2011, 2012 Python Software Foundation; All Rights Reserved" are
retained in Python
-alone or in any derivative version prepared by Licensee.
+2011, 2012, 2013 Python Software Foundation; All Rights Reserved" are
retained
+in Python alone or in any derivative version prepared by Licensee.

We use native python in disutils bbclass and this needs
to peek into target sysroot when building plugins in cross
environment. Otherwise anything that inherits distutils3.bbclass
will not build.

Fix host include contamination issue

Let compiler append sysroot to include path if it can

Fix the compiler invocation and linker flags when cross compiling

The details are in patch header. This should fix the QA errors about
host contamination

Add virtual/libintl to dep list

There is use of libintl.h but we dont
express the dependency

Add lzma dependency for python3-misc

Fixes

and from test-dependencies.sh run there is undeterministic lzma
dependency:

WARN: packages/armv5te-oe-linux-gnueabi/python3/python3-misc/latest lost
dependency on  liblzma

Fix staging warnings due to duplicate install

WARNING: The recipe python3 is trying to install files into a shared
area when those files already exist. Those files and their manifest
location are:

builds/world/tmp/sysroots/qemux86-64/usr/include/python3.3m/pyconfig.h
builds/world/tmp/sysroots/qemux86-64/usr/lib/libpython3.3m.so.1.0
builds/world/tmp/sysroots/qemux86-64/usr/lib/libpython3.3m.so
builds/world/tmp/sysroots/qemux86-64/usr/lib/python3.3/config/Makefile

Let compiler search includes relative to sysroot

This makes it cross compilable and assumption on hardcoded
paths is fixed.

Errors like below would appear if ncursesw is installed on build host

cc1: warning: include location "/usr/include/ncursesw" is unsafe for
cross-compilation [-Wpoison-system-directories]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Fix linking not happening issue in modules

We need to tweak CONFIGURE_LDFLAGS for python3 instead of LDFLAGS
directly

Add second compile stage which uses original makefile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agodistutils: Introduce PYTHON_ABI variable
Khem Raj [Sat, 16 Mar 2013 21:14:32 +0000 (14:14 -0700)]
distutils: Introduce PYTHON_ABI variable

In python3 this has to be taken care of, it defines a variable to
denote ABI currently its at 'm' and it uses this to construct
the directory names for installing the python headers and library
names in sysroot. e.g. it will be something like ../python3.3m/...

We need this information when we are using distutils to cross build
python extentions and want to know the locations of python headers
and libraries install locations

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agoclasses: Add distutils for python3
Khem Raj [Sun, 10 Mar 2013 06:08:32 +0000 (22:08 -0800)]
classes: Add distutils for python3

In line with python2 add distutils and setuptools
classes for handing python3

Use python-distribute instead of python-setuptools in setuptools bbclass

Remove --single-version-externally-managed since its setuptools
specific and we dont use it anymore

Do build_ext as separate step during compile

Add DISTUTILS_BUILD_EXT_ARGS for modules to pass flags to build_ext step
in setup.py

Add build_ext as sepate step during compile and add
the cross sysrooted library and headers since we are cross
compiling

Use ${PYTHON_PN} in place of hardcoding python name

Remove the /etc/share if its empty

Since OE-Core times we now have machine specific sysroots
for targets unlike before when we used arch specific sysroots
so reflect that here

Use MACHINE for sysroot when not building for build host

Python's machinery replaces directories in sysroot path to match OE's
staging area sysroots. Earlier we use to have HOST_SYS represent sysroot
always but now we use MACHINE to represent target sysroots but HOST_SYS
to represent host sysroot. This patch caters to that difference

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agoclasses/distutils: Introduce PYTHON_PN
Khem Raj [Sun, 10 Mar 2013 06:03:59 +0000 (22:03 -0800)]
classes/distutils: Introduce PYTHON_PN

This is needed to accomodate python3 alongside
python2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopackage_rpm.bbclass: Trigger the regexp on exact keyword match
Khem Raj [Sat, 2 Mar 2013 00:04:40 +0000 (16:04 -0800)]
package_rpm.bbclass: Trigger the regexp on exact keyword match

This causes issues when postinstalls have ERROR keywords
its interpreted as error and image build is cancelled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopython3native.bbclass: Add python3 abstraction class
Khem Raj [Tue, 14 May 2013 21:57:25 +0000 (14:57 -0700)]
python3native.bbclass: Add python3 abstraction class

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agopython-3.3-manifest: Add python3 manifest file
Khem Raj [Tue, 14 May 2013 21:59:16 +0000 (14:59 -0700)]
python-3.3-manifest: Add python3 manifest file

Like python2 mostly except

This will package collections into python3-core instead
of python3-misc fixes errors like

Traceback (most recent call last):
File "/usr/lib/python3.3/site.py", line 69, in

     import os
   File "/usr/lib/python3.3/os.py", line 659, in <module>
     from collections.abc import MutableMapping
 ImportError: No module named 'collections'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agogenerate-manifest-3.3.py: Add script to generate python 3.3 manifests
Khem Raj [Mon, 8 Oct 2012 20:51:11 +0000 (13:51 -0700)]
generate-manifest-3.3.py: Add script to generate python 3.3 manifests

Bases on python 2.7.x generator

Package collections/ in python-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 years agosstate-cache-management.sh: don't remove all packagedata sstate archives
Martin Jansa [Wed, 29 Jan 2014 21:03:43 +0000 (22:03 +0100)]
sstate-cache-management.sh: don't remove all packagedata sstate archives

* packagedata task was introduced in:
  commit 6107ee294afde395e39d084c33e8e94013c625a9
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Wed Jan 23 14:27:33 2013 +0000
  Subject: Split do_packagedata task from do_package
* rm_by_stamps wasn't using do_packagedata or do_packagedata_setscene
  stamp files to find which sstate archives to keep, so it was removing
  all of them

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Fix available architectures
Martin Jansa [Wed, 29 Jan 2014 21:03:42 +0000 (22:03 +0100)]
sstate-cache-management.sh: Fix available architectures

* grep for AVAILTUNES isn't enough in cases where AVAILTUNE doesn't
  match exactly with TUNE_PKGARCH, e.g. AVAILTUNE "cortexa8thf-neon"
  and TUNE_PKGARCH "cortexa8t2hf-vfp-neon", instead of trying to find
  dynamically every available TUNE_PKGARCH (we have _a lot_ of them
  even with oe-core only), add parameter --extra-archs where user can
  define extra architectures he supports in given build
* Don't replace '-' with '_' for extra-archs, it does apply to MACHINE
  names and some AVAILTUNES, but e.g. cortexa8thf-neon shouldn't be
  converted to cortexa8thf_neon
* Add empty architecture for populate_lic sstate archives
* Add ${build_arch}_${arch} combinations for toolchain recipes (e.g.
  gcc-cross is using x86_64_i586

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Show total number of files when showing how many will...
Martin Jansa [Wed, 29 Jan 2014 21:03:41 +0000 (22:03 +0100)]
sstate-cache-management.sh: Show total number of files when showing how many will be deleted

* it's good to see some the ratio of delted files until now it was
  showing only when all or none files were to be removed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Fix rm_by_stamps() to work after SSTATE_SWSPEC change
Martin Jansa [Wed, 29 Jan 2014 21:03:40 +0000 (22:03 +0100)]
sstate-cache-management.sh: Fix rm_by_stamps() to work after SSTATE_SWSPEC change

* format of filenames for sstate archives was changed in:
  commit 6f823a23c5f1d0ffa0a27db1c1bc1907de788505
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Fri Dec 20 12:06:02 2013 +0000
  Subject: sstate: Convert to use ':' as a filename sperator and use SSTATE_SWSPEC globally
* this one doesn't need special care for old sstate- names
  they will be removed automatically as they don't match with
  any checksum in rigth format from stamps directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Fix remove_duplicated() to work after SSTATE_SWSPEC change
Martin Jansa [Wed, 29 Jan 2014 21:03:39 +0000 (22:03 +0100)]
sstate-cache-management.sh: Fix remove_duplicated() to work after SSTATE_SWSPEC change

* format of filenames for sstate archives was changed in:
  commit 6f823a23c5f1d0ffa0a27db1c1bc1907de788505
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Fri Dec 20 12:06:02 2013 +0000
  Subject: sstate: Convert to use ':' as a filename sperator and use SSTATE_SWSPEC globally
* remove_duplicated() wasn't able to find available architectures and
  duplicate files since this change
* add extra step to remove old sstate archives starting with sstate-
  (instead of sstate:)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/cp-noerror: Avoid a race
Richard Purdie [Sat, 1 Feb 2014 10:53:13 +0000 (10:53 +0000)]
scripts/cp-noerror: Avoid a race

Its possible something can delete $1 (since it may be empty) whilst cp-noerror
is starting. Add an exception to handle this issue since if this happens, we
shouldn't return an error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoapmd.service: Fix typo (not mandatory EnvironmentFile prefix)
Tobias Blom [Fri, 31 Jan 2014 16:14:35 +0000 (17:14 +0100)]
apmd.service: Fix typo (not mandatory EnvironmentFile prefix)

Prefix to EnvironmentFile should be preciding the filenamn.

Signed-off-by: Tobias Blom <tobias.blom@techne-dev.se>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agominicom: fix for multilib and x32 build crash
Cristian Iorga [Fri, 31 Jan 2014 17:07:37 +0000 (19:07 +0200)]
minicom: fix for multilib and x32 build crash

For source URI, the use of ${PN}-${PV} leads to
build failures for multilib and x32.
${BP} is properly used instead.

Partial fix for [YOCTO #5781].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agooeqa/runtime: syslog: update --help test
Stefan Stanacar [Mon, 27 Jan 2014 11:23:17 +0000 (13:23 +0200)]
oeqa/runtime: syslog: update --help test

busybox 1.22 now returns exitcode 0 instead of 1 for
--help options, so this test needs to be updated when
busybox gets upgraded to 1.22.

https://bugs.busybox.net/show_bug.cgi?id=5612
http://git.busybox.net/busybox/commit/?id=efd0698f74caab0a0c8a51228b923ee142e8e278

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoprocps: make the 'watch' command register to /bin/watch
Chen Qi [Wed, 22 Jan 2014 02:39:49 +0000 (10:39 +0800)]
procps: make the 'watch' command register to /bin/watch

This solves the integration problem with busybox.

Previously, there was a patch in busybox to move 'watch' to /usr/bin.
Such patch is not accepted by upsteam and really not necessary as
our ALTERNATIVE system can easily solve such intergration problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocoreutils: move 'stat' to base_bindir_progs
Chen Qi [Wed, 22 Jan 2014 02:39:48 +0000 (10:39 +0800)]
coreutils: move 'stat' to base_bindir_progs

To correctly integrate with busybox in our system, we should add
'stat' to base_bindir_progs so that the 'stat' commands from busybox
and coreutils both register to /bin/stat.

Previously there was a patch in busybox to move 'stat' to /usr/bin.
But as we can easily solve this integration problem by modifying the
coreutils recipe, this patch has been removed. After all, maintaining
a patch that's not accepted by upsteam should not be our No.1 choice.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agometa-skeleton: rename busybox's bbappend file
Chen Qi [Wed, 22 Jan 2014 02:39:47 +0000 (10:39 +0800)]
meta-skeleton: rename busybox's bbappend file

As busybox has been upgraded, rename this bbappend file to make it
match the current version of busybox.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: upgrade to stable 1.22.1
Chen Qi [Wed, 22 Jan 2014 02:39:46 +0000 (10:39 +0800)]
busybox: upgrade to stable 1.22.1

Upgrade busybox to the stable release 1.22.1.

During this upgrade, 9 patches are removed. Reasons are detailed below.

The following 6 patches are removed as they have been merged.
    meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch
    meta/recipes-core/busybox/busybox/busybox-list-suid-and-non-suid-app-configs.patch
    meta/recipes-core/busybox/busybox/busybox-sed-fix-sed-clusternewline-testcase.patch
    meta/recipes-core/busybox/busybox/busybox-sulogin-empty-root-password.patch
    meta/recipes-core/busybox/busybox/find-get-rid-of-nested-functions.patch
    meta/recipes-core/busybox/busybox/testsuite-du-du-k-works-fix-false-positive.patch

The following three patches are removed because they are mainly about moving
binaries from /bin to /usr/bin to make the update-alternative work correctly
at rootfs time. We can easily solve this problem by changing recipes. There's
no compelling reason why such patches are needed.
    meta/recipes-core/busybox/busybox/run-parts.in.usr-bin.patch
    meta/recipes-core/busybox/busybox/stat-usr-bin.patch
    meta/recipes-core/busybox/busybox/watch.in.usr-bin.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosanity.bbclass: check that TMPDIR is not located on nfs
Robert Yang [Wed, 22 Jan 2014 10:50:20 +0000 (18:50 +0800)]
sanity.bbclass: check that TMPDIR is not located on nfs

There would be some unexpected errors when the whole TMPDIR is located
on nfs, so add a test for it in sanity.bbclass.

Note:
The better way to get the filesystem id should be get f_fsid from struct
statvfs, but there is no f_fsid in os.stat() or os.statvfs(), so we use
'stat -f -c "%t"' here.

BTW., s/tmpdir/TMPDIR/ in the previous comment message to make them have
a uniform.

[YOCTO #5442]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosysvinit: add initscripts-functions to RDEPENDS
Chen Qi [Thu, 23 Jan 2014 12:12:36 +0000 (20:12 +0800)]
sysvinit: add initscripts-functions to RDEPENDS

As sysvinit doesn't inherit update-rc.d, we need to add this dependency
manually.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoupdate-rc.d: automatically rdepend on initscripts-funtions
Chen Qi [Thu, 23 Jan 2014 12:12:35 +0000 (20:12 +0800)]
update-rc.d: automatically rdepend on initscripts-funtions

Automatically add 'initscripts-functions' to packages when needed.

This extra dependency is added only when the package's init script
would be used at system start-up. In other words, in a systemd based
image, if the package has already got its service files, it will not
have this extra dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoRevert "Add missing RDEPENDS of initscripts-functions"
Chen Qi [Thu, 23 Jan 2014 12:12:34 +0000 (20:12 +0800)]
Revert "Add missing RDEPENDS of initscripts-functions"

Instead of manually adding initscripts to RDEPENDS of each package,
we should make it automatically handled by the update-rc.d.bbclass.
This solution would have the benefit of backward compatibility. In
other words, users need not modify their recipes.

This reverts commit 16080a3485bd793edd66ed8361f1e8b86a9e19ea.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoparted: enable ptest support
Chong Lu [Sun, 26 Jan 2014 05:56:09 +0000 (13:56 +0800)]
parted: enable ptest support

Install parted 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 agocurl:Fix multilib header conflict - curl/curlbuild.h
Baogen Shang [Sun, 26 Jan 2014 07:55:05 +0000 (15:55 +0800)]
curl:Fix multilib header conflict - curl/curlbuild.h

curl/curlbuild.h conflicts between 32-bit and 64-bit versions.

Signed-off-by: Baogen Shang <baogen.shang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoAdd Cortex A7 support for NEONv2 & FPv4
Kristof Robot [Sun, 26 Jan 2014 09:03:56 +0000 (10:03 +0100)]
Add Cortex A7 support for NEONv2 & FPv4

[YOCTO #5710]

Add tuning options for Cortex-A7 with NEONv2 & FPv4:
- cortexa7hf-neon-vfpv4
- cortexa7thf-neon-vfpv4

Signed-off-by: Kristof Robot <krirobo@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomdadm: fix build on qemumips64
Robert Yang [Sun, 26 Jan 2014 09:14:54 +0000 (17:14 +0800)]
mdadm: fix build on qemumips64

The mips64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead defaulting to u64
== long in userspace. Define __SANE_USERSPACE_TYPES__ to get int-ll64.h
included.

We had a similar fix on ppc64, use it for mips64 will fix the problem.

[YOCTO #5758]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoe2fsprogs:fix build native package error
Baogen Shang [Mon, 27 Jan 2014 07:35:20 +0000 (15:35 +0800)]
e2fsprogs:fix build native package error

e2fsprogs requires pkgconfig to build native package

Signed-off-by: Baogen Shang <baogen.shang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agooeqa/utils: sshcontrol: rewrite the SSHControl class
Stefan Stanacar [Tue, 28 Jan 2014 13:55:32 +0000 (15:55 +0200)]
oeqa/utils: sshcontrol: rewrite the SSHControl class

Split the class in two, one to handle the process and the
timeout based on output and one for the actual ssh/scp commands.
The ssh/scp methods now use the same run method.
It does the same thing as before but:
- it looks cleaner.
- adds support for using a different user than root
- optionally, raises an exception when exit code != 0
(that's useful for code outside of tests, where you wouldn't want
to check the return code every time as the tests do)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoquilt: add ac_cv_path_BASH to CACHED_CONFIGUREVARS also for native
Ming Liu [Thu, 23 Jan 2014 06:45:48 +0000 (14:45 +0800)]
quilt: add ac_cv_path_BASH to CACHED_CONFIGUREVARS also for native

A issue was fixed in target recipe with commit: 95893404

[
    quilt: added ac_cv_path_BASH to CACHED_CONFIGUREVARS

    On Fedora 17, bash has moved to /usr/bin/bash and the configure process finds it
    on the host machine there, this ensures that it is set correctly for the target.

    [YOCTO #2363]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
]

But it's also impacting native package in the case that the sstate is used
between Fedora 17(or later) and other hosts.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: fix ffsb ftbfs on cross-compiled environment
Fathi Boudra [Tue, 28 Jan 2014 12:41:54 +0000 (14:41 +0200)]
ltp: fix ffsb ftbfs on cross-compiled environment

Add ffsb-remove-hardcoded-configure.patch: get rid of the hardcoded configure call preventing cross-compilation
Add do_configure_prepend to explicitly force regeneration the configure file and pass configure options as appropriate.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: fix comment to refer to oe-core instead of poky
Fathi Boudra [Tue, 28 Jan 2014 12:41:53 +0000 (14:41 +0200)]
ltp: fix comment to refer to oe-core instead of poky

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: update ffsb-6.0-rc2 license file path
Fathi Boudra [Tue, 28 Jan 2014 12:41:52 +0000 (14:41 +0200)]
ltp: update ffsb-6.0-rc2 license file path

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: drop do_unpack_append/do_extract_tarball
Fathi Boudra [Tue, 28 Jan 2014 12:41:51 +0000 (14:41 +0200)]
ltp: drop do_unpack_append/do_extract_tarball

we don't use tarball anymore and switched to ltp github mirror.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: fix style using oe-stylize (no changes in the content of the recipe itself)
Fathi Boudra [Tue, 28 Jan 2014 12:41:50 +0000 (14:41 +0200)]
ltp: fix style using oe-stylize (no changes in the content of the recipe itself)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: update SRC_REV to LTP 20140115 release
Fathi Boudra [Tue, 28 Jan 2014 12:41:49 +0000 (14:41 +0200)]
ltp: update SRC_REV to LTP 20140115 release

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agokernel.bbclass: Fix empty modules directory QA issue
Nathan Rossi [Tue, 14 Jan 2014 01:21:00 +0000 (11:21 +1000)]
kernel.bbclass: Fix empty modules directory QA issue

If a kernel is built without any external modules (aka no CONFIG_*=m),
then during a modules_install of the kernel an empty directory is
created at /lib/modules/${KERNEL_VERIONS}/kernel. This is behaviour of
the kernel infrastructure, the directory would normally be populated
with the modules that were built.

However because of the expectations of kernel-modules-split, no packages
are created when there are no modules and an empty directory lingers.
This raises QA issues as warning or errors (depending on the distro).

The following patch changes the kernel_do_install task to check if the
directory is empty and if so removes it.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosyslinux: fix booting memtest86+ using pxelinux regression
Jonathan Liu [Sun, 2 Feb 2014 04:58:52 +0000 (15:58 +1100)]
syslinux: fix booting memtest86+ using pxelinux regression

After syslinux was updated from 4.07 to 6.01, booting memtest86+ using
pxelinux would fail:
PXELINUX 6.01 2013-07-04 Copyright (C) 1994-2013 H. Peter Anvin et al
Loading memtest86... ok
Booting kernel failed: invalid argument

This backports the necessary upstream patches to allow memtest86+ to
boot using pxelinux again.

[YOCTO #5501]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agounfs3: Fix compile regression from unfs3 port
Jason Wessel [Sat, 1 Feb 2014 14:07:39 +0000 (08:07 -0600)]
unfs3: Fix compile regression from unfs3 port

A line got dropped from the original patch when porting to the latest
unfs3.  The regression was introduced in commit 7d8075c64 (unfs3: Fix
dependencies and allow target builds).

This patch restores the missing line from the original which had been
working fine for over a year's time.

 --- a/Config/Makefile.in
 +++ b/Config/Makefile.in
 @@ -12,7 +12,9 @@ all: lib.a
  lib.a: $(OBJS)
        $(AR) crs lib.a $(OBJS)

 -y.tab.h y.tab.c: exports.y
 +y.tab.h: y.tab.c
 +
 +y.tab.c: exports.y
         $(YACC) -d exports.y

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc: Include patch scheduled for GCC 4.8.3 to fix epilogue on ARM
Holger Hans Peter Freyther [Fri, 31 Jan 2014 09:45:17 +0000 (10:45 +0100)]
gcc: Include patch scheduled for GCC 4.8.3 to fix epilogue on ARM

GCC 4.8.0, 4.8.1 and 4.8.2 can generate broken epilogues for the
ABI used by the kernel. Apply the patch that is included for GCC
4.8.3 from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854.

The issue was found on Yocto/Dora and the patch should be backported
to this branch. A kernel built with Dora's GCC 4.8.1 misbehaved on:

 while true;
 do
    (for i in `seq 1 100`;
        do
            echo "Log message... $RANDOM";
        done) | logger;
 done

busybox's syslogd would from time to read a huge negative value and
then exit, strace would get stuck waiting on a syscall. After this
patch it appears to work better.

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtool: Set CONFIG_SHELL for nativesdk
Richard Purdie [Fri, 31 Jan 2014 10:24:42 +0000 (10:24 +0000)]
libtool: Set CONFIG_SHELL for nativesdk

We're seeing similar failures that we saw from libtool-native and libtool-cross
where /bin/sh changed from bash to dash on different machines after sstate
reusage. This patch fixes nativesdk to avoid the same issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodb: Fix libtool linking against local libstdc++.so
Tyler Hall [Sat, 25 Jan 2014 04:14:03 +0000 (23:14 -0500)]
db: Fix libtool linking against local libstdc++.so

Building the C++ bindings in a484b35b818768487ff27cf06b8c5d4e128126af
introduced this error on systems with /usr/lib/libstdc++.so present:

    /usr/lib/libstdc++.so: file not recognized: File format not recognized

The shipped libtool is sysroot aware, so pass --with-sysroot so it will
extract the sysroot from the compiler.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocogl: Place the patch in the correct directory
Richard Purdie [Thu, 30 Jan 2014 14:09:13 +0000 (14:09 +0000)]
cogl: Place the patch in the correct directory

Otherwise this causes parsing warnings and build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster.bbclass: save original package name
Alexandru DAMIAN [Wed, 29 Jan 2014 17:21:50 +0000 (17:21 +0000)]
toaster.bbclass: save original package name

If we can get the original package name when reading
package infos in toaster.bbclass, we save it for proper
referincing in the toater ui.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodocumentation.conf: update task descriptions
Barros Pena, Belen [Wed, 29 Jan 2014 17:21:51 +0000 (17:21 +0000)]
documentation.conf: update task descriptions

This patch updates the task descriptions in documentation.conf

It also has a bunch of grammar fixes for the variable descriptions.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage.bbclass: Show which files require given dependency in debug output
Martin Jansa [Tue, 28 Jan 2014 14:26:11 +0000 (15:26 +0100)]
package.bbclass: Show which files require given dependency in debug output

* when log.do_package shows some unexpected dependency, people usually
  need to grep package directory to find which binary was creating that
  dependency, show it directly in the debug output

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage.bbclass: Don't search for providers of PRIVATE_LIBS
Martin Jansa [Tue, 28 Jan 2014 14:26:10 +0000 (15:26 +0100)]
package.bbclass: Don't search for providers of PRIVATE_LIBS

* split PRIVATE_LIBS and don't use find(), so that libfoo cannot be
  found in PRIVATE_LIBS = "libfoobar"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocogl: kms: include necessary header for size_t
Andreas Oberritter [Tue, 28 Jan 2014 20:27:54 +0000 (21:27 +0100)]
cogl: kms: include necessary header for size_t

Fixes compilation in cases where stddef.h is not already
included by EGL headers.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agounzip: Pass LDFLAGS to the linker
Mikhail Durnev [Wed, 29 Jan 2014 06:03:55 +0000 (17:03 +1100)]
unzip: Pass LDFLAGS to the linker

Change Makefile to use LDFLAGS

Signed-off-by: Mikhail Durnev <Mikhail_Durnev@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooeqa/runtime: smart: fix adding channels
Stefan Stanacar [Wed, 29 Jan 2014 12:30:57 +0000 (14:30 +0200)]
oeqa/runtime: smart: fix adding channels

Without this it won't add core2-64 and similar channels, as the
directory name in deploy_dir/rpm uses _ not - as the package arch.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooeqa/runtime: drop restartTarget method
Stefan Stanacar [Wed, 29 Jan 2014 12:24:04 +0000 (14:24 +0200)]
oeqa/runtime: drop restartTarget method

Restart is a property of a specific target, not
of a test class, should a test really need to restart
the target the direct method should be called.
Also some tests used this to enforce more ram, which
makes sense only for qemu targets only (and the inital
reason this was needed isn't valid anymore, qemu machines had
the default ram size bumped a while ago).

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: Allow building without X11 support
Jonas Eriksson [Wed, 29 Jan 2014 09:38:44 +0000 (10:38 +0100)]
qemu: Allow building without X11 support

To enable the construction of minimal hypervisors based on OE, it is
important to be able to build qemu without it requiring X support. By
checking that the distro is built with the x11 feature before adding
virtual/x11 to the dependencies, this is made possible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agounfs3: Fix dependencies and allow target builds
Jason Wessel [Wed, 29 Jan 2014 14:57:33 +0000 (08:57 -0600)]
unfs3: Fix dependencies and allow target builds

Fixed in this patch:
  * All patches marked as submitted to the upstream
  * Remove the pseudo dependency because unfs3 can fully stand alone
    or be used with pseudo and it does not link against pseudo
  * Dependencies to flex for nativesdk and target builds are fixed
    such that unfs3 can be deployed into an image
  * Add unfs3 references in separatebuilddir.inc because unfs3
    works correctly with autotools.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopkgconfig: Drop glibconfig from SRC_URI to unbreak builds after previous commit
Richard Purdie [Tue, 28 Jan 2014 22:33:26 +0000 (22:33 +0000)]
pkgconfig: Drop glibconfig from SRC_URI to unbreak builds after previous commit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopkgconfig: remove out-dated configure options and dependencies
Ross Burton [Tue, 28 Jan 2014 17:44:04 +0000 (17:44 +0000)]
pkgconfig: remove out-dated configure options and dependencies

0.27 onwards uses a snapshot of glib 2 not glib 1, so drop the
do_configure_prepend and update the internal/installed options as appropriate.

Legacy scripts were removed in 0.26.

Use of popt was removed in 0.28.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-numpy: don't search host directories for libraries
Ross Burton [Tue, 28 Jan 2014 17:31:55 +0000 (17:31 +0000)]
python-numpy: don't search host directories for libraries

The build process hard-codes searches of various directories in /usr when
looking for libraries, delete this to avoid host contamination.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/runqemu-internal: use -cpu core2duo for qemux86-64
Stefan Stanacar [Tue, 28 Jan 2014 17:16:39 +0000 (19:16 +0200)]
scripts/runqemu-internal: use -cpu core2duo for qemux86-64

Now that the tune for qemux86-64 changed to core2-64 we need to
tell the emulator to use a proper CPU model. With the default setting
of qemu64 we'll get things like:

root@qemux86-64:~# smart --help
traps: python[758] trap invalid opcode ip:7f2af01f6be7 sp:7fff49466ef0 error:0 in strop.so[7f2af01f5000+6000]
Illegal instruction

If the tune for qemux86 changes, that needs to be updated too.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooeqa/runtime: rpm: fix finding the test rpm file
Stefan Stanacar [Tue, 28 Jan 2014 16:14:18 +0000 (18:14 +0200)]
oeqa/runtime: rpm: fix finding the test rpm file

Translate TUNE_PKGARCH to find the right file (this
used to work because tune for qemux86-64 used to be
x86_64 now it's core2-64)
Also, while using packagedata was nice, it's harder to make
the test exportable and runnable outside of the
build system. (where oe.packagedata isn't available)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoudev: fix typo
Chen Qi [Thu, 23 Jan 2014 07:10:39 +0000 (15:10 +0800)]
udev: fix typo

Fix the typo in the RDEPENDS statement to make it have real effect.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
David Nyström [Wed, 22 Jan 2014 15:48:51 +0000 (16:48 +0100)]
packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot

Some postinstall scripts use the qemuwrapper script, so to be able to
offline install these packages outside of the bitbake environment, this script
needs to be exposed also in the SDK.

This to enable rootfs generation from a package repository using only a
package repository and the toolchain tarball.

See https://github.com/nysan/rootfs-sandbox for examples.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocml1.bbclass: Fix return code handling in do_menuconfig()
Jacob Kroon [Mon, 27 Jan 2014 21:00:21 +0000 (22:00 +0100)]
cml1.bbclass: Fix return code handling in do_menuconfig()

On my system, doing "bitbake -c menuconfig busybox" pops up
a gnome-terminal, I can see that the compilation starts but then the
terminal automatically exits.

It turns out I don't have ncurses development package installed on my host,
and OE's host sysroot isn't being passed to gcc, so compilation fails.
The window automatically closes before I can read the error message
since the '$' in the return code check needs to be escaped.

Make sure the user can read the error message by properly checking the
return code.

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowpa-supplicant: Add dependency on openssl
Mikhail Durnev [Tue, 28 Jan 2014 07:40:35 +0000 (18:40 +1100)]
wpa-supplicant: Add dependency on openssl

Building of wpa-supplicant failed due to missing dependency on openssl:
crypto_openssl.c:10:30: fatal error: openssl/opensslv.h: No such file or directory

Signed-off-by: Mikhail Durnev <Mikhail_Durnev@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomultilib.bbclass: fix Multilib QA Issue
Ming Liu [Tue, 28 Jan 2014 07:31:15 +0000 (15:31 +0800)]
multilib.bbclass: fix Multilib QA Issue

Multilib QA warning was observed, as follows:
------
WARNING: Multilib QA Issue: lib32-oprofile package lib32-oprofile -
suspicious values 'kernel-vmlinux' in RRECOMMENDS
------

The package starting with 'kernel-vmlinux' should be ok with multilib QA
checking.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildhistory.bbclass: Improve robustness in image file listing
Otavio Salvador [Thu, 23 Jan 2014 12:11:05 +0000 (10:11 -0200)]
buildhistory.bbclass: Improve robustness in image file listing

The filenames sometimes may have strange names. With the 'awk' script
it handled a limited number of spaces in the filename and a package
installing a file named "test file with spaces" would have its name
truncated.

This patch uses the find's printf formating to simplify the code and
properly handle this case. From a testing image, the only diff produced
is:

,----[ files-in-image.txt diff ]
| --rwxr-xr-x root       root                0 ./usr/bin/test\ file\ with\
| +-rwxr-xr-x root       root                0 ./usr/bin/test file with spaces
`----

The options used are available since findutils 4.2.5, released in 19
Nov 2004, making it available in all supported host distributions.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: sshcontrol: Allow alternate port for SSHControl
Sipke Vriend [Mon, 27 Jan 2014 22:25:09 +0000 (08:25 +1000)]
lib/oeqa: sshcontrol: Allow alternate port for SSHControl

Add an optional parameter to SSHControl so the user can specify
and alternate port to the default (22).

Signed-off-by: Sipke Vriend <sipke.vriend@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocombo-layer: Make directories only if they don't exisit yet
Saul Wold [Fri, 24 Jan 2014 19:25:00 +0000 (11:25 -0800)]
combo-layer: Make directories only if they don't exisit yet

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolz4: actually install things
Koen Kooi [Thu, 23 Jan 2014 09:06:28 +0000 (10:06 +0100)]
lz4: actually install things

This failure was masked by having lz4 installed on the host system :(

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorpcbind: fixes crash during start
Cristian Iorga [Fri, 24 Jan 2014 18:28:52 +0000 (20:28 +0200)]
rpcbind: fixes crash during start

This fix integrates a patch released
after rpcbind 0.2.1 distribution.
0001-rpcbind-rpcuser-not-being-set-in-Makefile.am.patch
fixes the issue of rpcuser not being set in Makefile.am,
which causes rpcbind to immediately exit.

Fixes [YOCTO #5733].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agotiff: flesh out PACKAGECONFIG
Christopher Larson [Fri, 24 Jan 2014 17:26:24 +0000 (10:26 -0700)]
tiff: flesh out PACKAGECONFIG

Adds packageconfigs for all appropriate configure arguments (other than jpeg
8/12 bit mode support, where I wasn't clear on the deps, and which I doubt we
care about).

jpeg, zlib, and xz dependencies can now be controlled.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agooe-selftest: New tests for sstate relocation
Corneliu Stoicescu [Fri, 24 Jan 2014 17:05:47 +0000 (18:05 +0100)]
oe-selftest: New tests for sstate relocation

Added new tests:
- sstate relocation stress testing
- rebuild from sstate stress testing

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoscons bbclass: enable parallel make
Koen Kooi [Thu, 23 Jan 2014 12:31:26 +0000 (13:31 +0100)]
scons bbclass: enable parallel make

Scons supports -jX parallel make, so let's use that. A small scale test of a few recipes shows no failures!

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorunqemu, runqemu-internal: Allow slirp for NFS and KVM use
Jason Wessel [Thu, 23 Jan 2014 14:32:46 +0000 (08:32 -0600)]
runqemu, runqemu-internal: Allow slirp for NFS and KVM use

The default slirp address for the NFS server is 10.0.2.2.  If not
using a tap interface this address must be used or the target system
cannot connect properly.  Also the ip=... kernel arguments need to be
set to dhcp when using slirp or the root NFS will not get setup
properly.

The call to cleanup() results in a routine which is not defined when
setting up the NFS because it is called before acquire() for the
locking of the tap interfaces, the solution being to simply not call
cleanup() that early.

When using slirp, kvm should not execute the vhost net checks because
the vhost net will not be configure or used.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorunqemu-export-rootfs: update for unfs3
Jason Wessel [Thu, 23 Jan 2014 14:32:45 +0000 (08:32 -0600)]
runqemu-export-rootfs: update for unfs3

The unfs3 no longer has an rpc.mountd component. There is just a
single server for mountd and nfsd requests.  This means changing
the name of the server in the scripts that check for it.

[YOCTO #5639]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agounfs-server: Remove unfs-server recipe and patches
Jason Wessel [Thu, 23 Jan 2014 14:32:44 +0000 (08:32 -0600)]
unfs-server: Remove unfs-server recipe and patches

The unfs-server only supports NFS v2 and it is not useful any longer
with the advent of 64 bit inodes and the fact that the server has only
a 32 bit key for the NFS hash which is hardcoded back to the inode.

This recipe is replaced with a user mode NFS server using v3.

[YOCTO #5639]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorunqemu: Use the newer unfs3 for serving user space nfs
Saul Wold [Thu, 23 Jan 2014 14:32:43 +0000 (08:32 -0600)]
runqemu: Use the newer unfs3 for serving user space nfs

This new version correctly handles the 64bit ext3 / ext4 issues we
were seeing with the older unfs-server which did not handle 64bit file
systems correctly, producing the duplicate cookies.

[YOCTO #5639]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agounfs3, unfs-server: Replace all instances of unfs-server with unfs3
Jason Wessel [Thu, 23 Jan 2014 14:32:42 +0000 (08:32 -0600)]
unfs3, unfs-server: Replace all instances of unfs-server with unfs3

Other recipes dependencies and even some comments need to be updated
for the removal of unfs-server and the replacement with unfs3.  The
unfs3 is a complete drop in replacement providing all the prior
functionality of NFSv2 but also adding NFSv3.

[YOCTO #5639]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agounfs3: Add a NFSv3 user mode server for use with runqemu
Jason Wessel [Thu, 23 Jan 2014 14:32:41 +0000 (08:32 -0600)]
unfs3: Add a NFSv3 user mode server for use with runqemu

The user mode nfs server allows the use of runqemu without any root
privileges and may even be accelerated with kvm.

Example:

runqemu-extract-sdk tmp-eglibc/deploy/images/qemux86-64/core-image-minimal-qemux86-64.tar.bz2 rootfs

runqemu qemux86-64 `pwd`/rootfs nographic slirp kvm

[YOCTO #5639]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodpkg: use systemd service for first boot configuration
Chen Qi [Fri, 24 Jan 2014 09:47:37 +0000 (04:47 -0500)]
dpkg: use systemd service for first boot configuration

Use a systemd service file for first boot configuration for dpkg
based images which has 'package-management' in its IMAGE_FEATURES.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoimage.bbclass: fix paths to run-postinsts
Ross Burton [Tue, 17 Dec 2013 10:55:06 +0000 (10:55 +0000)]
image.bbclass: fix paths to run-postinsts

The run-postinsts script has been moved to ${sbindir}.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemd-compat-units: remove run-postints service
Ross Burton [Fri, 13 Dec 2013 19:36:23 +0000 (19:36 +0000)]
systemd-compat-units: remove run-postints service

Remove this service as it's moved to the run-postinsts recipe.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorun-postinsts: Add systemd service file
Ross Burton [Tue, 17 Dec 2013 10:50:09 +0000 (10:50 +0000)]
run-postinsts: Add systemd service file

This patch mainly adds a systmd service file for run-postinsts,
which is started at first boot to run the post-install scripts.

Apart from this, this patch also modifies the installation location
of run-postinsts to ${sbindir}. This is because this script would be
used by both sysvinit and systemd based images. So it's more reasonable
to make it locate under ${sbindir}.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>