]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agodevtool: second fix for running from a different directory
Markus Lehtonen [Wed, 23 Sep 2015 10:05:23 +0000 (11:05 +0100)]
devtool: second fix for running from a different directory

Do not change change current working directory permanently, but, only
for the duration of tinfoil initialization instead. The previous fix
caused very unintuitive behavior where using relative paths were solved
with respect to the builddir instead of the current working directory.
E.g. calling "devtool extract zlib ./zlib" would always create create
srctree in ${TOPDIR}/zlib, independent of the users cwd.

(From OE-Core rev: 4c7f159b0e17a0475a4a4e9dc4dd012e3d2e6a1f)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoguile: cleanup buildpaths and add RDEPENDS on pkgconfig
Jackie Huang [Wed, 23 Sep 2015 08:41:57 +0000 (16:41 +0800)]
guile: cleanup buildpaths and add RDEPENDS on pkgconfig

* fix the path for "define %pkg-config-program" in guile-config
* clean the --sysroot in guile-snarf
* add RDEPENDS on pkgconfig

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogmp: Use __gnu_inline__ attribute in 4.2.1
Jussi Kukkonen [Wed, 23 Sep 2015 07:34:56 +0000 (10:34 +0300)]
gmp: Use __gnu_inline__ attribute in 4.2.1

gcc 5 defaults to C11 rules about "extern inline": this breaks
any code that includes gmp.h header from gmp 4.2.1 with 'multiple
definition' errors.

disable-stdc patch is no longer required because of this.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopseudo_1.7.4.bb: fix f*open()
Peter Seebach [Tue, 22 Sep 2015 22:59:10 +0000 (17:59 -0500)]
pseudo_1.7.4.bb: fix f*open()

The 0600 modes were coming from fopen/freopen/etc., because those
don't specify a filesystem mode (just an access mode like "r" or
"w"). Use 0666 & ~umask. (And then the PSEUDO_FS_MODE macro masks
in the 0600 bits we want to be sure are present.)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner.py: Remove duplicate message on LoggingThread start
Aníbal Limón [Tue, 22 Sep 2015 16:56:23 +0000 (11:56 -0500)]
oeqa/utils/qemurunner.py: Remove duplicate message on LoggingThread start

The Starting logging thread message is also executed on run() inside
LoggingThread class.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner.py: Fix HIGH CPU usage on LoggingThread
Aníbal Limón [Tue, 22 Sep 2015 16:56:22 +0000 (11:56 -0500)]
oeqa/utils/qemurunner.py: Fix HIGH CPU usage on LoggingThread

LoggingThread is used for receive console output from QEMU
over TCP, so add filter to only wake poll on read events,
also change the event mask variable name to be more descriptive.

This fixes HIGH CPU consume caused by wake on ready to write
events.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add search command
Paul Eggleton [Tue, 22 Sep 2015 16:21:41 +0000 (17:21 +0100)]
devtool: add search command

Adds a subcommand to search to find the target recipe name providing
some file or capability. This is implemented by searching on recipe
name, package name, description, package contents (file names), and
runtime file provides. For example:

$ devtool search libGL
mesa

$ devtool search X11
xextproto
libxxf86vm
xf86driproto
xf86vidmodeproto
libxfixes
xproto
libx11
...

$ devtool search /bin/sed
busybox
sed

This is particularly useful within the extensible SDK but is also made
available in devtool alongside the build system.

Note of course that because this searches pkgdata, useful results depend
upon do_packagedata(_setscene) having executed for the recipe being
searched for.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add basic means of running runqemu within the extensible SDK
Paul Eggleton [Tue, 22 Sep 2015 16:21:40 +0000 (17:21 +0100)]
devtool: add basic means of running runqemu within the extensible SDK

We ship the runqemu script and if we build QEMU itself within the
extensible SDK, then it would be nice to be able to run it. This is a
very thin wrapper around runqemu, supplying the machine and image name
so the user doesn't need to. (This subcommand is only available within
the extensible SDK since it only really makes sense there where it is
otherwise hard to run runqemu directly.)

Implements [YOCTO #6657].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool / recipetool: add handling for binary-only packages
Paul Eggleton [Tue, 22 Sep 2015 16:21:39 +0000 (17:21 +0100)]
devtool / recipetool: add handling for binary-only packages

Add a means of creating recipes for package files or archives that
contain a directory structure to be installed verbatim, for example an
rpm file. (We mostly just re-use bin_package here and skip some of the
normal build system checks.) This support is available in "recipetool
create" and "devtool add" which wraps the former.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: delete bbappend at end of build
Paul Eggleton [Tue, 22 Sep 2015 16:21:38 +0000 (17:21 +0100)]
devtool: build-image: delete bbappend at end of build

Upon further reflection, it seems to me that this bbappend ought to just
be deleted at the end of the build. This keeps things simple; you never
have to remember to delete any files to get back to where you were
before with the image. This means we can also drop the slightly awkward
message reminding the user how to do that. I've also updated the test to
look at the image manifest to determine if the command has worked
instead of looking for the (now deleted) bbappend.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: improve image recipe handling
Paul Eggleton [Tue, 22 Sep 2015 16:21:37 +0000 (17:21 +0100)]
devtool: build-image: improve image recipe handling

* Make image optional for the extensible SDK (auto-determine it based on
  the targets the SDK was built for)
* Check that specified recipe is in fact an image

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: tell user where to find output files
Paul Eggleton [Tue, 22 Sep 2015 16:21:36 +0000 (17:21 +0100)]
devtool: build-image: tell user where to find output files

If the user is running "devtool build-image" within the extensible SDK
then they probably won't know where to find the resulting output files,
so we should tell them explicitly.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: fix recipe/package terminology
Paul Eggleton [Tue, 22 Sep 2015 16:21:35 +0000 (17:21 +0100)]
devtool: build-image: fix recipe/package terminology

We build recipes and include packages into the image, adjust the
terminology used in code and messages accordingly. Also fix a few typos.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: move important "recipe created" message to the end
Paul Eggleton [Tue, 22 Sep 2015 16:21:34 +0000 (17:21 +0100)]
devtool: add: move important "recipe created" message to the end

If we end up printing a message about the build directory being the same
as the source, we should print that first and then print the message
about the recipe file possibly needing to be edited to the end so that
it has slightly more impact.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: set up fetched source as a git repository by default
Paul Eggleton [Tue, 22 Sep 2015 16:21:33 +0000 (17:21 +0100)]
devtool: add: set up fetched source as a git repository by default

If the fetched source isn't already a git repository, initialise it as
one and then branch and tag, just as we do with "devtool modify". This
makes it easier to make changes, commit them and then use the
"devtool update-recipe" command to turn those commits into patches
on the recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: better handling for recipes that don't unpack source
Paul Eggleton [Tue, 22 Sep 2015 16:21:32 +0000 (17:21 +0100)]
devtool: better handling for recipes that don't unpack source

Some recipes don't extract any source (for example, opkg-keyrings). We
were producing a traceback in this case because we weren't checking if
the directory existed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: fix extracting source for work-shared recipes
Paul Eggleton [Tue, 22 Sep 2015 16:21:31 +0000 (17:21 +0100)]
devtool: fix extracting source for work-shared recipes

Recipes that use work-shared (such as libgcc) are capable of unpacking
the source, but it doesn't necessarily unpack to ${WORKDIR}/${BP}. Use
the last part of the actual S value instead which is more likely to
work.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: show proper error when extracting source for recipes with disabled unpack...
Paul Eggleton [Tue, 22 Sep 2015 16:21:30 +0000 (17:21 +0100)]
devtool: show proper error when extracting source for recipes with disabled unpack task

If you try to use "devtool modify -x" or "devtool extract" on a recipe
where do_unpack has been set as noexec (e.g. glibc-locale), then we get
an error because the expected source wasn't ever unpacked. Do a check up
front for noexec being set on do_unpack and error out with a reasonable
message if that's the case.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix handling of URIs containing #
Paul Eggleton [Tue, 22 Sep 2015 16:21:29 +0000 (17:21 +0100)]
recipetool: create: fix handling of URIs containing #

The # character in a URI denotes a fragment; we don't care about this
since it is never supposed to be sent to the server, so remove it from
the URI before actually trying to fetch it or use it in SRC_URI within
the recipe.

(This has come up because download links on pypi.python.org seem to have
a fragment containing the md5sum of the download; without stripping this
off the fetcher will choke on it.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix creating empty shell functions
Paul Eggleton [Tue, 22 Sep 2015 16:21:28 +0000 (17:21 +0100)]
recipetool: create: fix creating empty shell functions

The shell considers empty functions to be a syntax error, so for
template shell functions that contain only comments (or no lines at all)
then add a : to act as a no-op which avoids the syntax error.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: properly handle separate build directory
Paul Eggleton [Tue, 22 Sep 2015 16:21:27 +0000 (17:21 +0100)]
devtool: add: properly handle separate build directory

When we were adding a recipe for software that would typically be built
in the same directory as the source, we were always using a separate
build directory unless the user explicitly specified not to, leading to
errors for software that doesn't expect to be built that way (such as
Python modules using distutils). Split out the code that makes this
determination automatically from the "devtool modify" and "devtool
upgrade" code and re-use that here so the behaviour is consistent.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool / lib/oe/recipeutils: ensure we can parse without bbappends
Paul Eggleton [Tue, 22 Sep 2015 16:21:26 +0000 (17:21 +0100)]
devtool / lib/oe/recipeutils: ensure we can parse without bbappends

These functions ostensibly allowed parsing a recipe without bbappends
but this clearly hadn't been tested because a variable was unassigned in
both of them in that case.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: ensure --color=never turns off recipetool colour output
Paul Eggleton [Tue, 22 Sep 2015 16:21:25 +0000 (17:21 +0100)]
devtool: add: ensure --color=never turns off recipetool colour output

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: check that source tree still exists
Paul Eggleton [Tue, 22 Sep 2015 16:21:24 +0000 (17:21 +0100)]
devtool: check that source tree still exists

Sometimes, particularly if you extracted the source to /tmp which is on
tmpfs, the external source tree that is being pointed to may no longer
exist when you come to run "devtool build" or "devtool update-recipe"
etc. Make all of the commands that need to check for a recipe being in
the workspace call a single function and have that function additionally
check the source tree still exists where appropriate.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/contrib: add devtool stress tester
Paul Eggleton [Tue, 22 Sep 2015 16:21:23 +0000 (17:21 +0100)]
scripts/contrib: add devtool stress tester

Add a script to run "devtool modify" followed by a build on every target
recipe in the environment (with the option to skip/resume from/only
include specific recipes). This takes far too long to run as an
oe-selftest test but is still something that is useful to be able to
run. There's also a slightly quicker mode that just runs "devtool
extract" on each recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/patch: fix for git am not cleaning up after itself
Paul Eggleton [Tue, 22 Sep 2015 16:21:22 +0000 (17:21 +0100)]
lib/oe/patch: fix for git am not cleaning up after itself

Unfortunately it appears that under certain circumstances, a failed
git am followed by git am --abort won't clean up any changes the patch
might have made - this was seen when running "devtool extract" on the
unzip recipe; unzip-6.0_overflow3.diff has a malformed date as far as
git am is concerned but it triggers this condition. Add a
git reset --hard HEAD followed by git clean -f in order to recover from
this scenario.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/externalsrc: fix setting of deps varflag as a string
Paul Eggleton [Tue, 22 Sep 2015 16:21:21 +0000 (17:21 +0100)]
classes/externalsrc: fix setting of deps varflag as a string

The value of the deps varflag for tasks is (unusually) expected to be a
list object rather than a space-separated string, hence we cannot use
appendVarFlag() here. This fixes a traceback when parsing the gcc recipe
with externalsrc enabled, for example.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/externalsrc: scale back warning to a plain note
Paul Eggleton [Tue, 22 Sep 2015 16:21:20 +0000 (17:21 +0100)]
classes/externalsrc: scale back warning to a plain note

It turns out that there are folks out there who use externalsrc in
normal builds and don't really need to be warned; additionally within
the extensible SDK or when using devtool, it shouldn't be a warning
situation. Thus, scale it back to a note (we can't use bb.note() here
since that wouldn't actually be piped through to the bitbake UI). Also
touch up the message a little bit.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: show progress when extracting SDK
Paul Eggleton [Tue, 22 Sep 2015 16:21:19 +0000 (17:21 +0100)]
toolchain-shar-extract.sh: show progress when extracting SDK

Tar has supported a --checkpoint option since version 1.15.91, so it
should be safe to use here to print dots showing that it's still doing
something (technically it's not really progress unless you know how many
dots it's going to print, which even it doesn't know at the start, but
it's better than nothing).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: drop work-config.inc
Paul Eggleton [Tue, 22 Sep 2015 16:21:18 +0000 (17:21 +0100)]
classes/populate_sdk_ext: drop work-config.inc

This is not actually used for anything - I thought that we would need to
use it within devtool to set global configuration, but we're able to do
everything we need within the bbappends it creates, which also saves on
parse time. If we're not going to use work-config.inc let's just drop it
completely.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: allow custom configuration for extensible SDK
Paul Eggleton [Tue, 22 Sep 2015 16:21:17 +0000 (17:21 +0100)]
classes/populate_sdk_ext: allow custom configuration for extensible SDK

Provide the ability to define a function containing extra configuration
values to be added to the local.conf file that goes into the SDK. For
example, this could be used to set up SSTATE_MIRRORS within the SDK.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: fix missing environment settings if running installer with sh
Paul Eggleton [Tue, 22 Sep 2015 16:21:16 +0000 (17:21 +0100)]
classes/populate_sdk_ext: fix missing environment settings if running installer with sh

If you ran the extensible SDK installer file with sh (instead of bash),
then the additional call to buildtools environment setup, extension of
PATH to support running devtool, and setting of OE_SKIP_SDK_CHECK
weren't being added to the end of the script. This is because apparently
bash is happy to expand wildcards in the target of a redirection, but
bash running in POSIX sh mode won't (although it apparently does work on
the sh command line rather than within a script run as an argument to
sh). In any case using a wildcard here is a bit of a crutch which we
don't need, so replace it with the proper path to the environment setup
script.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/recipeutils: properly split unexpanded variable values
Paul Eggleton [Tue, 22 Sep 2015 16:21:15 +0000 (17:21 +0100)]
lib/oe/recipeutils: properly split unexpanded variable values

Variables such as SRC_URI which are space-separated may also contain
Python expressions (${@...}) which themselves contain spaces that
shouldn't be split when splitting the value into items. In order to
ensure this we need to use a custom splitting function instead of just
string.split().

This issue could be seen when doing "devtool modify sudo", adding a
commit to the resulting source repository then "devtool update-recipe" -
the Python expression in SRC_URI was being unnecessarily broken onto
multiple lines.

Fixes [YOCTO #8046].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: hid, bluetooth, aufs and yaffs2 updates
Bruce Ashfield [Tue, 22 Sep 2015 15:48:51 +0000 (11:48 -0400)]
linux-yocto/4.1: hid, bluetooth, aufs and yaffs2 updates

Setting the SRCREVs to import the following changes in the
4.1 kernel tree:

  79a31b9d23db hid-core: Avoid uninitialized buffer access
  121593d3a0a4 aufs: call mutex.owner only when DEBUG_MUTEXES or MUTEX_SPIN_ON_OWNER is defined
  efa7952a190f Bluetooth: Delay check for conn->smp in smp_conn_security()
  69428ec43bd9 cc2520: set the default fifo pin value from platform data
  ee0ddf37f3d6 fs/yaffs2: Fix a judgement logic for ACL operations
  fff29e47f5c4 yaffs2: remove read and write methods
  b3b9d030ad84 yaffs2: replace f_dentry to f_path.dentry

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types.bbclass: Don't try to create ubi symlink twice
Mike Looijmans [Tue, 15 Sep 2015 09:50:39 +0000 (11:50 +0200)]
image_types.bbclass: Don't try to create ubi symlink twice

Fixes b6e64de541b37 "Restore compatibility with previous UBI filesystems"

The multivolume UBI code creates symlinks for each volume. If the volume name
is empty, it will create a symlink that the rootfs code will attempt to
create again later, resulting in a crash like this (unless IMAGE_LINK_NAME
is blank):
  ERROR: Error executing a python function in .../recipes-core/images/my-image.bb:
  File: '.../oe-core/meta/lib/oe/image.py', lineno: 203, function: _create_symlinks
   *** 0203:                    os.symlink(src, dst)
  Exception: OSError: [Errno 17] File exists

To prevent this from happening, only create symlinks to volumes that have
a name, and let the rootfs script create the default symlink later.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: buildoptions.py Removed unused imports
Daniel Istrate [Mon, 21 Sep 2015 10:47:14 +0000 (13:47 +0300)]
oeqa/selftest: buildoptions.py Removed unused imports

Removed unused imports: unittest, logging, pexpect

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosystemd: disable problematic GCC 5.2 optimizations
Jonathan Liu [Mon, 21 Sep 2015 11:23:44 +0000 (21:23 +1000)]
systemd: disable problematic GCC 5.2 optimizations

This fixes systemd failing to start on Raspberry Pi 2 if it is compiled
with GCC 5.2.

It would try to start "Journal Service" and "udev Kernel Device Manager"
but fail repeatedly.

[YOCTO #8291]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibgpg-error: Add support for nios2
Marek Vasut [Sat, 19 Sep 2015 22:43:17 +0000 (00:43 +0200)]
libgpg-error: Add support for nios2

Add a patch which adds a configuration for the nios2 processor.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopixman: Fix missing FE_DIVBYZERO on nios2
Marek Vasut [Sat, 19 Sep 2015 22:43:16 +0000 (00:43 +0200)]
pixman: Fix missing FE_DIVBYZERO on nios2

The FE_DIVBYZERO is missing on nios2 , add a small patch to pixman
which checks for the presence of FE_DIVBYZERO and disables the test
which depends on it.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibtool: Fix nios2 support
Marek Vasut [Sat, 19 Sep 2015 22:43:15 +0000 (00:43 +0200)]
libtool: Fix nios2 support

Add patch to fix excessive greediness of OS/2 check in libtool.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto: depend on libgcc for nios2
Marek Vasut [Sat, 19 Sep 2015 22:43:13 +0000 (00:43 +0200)]
linux-yocto: depend on libgcc for nios2

Make nios2 kernel depend on libgcc.

In arch/nios2/Makefile, it adds LIBGCC to libs-y:

LIBGCC          := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
libs-y          += $(LIBGCC)

In file Makefile in top directory, libs-y is assigned to to var
KBUILD_VMLINUX_MAIN. It uses script link-vmlinux.sh to link vmlinux.o,
and when execute function vmlinux_link() in link-vmlinux.sh,
KBUILD_VMLINUX_MAIN is passed to ${LD}.

If build without libgcc, the value of LIBGCC is just libgcc.a without
parent directory. linux-yocto fails to build:

|   LD      vmlinux.o
| nios2-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory

Add libgcc to nios2 kernel dependency.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokernel-arch: Add nios2 to valid archs
Marek Vasut [Sat, 19 Sep 2015 22:43:12 +0000 (00:43 +0200)]
kernel-arch: Add nios2 to valid archs

Add nios2 target to valid arch list definition.

Based on previous work by Walter Goossens <waltergoossens@home.nl>
at https://github.com/wgoossens/meta-nios2 .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agositeinfo: Add nios2-linux
Marek Vasut [Sat, 19 Sep 2015 22:43:11 +0000 (00:43 +0200)]
siteinfo: Add nios2-linux

Add nios2-linux info, pulled from OE-Classic [1] as of commit
fabd8e6d07d3cd0cc93c2a0fc804f8c8f316c649 .

[1] https://github.com/openembedded/openembedded.git

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane: Add nios2 support
Marek Vasut [Sat, 19 Sep 2015 22:43:10 +0000 (00:43 +0200)]
insane: Add nios2 support

Add support information for the Altera NIOS-II soft processor.

Based on previous work by Walter Goossens <waltergoossens@home.nl>
at https://github.com/wgoossens/meta-nios2 .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoautotools: fix traversal bug in aclocal copying
Christopher Larson [Sun, 20 Sep 2015 05:19:24 +0000 (22:19 -0700)]
autotools: fix traversal bug in aclocal copying

The logic is supposed to avoid following dependencies when we depend on
a target recipe which depends on a native recipe. The problem is, we were
marking the dep (the native recipe) as already processed when we avoided
traversal, meaning that even when that recipe would be pulled in via
a different dependency, we skipped it there too, and whether it was skipped
entirely depended on the non-deterministic dep processing order. If the first
one to be encountered was via the indirect target dep, it wouldn't end up in
configuredeps, otherwise it would.

As we want to avoid traversing that particular dependency relationship, not
*every* dependency on the native, we should continue, but not add it to done,
so it can be traversed from other avenues.

This fixes an intermittent bug in some of my non-GPLv3 builds, where one
dependency upon gettext-minimal-native was skipped, but others should not have
been, resulting in it being removed from configuredeps entirely, and no
gettext macros being available.

Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3-debugger: Adds pkgutils dependency to pdb
Alejandro Hernandez [Fri, 18 Sep 2015 21:27:54 +0000 (21:27 +0000)]
python3-debugger: Adds pkgutils dependency to pdb

python3-debugger fails to be invoked to debug other scripts complaining about
not being able to import pkutil, this patch adds pkgutil as a dependency for python3-debugger
fixing the issue.

[YOCTO #8334]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3-debugger: fix importlib dependency
Alejandro Hernandez [Fri, 18 Sep 2015 21:06:50 +0000 (21:06 +0000)]
python3-debugger: fix importlib dependency

python3-debugger (pdb) needs importlib as a dependency, if not included
it produces an error when importing pdb, making pdb unusable, this patch
adds importlib dependency fixing the issue.

{YOCT0 #8333]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsdl: depends on libglu when both x11 and opengl
Robert Yang [Wed, 16 Sep 2015 02:28:46 +0000 (19:28 -0700)]
libsdl: depends on libglu when both x11 and opengl

The libglu requires both opengl (depends on virtual/libgl) and x11
(needs libGL.so which is provided by mesa when x11 in DISTRO_FEATURES),
so let libsdl depends on libglu when both x11 and opengl in
DISTRO_FEATURES.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolttng-tools: sessiond: disable: match app event by name
Li Zhou [Fri, 18 Sep 2015 02:39:05 +0000 (10:39 +0800)]
lttng-tools: sessiond: disable: match app event by name

Get upstream patch from lttng-tools github:
<https://github.com/lttng/lttng-tools>
<commit:700c5a9d4dc7b552926b8ddcbba91cc13312aba0>,
for solving the filtered tracepoint disabling error.

The use of a simple lookup and match on event name is insufficient
to identify the corresponding ust app event.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestimage.bbclass: Fix break introduced with SIGTERM handling
Mariano Lopez [Fri, 18 Sep 2015 13:31:32 +0000 (13:31 +0000)]
testimage.bbclass: Fix break introduced with SIGTERM handling

The SIGTERM introduced another break into runexported test,
the handler is in the class TestContext while exporting it
will try to convert the singnal handler to JSON, and this
will throw an exception.

The SIGTERM handler is not needed in the exported test, so this
change will remove the handler before exporting the test. Also
when a test is exported the target is not deployed/started
anymore, it is not necessary.

[YOCTO #8239]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosysstat: Include needed headers explicitly
Khem Raj [Mon, 14 Sep 2015 15:53:02 +0000 (15:53 +0000)]
sysstat: Include needed headers explicitly

It depends on defines from .h files that are not includes as part of
source file, on glibc it works because they get included indirectly but
that can change any time since its internal glibc behaviour, at user
level the header needed should be explicitly included.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoconnman: Fix build with musl
Khem Raj [Mon, 14 Sep 2015 03:24:40 +0000 (20:24 -0700)]
connman: Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoquota: Replace using -I= with STAGING_INCDIR
Khem Raj [Sat, 12 Sep 2015 17:08:28 +0000 (17:08 +0000)]
quota: Replace using -I= with STAGING_INCDIR

-I= is gcc specific, using STAGING_INCDIR makes it compiler independent
Update posix types patch to include new u_int -> uint32_t changes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopkg: Include stdio.h for FILE definition
Khem Raj [Sat, 12 Sep 2015 00:23:42 +0000 (17:23 -0700)]
opkg: Include stdio.h for FILE definition

Helps with compling it on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosyslinux: Dont bypass gcc driver for dependency generation options
Khem Raj [Thu, 10 Sep 2015 05:32:59 +0000 (05:32 +0000)]
syslinux: Dont bypass gcc driver for dependency generation options

GCC docs also do not recommend using -Wp instead pass the option via gcc
driver and let it process it as needed

This also helps in making it work with clang as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognu-efi, syslinux: Support gcc < 4.7
Khem Raj [Wed, 9 Sep 2015 08:26:06 +0000 (08:26 +0000)]
gnu-efi, syslinux: Support gcc < 4.7

This helps compiling the code with older gcc especially on older build
hosts, additionally clang advertizes itself as gcc 4.2.1 so it helps
compiling dependent modues using clang as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogummiboot: Fix build warnings seen with gcc5
Khem Raj [Wed, 9 Sep 2015 08:24:05 +0000 (08:24 +0000)]
gummiboot: Fix build warnings seen with gcc5

gummiboot uses -mno-sse so we should disble using sse for mfpmath as
well

Fix syntax errors in struct defines

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqt4: Fix kmap2qmap build with clang
Khem Raj [Wed, 9 Sep 2015 06:28:49 +0000 (06:28 +0000)]
qt4: Fix kmap2qmap build with clang

Adapted and backported https://codereview.qt-project.org/#/c/107464/

Fixes errors like
../../include/QtCore/../../src/corelib/tools/qalgorithms.h:161:20:
error: call to function 'operator<' that is neither visible in the
template definition nor found by argument-dependent lookup
        return (t1 < t2);

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxz: Correctly specify GPL-3.0 with autoconf exception
Khem Raj [Tue, 25 Aug 2015 21:03:43 +0000 (21:03 +0000)]
xz: Correctly specify GPL-3.0 with autoconf exception

There is m4/ax_pthread.m4 macro which uses GPL-3.0 with autoconf
exception, there is no other occurance of GPL-3.0 use, lets mark the
licence correctly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane.bbclass: drop extra line-feed in pkgname check
Martin Jansa [Fri, 18 Sep 2015 13:14:08 +0000 (15:14 +0200)]
insane.bbclass: drop extra line-feed in pkgname check

* it was causing QA checck name to be shown on separate line like this:
  sblim-sfcCommon-1.0.1: sblim-sfcCommon-dev doesn't match the [a-z0-9.+-]+ regex
   [pkgname]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane.bbclass: show PN and relative path in package_qa_check_host_user
Martin Jansa [Fri, 18 Sep 2015 15:15:22 +0000 (17:15 +0200)]
insane.bbclass: show PN and relative path in package_qa_check_host_user

* show PN as other QA checks
* strip PKGDEST prefix from shown path as other QA checks

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage.bbclass: add summary line to installed-vs-shipped QA check
Martin Jansa [Fri, 18 Sep 2015 13:14:09 +0000 (15:14 +0200)]
package.bbclass: add summary line to installed-vs-shipped QA check

* there is PN at the beginning, then possibly long list of files and
  at the end we don't see which recipe has this issue, add another
  line which says which PN and how many files

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: better error reporting for invalid root boot parameter
Patrick Ohly [Fri, 18 Sep 2015 11:49:22 +0000 (13:49 +0200)]
initramfs-framework: better error reporting for invalid root boot parameter

When the "boot" parameter refers to a non-existent device, the only
visible output at normal log levels was a rather confusing:
   ERROR: There's no '/dev' on rootfs.

That's because the actual error, not being able to find the root
device, was only a debug message, which gets ignored in the default
mode.

Promoting the "root '$bootparam_root' doesn't exist." message from
"debug" to "msg" gives sufficient context to understand the error. A
more intrusive change would be to change also the control flow.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: fix "support dropping into shell on failure"
Patrick Ohly [Fri, 18 Sep 2015 11:49:21 +0000 (13:49 +0200)]
initramfs-framework: fix "support dropping into shell on failure"

Due to a missing $ before the variable name, all fatal errors ended up
invoking a shell, instead of only doing that when init_fatal_sh is set
as boot parameter.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqt4: remove already merged patch
Paul Eggleton [Fri, 18 Sep 2015 14:16:12 +0000 (15:16 +0100)]
qt4: remove already merged patch

This patch was merged into the 4.8.7 release. This was missed on
upgrade, and we didn't notice because our quilt-based patch handling
code ignores already-applied patches.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogdk-pixbuf: remove redundant libx11 DEPENDS line
Carlos Rafael Giani [Fri, 18 Sep 2015 11:51:33 +0000 (13:51 +0200)]
gdk-pixbuf: remove redundant libx11 DEPENDS line

The x11 packageconfig already takes care of the X11 dependency, and also
respects the DISTRO_FEATURES

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: For qemumicroblaze use the QEMU provided device tree
Nathan Rossi [Wed, 16 Sep 2015 04:59:59 +0000 (14:59 +1000)]
runqemu-internal: For qemumicroblaze use the QEMU provided device tree

Setup the qemumicroblaze machine to use the device tree provided by QEMU
instead of the device tree located in the images directory. Additionally
setup the default memory size to match the QEMU device tree.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: Fix qemu networking for qemuzynq an qemumicroblaze
Nathan Rossi [Wed, 16 Sep 2015 04:59:58 +0000 (14:59 +1000)]
runqemu-internal: Fix qemu networking for qemuzynq an qemumicroblaze

This patch brings the qemu networking setup for qemuzynq and
qemumicroblaze into feature parity with the other qemu machines.
Specifically enabling TAP interface attachcment and kernel command line
IP configuration.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcre: Allow building 16 and 32bit libpcre versions
Pascal Bach [Fri, 18 Sep 2015 06:43:42 +0000 (08:43 +0200)]
libpcre: Allow building 16 and 32bit libpcre versions

This change allows selecting the 8, 16 or 32 bit version via PACKAGECONFIG.
By default only the 8bit version is built, this corresponds to the old behavior.

Some packages like Qt5 require the 16 bit version of libpcre.
After this change the corresponding layer can easily enable the version
needed via .bbappend.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Allow socks4 as protocol in $ALL_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:06 +0000 (12:46 +0200)]
oe-git-proxy: Allow socks4 as protocol in $ALL_PROXY

The current default is to use SOCKS4a when socks is specified as
protocol in $ALL_PROXY. However, not all socks servers support
SOCKS4a. By allowing socks4 as an additional protocol, this script
will happily work with SOCKS4 only servers.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Correct the parsing of a port in $ALL_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:05 +0000 (12:46 +0200)]
oe-git-proxy: Correct the parsing of a port in $ALL_PROXY

Due to an error in the regular expression used to extract a port
number specified in $ALL_PROXY, rather than allowing the port number
to be followed by an optional "/", the port was required to be
followed by "/?".

This corrects the regular expression to allow an optional "/". It also
allows the odd "/?" suffix for backwards compatibility.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Allow explicit IP addresses in $NO_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:04 +0000 (12:46 +0200)]
oe-git-proxy: Allow explicit IP addresses in $NO_PROXY

Without this fix, if one specified, e.g., 127.0.0.1 in $NO_PROXY, the
oe-git-proxy script would fail with a message like this:

/home/pkj/yocto/poky/scripts/oe-git-proxy: line 64: 32-127.0.0.1: syntax error: invalid arithmetic operator (error token is ".0.0.1")

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/testimage: Enhance -v switch in testimage
Lucian Musat [Tue, 15 Sep 2015 13:52:44 +0000 (16:52 +0300)]
oeqa/testimage: Enhance -v switch in testimage

When testimage is run with -v switch now individual
test progress can be seen directly in bitbake console.

[YOCTO #6841]

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic-image-minimal: add dependency to .wks
Ed Bartosh [Thu, 17 Sep 2015 08:49:33 +0000 (11:49 +0300)]
wic-image-minimal: add dependency to .wks

Added dependency to wic-image-minimal.wks to the recipe. This makes
bitbake to rebuild the image if .wks file changes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: fix partition size calculation
Ed Bartosh [Thu, 10 Sep 2015 12:38:03 +0000 (15:38 +0300)]
wic: fix partition size calculation

It was wrongly assumed that part.size is meagured in Mb. In fact it's
in Kb, so there is no need to convert bitbake variable ROOTFS_SIZE as
it's also in Kb.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: use ext4 in wic-image-minimal.wks
Ed Bartosh [Thu, 10 Sep 2015 08:38:07 +0000 (11:38 +0300)]
wic: use ext4 in wic-image-minimal.wks

ext4 is used in canned wks files, so let's use it here too
for the sake of consistency.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: add dependencies to wic-image-minimal recipe
Ed Bartosh [Thu, 10 Sep 2015 08:35:09 +0000 (11:35 +0300)]
wic: add dependencies to wic-image-minimal recipe

Added "DEPENDS =" line to the recipe to ensure that all tools required
for image creation are built.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agotestimage.bbclass: Don't require an image manifest
Randy Witt [Wed, 16 Sep 2015 21:45:49 +0000 (14:45 -0700)]
testimage.bbclass: Don't require an image manifest

Sometimes an "image" may not actually have a manifest file such as when
using a "baremetal kernel". This change allows for  a user to set a
IMAGE_NO_MANIFEST flag to 1 in order to inform the code that there is no
corresponding manifest that should exist for an image.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: Fix basesink drop buffer error
Yuqing Zhu [Thu, 17 Sep 2015 14:42:18 +0000 (22:42 +0800)]
gstreamer1.0: Fix basesink drop buffer error

Basesink: Shouldn't drop buffer when sync=false

Signed-off-by: Yuqing Zhu <b54851@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrep: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:45 +0000 (18:13 +0200)]
grep: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogzip: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:44 +0000 (18:13 +0200)]
gzip: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocpio: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:43 +0000 (18:13 +0200)]
cpio: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotar: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:42 +0000 (18:13 +0200)]
tar: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: fix too long error from gen
Robert Yang [Thu, 17 Sep 2015 07:53:07 +0000 (00:53 -0700)]
bind: fix too long error from gen

gen.c uses 512 as the path length which is a little short when build in
deep dir, and cause "too long" error, use PATH_MAX if defined.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoccache: fix file name too long
Robert Yang [Thu, 17 Sep 2015 07:53:06 +0000 (00:53 -0700)]
ccache: fix file name too long

The all_cppflags change paths to filename which cause file name too long
error when the path is longer than NAME_MAX (usually 255). Strip srcdir
to fix the problem.

[YOCTO #8313]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobitbake.conf: update APACHE_MIRROR
Robert Yang [Thu, 17 Sep 2015 01:39:36 +0000 (18:39 -0700)]
bitbake.conf: update APACHE_MIRROR

From Ross:
The http://www.apache.org/dist only keeps latest release, so use
http://archive.apache.org/dist, which keeps all the archives.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.1: hid-core: Avoid uninitialized buffer access
Bruce Ashfield [Mon, 21 Sep 2015 13:14:58 +0000 (09:14 -0400)]
linux-yocto/4.1: hid-core: Avoid uninitialized buffer access

Updating the 4.1 SRCREVs to integrate the following commit:

    hid-core: Avoid uninitialized buffer access

    hid_connect adds various strings to the buffer but they're all
    conditional. You can find circumstances where nothing would be
    written
    to it but the kernel will still print the supposedly empty buffer
    with
    printk. This leads to corruption on the console/in the logs.

    Ensure buf is initialized to an empty string.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
    [dvhart: Initialize string to "" rather than assign buf[0] = NULL;]
Cc: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokern-tools: optimize patching peformance
Bruce Ashfield [Fri, 18 Sep 2015 19:21:38 +0000 (15:21 -0400)]
kern-tools: optimize patching peformance

Updating the kern-tools SRCREV to integrat the following commit:

    patching: only validate user supplied patches by default

    Previously the patching tools would consider both system and user
    supplied patches in the same manner .. they are simply a series of
    patches to be applied to a branch, and that the scripts should determine
    where in the series to start (based on what is already on the
    branch).

    This detection was causing a few problems:

      - time consuming
      - starting in the middle of a series when intermediate patches
        were merged to a branch.

    To solve both the performance and start detection, we instead simply
    note the transition from system (i.e. already defined features and
    series) and user/recipe supplied patches. When the transition is noted,
    the system will start pushing ALL patches without doing autoresume
    detection.

    Control in keeping the series up to date is passed to the user, and
    consistent behaviour/performance is achieved.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: aufs, yaffs2 and driver fixes
Bruce Ashfield [Fri, 18 Sep 2015 19:21:37 +0000 (15:21 -0400)]
linux-yocto/4.1: aufs, yaffs2 and driver fixes

Updating the 4.1 SRCREVs to integrate the following changes:

  f830ab33799d aufs: call mutex.owner only when DEBUG_MUTEXES or MUTEX_SPIN_ON_OWNER is defined
  87df2e93ed65 Bluetooth: Delay check for conn->smp in smp_conn_security()
  b09c3eab3e50 cc2520: set the default fifo pin value from platform data
  62b01c325d42 fs/yaffs2: Fix a judgement logic for ACL operations
  1d19c4e95cfc yaffs2: remove read and write methods
  2c822dbc43b9 yaffs2: replace f_dentry to f_path.dentry

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools.bbclass: mkdir ${B} -> mkdir -p ${B}
Robert Yang [Wed, 16 Sep 2015 10:25:01 +0000 (03:25 -0700)]
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}

${B} is the default cwd of tasks, so there might be race issues such as:
| mkdir: cannot create directory `${B}': File exists
[snip]
NOTE: recipe perf-1.0-r9: task do_configure: Failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: mkdir ${B} -> mkdir -p ${B}
Robert Yang [Wed, 16 Sep 2015 10:25:00 +0000 (03:25 -0700)]
perf: mkdir ${B} -> mkdir -p ${B}

${B} is the default cwd of tasks, so there might be race issues such as:
| mkdir: cannot create directory `/path/to/work/qemux86-poky-linux/perf/1.0-r9/perf-1.0/': File exists
[snip]
NOTE: recipe perf-1.0-r9: task do_configure: Failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: add 'newappend' sub-command
Christopher Larson [Wed, 16 Sep 2015 17:03:32 +0000 (10:03 -0700)]
recipetool: add 'newappend' sub-command

This sub-command creates a bbappend for the specified target and prints the
path to the bbappend. The -w argument, as with some of the other recipetool
commands, will make a version-independent bbappend.

Example usage: recipetool newappend meta-mylayer virtual/kernel

[YOCTO #7964]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sstatetests: Add test for nativesdk stamp invariance with MACHINE
Richard Purdie [Wed, 16 Sep 2015 20:53:01 +0000 (21:53 +0100)]
oeqa/sstatetests: Add test for nativesdk stamp invariance with MACHINE

nativesdk-glbic should not rebuild when you change MACHINE but
it was. We've fixed that, now add tests to ensure this doesn't
happen again.

Rather than add yet another stamps test, extend one of the
existing ones to cover this instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: Ensure OVERRIDES doesn't influence sstate checksum
Richard Purdie [Wed, 16 Sep 2015 20:50:28 +0000 (21:50 +0100)]
glibc: Ensure OVERRIDES doesn't influence sstate checksum

Switching MACHINE was causing nativesdk-glibc to rebuild. This was
from the use of OVERRIDES in one of the functions. Exclude OVERRIDES
from the checksum to avoid this.

[patch to oe-selftest to ensure this doesn't regress follows]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.py: Ensure base image size is an integer
Patrick Williams [Wed, 16 Sep 2015 16:48:44 +0000 (11:48 -0500)]
image.py: Ensure base image size is an integer

There is a floating point multiplication done of a base image size
and an "overhead factor", which is currently rounded up to the next
integer.  If the multiplication results in a whole number, the value
will still be a float.  When this float is used to generate a shell
script, a buggy script is generated.

Fix this by always forcing to an integer.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython: Add python-misc as rdependency to python-modules
Erkka Kääriä [Tue, 15 Sep 2015 12:34:19 +0000 (15:34 +0300)]
python: Add python-misc as rdependency to python-modules

Currently python-misc is not included even if python-modules is. This means
some python scripts fail even if python-modules is included in the image
(for example, get-pip.py at bootrap.pypa.io/get-pip.py). This patch adds
python-misc as runtime dependency for python-modules.

Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocryptodev-tests: don't use STAGING_KERNEL_DIR, fix re-packaging in multi-machine...
Denys Dmytriyenko [Wed, 9 Sep 2015 22:05:19 +0000 (18:05 -0400)]
cryptodev-tests: don't use STAGING_KERNEL_DIR, fix re-packaging in multi-machine builds

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoadwaita-icon-theme: RREPLACE gnome-icon-theme
Jussi Kukkonen [Wed, 16 Sep 2015 13:59:18 +0000 (16:59 +0300)]
adwaita-icon-theme: RREPLACE gnome-icon-theme

RREPLACE, RCONFLICT and RPROVIDE gnome-icon-theme to make on-device
upgrades work.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomkelfimage: fix owner for /usr/sbin/mkelfImage
Robert Yang [Wed, 16 Sep 2015 06:08:17 +0000 (23:08 -0700)]
mkelfimage: fix owner for /usr/sbin/mkelfImage

Fixed:
packages-split/mkelfimage/usr/sbin/mkelfImage is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

This is because its Makefile uses cp -a to install mkelfImage.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agonspr: fix SRC_URI
Robert Yang [Wed, 16 Sep 2015 05:28:21 +0000 (22:28 -0700)]
nspr: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.8/src/nspr-4.10.8.tar.gz, attempting MIRRORS if available

Its ftp:// doesn't work with wget, but http:// works.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>