Commit Graph

24 Commits

Author SHA1 Message Date
Otavio Salvador
d0d016e117 kernel.bbclass: fix spacing to reduce delta between oe-core and meta-oe
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-22 22:03:11 +02:00
Bruce Ashfield
3d96cb8778 kernel: copy defconfig to {B} vs {S}
For kernel's that use a split source/object build the copy
of defconfig to {S} in the base kernel class is problematic.
The previous solution for this was to override the do_configure
of the base kernel class in a subclass. While this is still
a viable/valid option, it does mean that changes to the base
do_configure will be missed.

The solution to this is to copy a defconfig to {B} which is
typically the same as {S}, so most kernel recipes won't see or
care about this change.

With this change in place, linux-yocto.bbclass can drop its
override of do_configure.

Tested with linux-yocto and oe linux recipes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05 19:49:59 +02:00
Nitin A Kamble
3df1853e1e kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables
KERNEL_LD was using ${LD} in it's definition, which is not correct for
different ABIs such as x32 or i386 on x86_64 machine. This brings it
into sync with the corresponding gcc settings, likewise the same with
the KERNEL_AR variable.

[RP: Updated commit message]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05 19:49:59 +02:00
Noor, Ahsan
d375bad5c8 kernel.bbcalss: Added do_savedefconfig task.
* Added do_savedefconfig task to kernel.bbclass.

Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05 19:49:59 +02:00
Noor, Ahsan
ed1d905054 kernel,cml1.bbclass: Move menuconfig to cml1
* The menuconfig target exists in places other than the kernel that use kernel style config.

Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05 19:49:59 +02:00
Koen Kooi
b42f8cbcf1 kernel.bbclass: sync with oe-core after recent initramfs merges
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-15 17:29:38 +02:00
Richard Purdie
14609a197a base/kernel/image.bbclass: Clean up do_deploy ordering to ensure it just happens before a build completes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-15 17:25:18 +02:00
Darren Hart
5196b842f7 kernel: move menuconfig task after configure
Fixes [YOCTO 1136]

linux-yocto adds some configure steps that are necessary to prepare the source
tree after the do_patch task. This causes a "-c menuconfig" to fail in a clean
build tree. Typical use of menuconfig should be to modify the config provided
by the recipe being built. It therefor makes sense for the menuconfig task to
come after the configure task. This also happens to fix the issue seen with the
linux-yocto kernel recipe.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-15 17:05:27 +02:00
Phil Blundell
ddeb144931 kernel.bbclass, task-base: remove references to obsolete bluez-dtl1-workaround
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-15 17:03:38 +02:00
Koen Kooi
a7b8268b8f kernel.bbclass: blacklist 'perf-dbg' as well for the modules meta package
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-02 11:29:02 +02:00
Koen Kooi
8d6a05fe77 kernel.bbclass: sync with OE-core
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-02 11:28:02 +02:00
Mark Hatle
912c096a46 kernel.bbclass: Add support for perf-dbg package
The perf component is built with the kernel, so ensure that it gets the
debug information associated with it.

Also bump the PR in the linux-yocto-* to ensure they get rebuilt.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-02 10:26:11 +02:00
Anders Darander
003ab56b8f image|kernel.bblass|module-init-tools: do not use depmod-2.6
Change to only depend on virtual/*/depmod.
Change all calls to only use depmod.
Do not install depmod as depmod-2.6
Bump PR in module-init-tools-cross.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-02 10:24:22 +02:00
Anders Darander
040e9e785c Remove support for building 2.4 kernels
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-02 10:24:22 +02:00
Richard Purdie
efdd3bd9cf kernel.bbclass: Ensure kernel/* internal sysroot working directory don't get packaged
This removes a couple of megabytes of QA warnings!

Signed-off-by: Richard  Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-07-01 16:28:32 +02:00
Richard Purdie
5b857eeeb7 kernel.bbclass: Stop do_install poking directly into the sysroot and evading sstate
do_install was putting files directly into the sysroot which means sstate
had no knowledge of them. This meant they didn't get cleaned along with the
other files from the task amongst other issues.

This patch puts them in ${D} where they were supposted to be.

Tested-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-06-23 21:50:13 +02:00
Tom Rini
81dc1b554b kernel.bbclass: Stage System.map with KERNEL_VERSION suffix
Without this, images will fail now that kernel-abiversion is back.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-06-23 09:22:11 +02:00
Koen Kooi
c6c282daa0 kernel.bbclass: restore kernel-abiversion file
This fixes external module recipes that need $KERNEL_VERSION. It got removed by

	commit a9d41062e24a6b99661b3a5256f369b557433607
	Author: Darren Hart <dvhart@linux.intel.com>
	Date:   Tue Mar 8 17:09:10 2011 -0800

		kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules

seemingly as an oversight.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-06-22 16:17:45 +02:00
Andreas Oberritter
2a4ffb47b0 kernel.bbclass: pass KERNEL_VERSION through legitimize_package_name
- KERNEL_VERSION may contain characters unsuitable for package
  names, e.g. underscores. Use legitimize_package_name to replace
  those characters.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-05-20 21:28:16 +02:00
Koen Kooi
68c15845d0 testlab, blacklist bbclass: import from meta-angstrom
These are good for general use since other distros (SHR, SlugOS) are copying them into their layers nowadays. Let's stop this duplication bu moving them here.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-05-16 20:57:45 +02:00
Koen Kooi
9e7cb7e20d kernel.bbclass: mini sync with oe-core
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-04-23 16:19:35 +02:00
Koen Kooi
eebc7b3cfd kernel.bbclass: blacklist 'kernel-misc' from kernel-modules
When 'kernel-misc' is empty do_rootfs will fail when including 'kernel-modules'

The proper fix would be to have a whitelist for the 'kernel-modules' meta-pkg

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-24 08:08:23 +01:00
Koen Kooi
42fabd7d8c kernel bbclass: sync with OE-core for do_install changes
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-21 19:35:25 +01:00
Koen Kooi
c58cc7d379 move layer into meta-oe in preparation for future splits
As per TSC decision

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-17 21:41:22 +01:00