]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agobash: upgrade to 4.3
Hongxu Jia [Mon, 3 Mar 2014 10:55:57 +0000 (18:55 +0800)]
bash: upgrade to 4.3

The bash-4.2-patches is obsolete.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomtdev: upgrade to 1.1.5
Ross Burton [Mon, 3 Mar 2014 14:18:25 +0000 (14:18 +0000)]
mtdev: upgrade to 1.1.5

Removed the following patch(es):
 * fixsepbuild.patch (changes included in release)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager.py: RpmPM: don't add smart channel if already added
Laurentiu Palcu [Mon, 3 Mar 2014 09:43:31 +0000 (11:43 +0200)]
package_manager.py: RpmPM: don't add smart channel if already added

Make sure the channel was not already added, before attempting to add.

[YOCTO #5890]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "lib/oe/package_manager.py: RpmPM: fix issue with multilib builds"
Laurentiu Palcu [Mon, 3 Mar 2014 09:43:30 +0000 (11:43 +0200)]
Revert "lib/oe/package_manager.py: RpmPM: fix issue with multilib builds"

Converting a list to a set does not keep the order of the items, as they
were added, which might result in the wrong packages being installed in
the final image...

This reverts commit 12f47c23df8c109676f66d580d666a3147f3b046.

[YOCTO #5890]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogstreamer: Fix valgrind header detection
Richard Purdie [Mon, 3 Mar 2014 15:48:33 +0000 (15:48 +0000)]
gstreamer: Fix valgrind header detection

--disable-valgrind isn't enough, it also looks for the header since the binary
may be present without the -dev headers. Add in a configure value to
ensure the header is disabled as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate: Ensure SSTATEPOSTINSTFUNCS is accounted for in signatures
Richard Purdie [Mon, 3 Mar 2014 15:48:01 +0000 (15:48 +0000)]
sstate: Ensure SSTATEPOSTINSTFUNCS is accounted for in signatures

Bitbake can't interpret the python execution of these functions so
include the dependency manually.

[YOCTO #4507]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: add BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS rootfs vardeps
Jonathan Liu [Sat, 1 Mar 2014 11:33:45 +0000 (22:33 +1100)]
image.bbclass: add BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS rootfs vardeps

Changes to BAD_RECOMMENDATIONS or NO_RECOMMENDATIONS require the rootfs
for the image to be rebuilt.

[YOCTO #5898]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotestimage: add task level lock
Stefan Stanacar [Sat, 1 Mar 2014 20:12:57 +0000 (22:12 +0200)]
testimage: add task level lock

For machines other than qemu it will not be okay to run
multiple testimage tasks in parallel.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Don't use echo -n
Martin Jansa [Sat, 1 Mar 2014 20:52:02 +0000 (21:52 +0100)]
sstate-cache-management.sh: Don't use echo -n

* when debug is enabled it causes more confusion than what it's gaining
  without debug enabled

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: Allow to remove old .siginfo and .done files for all...
Martin Jansa [Sat, 1 Mar 2014 20:52:01 +0000 (21:52 +0100)]
sstate-cache-management.sh: Allow to remove old .siginfo and .done files for all tasks

* this allows to remove them even for tasks without sstate archives (e.g. rm_work, multilib_install, ..)
  whole list of tasks found in one of my sstate-cache directories:
  sstate:xxx_boostconfig.tgz ... 6
  sstate:xxx_bundle_initramfs.tgz ... 31
  sstate:xxx_compile.tgz ... 47894
  sstate:xxx_compile_kernelmodules.tgz ... 31
  sstate:xxx_compile_ptest_base.tgz ... 68
  sstate:xxx_configure.tgz ... 48247
  sstate:xxx_configure_ptest_base.tgz ... 68
  sstate:xxx_deploy.tgz ... 8
  sstate:xxx_evacuate_scripts.tgz ... 58
  sstate:xxx_fetch.tgz ... 7045
  sstate:xxx_generate.tgz ... 812
  sstate:xxx_generate_qt_config_file.tgz ... 576
  sstate:xxx_generate_toolchain_file.tgz ... 219
  sstate:xxx_install.tgz ... 48273
  sstate:xxx_install_locale.tgz ... 58
  sstate:xxx_install_ptest_base.tgz ... 68
  sstate:xxx_kernel_checkout.tgz ... 14
  sstate:xxx_kernel_configcheck.tgz ... 34
  sstate:xxx_kernel_configme.tgz ... 17
  sstate:xxx_kernel_link_vmlinux.tgz ... 30
  sstate:xxx_make_scripts.tgz ... 42
  sstate:xxx_multilib_install.tgz ... 29
  sstate:xxx_package.tgz ... 13848
  sstate:xxx_package_write_ipk.tgz ... 4615
  sstate:xxx_packagedata.tgz ... 4613
  sstate:xxx_pam_sanity.tgz ... 3
  sstate:xxx_patch.tgz ... 7883
  sstate:xxx_populate_adt.tgz ... 28
  sstate:xxx_populate_ide_support.tgz ... 33
  sstate:xxx_populate_lic.tgz ... 1718
  sstate:xxx_populate_sysroot.tgz ... 5094
  sstate:xxx_prepare_qmake_symlink.tgz ... 6
  sstate:xxx_prepsources.tgz ... 168
  sstate:xxx_rm_work.tgz ... 107630
  sstate:xxx_rm_work_all.tgz ... 52563
  sstate:xxx_rootfs.tgz ... 13
  sstate:xxx_sanitize_sources.tgz ... 8
  sstate:xxx_sizecheck.tgz ... 31
  sstate:xxx_strip.tgz ... 31
  sstate:xxx_uboot_mkimage.tgz ... 31
  sstate:xxx_unpack.tgz ... 7857
  sstate:xxx_unpack_extra.tgz ... 6
  sstate:xxx_validate_branches.tgz ... 14

* with this patches most of these files are removed as well
  Figuring out the sstate:xxx_compile ... (0 from 0 .tgz files for
  compile suffix will be removed or 42310 from 47795 when counting also
  .siginfo and .done files)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management: improve shown numbers of removed files
Martin Jansa [Sat, 1 Mar 2014 20:52:00 +0000 (21:52 +0100)]
sstate-cache-management: improve shown numbers of removed files

* deleted files were counting .siginfo and .done files, but total_files were counting only .tgz archives
  so it could show confusing output like:
  Figuring out the sstate:xxx_packagedata.tgz ... (21098 from 15162 files for packagedata suffix will be removed)
* split the counts and show both
* fix .sigdata sometimes used instead of .siginfo
* this will also show new "suffixes" which have only .siginfo files but
  no .tgz, e.g.:
  Figuring out the sstate:xxx_rm_work.tgz ... (0 from 0 .tgz files for
  rm_work suffix will be removed or 0 from 107630 when counting also
  .siginfo and .done files)
  because now we're storing siginfo files from all intermediate tasks,
  but they are not being removed by this script

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf: Drop -fpermissive
Richard Purdie [Sun, 2 Mar 2014 17:38:33 +0000 (17:38 +0000)]
bitbake.conf: Drop -fpermissive

Drop the -fpermissive C++ compiler flag. We've had this around for years, most
code should have been fixed long ago. Its possible some recipes may fail
however we can (and should) just use the flag where needed.

An OE-Core world build seems to work just fine with this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooprofile: Partially fix separate builddir support
Richard Purdie [Sun, 2 Mar 2014 17:37:37 +0000 (17:37 +0000)]
oprofile: Partially fix separate builddir support

It doesn't make separate build completely work but its worth
merging as one step in the right direction.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-tools/autotools: Ensure that aclocal files can be present with AUTOTOOLS_COPYACL...
Richard Purdie [Mon, 3 Mar 2014 15:49:50 +0000 (15:49 +0000)]
alsa-tools/autotools: Ensure that aclocal files can be present with AUTOTOOLS_COPYACLOCAL variable

Introduce a AUTOTOOLS_COPYACLOCAL variable which forces the copy of the aclocal
files even when a configure.ac/.in file isn't present.

Use this new feature in alsa-tools.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautotools: Limit aclocal files to those in dependencies
Richard Purdie [Sun, 2 Mar 2014 17:36:38 +0000 (17:36 +0000)]
autotools: Limit aclocal files to those in dependencies

We still occasionally see race issues with cp-noerror, and it copies
too many files, we should limit the the m4 files to those explicitly in
the DEPENDS for the recipe.

This change takes advantage of the BB_TASKDEPDATA data from bitbake to
only copy in those files listed in the manifest of the recipes in DEPENDS.

I've had this testing locally for some time, its ready for wider
review/testing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenjade: Fix configure assumptions about file moves
Richard Purdie [Mon, 3 Mar 2014 15:51:59 +0000 (15:51 +0000)]
openjade: Fix configure assumptions about file moves

This means that do_configure prefunc code can see the files in question
and ensures aclocal files get copied in.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobzip: Add extra files as a specific task
Richard Purdie [Mon, 3 Mar 2014 15:50:45 +0000 (15:50 +0000)]
bzip: Add extra files as a specific task

This means that do_configure prefunc code can see the files in question
and ensures aclocal files get copied in.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "ncurses: use ln -r to generate relative symlink"
Richard Purdie [Mon, 3 Mar 2014 15:52:26 +0000 (15:52 +0000)]
Revert "ncurses: use ln -r to generate relative symlink"

ln -r isn't available in older versions of coreutils such as those
present in Ubuntu 12.04. We'll find an alternative solution.

This reverts commit 65c2439ab6dcbd4c52439cdc96acb8ba222c196b.

11 years agoltp: Work around parallel make race
Richard Purdie [Sat, 1 Mar 2014 15:17:50 +0000 (15:17 +0000)]
ltp: Work around parallel make race

As per the comments, the makefiles use make -C extensively and
this causes particular problems around the kernel syscall header. We
therefore ensure its up to date in advance.

Also, append the configure, not prepend since otherwise the configure
will rerun during the build due to the timestamps being outdated.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-native: remove unused and duplicated sitecustomize.py
Hongxu Jia [Fri, 19 Jul 2013 09:13:41 +0000 (17:13 +0800)]
python-native: remove unused and duplicated sitecustomize.py

python-native doesn't use sitecustomize.py and there is another
duplicated one in meta/recipes-devtools/python/python.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooeqa/runtime/dmesg: Ignore DMA timeout errors
Richard Purdie [Sat, 1 Mar 2014 15:22:01 +0000 (15:22 +0000)]
oeqa/runtime/dmesg: Ignore DMA timeout errors

We see these from qemu images on servers under load. They're not interesting
and clutter the build output so lets ignore them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoncurses: use ln -r to generate relative symlink
Ross Burton [Fri, 28 Feb 2014 18:28:54 +0000 (18:28 +0000)]
ncurses: use ln -r to generate relative symlink

Instead of using a Python do_install() and calling
oe.path.make_relative_symlink, just pass -r to ln to generate a relative symlink
directly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowpa-supplicant: upgrade to 2.1
Cristian Iorga [Fri, 28 Feb 2014 15:43:34 +0000 (17:43 +0200)]
wpa-supplicant: upgrade to 2.1

- USE {BP} variable;
- Updated naming scheme;
- Updated copyright owners.
- Update defconfig file, is now in
  sync with current version;
  as such, more functionality can
  be enabled for wpa-supplicant.
- removed register-autoscan-correctly.patch,
  included in upstream.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodpkg: Use bzip2-replacement-native
Richard Purdie [Fri, 28 Feb 2014 15:49:13 +0000 (15:49 +0000)]
dpkg: Use bzip2-replacement-native

bzip2-native is in ASSUME_PROVIDED so the dependency that dpkg has doesn't correctly
trigger the build dependency. This shows up if you don't have bzip2 development
headers on your build machine and you:

bitbake dpkg-native
bitbake dpkg-native -c cleansstate
rm tmp -rf
bitbake dpkg-native

This patch uses the bzip2-replacement-native dependency as a handful
of other recipes do to make sure libbz2 is available.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-selftest: Fix test_sstate_cache_management_script*
Corneliu Stoicescu [Fri, 28 Feb 2014 16:59:28 +0000 (18:59 +0200)]
oe-selftest: Fix test_sstate_cache_management_script*

Fixed tests for sstate-cache-management.sh that ware failing due to:
 - recent changes to sstate-cache structure
 - recent changes to the script itself

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodropbear: upgrade to 2014.63
Paul Eggleton [Fri, 28 Feb 2014 16:37:23 +0000 (16:37 +0000)]
dropbear: upgrade to 2014.63

Drop 0002-static_build_fix.patch since an equivalent fix has been merged
upstream.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agochrpath: upgrade to 0.16
Paul Eggleton [Fri, 28 Feb 2014 16:37:22 +0000 (16:37 +0000)]
chrpath: upgrade to 0.16

I elected not to use ${PV} in SRC_URI because the URL still needs to
have a unique number in it per release, so there doesn't seem to be any
point.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoaugeas: upgrade to 1.2.0
Paul Eggleton [Fri, 28 Feb 2014 16:37:21 +0000 (16:37 +0000)]
augeas: upgrade to 1.2.0

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocmake: upgrade to 2.8.12.2
Paul Eggleton [Fri, 28 Feb 2014 16:37:20 +0000 (16:37 +0000)]
cmake: upgrade to 2.8.12.2

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoethtool: upgrade to 3.13
Paul Eggleton [Fri, 28 Feb 2014 16:37:19 +0000 (16:37 +0000)]
ethtool: upgrade to 3.13

LIC_FILES_CHKSUM changed due to updating the COPYING license text
(still GPLv2, but new FSF address, some minor formatting changes,
reference to "GNU Library General Public License" -> "GNU Lesser
General Public License".

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssh: upgrade to 6.5p1
Paul Eggleton [Fri, 28 Feb 2014 16:37:18 +0000 (16:37 +0000)]
openssh: upgrade to 6.5p1

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto-dev: bump to v3.14-rc4
Bruce Ashfield [Fri, 28 Feb 2014 14:28:14 +0000 (09:28 -0500)]
linux-yocto-dev: bump to v3.14-rc4

Updating the version of linux-yocto-dev to reflect the integration of
the 3.14-rc4 kernel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-hob: Drop as no longer needed
Richard Purdie [Fri, 28 Feb 2014 14:49:16 +0000 (14:49 +0000)]
meta-hob: Drop as no longer needed

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob-image: Drop as no longer needed by bitbake
Richard Purdie [Fri, 28 Feb 2014 14:48:36 +0000 (14:48 +0000)]
hob-image: Drop as no longer needed by bitbake

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautotools-brokensep: Mark recipes with broken separate build dir support
Richard Purdie [Thu, 27 Feb 2014 18:01:44 +0000 (18:01 +0000)]
autotools-brokensep: Mark recipes with broken separate build dir support

This patch goes through the OE-Core recipes and marks those which use autotools
but don't support a separate build directory (${S} != ${B}). A new class,
autotools-brokensep is used for this purpose.

This doesn't introduce any change in behaviour in its own right.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython3: Fix make race
Richard Purdie [Fri, 28 Feb 2014 11:03:27 +0000 (11:03 +0000)]
python3: Fix make race

This fixes a race which was showing up on the autobuilder (see patch header).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython3: Fix QA warning
Richard Purdie [Fri, 28 Feb 2014 11:24:01 +0000 (11:24 +0000)]
python3: Fix QA warning

Addresses the warning:

WARNING: QA Issue: python3-native: configure was passed unrecognised options: --with-wctype-functions

since this option was removed in python 3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibomxil: Fix link issue for gst-omx
Sébastien Mennetrier [Fri, 28 Feb 2014 10:43:50 +0000 (11:43 +0100)]
libomxil: Fix link issue for gst-omx

gst-omx element can not load due to a missing symbol.
Missing symbol RM_Deinit.

Signed-off-by: Sébastien Mennetrier <s.mennetrier@innotis.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: Backport CVE-2013-1752 fix from upstream
Maxin B. John [Fri, 28 Feb 2014 11:53:33 +0000 (12:53 +0100)]
python: Backport CVE-2013-1752 fix from upstream

This back ported patch fixes CVE-2013-1752 for smtplib

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Reviewed-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: fix build without wayland in distro_features
Robert Yang [Sat, 22 Feb 2014 07:18:34 +0000 (15:18 +0800)]
weston: fix build without wayland in distro_features

There was a configure error when build weston without wayland in
distro_features:

configure: error: Package requirements (egl >= 7.10 glesv2 wayland-client wayland-egl) were not met:

No package 'wayland-egl' found

[YOCTO #5867]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agodpkg: Fix dpkg-native dependency on target xz
Richard Purdie [Thu, 27 Feb 2014 23:59:52 +0000 (23:59 +0000)]
dpkg: Fix dpkg-native dependency on target xz

dpkg-native should not depend on the target xz. Fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agowebkit-gtk: Fix separate builddir support
Richard Purdie [Thu, 27 Feb 2014 22:14:57 +0000 (22:14 +0000)]
webkit-gtk: Fix separate builddir support

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoman-pages: Update to 3.60
Saul Wold [Thu, 27 Feb 2014 14:26:56 +0000 (16:26 +0200)]
man-pages: Update to 3.60

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-yocto/3.10: integrate latest LTSI changes
Bruce Ashfield [Thu, 27 Feb 2014 21:02:15 +0000 (16:02 -0500)]
linux-yocto/3.10: integrate latest LTSI changes

Integrating the latest 3.10 LTSI changes into the yocto tree.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-yocto/3.4: update to v3.4.82 and latest LTSI
Bruce Ashfield [Thu, 27 Feb 2014 20:56:27 +0000 (15:56 -0500)]
linux-yocto/3.4: update to v3.4.82 and latest LTSI

Updating the 3.4 tree to the 3.4.82 -stable update, and integrating
the latest LTSI changes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-yocto/3.10: update to v3.10.32
Bruce Ashfield [Mon, 24 Feb 2014 16:09:08 +0000 (11:09 -0500)]
linux-yocto/3.10: update to v3.10.32

Integrating the latest korg -stable update for the 3.10 series of
kernels.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agokernel-yocto: always checkout machine branch when existing validate_branches
Bruce Ashfield [Fri, 21 Feb 2014 05:01:00 +0000 (00:01 -0500)]
kernel-yocto: always checkout machine branch when existing validate_branches

The validate_branches routine is responsible for ensuring that the specified
SRCREV exists, and that the tree has been prepared for eventual patching
starting directly from that SRCREV.

On exit, the routine checks out the specified machine branch and the
preparation is complete .. except if a KMETA branch isn't used, we exit
early since the branch can't be validated.

To make the exit condition consistent for all cases, we can move the
KMETA validation inside a conditional and allow the same exit path for
both cases.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogcc: Enable SPE & AltiVec generation on powepc*linux target.
Alexandru-Cezar Sardan [Thu, 27 Feb 2014 12:17:35 +0000 (14:17 +0200)]
gcc: Enable SPE & AltiVec generation on powepc*linux target.

[ADT bug #5761] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=5761

Also this patch adds symlinks to libgcc such that a GCC configured
by passing the target parameter without LIBCEXTENSION and ABIEXTENSION
specifiers to find the correct startup files from a libgcc configured
with these variables.

Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agooeqa/targetcontrol: make BaseTarget an abstract class
Stefan Stanacar [Thu, 27 Feb 2014 15:46:15 +0000 (17:46 +0200)]
oeqa/targetcontrol: make BaseTarget an abstract class

This should make it clear what methods a subclass
needs to redefine.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agooe-selftest: Fix for test_rm_old_image
Corneliu Stoicescu [Thu, 27 Feb 2014 13:53:16 +0000 (15:53 +0200)]
oe-selftest: Fix for test_rm_old_image

After recent changes in poky this test was not working as it should.
This commit fixes and improves the test logic.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibnotify: don't use gnome.bbclass
Alexandru Palalau [Thu, 27 Feb 2014 10:05:41 +0000 (12:05 +0200)]
libnotify: don't use gnome.bbclass

gnome.bbclass pulls in more functionality than this recipe needs (icon cache,
MIME, GConf), so instead just use gnomebase.bbclass.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoqt-mobility: fix metaobjectbuilder build errors
Hongxu Jia [Thu, 27 Feb 2014 09:32:19 +0000 (17:32 +0800)]
qt-mobility: fix metaobjectbuilder build errors

Backport upstream patches to fix the build errors:

ipc/qmetaobjectbuilder.cpp:803:65: error: invalid conversion from \
'QMetaObjectExtraData::StaticMetacallFunction {aka void (*)(QObject*, \
QMetaObject::Call, int, void**)}' to 'QtMobility::QMetaObjectBuilder:: \
StaticMetacallFunction {aka int (*)(QMetaObject::Call, int, void**)} \

Upstream-commit:
http://qt.gitorious.org/qt-mobility/qt-mobility/commit/f102053b28009b3094b0e5777177208afa6097c5

Task-number: QTMOBILITY-1990

[YOCTO #4575]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomailx: fix the path to sendmail interface
Jackie Huang [Thu, 27 Feb 2014 07:21:07 +0000 (15:21 +0800)]
mailx: fix the path to sendmail interface

The default path to sendmail is to /usr/lib/sendmail, but
msmtp install it as ${sbindir}/sendmail, set the correct
path for Makefile to fix it.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibnotify: Fix separate build dir support
Richard Purdie [Thu, 27 Feb 2014 18:04:15 +0000 (18:04 +0000)]
libnotify: Fix separate build dir support

Fix ${B} != ${S} support for libnotify.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agotelepathy-mission-control: upgrade to 5.16.1
Cristian Iorga [Thu, 27 Feb 2014 10:43:51 +0000 (12:43 +0200)]
telepathy-mission-control: upgrade to 5.16.1

- Switched to {BP} variable.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agotelepathy-glib: upgrade to 0.23.2
Cristian Iorga [Thu, 27 Feb 2014 10:21:25 +0000 (12:21 +0200)]
telepathy-glib: upgrade to 0.23.2

- switched to {BP} variable.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobluez5: upgrade to 5.15
Cristian Iorga [Thu, 27 Feb 2014 10:00:05 +0000 (12:00 +0200)]
bluez5: upgrade to 5.15

- Bugfixes;
- BT LE bugfixes and improvements.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodbus: proper error handler should be given after send_negotiate_unix_fd failed
Roy Li [Thu, 27 Feb 2014 03:23:28 +0000 (11:23 +0800)]
dbus: proper error handler should be given after send_negotiate_unix_fd failed

Once send_negotiate_unix_fd failed, this failure will happen, since
auth->guid_from_server has been set to some value before
send_negotiate_unix_fd. send_negotiate_unix_fd failure will lead to
this auth be handled by process_ok again, but this auth->guid_from_server
is not zero.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agouboot-config.bbclass: Skip the package if no valid configuration is found
Otavio Salvador [Wed, 26 Feb 2014 20:39:31 +0000 (17:39 -0300)]
uboot-config.bbclass: Skip the package if no valid configuration is found

The ValidError case makes parsing fail even if the U-Boot variant is
not in use for the specific machine and this is not desired. So
instead of raising a parsing error we skip the package.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopython3: Fix race condition at high parallelism factor
Khem Raj [Wed, 26 Feb 2014 17:47:33 +0000 (09:47 -0800)]
python3: Fix race condition at high parallelism factor

Backport a patch to fix race condition as reported here

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5884

[YOCTO #5884]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoadt_installer: fix issue with x86_64
Laurentiu Palcu [Wed, 26 Feb 2014 13:54:45 +0000 (15:54 +0200)]
adt_installer: fix issue with x86_64

When the default tune for x86_64 was changed to core2-64, the
environment setup script name did not contain x86 anymore. Hence, the
adt_installer failed for x86_64.

This commit contains a generic fix and is supposed to work with any kind
of machine/tune setting. It's actually extracting the environment script
name using 'opkg files meta-environment-MACHINE'. So, no need to do any
other sort of searches. We know exactly which is the environment setup
script for the specified machine.

[YOCTO #5806]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocore-image-minimal-initramfs: Use PACKAGE_INSTALL instead of IMAGE_INSTALL
Saul Wold [Wed, 26 Feb 2014 16:21:02 +0000 (18:21 +0200)]
core-image-minimal-initramfs: Use PACKAGE_INSTALL instead of IMAGE_INSTALL

PACKAGE_INSTALL is set from the IMAGE_INSTALL variable with some additional
items, since PACKAGE_INSTALL is intended to be more an internal variable, use
it instead of the IMAGE_INSTALL which is recommeded for installing additional
packages. This will allow the initramfs recipe to use a fixed set of packages
and not be affected by IMAGE_INSTALL.

[YOCTO #5791]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemd: sed installed file instead of original
Saul Wold [Wed, 26 Feb 2014 13:49:52 +0000 (15:49 +0200)]
systemd: sed installed file instead of original

When we change the ROOT_HOME the sed regex does not match if we are running
the do_install() a second time, so copy the units files first to a pre_sed,
so that the next time, we can copy the the original so that the sed regex
is matched correctly in the original

[YOCTO #5765]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobase-passwd: sed installed file instead of original
Saul Wold [Wed, 26 Feb 2014 13:49:29 +0000 (15:49 +0200)]
base-passwd: sed installed file instead of original

When we change the ROOT_HOME the sed regex does not match if we are running
the do_install() a second time, so sed the installed file and preserve the original
so that the sed regex is matched correctly in the original

[YOCTO #5765]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobase-files: sed installed file instead of original
Saul Wold [Wed, 26 Feb 2014 13:49:16 +0000 (15:49 +0200)]
base-files: sed installed file instead of original

When we change the ROOT_HOME the sed regex does not match if we are running
the do_install() a second time, so sed the installed file and preserve the original
so that the sed regex is matched correctly in the original

[YOCTO #5765]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoinitrdscripts: Add rootimage option
Saul Wold [Wed, 26 Feb 2014 07:19:41 +0000 (09:19 +0200)]
initrdscripts: Add rootimage option

This allows for setting the ROOT_IMAGE name on the kernel command line

[YOCTO #5387]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobase: Remove pointless createCopy/update_data calls
Richard Purdie [Tue, 25 Feb 2014 17:41:17 +0000 (17:41 +0000)]
base: Remove pointless createCopy/update_data calls

I was asked why we had these copy and update_data calls. I can
offer no good explanation other than them perhaps once being needed
for reasons long since forgotten and superceeded.

With modern bitbake these should not be needed and shouldn't have been
for a long time. Lets therefore remove them and simplify the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosecurity-flags: Avoid lttng-tools issue on arm
Richard Purdie [Wed, 26 Feb 2014 13:40:41 +0000 (13:40 +0000)]
security-flags: Avoid lttng-tools issue on arm

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosecurity-flags: Deal with powerpc build issues
Richard Purdie [Wed, 26 Feb 2014 11:35:43 +0000 (11:35 +0000)]
security-flags: Deal with powerpc build issues

Building powerpc machines with the standard security flags generated numerous
build failures. Use a reduced set of flags for now to avoid linker issues
and other compile failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosecurity_flags: disable PIE flags for cups builds
Saul Wold [Wed, 26 Feb 2014 12:48:17 +0000 (14:48 +0200)]
security_flags: disable PIE flags for cups builds

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqemu: Use readlink instead of realpath
Saul Wold [Tue, 25 Feb 2014 18:30:47 +0000 (20:30 +0200)]
runqemu: Use readlink instead of realpath

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodpkg-compiler.m4: remove -Wvla (fix build on CentOS 5.8)
Robert Yang [Tue, 25 Feb 2014 09:44:05 +0000 (17:44 +0800)]
dpkg-compiler.m4: remove -Wvla (fix build on CentOS 5.8)

Remove the -Wvla flag from the set of compiler warning flags, since gcc
on old host systems such as CentOS 5.8 doesn't support it, and it
causes a build error for dpkg-native.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodpkg: fix a link problem for dpkg-native on CentOS 5.8
Donn Seeley [Tue, 25 Feb 2014 09:44:04 +0000 (17:44 +0800)]
dpkg: fix a link problem for dpkg-native on CentOS 5.8

[ CQID: WIND00392830 ]

CentOS 5.8 provides the kernel support and headers for the
sync_file_range() syscall, but glibc 2.5 doesn't implement the
sync_file_range() syscall stub, so we can't link dpkg-native. Add a
patch that makes dpkg require a glibc version >= 2.6 in order to use
sync_file_range().

Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogrub: exclude .pc from POTFILES.in (fix build on CentOS 5.8)
Robert Yang [Tue, 25 Feb 2014 09:44:03 +0000 (17:44 +0800)]
grub: exclude .pc from POTFILES.in (fix build on CentOS 5.8)

Exclude the .pc from po/POTFILES.in since quilt uses "patch --backup",
which will create the backup file under .pc, this may cause unexpected
errors, for example, on CentOS 5.x, if the backup file is null
(newfile), it's mode will be 000, then we will get errors when xgettext
try to read it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosqlite: rename to match upstream versioning
Saul Wold [Tue, 25 Feb 2014 16:14:11 +0000 (18:14 +0200)]
sqlite: rename to match upstream versioning

Since we are re-doing the version from a big number down to a dot
based number we have to bump the Package Epoch (PE).

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooeqa/targetcontrol: properly get the host ip
Stefan Stanacar [Tue, 25 Feb 2014 10:46:11 +0000 (12:46 +0200)]
oeqa/targetcontrol: properly get the host ip

For the SimpleRemote target where we need the host ip and
it wasn't set in conf, we tried to determine it automatically.
However ip route output isn't the same for every network, we
need the last field from the first line.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager.py: create index files for all backends in PACKAGE_CLASSES
Laurentiu Palcu [Tue, 25 Feb 2014 12:36:17 +0000 (14:36 +0200)]
package_manager.py: create index files for all backends in PACKAGE_CLASSES

The previous implementation was checking IMAGE_PKGTYPE and created the
index files just for the backend used to create the image. Apparently,
'bitbake package-index' should attempt to create the index files for all
backends specified in PACKAGE_CLASSES.

[YOCTO #5827]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-hob: remove hob-toolchain since this is not needed anymore
Cristiana Voicu [Tue, 25 Feb 2014 07:21:09 +0000 (09:21 +0200)]
meta-hob: remove hob-toolchain since this is not needed anymore

A patch to replace the use of hob-toolchain with bitbake api
was sent to bitbake-devel list and it is needed for this one.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosqlite3: Update to 3080301
Saul Wold [Fri, 21 Feb 2014 22:09:45 +0000 (22:09 +0000)]
sqlite3: Update to 3080301

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager.py: correctly handle empty opkg-query-helper.py output
Jonathan Liu [Sun, 23 Feb 2014 07:35:59 +0000 (07:35 +0000)]
package_manager.py: correctly handle empty opkg-query-helper.py output

If the output from opkg-query-helper.py is empty, output.split('\n')
would result in a list containing one element which is an empty string
while iterating over each line in the output. An exception is then
thrown by the line:

    pkg, pkg_file, pkg_arch = line.split()

with the message:

    Exception: ValueError: need more than 0 values to unpack

To avoid this, we add a condition to only split the output if it isn't
empty.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodistro/defaultsetup: Add seperatebuildddir.inc
Richard Purdie [Mon, 24 Feb 2014 16:24:38 +0000 (16:24 +0000)]
distro/defaultsetup: Add seperatebuildddir.inc

This has been in testing for long enough in various distros and setups,
lets make it the default.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopango: upgrade to 1.36.2
Cristiana Voicu [Mon, 24 Feb 2014 11:42:42 +0000 (13:42 +0200)]
pango: upgrade to 1.36.2

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocurl: upgrade to 7.35.0
Cristiana Voicu [Mon, 24 Feb 2014 11:42:41 +0000 (13:42 +0200)]
curl: upgrade to 7.35.0

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate: Drop 'SafeDep' code from setscene validation function
Richard Purdie [Mon, 24 Feb 2014 15:10:49 +0000 (15:10 +0000)]
sstate: Drop 'SafeDep' code from setscene validation function

I have a feeling this code exists from the time before we had proper
coverage of one sstate task by another task. At that time it was a
"poor" persons version of that idea, we now have much better
code internal to bitbake which handles this.

Worse, this code actually breaks certain rebuild scenarios,
e.g.:

bitbake libtool-cross
bitbake libtool-cross -c cleansstate
rm tmp -rf
bitbake libtool-cross

would fail as binutils-cross wasn't installed from sstate.

The easiest fix is to remove the obsolete/broken code.

[YOCTO #5773]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage: Drop do_package_write task
Richard Purdie [Mon, 24 Feb 2014 16:12:07 +0000 (16:12 +0000)]
package: Drop do_package_write task

The reasons this task was introduced are lost in the mists of time. It
allowed for the a single "package_write" task instead of spelling out
the explicit package backends, however in all but one case we do that
anyway.

As such as might as well give in and delete the task, converting that
single reference into explicit dependencies.

This gives bitbake a bit less work to to when processing the runqueue
since there are less tasks (but more dependencies in some cases).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodocumentation.conf: add a few missing task descriptions
Paul Eggleton [Mon, 24 Feb 2014 16:05:47 +0000 (16:05 +0000)]
documentation.conf: add a few missing task descriptions

We didn't really need these when the task descriptions were only used
for Toaster, but now we're showing them in -c listtasks they are useful
to have.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/utility-tasks: make do_listtasks a little more friendly
Paul Eggleton [Mon, 24 Feb 2014 16:05:46 +0000 (16:05 +0000)]
classes/utility-tasks: make do_listtasks a little more friendly

* Sort the list so it's at least in some form of logical order. I looked
  at sorting by dependencies, but that's a topological sort, and given
  no such function is shipped as part of the python standard libraries
  it would seem excessive to pull one in just for this. In any case, I'm
  not sure that for the data we have this would lead to any particularly
  pleasing result.
* Show the doc values as defined in documentation.conf (where present)
  as a description

Addresses [YOCTO #4856].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package_tar: fix conflicts with package_deb / package_ipk
Paul Eggleton [Mon, 24 Feb 2014 16:05:45 +0000 (16:05 +0000)]
classes/package_tar: fix conflicts with package_deb / package_ipk

Avoid tar noticing that the directory is changing when
do_package_write_deb or do_package_write_ipk are running at the same
time as do_package_write_tar (because DEBIAN and CONTROL are being added
and removed while tar is running so the directory changes).

Fixes [YOCTO #5652]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/sstate: fix taints being undone on execution of sstate tasks
Paul Eggleton [Mon, 24 Feb 2014 16:05:44 +0000 (16:05 +0000)]
classes/sstate: fix taints being undone on execution of sstate tasks

The code here that deletes stamps was also deleting the taint files; so
forcing an sstate task with -f would force it to execute and then
because the taint file was deleted in the process, the next execution
would simply restore the output from sstate again. We need to exclude
the taint files just like we did in bb.build.make_stamp().

Fixes [YOCTO #5805].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oe/rootfs: Fix LDCONFIGDEPEND check
Richard Purdie [Tue, 18 Feb 2014 08:44:49 +0000 (08:44 +0000)]
lib/oe/rootfs: Fix LDCONFIGDEPEND check

We shouldn't be running this if it expands to None or "" or False
so update the code accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolz4: fix CC
Robert Yang [Mon, 24 Feb 2014 09:35:55 +0000 (04:35 -0500)]
lz4: fix CC

It defined the CC to ${TARGET_PREFIX}gcc which lost the --sysroot and was
incorrect, it would cause unexpected errors, we should define it as CC=${CC}.

[YOCTO #5869]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox246: Disable Altivec asm when SPE is enabled.
David Nyström [Fri, 21 Feb 2014 21:59:23 +0000 (22:59 +0100)]
x246: Disable Altivec asm when SPE is enabled.

asm code is written for Altivec, and should be disabled
for powerpc SPE enabled targets.

Signed-off-by: David Nyström <david.c.nystrom@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage_types.bbclass: fix cpio IMAGE_CMD to preserve working directory
Jonathan Liu [Fri, 21 Feb 2014 04:43:38 +0000 (15:43 +1100)]
image_types.bbclass: fix cpio IMAGE_CMD to preserve working directory

The working directory is changed in a subshell when executing cpio to
preserve the working directory for any subsequent commands. This is to
keep the working directory consistent when generating multiple image
types.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomanifest.py: remove redundant import line
Hongxu Jia [Fri, 21 Feb 2014 07:28:48 +0000 (15:28 +0800)]
manifest.py: remove redundant import line

The import oe.package_manager line is redundant, let's remove it.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agorootfs.py: tweak _multilib_sanity_test for ipk incremental image generation
Hongxu Jia [Fri, 21 Feb 2014 06:23:08 +0000 (14:23 +0800)]
rootfs.py: tweak _multilib_sanity_test for ipk incremental image generation

The _multilib_sanity_test installs multilib packages in a temporary
root fs, and compare with the current image to figure out duplicated
files that come from different packages.

While incremental image generation enabled and the previous image
was existed, there was an Multilib check error:
...
ERROR: Multilib check error: duplicate files tmp/work/qemux86_64-poky-
linux/core-image-minimal/1.0-r0/multilib/lib32/lib/libc.so.6 tmp/work/
qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc.so.6
is not the same
...

The reason is the file in the existing image has been prelinked by
previous image generation and the file in a temporary root fs is not
prelinked, even though both of them came from the same package, the
Multilib check failed.

[YOCTO #1894]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agorootfs.py: support BAD_RECOMMENDATIONS for ipk incremental image generation
Hongxu Jia [Fri, 21 Feb 2014 06:21:36 +0000 (14:21 +0800)]
rootfs.py: support BAD_RECOMMENDATIONS for ipk incremental image generation

While incremental image generation enabled and the previous image is
existed, if BAD_RECOMMENDATIONS is changed, the operation on the
existing image is complicated, so remove the old image in this situation.

The same with PACKAGE_EXCLUDE and NO_RECOMMENDATIONS.

[YOCTO #1894]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agorootfs.py: support ipk incremental image generation
Hongxu Jia [Fri, 21 Feb 2014 06:20:40 +0000 (14:20 +0800)]
rootfs.py: support ipk incremental image generation

The incremental image generation is based on the previous existing
image, adds new packages, upgrades existing packages, and removes unused
packages.

[YOCTO #1894]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agopackage_manager.py: support ipk incremental image generation
Hongxu Jia [Fri, 21 Feb 2014 06:12:52 +0000 (14:12 +0800)]
package_manager.py: support ipk incremental image generation

Add the following three functions to OpkgPM class:
- The 'dummy_install' is used to dummy install pkgs, and returns the log
  of output;
- The 'backup_packaging_data' is used to back up the current opkg
  database;
- The 'recover_packaging_data' is used to recover the opkg database
  which backed up by the previous image creation;

Tweak 'remove' function in OpkgPM class, which the options for remove
with dependencies was incorrect.

Tweak 'handle_bad_recommendations' function in OpkgPM class:
- Fix none value check;
- Add the existance check of opkg status file;

[YOCTO #1894]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agomanifest.py: add create_full for OpkgManifest class
Hongxu Jia [Fri, 21 Feb 2014 06:10:17 +0000 (14:10 +0800)]
manifest.py: add create_full for OpkgManifest class

The function create_full creates the manifest after the package in
initial manifest has been dummy installed. It lists all *to be
installed* packages. There is no real installation, just a test.

[YOCTO #1894]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agopsmisc: Update to 22.21
Saul Wold [Thu, 20 Feb 2014 23:59:45 +0000 (15:59 -0800)]
psmisc: Update to 22.21

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