scm/bb/tizen-distro.git
10 years agoattr: enable ptest support
Chong Lu [Sun, 26 Jan 2014 09:51:29 +0000 (17:51 +0800)]
attr: enable ptest support

Install attr test suite and run it as ptest.
ext test cases need depend on specific filesystem. So exclude them
order to make ptest all pass.

(From OE-Core rev: 4395504e5f2af16e108a67962ab7cbcab26aa444)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoacl: enable ptest support
Chong Lu [Sun, 26 Jan 2014 07:50:14 +0000 (15:50 +0800)]
acl: enable ptest support

Install acl test suite and run it as ptest.
nfs test cases need depend on nfs service. So exclude them order to
make ptest all pass.

(From OE-Core rev: 9b42aacca362ea5c404e2fd3ac25a51790ba41a5)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager: Make empty package directories non-fatal
Richard Purdie [Sun, 16 Feb 2014 16:29:25 +0000 (16:29 +0000)]
lib/oe/package_manager: Make empty package directories non-fatal

Its perfectly reasonable to call -c package-index with empty package
directories. This ensures the builds don't fail in such cases,
resolving autobuilder failures.

(From OE-Core rev: 11e2aaf2d751277e3e99ac2acbbeff2b7227be94)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoadt-installer: Disable multilibs
Richard Purdie [Sun, 16 Feb 2014 16:05:27 +0000 (16:05 +0000)]
adt-installer: Disable multilibs

This recipe is pointless as a multilib and worse, it races agaist itself
causing autobuilder failures. Disable the multilib case.

(From OE-Core rev: e927e838cf2b4d6c2a55421f2db957dcfb186b8a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue: Fix silly variable overlap
Richard Purdie [Sat, 15 Feb 2014 13:49:38 +0000 (13:49 +0000)]
bitbake: runqueue: Fix silly variable overlap

A previous commit of mine used the target variable for two different uses
resulting in a lot more sstate being installed than is needed.

Fix the variable to use two different names and unbreak the setscene
behaviour.

(Bitbake rev: f975ca2cf728561bd6317ed8f76303598546113a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager.py: move multilib prefix list computation function to RpmIndexer
Laurentiu Palcu [Fri, 14 Feb 2014 17:45:12 +0000 (17:45 +0000)]
package_manager.py: move multilib prefix list computation function to RpmIndexer

Since the code from anonymous function in rootfs_rpm.bbclass has been
removed, MULTILIB_PREFIX_LIST variable was never set. Hence not all
directories got indexed.

This commit will move the multilib prefix list computation function from
RpmPM class to RpmIndexer, since the indexer needs it too. I was hoping
to avoid this but, unfortunately, I couldn't.

(From OE-Core rev: d3ba249aa1bf68aaeed226e934a4f4d5b7a19286)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: enable CONFIG_FHANDLE for standard and preempt-rt kernels
Bruce Ashfield [Fri, 14 Feb 2014 19:13:57 +0000 (14:13 -0500)]
linux-yocto/3.10: enable CONFIG_FHANDLE for standard and preempt-rt kernels

    CONFIG_FHANDLE is now a requirement for systemd support:

      http://cgit.freedesktop.org/systemd/systemd/commit/README?id=c2cb7cbbd526e572b1caa1d7f70be68195b513a9

    So we add it into our default standard and preempt-rt kernel types, the
    overhead is small and having this always configured allows init system
    switching, without a kernel rebuild.

(From OE-Core rev: 63d5be8f7fec74a7e4bac36b28e93071119cdf6d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: add minnow-io feature to LTSI
Bruce Ashfield [Fri, 14 Feb 2014 19:13:56 +0000 (14:13 -0500)]
linux-yocto/3.10: add minnow-io feature to LTSI

The initial merge of the LTSI 3.10 content was missing the minnow-io feature.
This has now been added to standard/ltsi and merged to all branches in the
tree. We also update the meta branch to ensure that the existing feature
will not attempt to apply patches to the tree, since they have now been
integrated.

(From OE-Core rev: 8569e2488e45fc7cabbdafe240ca404b2b2e8519)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: arbitrary write with CONFIG_X86_X32 (CVE-2014-0038)
Bruce Ashfield [Fri, 14 Feb 2014 19:13:55 +0000 (14:13 -0500)]
linux-yocto/3.10: arbitrary write with CONFIG_X86_X32 (CVE-2014-0038)

Integrating the upstream commit for CVE-2014-0038.

(From OE-Core rev: 9073969d7b7d5d20377ab0c1a49f8e5bb051601b)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.28
Bruce Ashfield [Fri, 14 Feb 2014 19:13:54 +0000 (14:13 -0500)]
linux-yocto/3.10: update to v3.10.28

Updating the 3.10 kernel SRCREVs to integrate the v3.10.27, 27 and 28 -stable
releases.

(From OE-Core rev: 91fb7cfaeb8ea1c05a15a0be8a56ac50b95fd6e4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemtap_git: update to newer version to fix a build issue
Nitin A Kamble [Fri, 14 Feb 2014 18:18:08 +0000 (10:18 -0800)]
systemtap_git: update to newer version to fix a build issue

This build issue was observed with the 2.4+git version of the systemtap.

.../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In function 'void validate_module_elf(Dwfl_Module*, const char*, base_query*)':
.../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:1998:10: error: 'EM_AARCH64' was not declared in this scope
.../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In constructor 'sdt_uprobe_var_expanding_visitor::sdt_uprobe_var_expanding_visitor(systemtap_session&, int, const string&, const string&, const string&, stap_sdt_probe_type, const string&, int)':
.../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:5613:31: error: 'EM_AARCH64' was not declared in this scope

This is a known issue, and it is already fixed in the upstream tree.

Updating the recipe to get the commit which fixes the issue.

(From OE-Core rev: 5170f58f4a46edead40d98f302ba3294e078c113)

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosocat: upgrade to 1.7.2.3
Hongxu Jia [Thu, 13 Feb 2014 02:54:05 +0000 (10:54 +0800)]
socat: upgrade to 1.7.2.3

The package has been successfully compiled for all major architectures.

(From OE-Core rev: 5d509fde3acc3dd94a259dc171a9331367d250cc)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types: sum.jffs2 is replaced by jffs2.sum
Dmitry Eremin-Solenikov [Thu, 13 Feb 2014 12:06:22 +0000 (16:06 +0400)]
image_types: sum.jffs2 is replaced by jffs2.sum

Previous commit added support for sum 'compression' (rather
postprocessing) of jffs2 images. Drop support for sum.jffs2 image type.

(From OE-Core rev: 295c6c1452c8789a8b1d0090ff09a5cd7cf16507)

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types bbclass: use compression framework for jffs2 sum images
Dmitry Eremin-Solenikov [Thu, 13 Feb 2014 12:06:21 +0000 (16:06 +0400)]
image_types bbclass: use compression framework for jffs2 sum images

I got hit by a missing dependency in generation of sum.jffs2 images - at
runtime, when images are generated using bitbake pool, it is possible
for sum.jffs2 image to be scheduled for generation before jffs2 image is
fully generated.

Insted of adding additional hacks, reimplement sum.jffs2 generation as a
compression scheme on top of plain jffs2 images. For now support for
sum.jffs2 images is left in, it will be removed by the subsequent
commit.

(From OE-Core rev: 2a15a364fdf85b0b18ba63fdb2a745a52b96478e)

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoflex: enable ptest support
Chong Lu [Fri, 14 Feb 2014 09:47:27 +0000 (17:47 +0800)]
flex: enable ptest support

Install flex test suite and run it as ptest.

(From OE-Core rev: 3ca11e4c5efcccfa06b4109e69ce7d42d02ce8e4)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoflex: upgrade to 2.5.38
Chong Lu [Fri, 14 Feb 2014 09:47:26 +0000 (17:47 +0800)]
flex: upgrade to 2.5.38

Upgrade flex to 2.5.38.

(From OE-Core rev: 9a773595838267979df8279693c353d1bc22981b)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoflac: upgrade to 1.3.0
Cristian Iorga [Wed, 12 Feb 2014 16:42:32 +0000 (18:42 +0200)]
flac: upgrade to 1.3.0

- Updated description, bugtracker and source;
- Switched to ${BP} variable;
- 0001-No-AltiVec-on-SPE.patch,
flac-gcc43-fixes.patch, asm-pic.patch,
obsolete_automake_macros.patch patches
removed, included in upstream;
- Licenses checksums changed due to added
copyright owners and street adresses changed;
- Backported 1.3.0 specific fix;
- Removed obsolete PPC fix;
- Added support for SSE optimizations;
- Removed default ${S} definition;
- Removed xmms unneeded prefixes.

Build on all qemu arch;
Tested on qemux86-64 and qemuppc.

(From OE-Core rev: 85ac4d82c77e3cab6a5867e4ec110ba07023838b)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoreport-error.bbclass: new class to save build information when errors occur
Andreea Proca [Fri, 14 Feb 2014 11:58:43 +0000 (13:58 +0200)]
report-error.bbclass: new class to save build information when errors occur

Class is used to save data about errors after every task that failed.
Errors saved as json files in ERROR_REPORT_DIR (defaults to tmp/log/error-report).
To use this class one has to add INHERIT += "report-error" to local.conf.

scripts/send-error-report is a simple script that sends the json file
to a HTTP server that collects data (git://git.yoctoproject.org/error-report-web
is a Django web interface that can be used to receive and visualize
the error reports). The script will give you an URL where you can
find your report.

(From OE-Core rev: f186b4c7c6c975638e60b30a512d669dc6dc390f)

Signed-off-by: Andreea Proca <andreea.b.proca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_*.bbclass: remove references to the old bash indexing routines
Laurentiu Palcu [Fri, 14 Feb 2014 11:01:07 +0000 (13:01 +0200)]
package_*.bbclass: remove references to the old bash indexing routines

Package indexing is done in python and package-index.bb uses the new
routines.

(From OE-Core rev: 2ab1a2bccfbb4ed90fe3b877d1be80817ba32099)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage-index.bb: use the new python indexing routines
Laurentiu Palcu [Fri, 14 Feb 2014 11:01:06 +0000 (13:01 +0200)]
package-index.bb: use the new python indexing routines

(From OE-Core rev: 1ee44591a8475121ea949cd2d8518a6dac965a19)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager.py, rootfs.py, sdk.py: add Indexer class
Laurentiu Palcu [Fri, 14 Feb 2014 11:01:05 +0000 (13:01 +0200)]
package_manager.py, rootfs.py, sdk.py: add Indexer class

Because the package-index.bb needs to create package indexes outside
do_rootfs environment, move the indexing capability out of
PackageManager class to a smaller Indexer class.

This commit:
 * simply moves the indexing functions for ipk/deb with no changes;
 * rewrites the RPM indexing function so that it can be easily moved out
   of the PackageManager class;
 * removes some RPM duplicate code, moves it into a method inside
   RpmPM class and changes the RpmPM constructor so that the new method
   is effective;

(From OE-Core rev: d339d6f48f81330e94162f333aad76f3c65d6bfd)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Refresh patches for uclibc
Khem Raj [Fri, 14 Feb 2014 08:15:46 +0000 (00:15 -0800)]
systemd: Refresh patches for uclibc

With recent patches added some of uclibc specific patches need
to be refreshed.

(From OE-Core rev: f3fa7577e8153b537948cf48711ffe03dbab6b3b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue: Ensure we do run 'masked' setscene tasks if specified as targets
Richard Purdie [Thu, 13 Feb 2014 15:01:25 +0000 (15:01 +0000)]
bitbake: runqueue: Ensure we do run 'masked' setscene tasks if specified as targets

If you specify multiple targets on bitbake's commandline and some of them are
setscene tasks which are "masked" by other tasks they may not get run.

For example <image>:do_rootfs <kernel>:do_populate_sysroot

the rootfs tasks "masks" the populate_sysroot task so bitbake would currently
decide not to run it. In this case, we do really want it to be run.

The fix is not to skip anything which has been given as an explict target.

(Bitbake rev: 0753899d1e855795cc18671357609a86f169b379)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqemu: enforce right CPU type for qemux86/x86-64
Cristian Iorga [Thu, 13 Feb 2014 15:26:51 +0000 (17:26 +0200)]
runqemu: enforce right CPU type for qemux86/x86-64

Set in accordance with qemu machines configs.

Fixes [YOCTO #5817].

(From OE-Core rev: 0e5cfef90ff762b33da6dc301dfc9cb3947c8a02)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildhistory.bbclass: create wrapper functions around buildhistory_get_sdk_installed
Laurentiu Palcu [Thu, 13 Feb 2014 13:49:14 +0000 (15:49 +0200)]
buildhistory.bbclass: create wrapper functions around buildhistory_get_sdk_installed

bb.build.exec_func() does not allow passing arguments to the executed
scripts. Use wrappers instead.

(From OE-Core rev: c3dd44b751e351be52512e2aff885bf571c95fe5)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwatdetect: Fix build failures from undeclared INC_PR
Richard Purdie [Thu, 13 Feb 2014 16:55:58 +0000 (16:55 +0000)]
hwatdetect: Fix build failures from undeclared INC_PR

(From OE-Core rev: 3df19b8e551d195d57a0299acfe9e6a4f79b4510)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/rootfs.py: fix RPM multilib issue
Laurentiu Palcu [Thu, 13 Feb 2014 11:55:26 +0000 (13:55 +0200)]
lib/oe/rootfs.py: fix RPM multilib issue

For some odd reason (at least I couldn't find an explanation to this,
yet), if a multilib version of a package is installed after the main one
(that is: in a different smart session), the main package binaries are
not overwritten.

This commit restores the functionality to the original one, before
migrating to python: feed all the packages to smart, apart from attempt
only ones which are installed separately.

(From OE-Core rev: 1fa94697163f16cdbb1499b57f1bc018546974ee)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "nss: avoid to use the hardcode kernel version"
Richard Purdie [Thu, 13 Feb 2014 12:04:51 +0000 (12:04 +0000)]
Revert "nss: avoid to use the hardcode kernel version"

This reverts commit 4c80c557508e088fe226bfa1834464b505404652.

We *cannot* have nss becoming machine specific, that makes no sense.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel.bbclass, base.bbclass: Fix support for old kernel configuration
Otavio Salvador [Wed, 12 Feb 2014 15:54:17 +0000 (13:54 -0200)]
kernel.bbclass, base.bbclass: Fix support for old kernel configuration

This solves a regression introduced by OE-Core:9b75f6a (kernel:
use oldnoconfig before yes '' | make oldconfig).

The original oe_runmake explicitly calls 'die' command in case of
failure so the fallback code never runs. The fallback code needs
to handle the oe_runmake return code to call the backward
compatible callback so we introduced a new command called
oe_runmake_call which is used by oe_runmake.

This does not change the functional behaviour of oe_runmake so it
avoids any change except for the code which does need to handle
the oe_runmake exit code.

(From OE-Core rev: 51707282fc2c5a74588b2d79b2229513a883924f)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitscripts: fix syntax error in postinsts
Chen Qi [Thu, 13 Feb 2014 07:26:04 +0000 (15:26 +0800)]
initscripts: fix syntax error in postinsts

Fix syntax error in pkg_postinst of initscripts.

(From OE-Core rev: 8240975b937197aee5ab1d651997fe500e8bbd91)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss: avoid to use the hardcode kernel version
Roy Li [Thu, 13 Feb 2014 03:48:58 +0000 (11:48 +0800)]
nss: avoid to use the hardcode kernel version

Read kernel version from ${STAGING_KERNEL_DIR}/kernel-abiversion, to avoid
to use the hardcode kernel version.

(From OE-Core rev: 4c80c557508e088fe226bfa1834464b505404652)

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years ago(image|rootfs_ipk).bbclass, rootfs.py: ipk multilib fixes
Laurentiu Palcu [Wed, 12 Feb 2014 14:33:44 +0000 (16:33 +0200)]
(image|rootfs_ipk).bbclass, rootfs.py: ipk multilib fixes

This commit whitelists some common directories, so the multilib sanity
checks pass and also fixes an issue in lib/oe/rootfs.py when the
compared files do not exist.

(From OE-Core rev: 4615ac771175cd413f461c081f7d3191c49ccc4b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopuzzles: upgrade to r10116
Marius Avram [Thu, 6 Feb 2014 10:54:11 +0000 (12:54 +0200)]
puzzles: upgrade to r10116

License has not changed.
Contains changes to the building system.

(From OE-Core rev: c855431a88ee68b39249a48aa6a8b62b225f0dd2)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox-syslog: add more comments to systemd configuration file
Chen Qi [Tue, 11 Feb 2014 07:16:18 +0000 (15:16 +0800)]
busybox-syslog: add more comments to systemd configuration file

Add more comments to the systemd configuration file for busybox's
syslogd utility. The purpose is to easy the life of system administrators.

These comments are mostly derived from the comments in syslogd.c in
busybox.

[YOCTO #5722]

(From OE-Core rev: eba4f2bd2a0becc086f107dbd0d3ec5222c5eed2)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosysstat: upgrade to 10.2.1
Chen Qi [Mon, 10 Feb 2014 08:53:47 +0000 (16:53 +0800)]
sysstat: upgrade to 10.2.1

Upgrade sysstat to stable release 10.2.1.

(From OE-Core rev: 7406a31a40d18b88de517891f163d002a5f75d78)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage: Remove the before do_build constraint of the do_package task
Richard Purdie [Wed, 12 Feb 2014 12:12:23 +0000 (12:12 +0000)]
package: Remove the before do_build constraint of the do_package task

Currently, if you bitbake xxxx, it will restore the package_write_,
packagedata, populate_sysroot *and* the package data from sstate.

We generally care about the packagedata and the actual packages, we
no longer need/care about the do_package data itself unless something
is going to repackage.

By relaxing this constraint (and relying on the packagedata target), we
can save things being installed from sstate and hence speedup build times.

(From OE-Core rev: 4fda89477a2d7c1b3186bf4896297338ed64c448)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa/recipes: Remove virtclass references
Richard Purdie [Wed, 12 Feb 2014 12:11:34 +0000 (12:11 +0000)]
meta/recipes: Remove virtclass references

The virtclass overrides will go away at some point (apart from the multilib one).
Change them all to class-xxx instead since people enjoy copy and pasting them.

(From OE-Core rev: d1c073d2813bd913617990cd047507353ea0c09e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime: smart: don't run in auto mode when rpm is not the pm
Stefan Stanacar [Wed, 12 Feb 2014 11:49:40 +0000 (13:49 +0200)]
oeqa/runtime: smart: don't run in auto mode when rpm is not the pm

TEST_SUITES = "auto" would run smart tests even for non-rpm images,
which is pointless.

(From OE-Core rev: 1913f38d79a56f7d21999b6839835f967ca28abd)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoharfbuzz: upgrade to 0.9.26
Cristian Iorga [Wed, 12 Feb 2014 07:41:33 +0000 (09:41 +0200)]
harfbuzz: upgrade to 0.9.26

switched to ${BP} variable.

(From OE-Core rev: 7d48d7826887bf32a751196a108660bcdd2d87eb)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotelepathy-mission-control: typo in connectivity switch
Cristian Iorga [Wed, 12 Feb 2014 07:41:32 +0000 (09:41 +0200)]
telepathy-mission-control: typo in connectivity switch

telepathy-mission-control connectivity switch was
mistyped, defeating its purpose.

(From OE-Core rev: e95044462abe7c8346a46db793ca099e88a11c52)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd-serialgetty: Update to match version in recent systemd
Richard Purdie [Tue, 11 Feb 2014 22:48:09 +0000 (22:48 +0000)]
systemd-serialgetty: Update to match version in recent systemd

Whilst debugging other issues I noticed this was out of sync with the code
in systemd itself. This brings things back into sync and shouldn't hurt
anything.

(From OE-Core rev: b188bda18690dc1af1cb5d18bb0f3ad40c9a6cc6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitscripts: mask initscripts from systemd
Ross Burton [Tue, 11 Feb 2014 22:43:04 +0000 (22:43 +0000)]
initscripts: mask initscripts from systemd

Many of the init scripts in here will do nasty things if systemd decides to run
them.  Mask the obviously bad ones so that systemd won't attempt to invoke them
if initscripts is installed with systemd.

(From OE-Core rev: 844f897710dfee9c59599d09b5c8c906e0d70ac0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: fix https certificate problems
Koen Kooi [Tue, 11 Feb 2014 09:54:54 +0000 (10:54 +0100)]
curl: fix https certificate problems

point CA bundle to /etc/ssl/certs/ca-certificates.crt instead of using the buildhost location, Configure would look at the buildhost and hardcode the bundle location for there into the target. This leads to non-working https support.

Also remove the empty and now useless curl-certs packages since it's empty and no ALLOW_EMPTY has been set.

Apart from making https work again with curl cmdline this also fixes libcurl which means git can fetch https repos as well instead of erroring out.

(From OE-Core rev: 2325c1ee13bc3a8474238e8a6c20b6a3c671bf07)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Enable building microhttpd via PACKAGECONFIG
Khem Raj [Sat, 8 Feb 2014 16:35:19 +0000 (08:35 -0800)]
systemd: Enable building microhttpd via PACKAGECONFIG

This will enables us to use journald-gatewayd

(From OE-Core rev: 09706953cf0e1b97d5b8808bdca1e8c125b8a9f7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogmp: add configure.ac patch to append user provided compilation flags
Laurentiu Palcu [Tue, 11 Feb 2014 14:58:02 +0000 (16:58 +0200)]
gmp: add configure.ac patch to append user provided compilation flags

gmp configure script is pretty good at auto detecting the ABI and the
tune flags that need to be passes to the compiler. However, the user
provided flags (CFLAGS, CXXFLAGS, CPPFLAGS) take precedence and the ABI
detection may fail, leading to configure errors like the one below:

| configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
| in this configuration expects 64 bits.
| You appear to have set $CFLAGS, perhaps you also need to tell GMP the
| intended ABI, see "ABI and ISA" in the manual.

One solution would be to change the recipe and add the ABI manually, or
let gmp do the job.

So, this patch will:
 * allow the configure process to auto-detect the ABI and tune flags
   properly;
 * append our flags to the detected ones;

[YOCTO #5783]

(From OE-Core rev: 8339b9ac16e7d3206de21a204beffaae5203adbb)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: Exclude SSTATE_EXTRAPATH from checksums
Richard Purdie [Tue, 11 Feb 2014 14:52:22 +0000 (14:52 +0000)]
sstate: Exclude SSTATE_EXTRAPATH from checksums

After the change to allow target recipes to depend on native recipes, the
native checksums becomes all the more critical. Add to this that we're now
accounting for pre/postfuncs and we have a cache reuse issue since the
distro LSB string is getting coded in when it shouldn't be.

This excludes that string and allows one set of native sstate to share
checksums with another set from a different host distro. They're separated
into different directories so this is fine for our use cases.

(From OE-Core rev: 1fa7d4331d994b9eeb6f973d1a1f04cb4df92c13)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/buildhistory: avoid buildhistory triggering rebuilds (again)
Paul Eggleton [Tue, 11 Feb 2014 16:10:11 +0000 (16:10 +0000)]
classes/buildhistory: avoid buildhistory triggering rebuilds (again)

Postfuncs are now incorporated into task signatures as of BitBake
rev b84d010144de687667cf855ddcb41c9b863c236e, so we need to exclude
the one we're adding to do_fetch. The change to the SSTATEPOSTINSTFUNCS
variable value was also entering the signatures of do_populate_sysroot
and probably other tasks, so we need to use a slightly hacky trick to
avoid that as well.

Apart from the final do_rootfs / do_populate_sysroot, this now means
that adding and removing INHERIT += "buildhistory" will not cause tasks
to be re-run.

Also update the copyright date, properly this time.

(From OE-Core rev: 953df67eb877a6d0fc68d122964440a9a47de3c3)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agort-tests: version bump to 0.87
Maxin B. John [Tue, 11 Feb 2014 15:56:34 +0000 (16:56 +0100)]
rt-tests: version bump to 0.87

- Drop PR and INC_PR.
- license remains the same with cyclictest.c checksum change

(From OE-Core rev: 10c7a45af7085b0442adc495112fed3b9d0f1d3e)

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense.bbclass: Dont create a manifest when using BUILD_IMAGES_FROM_FEEDS
David Nyström [Tue, 11 Feb 2014 15:00:05 +0000 (16:00 +0100)]
license.bbclass: Dont create a manifest when using BUILD_IMAGES_FROM_FEEDS

Wihtout this patch, FEEDS functionality is broken, and creating
a manifest from recipe metadata may be faulty when using FEEDS.

(From OE-Core rev: d926c0bdc58ab6dda55eed52b66dbd5834ced64f)

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits to the "Sharing Functionality" section.
Scott Rifenbark [Tue, 4 Feb 2014 19:36:11 +0000 (13:36 -0600)]
bitbake: user-manual-metadata.xml: Edits to the "Sharing Functionality" section.

Applied some review edits from Paul to the section.

(Bitbake rev: 56321b18808f5ed932543d907b9ebcfbf4420233)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits to "Conditional Syntax (Overrides)"
Scott Rifenbark [Mon, 3 Feb 2014 22:55:51 +0000 (16:55 -0600)]
bitbake: user-manual-metadata.xml: Edits to "Conditional Syntax (Overrides)"

Re-wrote this section to use clearer more described examples.

(Bitbake rev: 6eea23c4783c591c2d2c7f0b2a98e7a0cc8aa3c3)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits to "Defining Pure Python Functions"
Scott Rifenbark [Mon, 3 Feb 2014 18:07:43 +0000 (12:07 -0600)]
bitbake: user-manual-metadata.xml: Edits to "Defining Pure Python Functions"

Made a review edit here to the section per Paul Eggleton.

(Bitbake rev: 3b6ab095862367bc0101b995b002f62e7968ccf3)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Edits through syntax section
Scott Rifenbark [Mon, 3 Feb 2014 17:51:04 +0000 (11:51 -0600)]
bitbake: user-manual-metadata.xml: Edits through syntax section

I made some general improvements in the "Overview" and
"Basic Syntax" sections.  Additionally, I added a blank
section for "Variable Flags" that will eventually hold general
information on this concept.  Finally, come review edits to the
"Defining Pure Python Functions" section per Paul Eggleton.

(Bitbake rev: 665d655f436f1a353f5fe467c5d97588f7b121c5)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-intro.xml: General edits to Introduction chapter.
Scott Rifenbark [Mon, 3 Feb 2014 13:29:54 +0000 (07:29 -0600)]
bitbake: user-manual-intro.xml: General edits to Introduction chapter.

I performed a general edit to this chapter.  Some significant changes
include changing the chapter's title to "Overview" when it was titled
"BitBake User Manual", doing some consolidation of text to eliminate
a couple sections that described methods to obtain a copy of BitBake,
and various improvements as needed.

(Bitbake rev: f635c4b36af79b8572095083a392fb58c11198c9)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-metadata.xml: Added "Checksums (Signatures)" section.
Scott Rifenbark [Wed, 29 Jan 2014 18:06:15 +0000 (12:06 -0600)]
bitbake: user-manual-metadata.xml: Added "Checksums (Signatures)" section.

Added this section to the end of the Metadata chapter.

(Bitbake rev: b653c58284cafd0b79991520543ca6239705d36b)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Review edits to several variables in glossary.
Scott Rifenbark [Mon, 27 Jan 2014 15:01:21 +0000 (09:01 -0600)]
bitbake: user-manual-ref-variables.xml: Review edits to several variables in glossary.

ASSUME_PROVIDED
BBCLASSEXTEND
SRC_URI
PACKAGES_DYNAMIC
BB_NUMBER_THREADS
BB_DANGLINGAPPENDS_WARNONLY

(Bitbake rev: 8e586ccee6d5e78070d28cda67058578e1fe91d7)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added 11 new variables to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 21:44:24 +0000 (15:44 -0600)]
bitbake: user-manual-ref-variables.xml: Added 11 new variables to glossary.

SRCREV_FORMAT
BUILDNAME
BB_ENV_WHITELIST
BB_PRESERVE_ENV
BB_ENV_EXTRAWHITE
BB_ORIGENV
BB_TASKHASH
BITBAKE_UI
BBDUBUG
BB_DEFAULT_TASK
BBINCLUDED

(Bitbake rev: 0e3106bfdebfa255b2db08a8a4585516d8bebe20)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Edits to FILESPATH.
Scott Rifenbark [Fri, 24 Jan 2014 21:10:13 +0000 (15:10 -0600)]
bitbake: user-manual-ref-variables.xml: Edits to FILESPATH.

(Bitbake rev: 64bdd3ba6fe90ed6e0338ad053c8117db0acfe2e)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added 6 new variables to glossary:
Scott Rifenbark [Fri, 24 Jan 2014 15:50:29 +0000 (09:50 -0600)]
bitbake: user-manual-ref-variables.xml: Added 6 new variables to glossary:

MULTI_PROVIDER_WHITELIST
CACHE
PERSISTENT_DIR
FETCHCMD
FILE
FILESDIR

(Bitbake rev: 4aa8c2f93cc126778f7e99229d99b398d603fcac)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Edits to PREFERRED_PROVIDER.
Scott Rifenbark [Fri, 24 Jan 2014 15:01:36 +0000 (09:01 -0600)]
bitbake: user-manual-ref-variables.xml: Edits to PREFERRED_PROVIDER.

(Bitbake rev: 9232cca08ec3f099475ad8dfc10e4fa3c2b39366)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added PREFERRED_PROVIDERS to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 14:59:25 +0000 (08:59 -0600)]
bitbake: user-manual-ref-variables.xml: Added PREFERRED_PROVIDERS to glossary.

(Bitbake rev: 86cacad8129502088011ebb622dd4d3d3663d39e)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added FAKEROOT* variables to glossary.
Scott Rifenbark [Fri, 24 Jan 2014 13:36:15 +0000 (07:36 -0600)]
bitbake: user-manual-ref-variables.xml: Added FAKEROOT* variables to glossary.

FAKEROOT
FAKEROOTCMD
FAKEROOTBASEENV
FAKEROOTDIRS
FAKEROOTENV
FAKEROOTNOENV

(Bitbake rev: 8480db0fa7d0363741e7075bb8169a9c1b6a71dd)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: user-manual-ref-variables.xml: Added BB* variables to glossary.
Scott Rifenbark [Thu, 23 Jan 2014 15:59:53 +0000 (09:59 -0600)]
bitbake: user-manual-ref-variables.xml: Added BB* variables to glossary.

BB_STRICT_CHECKSUM
BB_WORKERCONTEXT
BB_SIGNATURE_EXCLUDE_FLAGS
BB_HASHBASE_WHITELIST
BB_INVALIDCONF
BB_LOGFMT
BB_RUNFMT
BB_RUNTASK
BB_HASHBASE_WHITELIST
BB_STAMP_POLICY
BB_STAMP_WHITELIST
BB_SCHEDULER
BB_SCHEDULERS
BB_SETSCENE_DEPVALID
BB_SETSCENE_VERIFY_FUNCTION
BB_SIGNATURE_HANDLER
BB_SRCREV_POLICY
BB_VERBOSE_LOGS

(Bitbake rev: f02be6ca79fccc3c7bfbbadeef0c98242f661524)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouseradd-staticids: Adjust USERADD_ERROR_DYNAMIC condition and error message
Mark Hatle [Mon, 10 Feb 2014 19:28:26 +0000 (13:28 -0600)]
useradd-staticids: Adjust USERADD_ERROR_DYNAMIC condition and error message

The USERADD_ERROR_DYNAMIC needs to check that both users and groups that are
defined need to be represented as static ids, or an error should occur.

For the user check, we want to make sure the uid is a numeric value.  (The gid
can be name, as the GROUPADD check will validate for a number there -- or
during install useradd will fail if that group is not defined.)

For the group check, we verify that the gid is specified and not left as a name.

Also two statements that can be uncommented for debugging were added so that
future development work on this code would be easier to do.

(From OE-Core rev: f35bbba65e3e41f8dea1f9ff872d3a9fbd84bf6d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouseradd-staticids: Fix groupadd when --user-group is selected
Mark Hatle [Mon, 10 Feb 2014 19:28:25 +0000 (13:28 -0600)]
useradd-staticids: Fix groupadd when --user-group is selected

When --user-group is selected (it's on by default as well) we want
to translate that to a groupname and disable the --user-group.  Before
we just disabled --user-group, but didn't always add the group to the
system.

This change ensures that we add the group (as long as we have enough
information to actually add the group), and we disable --user-group
in that case.  If a static groupid is not specified we continue to
use the groupname, but via an explicit groupadd.

(From OE-Core rev: ae83db0fdcf0b807ffdfc901f4d1c463fffee82a)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: Use PACKAGE_ARCH in build dir
Darren Hart [Thu, 6 Feb 2014 04:02:44 +0000 (20:02 -0800)]
linux-yocto: Use PACKAGE_ARCH in build dir

The current linux-yocto build dir (B) includes MACHINE. This has been
appropriate as kernels are typically built machine-specific. We have
recently introduced an intel-common type kernel which can be shared
across multiple machines sharing a common base (intel-core2-32,
intel-corei7-64). In these cases, the kernel is built for a something
more generic than MACHINE, and the current mechanism results in
something like this when building for MACHINE=sys940x (using intel-common):

tmp/work/core2-32-intel-common-poky-linux/linux-yocto-dev/ \
3.13++gitAUTOINC+e5d23e7879_889c6bec6b-r0/linux-sys940x-noemgd-standard-build

Note the descrepancy between core2-32-intel-common and
linux-sys940x-noemgd-standard-build. This becomes counterintuitive at
the very least when switching to another machine and attempting to reuse
this build. This patch swaps MACHINE for PACKAGE_ARCH (which is
typically MACHINE_ARCH for linux-yocto), resulting in the following
build path:

tmp/work/core2-32-intel-common-poky-linux/linux-yocto-dev/ \
3.13++gitAUTOINC+e5d23e7879_889c6bec6b-r0/linux-core2-32-intel-common-standard-build

The impact to existing MACHINEs is a replace of - with _ if MACHINE
contains one or more - charachters.

(From OE-Core rev: 54590cdb940b6145ac92729ebf9bb7e7e537f5e2)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: add powermanagement config to 32 bit common-pc
Bruce Ashfield [Fri, 7 Feb 2014 19:04:51 +0000 (14:04 -0500)]
linux-yocto/3.10: add powermanagement config to 32 bit common-pc

The introduction of LTSI has exposed a missing dependency on cpufreq
being enabled. To fix the build, we enable power management in the
32 bit BSP, which aligns it with 64 bit.

(From OE-Core rev: e859ebf08e73091640bd4d7329bbbe44270c4bf0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: integrate LTSI
Bruce Ashfield [Tue, 4 Feb 2014 17:34:26 +0000 (12:34 -0500)]
linux-yocto/3.10: integrate LTSI

Updating the SRCREVs of the 3.10 tree to reflect the integration of
of commit 68054859 from:

    git://git.linuxfoundation.org/ltsi-kernegit://git.linuxfoundation.org/ltsi-kernel.git

Build and boot tested on all qemu architectures.

(From OE-Core rev: 41a6b620f6e00d9222989058b3620cadc940ac21)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage.bbclass: fix strip and split logic
Koen Kooi [Tue, 21 Jan 2014 09:47:12 +0000 (10:47 +0100)]
package.bbclass: fix strip and split logic

Marks original commit message and variable documentation state that stripping and splitting are independent of eachother, but package.bbclass ANDs the two INHIBIT flags to see which files can be stripped and/or split.

Original behaviour:

INHIBIT_PACKAGE_STRIP: no strip, no debug split
INHIBIT_PACAKGE_DEBUG_SPLIT: no strip, no debug split

Behaviour after this patch:

INHIBIT_PACKAGE_STRIP: no strip, no debug split
INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split

(From OE-Core rev: 8ea3cc2c45d4e34bb68bd3e0bc359204c772133c)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-smartpm: really ignore conflicts during install with --attempt
Paul Eggleton [Thu, 6 Feb 2014 13:39:01 +0000 (13:39 +0000)]
python-smartpm: really ignore conflicts during install with --attempt

The original patch added in OE-Core commit
bdf07b1698d228dc7ff555199a269b1ff8ceca19 was supposed to ignore
conflicts, but it was unable to do so because it wasn't raising errors
in the right place. When the --attempt option is used (as is done in
complementary package installation for RPM), raise errors immediately
on conflicts, catch errors at the right point so that requested packages
and their dependencies can be ignored, and print appropriate warnings
when doing so.

Fixes [YOCTO #5313].

(From OE-Core rev: 210a426584b77ad2331332059af85bb9f4e2081f)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconf/bitbake.conf: default HOMEPAGE to blank instead of unknown
Paul Eggleton [Thu, 6 Feb 2014 13:33:45 +0000 (13:33 +0000)]
conf/bitbake.conf: default HOMEPAGE to blank instead of unknown

The default value for HOMEPAGE of "unknown" has been in place since the
early OE-Classic days, but it doesn't really make sense - "unknown" is
not a valid URL and it just means we have to explicitly check for this
hardcoded string if we're displaying the value in some form of UI, such
as Toaster.

This has required some changes to the packaging classes as they
previously did not expect the value to be blank.

(From OE-Core rev: 244e1d73ef58e92d73c098044c66bd784644b933)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotestimage: fail if no package manifest is found
Stefan Stanacar [Sun, 9 Feb 2014 10:39:31 +0000 (12:39 +0200)]
testimage: fail if no package manifest is found

Sometimes we may forget to actually build the image
we want to test (when testimage task is called manually).
Instead of an ugly traceback we should fail nicely.
The manifest is written after the rootfs so this ensures
the image was actually built.

(From OE-Core rev: 85c8dd4170a88a5d7f3d9ca181e75720302727c5)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils: targetbuild: take proxy into account
Stefan Stanacar [Sun, 9 Feb 2014 10:39:30 +0000 (12:39 +0200)]
oeqa/utils: targetbuild: take proxy into account

A previous commit broke downloads
when proxies are involved, let's fix it.

(From OE-Core rev: 97e263b99cbe8184a74f80738fd471cfdef29e0c)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: use oldnoconfig before yes '' | make oldconfig
Alexandre Belloni [Fri, 7 Feb 2014 16:30:32 +0000 (17:30 +0100)]
kernel: use oldnoconfig before yes '' | make oldconfig

When using a defconfig, using yes '' | make oldconfig may not result in
the correct configuration being set. For example:

 $ ARCH=mips make qi_lb60_defconfig
 #
 # configuration written to .config
 #
 $ grep USB_ETH .config
 CONFIG_USB_ETH=y
 # CONFIG_USB_ETH_RNDIS is not set
 # CONFIG_USB_ETH_EEM is not set

 $ cp arch/mips/configs/qi_lb60_defconfig .config
 $ yes '' | make ARCH=mips oldconfig
[...]
 $ grep USB_ETH .config
 CONFIG_USB_ETH=m
 # CONFIG_USB_ETH_RNDIS is not set
 # CONFIG_USB_ETH_EEM is not set

Using make olddefconfig solves that but we'll use the oldnoconfig alias
for backward compatibility with older kernels.

 $ cp arch/mips/configs/qi_lb60_defconfig .config
 $ make ARCH=mips oldnoconfig
 scripts/kconfig/conf --olddefconfig Kconfig
 #
 # configuration written to .config
 #
 $ grep USB_ETH .config
 CONFIG_USB_ETH=y
 # CONFIG_USB_ETH_RNDIS is not set
 # CONFIG_USB_ETH_EEM is not set

(From OE-Core rev: 9b75f6a5786ff7b2e6219d78b38f0032f100c660)

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: stop using -exec rm for deleting files
Bruce Ashfield [Mon, 10 Feb 2014 20:15:29 +0000 (15:15 -0500)]
kernel: stop using -exec rm for deleting files

Removing files from the source tree via find, exec and rm is not the
most efficient operation, due to (among other things) the many forked
processes.

If we use -delete, it saves a significant amount of time. But -delete
does not work with -prune (since it forces -depth). To maintain the
lib, tools and scripts source files, we can hide them temporarily,
skip their hidden directories and then finally restore them.

Time for install before this change:

 real    2m48.563s
 user    0m35.220s
 sys     0m33.036s

Time for install after this change:

 real    1m21.301s
 user    0m33.160s
 sys     0m28.388s

We could further speed this up by using inline perl to delete the files,
but that complexity is avoided for now.

(From OE-Core rev: 01932d6bbc71e86fd903097b5339e91f76846388)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Fix misc journald memory bugs
Khem Raj [Tue, 11 Feb 2014 03:33:35 +0000 (19:33 -0800)]
systemd: Fix misc journald memory bugs

These set of patches fix journald exhibiting some issues
under load.

One of the prevelant issues is that when appending to journal
it is not able to allocate memory and starts taking 100% cpu
spewing errors like

systemd-journald[2934]: Failed to write entry (19 items, 452 bytes), ignoring: Cannot allocate memory

Other memory issues crept up with time e.g.vacuuming

(From OE-Core rev: b1bdc1c6fb6914d85f888acde9d806d5560c84d8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: runqueue: Fix setscene hard dependency problems
Richard Purdie [Mon, 10 Feb 2014 22:50:28 +0000 (22:50 +0000)]
bitbake: runqueue: Fix setscene hard dependency problems

Commit c54e738e2b5dc0d8e6fd8e93b284ed96e7a83051 added in the idea of hard dependencies
such as the case a setscene has a hard dependency on pseudo-native and that
dependency wasn't available from sstate for some reason.

Unfortunately the implementation was a bit too enthusiastic, causing rebuilds
of things when it wasn't necessary. A test case was:

bitbake quilt-native
bitbake quilt-native -c clean
bitbake <some-image>

and then you'd watch quilt-native get rebuilt for no good reason.

The clue to the problem is in the for loop where it never depends on
the item being iterated over.

The fix is to include the exact list of hard dependencies rather than
guessing. With these changes, the use case above works, the one in
the original commit also works.

This patch also adds in or cleans up various pieces of logging to
allow issues like this to be more easily debugged in future.

(Bitbake rev: 81bd475585ff1b44b390036b1eca0feae7c149eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.py, package_manager.py, rootfs.py: dump command output on error
Laurentiu Palcu [Mon, 10 Feb 2014 11:08:59 +0000 (13:08 +0200)]
image.py, package_manager.py, rootfs.py: dump command output on error

Print the entire command output in case of errors.

(From OE-Core rev: 2253c9ac2caa61dee0bd4fea04d4d77b79be7b36)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: RpmPM: fix issue with multilib builds
Laurentiu Palcu [Mon, 10 Feb 2014 07:32:04 +0000 (09:32 +0200)]
lib/oe/package_manager.py: RpmPM: fix issue with multilib builds

Use python sets instead of lists, to avoid duplicates. When doing a
multilib build, "smart channel --add" fails because it tries to add
'all' channel twice.

(From OE-Core rev: 730d675090eec5c03e444f0448d96a52035d0bef)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: check that package list is not empty
Laurentiu Palcu [Wed, 5 Feb 2014 13:25:18 +0000 (15:25 +0200)]
lib/oe/package_manager.py: check that package list is not empty

If we're just attempting to install packages and the package list is
empty, just return.

(From OE-Core rev: 8bf5d80e3502a71fdda688aace0799b47ae19b3b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorootfs.py, package_manager.py, sdk.py: Fix building from feeds feature for opkg
Laurentiu Palcu [Wed, 5 Feb 2014 09:08:34 +0000 (11:08 +0200)]
rootfs.py, package_manager.py, sdk.py: Fix building from feeds feature for opkg

When using opkg as the PM backend, one has the option to provide custom
feeds to create the rootfs from.

This commit:
 * fixes this in the refactored code;
 * moves the custom config creation code to python;
 * clean up the package-ipk.bbclass;

(From OE-Core rev: 19c538f57c8fa7c566e88a6dbe13ea4826d4f26c)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: OpkgPM, bad recommendation handling change
Laurentiu Palcu [Mon, 3 Feb 2014 09:41:45 +0000 (11:41 +0200)]
lib/oe/package_manager.py: OpkgPM, bad recommendation handling change

The following commit:

rootfs_ipk: Ensure that BAD_RECOMMENDATIONS are honoured for all
architectures

changed the way BAD_RECOMMENDATIONS are handled. Make the change in the
new code too.

(From OE-Core rev: 7e518e399da51de3b159bd6804735b2f14c39357)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: do not use stamps
Laurentiu Palcu [Fri, 31 Jan 2014 16:49:12 +0000 (18:49 +0200)]
lib/oe/package_manager.py: do not use stamps

Using stamps shortens rootfs/image creation because the package indexes
are not created again if no new package was installed in the deploy dir.
Unfortunately, there are some syncronization issues with
do_package_write_*() and the indexes are not properly created.

Will have to revisit this issue in the near future. For now, lose it.

(From OE-Core rev: 276f2a8a072ce243daa74210934ee63046e9c480)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/rootfs.py: OpkgRootfs, fix issue in _get_delayed_postinsts()
Laurentiu Palcu [Thu, 30 Jan 2014 19:55:32 +0000 (21:55 +0200)]
lib/oe/rootfs.py: OpkgRootfs, fix issue in _get_delayed_postinsts()

Status file path was not created correctly.

(From OE-Core rev: 628c4bce36ca0bc2b316ec78cf58b02a42e7f35f)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: OpkgPM/DpkgPM fixes
Laurentiu Palcu [Thu, 30 Jan 2014 19:40:24 +0000 (21:40 +0200)]
lib/oe/package_manager.py: OpkgPM/DpkgPM fixes

This commit:
 * adds missing mark_packages() function for OpkgPM. This is needed to
 * manually change the packages installation status in the status file;
 * fix OpkgPM remove_packaging_data() issue;
 * fix OpkgPM handle_bad_recommendations() issue;
 * improve OpkgPM/DpkgPM mark_packages() regex pattern;
 * fix DpkgPM list_installed() problem;
 * fix DpkgPM _create_configs() problem: status file should not be
   truncated if it already exists/

(From OE-Core rev: d50a40100763dcbfabec2c147fdfcb46aa909329)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/image.py: fix image size calculation routine
Laurentiu Palcu [Thu, 30 Jan 2014 12:40:48 +0000 (14:40 +0200)]
lib/oe/image.py: fix image size calculation routine

The IMAGE_ROOTFS_EXTRA_SPACE value was not correctly added to the base
size.

(From OE-Core rev: f3ac2a68ae0ae9bdf2a03c1b6d0f83c9918d58bd)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: DpkgPM, use lock on deploy dir
Laurentiu Palcu [Tue, 28 Jan 2014 12:43:14 +0000 (14:43 +0200)]
lib/oe/package_manager.py: DpkgPM, use lock on deploy dir

Lock deploy directory against concurrent index creation.

(From OE-Core rev: 127d19b84e78b5e650d0e6d7eaf29a8b7d799e5e)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/postinst-intercepts: do not redirect errors to /dev/null
Laurentiu Palcu [Tue, 28 Jan 2014 08:39:32 +0000 (10:39 +0200)]
scripts/postinst-intercepts: do not redirect errors to /dev/null

The redirection was necessary with the old bash code because the log
checking routine was searching for error strings in the log and abort
the build in case failures occured. With the new python code,
redirecting the intercept stderr is no longer necessary. This also makes
the intercept hooks easier to debug.

(From OE-Core rev: e2c3c59b26d84cd4052a953adafcd4d456264c26)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/rootfs.py: warn the user if intercept hooks fail
Laurentiu Palcu [Tue, 28 Jan 2014 08:28:30 +0000 (10:28 +0200)]
lib/oe/rootfs.py: warn the user if intercept hooks fail

The idea of postinstall intercept hooks is to run CPU intensive
postinstalls (like the ones generating font/pixbuf/icon caches) on host,
at rootfs generation time. So, ideally, the user would like to know if
the intercepts fail on host.

With this patch, the user will see warnings on console if intercept
hooks fail to execute.

(From OE-Core rev: 5666ce9720132a76b5ff6e99712e240b8dc8e47a)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: RpmPM fixes
Laurentiu Palcu [Tue, 28 Jan 2014 08:24:22 +0000 (10:24 +0200)]
lib/oe/package_manager.py: RpmPM fixes

This commit:
 * fixes a crash when handling interecept hook failures which happened when
   MULTILIB_GLOBAL_VARIANTS was not set;
 * convert dashes to underscores and use sets (so that we make sure the
   items are unique) when creating RPM repos;
 * uses a regex pattern to search for packages in the feeds list. The
   old method could match also strings in the middle. For example: 'rpm'
   matched 'kernel-module-lttng-probe-rpm" in qemux86_64 feeds;
 * issue a bb.fatal if smart returns error while installing packages.
   Otherwise we might end up with an incomplete image...
 * fixes the /etc/rpm/platform file creation;

(From OE-Core rev: b98c7e4945f1c36a6e4f98144a3af4f3049450ae)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: moving global SCRIPTLET_FORMAT and DB_CONFIG_CONTENT to...
Hongxu Jia [Mon, 27 Jan 2014 08:43:48 +0000 (16:43 +0800)]
lib/oe/package_manager.py: moving global SCRIPTLET_FORMAT and DB_CONFIG_CONTENT to RpmPM

The tweak made the code looks better.

(From OE-Core rev: 8e06be633222635c549d7f067218e8b833e76bda)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manger.py/rootfs.py: rename save_rpmpostinist with save_rpmpostinst
Hongxu Jia [Mon, 27 Jan 2014 08:22:05 +0000 (16:22 +0800)]
package_manger.py/rootfs.py: rename save_rpmpostinist with save_rpmpostinst

The tweak made the code looks better.

(From OE-Core rev: 61981755b4738ccc49be0e790de828f4166ef0e8)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk_rpm.bbclass: remove old shell code
Hongxu Jia [Mon, 27 Jan 2014 07:08:58 +0000 (15:08 +0800)]
populate_sdk_rpm.bbclass: remove old shell code

The old code no more needed since the job is done in python now.

(From OE-Core rev: 96bf2a93bb75fea23732014106039e14d72cd1c7)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/rootfs.py: fix invoking _run_intercepts failed
Hongxu Jia [Mon, 27 Jan 2014 06:38:58 +0000 (14:38 +0800)]
lib/oe/rootfs.py: fix invoking _run_intercepts failed

- The variable D is needed by intercepts scripts;

(From OE-Core rev: 3d37dcdb836b59d8a7f880ce22d06760eb8af232)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: fix invoking rpm save_rpmpostinist failed
Hongxu Jia [Mon, 27 Jan 2014 06:36:25 +0000 (14:36 +0800)]
lib/oe/package_manager.py: fix invoking rpm save_rpmpostinist failed

- Use self.target_rootfs instead of self.image_rootfs as saved dir;
- Remove redundant comment line;

(From OE-Core rev: 41d6edab676277afbcaa6cf41cd64a5663f09dc7)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/rootfs.py: fix invoking rpm _handle_intercept_failure failed
Hongxu Jia [Mon, 27 Jan 2014 06:32:02 +0000 (14:32 +0800)]
lib/oe/rootfs.py: fix invoking rpm _handle_intercept_failure failed

(From OE-Core rev: 7858c8ac141a7bf66c65ddc7e4b39ad937a7e084)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoCleanup rootfs_rpm,package_rpm bbclass files
Hongxu Jia [Mon, 27 Jan 2014 02:08:15 +0000 (10:08 +0800)]
Cleanup rootfs_rpm,package_rpm bbclass files

This commit cleans up the functions that were ported to python.

(From OE-Core rev: a4fe5263a683b73d0318fe3c0c55382c084f25b5)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.bbclass/populate_sdk_base.bbclass: shift position of sdk complementary install...
Hongxu Jia [Mon, 27 Jan 2014 02:05:10 +0000 (10:05 +0800)]
image.bbclass/populate_sdk_base.bbclass: shift position of sdk complementary install definition

The sdk complementary install operation was defined in image.bbclass,
but the sdk recipe (such as meta-toolchain.bb) didn't inherit this
bbclass but populate_sdk, and both of image and populate_sdk bbclass
inherited populate_sdk_base bbclass, so move the sdk complementary
install definition to populate_sdk_base bbclass fixed this issue.

(From OE-Core rev: 907458935bab391f5bfba8f581ea9835078548d9)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/sdk.py: support RpmRootfs
Hongxu Jia [Mon, 27 Jan 2014 01:55:15 +0000 (09:55 +0800)]
lib/oe/sdk.py: support RpmRootfs

- Implementation RpmSdk class

(From OE-Core rev: 417b27ce5c1ea2fe2057caa898291cce0c043359)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense.bbclass: fix license_create_manifest failed
Hongxu Jia [Mon, 27 Jan 2014 01:49:08 +0000 (09:49 +0800)]
license.bbclass: fix license_create_manifest failed

While rpm incremental image generation enabled, invoked
license_create_manifest failed.
...
| ln: failed to create symbolic link 'tmp/work/qemux86_
64-poky-linux/core-image-base/1.0-r0/rootfs/usr/share/
common-licenses/alsa-conf-base/generic_GPLv2':File exists
| WARNING:tmp/work/qemux86_64-poky-linux/core-image-base/
1.0-r0/temp/run.license_create_manifest.26327:1 exit 1 from
|   ln -s ../${lic}/home/jiahongxu/yocto/build-20140120-
yocto-qemux86-64/tmp/work/qemux86_64-poky-linux/core-image
-base/1.0-r0/rootfs/usr/share/common-licenses/${pkg}/${lic}
...

(From OE-Core rev: 39f8658033c886fedefc9038a673f9a5edad7d26)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>