]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agolibinput: Upgrade 0.21.0 -> 1.1.4
Bob Ham [Wed, 13 Jan 2016 18:21:01 +0000 (18:21 +0000)]
libinput: Upgrade 0.21.0 -> 1.1.4

yocto/jethro provides the version 0.21 from August 2015 while the
current version is 1.1.4.

The patch libinput-configure.ac-add-arg-with-libunwind.patch has been
merged to upstream and was removed from the recipe.  The patch
touchpad-serial-synaptics-need-to-fake-new-touches-on-TRIPLETAP.patch
has not been merged to upstream and is still included in the recipe.

Co-Authored-By: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Bob Ham <bob.ham@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopostinst-intercepts: always use set -e
Ross Burton [Wed, 6 Jan 2016 15:49:37 +0000 (15:49 +0000)]
postinst-intercepts: always use set -e

If a postinst has a problem (say, qemu crashes) and set -e isn't in operation,
the only mention of the problem is a single line in the rootfs log that doesn't
trigger any warnings.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosstate: Add packagedata to list of tasks not to recurse
Richard Purdie [Mon, 18 Jan 2016 17:57:01 +0000 (17:57 +0000)]
sstate: Add packagedata to list of tasks not to recurse

If we "bitbake X -c packagedata" and the packagedata comes from sstate, we
don't need any of the tasks dependencies. This is similar to the
populate_lic case, we only care about the end result.

Therefore short circuit the dependencies so packagedata doesn't pull in
any other dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: fix task dependency regression
Paul Eggleton [Sun, 17 Jan 2016 23:26:33 +0000 (12:26 +1300)]
classes/populate_sdk_ext: fix task dependency regression

Fix a regression caused by OE-Core revision
eabeb26335b1a4eb1e68218160dbdbe8fdf36272 where we lost the task
dependency on packages in TOOLCHAIN_HOST_TASK (such as
meta-environment-extsdk-${MACHINE}) which led to errors about missing
packages when building the extensible SDK. This happened because I only
moved half of the dependencies coming from the standard SDK task to
do_sdk_depends.

While I'm at it, tidy up the do_populate_sdk_ext[depends] line.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Handle image types containing '-' correctly
Richard Purdie [Sun, 17 Jan 2016 22:25:20 +0000 (22:25 +0000)]
image: Handle image types containing '-' correctly

Shell function names can't contain '-' characters, which means our image
task names also can't. Add some mapping to use '_' instead of the '-' so
images like "rpi-sdimg" work again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: devtool: fix test_devtool_add_library if python was built first
Paul Eggleton [Mon, 18 Jan 2016 11:18:35 +0000 (00:18 +1300)]
oe-selftest: devtool: fix test_devtool_add_library if python was built first

If Python is in the sysroot then this test can fail due to some
brokenness in libftdi's CMakeLists.txt file for its python bindings.
Just disable it in order to have the test work more reliably.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: add a couple more license checksums
Paul Eggleton [Mon, 18 Jan 2016 11:18:34 +0000 (00:18 +1300)]
recipetool: create: add a couple more license checksums

I found these when I was looking at libftdi and they seem to be
generic enough to show up in at least a couple of other packages so I
figure I'll add them.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: add basic support for extracting dependencies from cmake
Paul Eggleton [Mon, 18 Jan 2016 11:18:33 +0000 (00:18 +1300)]
recipetool: create: add basic support for extracting dependencies from cmake

Add support for extracting dependencies from CMakeLists.txt. There's
still a bunch of things missing that are outside the scope of OE-Core
and we still lack a proper extension mechanism, but this is a good
start.

This also adds an oe-selftest test to exercise the new code a bit.

Implements [YOCTO #7635].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: force GL libraries to virtual/*
Paul Eggleton [Mon, 18 Jan 2016 11:18:32 +0000 (00:18 +1300)]
recipetool: create: force GL libraries to virtual/*

We want to specify dependencies on virtual/* rather than whatever
library is selected in the current configuration.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: move dependency mapping code to RecipeHandler
Paul Eggleton [Mon, 18 Jan 2016 11:18:31 +0000 (00:18 +1300)]
recipetool: create: move dependency mapping code to RecipeHandler

Some refactoring to allow access to the library/header/pkg-config
mappings and the DEPENDS / unmapped dependency output code from other
classes than AutotoolsRecipeHandler.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix overzealous mapping of git URLs
Paul Eggleton [Mon, 18 Jan 2016 11:18:30 +0000 (00:18 +1300)]
recipetool: create: fix overzealous mapping of git URLs

The regex for detecting git URLs was unanchored, leading to it matching
where it shouldn't have. An example of where this went wrong was
http://taglib.github.io/releases/taglib-1.9.1.tar.gz.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: support additional autoconf macros from autoconf-archive
Paul Eggleton [Mon, 18 Jan 2016 11:18:29 +0000 (00:18 +1300)]
recipetool: create: support additional autoconf macros from autoconf-archive

Support a number of macros from autoconf-archive when reading
configure.ac to extract dependencies.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: detect flex/bison dependency
Paul Eggleton [Mon, 18 Jan 2016 11:18:28 +0000 (00:18 +1300)]
recipetool: create: detect flex/bison dependency

There are a few different macros that can be used to pick up these
tools, add support for them all.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: pick up boost macros in configure.ac
Paul Eggleton [Mon, 18 Jan 2016 11:18:27 +0000 (00:18 +1300)]
recipetool: create: pick up boost macros in configure.ac

The presence of BOOST_REQUIRE or AX_BOOST.* indicates that boost is a
dependency.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: improve extraction of pkg-config / lib deps
Paul Eggleton [Mon, 18 Jan 2016 11:18:26 +0000 (00:18 +1300)]
recipetool: create: improve extraction of pkg-config / lib deps

* The regexes for PKG_CHECK_MODULES / AC_CHECK_LIB were a bit too strict
  and thus we were skipping some macros.
* Add support for PKG_CHECK_EXISTS
* Avoid duplicates in warning on missing pkg-config dependencies
* Ignore dependency on musl (since this may come up if it's the selected
  C library)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: rename kickstarter.py -> ksparser.py
Ed Bartosh [Mon, 18 Jan 2016 12:22:46 +0000 (14:22 +0200)]
wic: rename kickstarter.py -> ksparser.py

kickstarter.py was not the best name for this module as previously
there was a directory with the same name in scripts/lib/wic/.
All files were removed from it, but .pyc files could still stay there
causing imports from wic.kickstart to fail with
ImportError: cannot import name KickStart.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: override ArgumentParser.error
Ed Bartosh [Mon, 18 Jan 2016 12:22:45 +0000 (14:22 +0200)]
wic: override ArgumentParser.error

Overriden error method to throw exception instead of
printing usage error message. Exception is caught by
KickStart code to add .ks file name and line number.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: removed unused imports
Ed Bartosh [Mon, 18 Jan 2016 12:22:44 +0000 (14:22 +0200)]
wic: removed unused imports

Removed imports of wic.kickstart from plugins as they're
not used in the code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: improve processing of parseing errors
Ed Bartosh [Mon, 18 Jan 2016 12:22:43 +0000 (14:22 +0200)]
wic: improve processing of parseing errors

Caught argparse.ArgumentError
Included .ks file name and line number into the error messages.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: catch KickStartError
Ed Bartosh [Mon, 18 Jan 2016 12:22:42 +0000 (14:22 +0200)]
wic: catch KickStartError

Catch parsing errors and output them using msger.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add custom exception KickStartError
Ed Bartosh [Mon, 18 Jan 2016 12:22:41 +0000 (14:22 +0200)]
wic: add custom exception KickStartError

This exception will be raised by kickstart parser
on parsing errors and processed in the code which
calls parser to produce meaningful error output.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg/image-vm/image-live: Improve image dependencies
Richard Purdie [Mon, 18 Jan 2016 14:27:02 +0000 (14:27 +0000)]
bootimg/image-vm/image-live: Improve image dependencies

Now that image generation consists of separate tasks, we can improve
the dependencies in these classes. We can also incorporate the tasks
within do_image_complete instead of do_build so we have a specific task
for when the deploy directory is populated with images.

This fixes various expectations about do_image_completed and the way
I'd tried to use it to fix some sanity test problems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Always run do_rootfs_wicenv
Richard Purdie [Mon, 18 Jan 2016 14:25:59 +0000 (14:25 +0000)]
image: Always run do_rootfs_wicenv

The wic command can be used externally but for this to work, the wic
environment file needs to be present. Therefore write this out
universally, it runs in parallel with other image construction so
any performance implications are negligible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest/buildhistory: Improve test to remove sources of error
Richard Purdie [Sun, 17 Jan 2016 11:17:47 +0000 (11:17 +0000)]
selftest/buildhistory: Improve test to remove sources of error

When we add buildhistory, we expect do_rootfs to rerun, but depending
on IMAGE_FSTYPES, the number of tasks which would execute after
do_rootfs varies (e.g. live would add do_bootimg and we recently
added do_image).

Therefore limit the test to -c rootfs and then we're clear that only
one task should re-run.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg/image: Enhance bootimg to respect RM_OLD_IMAGE
Richard Purdie [Sun, 17 Jan 2016 11:16:45 +0000 (11:16 +0000)]
bootimg/image: Enhance bootimg to respect RM_OLD_IMAGE

Currently, iso and hddimg links don't respect RM_OLD_IMAGE. This
updates them to use the common symlinks code so that they behave
like the rest of the system.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE
Richard Purdie [Sun, 17 Jan 2016 11:15:14 +0000 (11:15 +0000)]
rootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE

When RM_OLD_IMAGE is set, old manifest files should be removed
along with old image files and our QA tests expect this.

This patch ensures this happens.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Ensure we don't expand TMPDIR in image commands
Richard Purdie [Sun, 17 Jan 2016 00:21:44 +0000 (00:21 +0000)]
image: Ensure we don't expand TMPDIR in image commands

Similarly to DATETIME, don't expand TMPDIR in image commands.
This ensures some of the stamp comparisons we make in the
QA tests work correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Fix instability of do_image_* checksums
Richard Purdie [Sat, 16 Jan 2016 10:33:18 +0000 (10:33 +0000)]
image: Fix instability of do_image_* checksums

The do_image_* tasks contained the expanded version of DATETIME. Due
to the expansion, we couldn't exclude the value from the task checksum
which meant the task would rerun.

We fix this by deleting the DATETIME value during expansion so we don't
expand any references to at that time. This means the task's hash can be
stable rather than having hardcoded date/time values. It will get expanded
at execution time.

This also fixes errors shown by -S:

NOTE: Reparsing files to collect dependency data
Writing locked sigs to /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/locked-sigs.inc
ERROR: Bitbake's cached basehash does not match the one we just generated (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/recipes-sato/images/core-image-sato.bb.do_image_tar)!
ERROR: The mismatched hashes were 77872792556367f1dde49a1425caf1a0 and 9bb0aca6286ab7dd22d3c69964beb665

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Fix wic environment issues
Richard Purdie [Sat, 16 Jan 2016 10:32:44 +0000 (10:32 +0000)]
image: Fix wic environment issues

The wic environment function needs to run after the rootfs size is
setup. We move this code to a specific task, and depend on that task
from the wic images and other places its needed.
This fixes:

======================================================================
FAIL: test_image_env (oeqa.selftest.wic.Wic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 218, in test_image_env
    self.assertTrue(var in content, "%s is not in .env file" % var)
AssertionError: False is not true : ROOTFS_SIZE is not in .env file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Start to clean up do_configure_qa code
Richard Purdie [Fri, 15 Jan 2016 12:55:30 +0000 (12:55 +0000)]
insane: Start to clean up do_configure_qa code

This cleans up the do_configure_qa code so that the exit status from
package_qa_handle_error is handled correctly.

It also converts package_qa_check_license to use our standard QA check
configuration interface through package_qa_handle_error rather than
a mix of return values, bb.fatal and bb.build.FuncFailed.

Due to the merging of multiple lines into one message, we need to
tweak a QA test to account for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Clean up horrible return value processing code
Richard Purdie [Fri, 15 Jan 2016 12:44:10 +0000 (12:44 +0000)]
insane: Clean up horrible return value processing code

Whilst in theory return values are nice, handling the complex
aggregation of the return values is ugly. The code already uses QA_SANE
as a marker to signal problems. Whilst that isn't as idealistic, it
makes the code massively cleaner, so rely on this instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: fix PV
Robert Yang [Tue, 19 Jan 2016 03:23:03 +0000 (19:23 -0800)]
e2fsprogs: fix PV

We had upgraded e2fsprogs from 1.42.9 to 1.43 (WIP), and used:
PV = "1.42+1.43-git${SRCPV}"
But:
$ dpkg --compare-versions 1.42+1.43 gt 1.42.9 && echo greater || echo less
less

It shows that 1.42+1.43 is less than 1.42.9, so this is a downgraded. Use
PV = "1.42.13+git${SRCPV}"
to fix the problem. 1.42.13 is the latest e2fsprogs 1.42 version.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: add PACKAGECONFIG for fuse
Robert Yang [Tue, 19 Jan 2016 03:23:02 +0000 (19:23 -0800)]
e2fsprogs: add PACKAGECONFIG for fuse

Fixed:
e2fsprogs-1.42+1.43-gitAUTOINC+0f26747167: e2fsprogs rdepends on fuse, but it isn't a build dependency? [build-deps]

The fuse is in meta-filesystems layer.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: CVE-2016-1907
Armin Kuster [Sat, 16 Jan 2016 00:59:49 +0000 (16:59 -0800)]
openssh: CVE-2016-1907

This issue requires three commits:
https://anongit.mindrot.org/openssh.git/commit/?id=ed4ce82dbfa8a3a3c8ea6fa0db113c71e234416c
https://anongit.mindrot.org/openssh.git/commit/?id=f98a09cacff7baad8748c9aa217afd155a4d493f
https://anongit.mindrot.org/openssh.git/commit/?id=2fecfd486bdba9f51b3a789277bb0733ca36e1c0

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolicense.bbclass: fix license manifest
Jackie Huang [Mon, 11 Jan 2016 05:55:38 +0000 (13:55 +0800)]
license.bbclass: fix license manifest

The license manifest is wrong when there is no spaces before and after separates |&()
and we can get warning like:
WARNING: The license listed Artistic-1.0GPLv1+ was not in the licenses collected for recipe

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic/help.py: document requirements for valid fstab generation
Joshua Lock [Mon, 11 Jan 2016 13:33:51 +0000 (13:33 +0000)]
wic/help.py: document requirements for valid fstab generation

Without one of the --ondrive, --ondisk or --use-uuid options for a
partition with a mountpoint specified the automatically generated
fstab entry will be invalid.

[YOCTO #8844]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: add dependency glib-2.0-native back
Kai Kang [Mon, 11 Jan 2016 07:07:12 +0000 (15:07 +0800)]
glib-2.0: add dependency glib-2.0-native back

It uses command glib-genmarshal to build glib-2.0 which is from
glib-2.0-native. If the command doesn't exist on host, build fails
with error:

| /bin/sh: --prefix=test_marshal: command not found
| make[4]: *** [testmarshal.c] Error 127

So add the dependency back.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
Andre McCurdy [Wed, 23 Dec 2015 00:12:53 +0000 (16:12 -0800)]
kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass

Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
kernel.bbclass so that it's available to any kernel recipe.

Note that the task is not enabled by default in kernel-yocto.bbclass,
so don't enable by default in kernel.bbclass either. To enable, see
the example in linux-yocto.inc, ie:

  addtask kernel_link_vmlinux after do_compile before do_install

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS
Andre McCurdy [Wed, 23 Dec 2015 00:12:52 +0000 (16:12 -0800)]
kernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS

The do_kernel_link_vmlinux() task modifies the build directory (not
the source tree) and should not be skipped when externalsrc is being
used.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibarchive: Add bsdtar and bsdcpio packages
Dmitry Rozhkov [Wed, 13 Jan 2016 08:43:12 +0000 (10:43 +0200)]
libarchive: Add bsdtar and bsdcpio packages

Some products might need to use a tar replacement that

1. supports xattrs and
2. has more permissive license than GNU tar.

And the bsdtar binary produced from libarchive meets these
requirements.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: Separate artifact dump from image file dump
Elliot Smith [Wed, 13 Jan 2016 08:55:36 +0000 (08:55 +0000)]
toaster.bbclass: Separate artifact dump from image file dump

SDK artifacts were being dumped alongside the image file dump.
However, the dump was not being triggered correctly, as it
should be attached as a postfunc to do_populate_sdk, rather than
do_rootfs, as do_rootfs doesn't always fire when populating
the SDK directory.

By adding a postfunc to do_populate_sdk, the postfunc is fired
in the correct situations.

Also fixes the directory which is scanned for SDK artifacts, as
this is different from the image file directory.

[YOCTO #7603]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopax-utils: 1.0.5 -> 1.1.4
Hongxu Jia [Wed, 13 Jan 2016 08:30:29 +0000 (03:30 -0500)]
pax-utils: 1.0.5 -> 1.1.4

- Support autotools:
  *) Touch NEWS/AUTHORS/ChangeLog to workaroud failure
     caused by 'automake --add-missing'
  *) Add patch to fix configure failure caused by missing
     macro definition in m4 directory

- Add PACKAGECONFIG flags for libcap, libseccomp and pyelftools,
  and disable them by default.

- Add PACKAGECONFIG flag for largefile.

- Since we add PACKAGECONFIG flags for pyelftools, we do not need
  python in RDEPENDS.

BTW:
Currently oe-core does not support libseccomp.
(https://github.com/seccomp/libseccomp)

Currently oe-core does not support pyelftools.
(https://github.com/eliben/pyelftools)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: upgrade to version 3.10.0
Maxin B. John [Wed, 13 Jan 2016 10:46:03 +0000 (12:46 +0200)]
sqlite3: upgrade to version 3.10.0

3.9.2 -> 3.10.0

1. Fixed a parallel build problem
2. Added a PACKAGECONFIG for readline

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconnman: upgrade to 1.31
Maxin B. John [Tue, 12 Jan 2016 16:20:31 +0000 (18:20 +0200)]
connman: upgrade to 1.31

1.30 -> 1.31

Included newly introduced connman-wait-online service.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: add missing dependency on PN-misc to PN-modules
Ross Burton [Wed, 13 Jan 2016 12:55:46 +0000 (12:55 +0000)]
python3: add missing dependency on PN-misc to PN-modules

Installing python3-modules should install *all* of the Python standard library,
not just most of it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Remove unnecessary spaces
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:52 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Remove unnecessary spaces

This removes unnecessary spaces inserted before semicolons in the
modified USERADD_PARAM_${PN} and GROUPADD_PARAM_${PN} variables. This
should not affect the handling of the variables as the only one that
actually sees the semicolons is the code in useradd.bbclass that uses
cut to split the variables at them, and any whitespace preceeding or
following the semicolons will be properly ignored.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Read passwd/group files before parsing
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:51 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Read passwd/group files before parsing

Read and merge the passwd/group files before parsing the user and
group definitions. This means they will only be read once per
recipe. This solves a problem where if a user was definied in multiple
files, it could generate group definitions for groups that should not
be created. E.g., if the first passwd file read defines a user as:

foobar::1234::::

and the second passwd file defines it as:

foobar:::nogroup:The foobar user:/:/bin/sh

then a foobar group would be created even if the user will use the
nogroup as its primary group.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Simplify the logic for when to add groups
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:50 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Simplify the logic for when to add groups

The original code was near impossible to follow, and missed a couple
of cases. For example, if one added the following line to the passwd
file specified in USERADD_UID_TABLES:

foobar:x:12345:nogroup::/:/bin/sh

and then specified the user as:

USERADD_PARAM_${PN} = "--system foobar"

one would then assume that the foobar user would be created with the
primary group set to nogroup. However, it was not (the primary group
would be foobar), and the only way to get it correct was to explicitly
add --gid nogroup to the USERADD_PARAM_${PN}.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Simplify some logic
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:49 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Simplify some logic

The [<on_true>, <on_false>][not <condition>] construct may solve the
problem of implementing a conditional operator, but it is not very
readable. At least I find this:

    uaargs.groupid = field[3] or uaargs.gid or uaargs.groupname

a lot more readable than this:

    uaargs.groupid = [uaargs.gid, uaargs.groupname][not uaargs.gid]
    uaargs.groupid = [field[3], uaargs.groupid][not field[3]]

Also, the official conditional operator since Python 2.5 (<on_true> if
<condition> else <on_false>) does not evaluate both <on_false> and
<on_true> as [<on_true>, <on_false>][not <condition>] does.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Make --no-user-group have effect
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:48 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Make --no-user-group have effect

If --no-user-group is specified in USERADD_PARAM_${PN} for a user and
no --gid is specified, then we should not assume that the group name
for the user is the user name.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd-staticids.bbclass: Treat mutually exclusive options as such
Peter Kjellerstedt [Fri, 18 Dec 2015 23:53:47 +0000 (00:53 +0100)]
useradd-staticids.bbclass: Treat mutually exclusive options as such

The useradd options --create-home/--no-create-home and
--user-group/--no-user-group are mutually exclusive and should be
treated as such.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: get rid of 2 getters
Ed Bartosh [Thu, 14 Jan 2016 12:12:59 +0000 (14:12 +0200)]
wic: get rid of 2 getters

Used partitions and configfile bootloader attributes instead of
using getters get_bootloader_file and get_partitions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: get rid of set_size and set_source_file setters
Ed Bartosh [Thu, 14 Jan 2016 12:12:58 +0000 (14:12 +0200)]
wic: get rid of set_size and set_source_file setters

Used size and source_file attributes instead of using
setters. It's more pythonic, clear an consistent.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: get rid of get_rootfs and set_rootfs
Ed Bartosh [Thu, 14 Jan 2016 12:12:57 +0000 (14:12 +0200)]
wic: get rid of get_rootfs and set_rootfs

Got rid of get_rootfs and set_rootfs java-like getter and
setter. Renamed rootfs to rootfs_dir to be consistent with
the name of kickstart parameter --rootfs-dir.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: get rid of get_timeout getter
Ed Bartosh [Thu, 14 Jan 2016 12:12:56 +0000 (14:12 +0200)]
wic: get rid of get_timeout getter

Used bootloader.timeout instead of kickstart.get_timeout getter.

Accessing attributes instead of getting them with getters is
more pythonic, shorter and readable. It also more consistent as
most of partition and bootloader attributes are used this way.

This change also takes care of appendLine bootloader attribute:
it's renamed to bootloader.append attribute provided by new parser.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: adjust code for new data structure
Ed Bartosh [Thu, 14 Jan 2016 12:12:55 +0000 (14:12 +0200)]
wic: adjust code for new data structure

New data structure is less nested than old one.
Adjusted bootloader and partitions fields:
self.ks.handler.bootloader -> self.ks.bootoader
self.ks.handler.partitions -> self.ks.partitions

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: remove pykickstart code
Ed Bartosh [Thu, 14 Jan 2016 12:12:54 +0000 (14:12 +0200)]
wic: remove pykickstart code

Removed pykickstart-related code as it's replaced by
new kickstart parser.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: use new kickstart parser
Ed Bartosh [Thu, 14 Jan 2016 12:12:53 +0000 (14:12 +0200)]
wic: use new kickstart parser

Used KickStart parser class instead of pykickstart API.

This commit breaks wic as data structures and field names
provided by new API are a bit different from old ones.
This issue will be addressed in the following commits.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add kickstart parser module
Ed Bartosh [Thu, 14 Jan 2016 12:12:52 +0000 (14:12 +0200)]
wic: add kickstart parser module

This module will replace existing pykickstart machinery
it contains only option used by wic, it's simple and
clear. And It will allow to remove a lot of old complex
code from 3rdparty/pykickstart/ and kickstart/custom_commands.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add partition module
Ed Bartosh [Thu, 14 Jan 2016 12:12:51 +0000 (14:12 +0200)]
wic: add partition module

Copied partition-related API from kickstart/custom_commands/partition.py
to separate module in preparation for removal of all
pykickstart related code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-lib: 1.0.29 -> 1.1.0
Tanu Kaskinen [Thu, 14 Jan 2016 12:41:22 +0000 (14:41 +0200)]
alsa-lib: 1.0.29 -> 1.1.0

Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

The most significant change is probably the addition of the "topology
API", which is used to change the DSP topology from userspace. My
understanding is that the API is (or will be) needed to support some
new hardware, but I don't know any specifics about that.

Rebased Check-if-wordexp-function-is-supported.patch.

Dropped 0001-build-Do-not-try-to-detect-cross-compiler.patch, since it
is included in the new release.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomatchbox-keyboard: export GTK_IM_MODULE_FILE location
Maxin B. John [Mon, 4 Jan 2016 15:20:57 +0000 (17:20 +0200)]
matchbox-keyboard: export GTK_IM_MODULE_FILE location

This commit in gtk+ moved the cache files below <libdir>
"
commit c8849046860a9b17fa943247d85ddadb29262b48
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Thu Jul 4 09:27:17 2013 -0400

Move the module cache files below libdir

These files contain architecture-dependent paths, and thus placing
them into sysconfdir causes unnecessary hassle. Now the immodule cache
file is looked for in libdir/gtk-2.0/2.10.0/immodules.cache.
Belated backport of a change that was done in the run-up to 3.0.
"

Since gtk-immodules-cache.bbclass creates the cache file in
"/etc/gtk-2.0/gtk.immodules", the environment variable "GTK_IM_MODULE_FILE"
can be set to point GTK+ at the file.

[YOCTO #6774]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-evdev: upgrade to 2.10.1
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:57 +0000 (15:27 +0200)]
xf86-input-evdev: upgrade to 2.10.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomenu-cache: upgrade to 1.0.1
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:56 +0000 (15:27 +0200)]
menu-cache: upgrade to 1.0.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxi: upgrade to 1.7.6
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:55 +0000 (15:27 +0200)]
libxi: upgrade to 1.7.6

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibrsvg: upgrade to 2.40.13
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:54 +0000 (15:27 +0200)]
librsvg: upgrade to 2.40.13

Updated gtk-option.patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgpg-error: upgrade to 1.21
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:53 +0000 (15:27 +0200)]
libgpg-error: upgrade to 1.21

License checksum changed because text layout changed.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibevdev: upgrade to 1.4.6
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:52 +0000 (15:27 +0200)]
libevdev: upgrade to 1.4.6

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibcroco: upgrade to 0.6.11
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:51 +0000 (15:27 +0200)]
libcroco: upgrade to 0.6.11

Remove PR from recipe.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogsettings-desktop-schemas: upgrade to 3.19.3
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:50 +0000 (15:27 +0200)]
gsettings-desktop-schemas: upgrade to 3.19.3

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpgme: upgrade to 1.6.0
Jussi Kukkonen [Thu, 14 Jan 2016 13:27:49 +0000 (15:27 +0200)]
gpgme: upgrade to 1.6.0

License checksum changed because of text layout change.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot: Update to 2016.01 release
Marek Vasut [Thu, 14 Jan 2016 03:17:12 +0000 (04:17 +0100)]
u-boot: Update to 2016.01 release

Upgrade U-Boot to latest version and drop upstreamed patches.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: introduce v4.4 standard/preempt-rt/standard kernel
Bruce Ashfield [Mon, 11 Jan 2016 16:58:26 +0000 (11:58 -0500)]
linux-yocto: introduce v4.4 standard/preempt-rt/standard kernel

The 4.4 kernel has been under test via linux-yocto-dev, and is the next
LTS/LTSI kernel.

So we take our -dev support and created a named/versioned recipe for use
in upcoming releases.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: 1.42.9 -> 1.43 (master)
Robert Yang [Thu, 14 Jan 2016 01:37:28 +0000 (17:37 -0800)]
e2fsprogs: 1.42.9 -> 1.43 (master)

Upgrade to 1.43 (master) to make "mke2fs -d" support xattr, so that the
layer which requires xattr such as meta-selinux can populate images
easily.

* Remove the following patches since they are alredy in the source.
  0001-e2fsprogs-fix-cross-compilation-problem.patch
  0001-libext2fs-fix-potential-buffer-overflow-in-closefs.patch
  0001-mke2fs-add-the-ability-to-copy-files-from-a-given-di.patch
  0002-misc-create_inode.c-copy-files-recursively.patch
  0003-misc-create_inode.c-create-special-file.patch
  0004-misc-create_inode.c-create-symlink.patch
  0005-misc-create_inode.c-copy-regular-file.patch
  0006-misc-create_inode.c-create-directory.patch
  0007-misc-create_inode.c-set-owner-mode-time-for-the-inod.patch
  0008-mke2fs.c-add-an-option-d-root-directory.patch
  0009-misc-create_inode.c-handle-hardlinks.patch
  0010-debugfs-use-the-functions-in-misc-create_inode.c.patch
  0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch
  0012-Fix-musl-build-failures.patch
  CVE-2015-0247.patch
  copy-in-create-hardlinks-with-the-correct-directory-.patch
  fix-icache.patch
  misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch

* Remove cache_inode.patch since it is not needed any more

* Updated mkdir.patch and ptest.patch

* Add --enable-libblkid to EXTRA_OECONF since libblkid is not created by
  default.

* Time of core-image-sato-sdk do_rootfs:
  - Before upgrade
    real    3m18.508s
    user    7m42.088s
    sys     1m1.984s

  - After upgrade
    real    3m21.552s
    user    7m38.496s
    sys     1m0.644s

   The are nearly the same

* The "fsck -f" shows the image is OK, and also can boot.

[YOCTO #8622]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agobitbake.conf: rename python-native-runtime
Ed Bartosh [Wed, 13 Jan 2016 08:03:04 +0000 (10:03 +0200)]
bitbake.conf: rename python-native-runtime

The code in native.bbclass adds -native suffix to the package
names that don't have it.

Renamed python-native-runtime -> hostpython-runtime-native to avoid
mangling it and to conform with the naming convetion for native
packages.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonet-tools_1.60-26.bb: Fix do_patch dependency error
Li Xin [Fri, 15 Jan 2016 01:25:36 +0000 (04:25 +0300)]
net-tools_1.60-26.bb: Fix do_patch dependency error

When set PATCHTOOL = "patch" in conf/local.conf an error will occur
in the step of do_patch.

The error is: "quilt: command not found", so fix the missing
dependency.

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoncurses: 5.9 0 -> 6.0
Dengke Du [Fri, 15 Jan 2016 05:09:10 +0000 (00:09 -0500)]
ncurses: 5.9 0 -> 6.0

To be compatible with ncurses 5, add option '--with-abi-version=5' to EXTRA_OECONF

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools.bbclass: use relative path to run configure script
Robert Yang [Tue, 6 Oct 2015 06:42:24 +0000 (23:42 -0700)]
autotools.bbclass: use relative path to run configure script

The absolute path (/path/to/configure) caused VPATH in Makefile to be an
absolute path, and then it will be in elf files, use relative path to
run configure can fix the problem.

This will reduce a lot of buildpaths QA issues in a world buld.

[YOCTO #8894]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoglibc-initial.inc: use relative path to run configure
Robert Yang [Thu, 8 Oct 2015 03:00:24 +0000 (20:00 -0700)]
glibc-initial.inc: use relative path to run configure

Avoid potential build path in output files.

[YOCTO #8894]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoopenssh: update to 7.1p2
Alexander Kanavin [Thu, 14 Jan 2016 15:38:52 +0000 (17:38 +0200)]
openssh: update to 7.1p2

This fixes a number of security issues.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH
Jianxun Zhang [Tue, 12 Jan 2016 21:53:56 +0000 (13:53 -0800)]
kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH

For a bare-bone kernel recipe which specifies 32 bit x86 target,
a 64 bit .config will be generated from do_configure task when
building 32-bit qemux86, once all of these conditions are true:

* arch of host is x86_64
* kernel source tree used in build has commit ffee0de41 which
  actually chooses i386 or x86_64 defconfig by asking host when
  ARCH is "x86" (arch/x86/Makefile)
* bare-bone kernel recipe inherits directly from kernel without
  other special treatments.

Build will fail because of the mismatched kernel architecture.

The patch sets ARCH i386 or x86_64 explicitly to configure
task to avoid this host contamination. Kernel artifact is also
changed so that it can map i386 and x64 back to arch/x86 when
needed.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage/image-live: Add back IMAGE_TYPES_MASKED support
Richard Purdie [Fri, 15 Jan 2016 11:50:05 +0000 (11:50 +0000)]
image/image-live: Add back IMAGE_TYPES_MASKED support

IMAGE_TYPES_MASKED support was accidentally removed. The original
idea behind it was to remove some of the hardcoding in the core
image code, so do that for image-live and ensure the dependency
and masked variables correctly reflect the needs of the class.
This means we can remove all the hardcoded special cases since
image-vm already has the needed markup.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: Handle image base type dependency properly
Otavio Salvador [Thu, 14 Jan 2016 21:17:08 +0000 (19:17 -0200)]
image.bbclass: Handle image base type dependency properly

When a base image type has an implicit dependency (from IMAGE_TYPEDEP)
this has to be taken into account. This is a regression introduced by
OE-Core:c2dab18 (image: Create separate tasks for rootfs construction).

The issue has been found when building meta-fsl-arm based images which
does not include the rootfs image type explicitly in IMAGE_FSTYPES but
instead is added, using IMAGE_TYPEDEP, for the 'sdcard.gz' image.

Reported-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautoconf: add missing perl-module-file-find to RDEPENDS
Enrico Jorns [Tue, 12 Jan 2016 14:27:25 +0000 (15:27 +0100)]
autoconf: add missing perl-module-file-find to RDEPENDS

The autoscan script uses the File.pm module which was missing in the
list of RDEPENDS. This caused autoscan to fail with

  % autoscan
  [...]
  Can't locate File/Find.pm in @INC [...]

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoca-certificates: update to 20160104
Alexander Kanavin [Tue, 12 Jan 2016 13:20:28 +0000 (15:20 +0200)]
ca-certificates: update to 20160104

LICENSE checksum changed due to an updated file listing in debian/copyright

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoepiphany: upgrade to 3.18.3
Alexander Kanavin [Tue, 12 Jan 2016 13:20:27 +0000 (15:20 +0200)]
epiphany: upgrade to 3.18.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoiso-codes: upgrade to 3.64
Alexander Kanavin [Tue, 12 Jan 2016 13:20:26 +0000 (15:20 +0200)]
iso-codes: upgrade to 3.64

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolighttpd: upgrade to 1.4.39
Alexander Kanavin [Tue, 12 Jan 2016 13:20:25 +0000 (15:20 +0200)]
lighttpd: upgrade to 1.4.39

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibwebp: upgrade to 0.5.0
Alexander Kanavin [Tue, 12 Jan 2016 13:20:24 +0000 (15:20 +0200)]
libwebp: upgrade to 0.5.0

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: avoid unnecessary sstate being brought in
Paul Eggleton [Tue, 12 Jan 2016 21:39:03 +0000 (10:39 +1300)]
classes/populate_sdk_ext: avoid unnecessary sstate being brought in

Create a separate task where we can just have the recursive dependencies
for the tasks corresponding to constructing the SDK content (i.e. from
the image contents). This avoids us recursing into dependencies from
buildtools and getting a bunch of nativesdk stuff, for example.

(This isn't an ideal way to have to implement it, but without
overcomplicating things on the BitBake side just for this use-case I
can't see a better way.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane/package: Fix cases where QA errors aren't fatal
Richard Purdie [Tue, 12 Jan 2016 18:00:13 +0000 (18:00 +0000)]
insane/package: Fix cases where QA errors aren't fatal

When using package_qa_handle_error(), we need to check QA_SANE and
give a fatal error if issues were raised. The main insane checks do
this, the anonymous python in insane does not, nor does the code in
package.bbclass. This was likely missed when the function was
introduced to package.bbclass.

The impact is that errors can be shown but don't stop the build
(do_package succeeds), the initial build fails due to the errors
shown but subsequent builds succeed. This is clearly broken.

The solution is to check QA_SANE in places we use the handle_error
function.

[YOCTO #8907]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: check that extensible SDK prepared correctly
Paul Eggleton [Tue, 12 Jan 2016 18:47:47 +0000 (07:47 +1300)]
classes/populate_sdk_ext: check that extensible SDK prepared correctly

After the change to use --setscene-only when running bitbake to prepare
the SDK at the end of installation, add a check that the SDK got
prepared correctly by doing a dry-run and looking at the output for any
real tasks that we don't expect. In order to make this easier, the
preparation shell script was rewritten in python.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: save auto.conf and bblayers.conf for extensible SDK
Paul Eggleton [Tue, 12 Jan 2016 18:47:46 +0000 (07:47 +1300)]
classes/buildhistory: save auto.conf and bblayers.conf for extensible SDK

These form part of the configuration for the extensible SDK, we should
really be recording what goes into them.

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: support auto.conf
Paul Eggleton [Tue, 12 Jan 2016 18:47:45 +0000 (07:47 +1300)]
classes/populate_sdk_ext: support auto.conf

If auto.conf exists in the user's configuration we need to also run it
through the same filter and write the result into the ext SDK, or we
risk missing configuration applied on an autobuilder.

Fixes [YOCTO #8904].

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.bbclass: handle if local.conf doesn't end with a newline
Paul Eggleton [Tue, 12 Jan 2016 18:47:44 +0000 (07:47 +1300)]
classes/populate_sdk_ext.bbclass: handle if local.conf doesn't end with a newline

If there is no newline at the end of local.conf, appending
INHERIT = "uninative" won't work, it will corrupt the line and the
installed eSDK will build things, making the "Preparing build system..."
step take an age.

Fixes [YOCTO #8897].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutil-linux: create util-linux-runuser iff pam in DISTRO_FEATURES
Ioan-Adrian Ratiu [Tue, 12 Jan 2016 09:23:25 +0000 (11:23 +0200)]
util-linux: create util-linux-runuser iff pam in DISTRO_FEATURES

If pam is not present in DISTRO_FEATURES, then exclude
util-linux-runuser from PACKAGES to avoid its libpam dependency.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: 3.1.1 -> 3.1.2
Robert Yang [Thu, 7 Jan 2016 09:42:56 +0000 (01:42 -0800)]
rsync: 3.1.1 -> 3.1.2

* Remove backport patches:
  - 0001-Complain-if-an-inc-recursive-path-is-not-right-for-i.patch
  - rsync.git-eac858085.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoless: 479 -> 481
Robert Yang [Thu, 7 Jan 2016 09:39:17 +0000 (01:39 -0800)]
less: 479 -> 481

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoiputils: s20121221 -> s20151218
Robert Yang [Thu, 7 Jan 2016 09:31:10 +0000 (01:31 -0800)]
iputils: s20121221 -> s20151218

* Remove fix-build-command-line-argument-with-gnutls.patch which is
  already in the source.
* Add libgcrypt to DEPENDS since it depends on it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agowget: 1.17 -> 1.17.1
Robert Yang [Thu, 7 Jan 2016 09:25:54 +0000 (01:25 -0800)]
wget: 1.17 -> 1.17.1

* Remove fix_makefile.patch, it is already in the source.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>