aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
AgeCommit message (Collapse)Author
2011-06-23kernel.bbclass: Stop do_install poking directly into the sysroot and evading ↵Richard Purdie
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> (From OE-Core rev: 983197c10104bbbcb6cfd6e923a3bf11152b3001) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-23kernel.bbclass: Stage System.map with KERNEL_VERSION suffixTom Rini
Without this, images will fail now that kernel-abiversion is back. (From OE-Core rev: 3dbe49b13e7513e449f13515591d02a7d2f560ae) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-23kernel.bbclass: restore kernel-abiversion fileKoen Kooi
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. (From OE-Core rev: 6978774595f892e6a819ee64c932d475c67a6a0f) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-23kernel.bbclass: Add support for perf-dbg packageMark Hatle
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. (From OE-Core rev: 17f76de8ab8b7c9e62c1149017a3fa78866d9300) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-20kernel.bbclass: pass KERNEL_VERSION through legitimize_package_nameAndreas Oberritter
- KERNEL_VERSION may contain characters unsuitable for package names, e.g. underscores. Use legitimize_package_name to replace those characters. (From OE-Core rev: 8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-04logging: update existing oe* logging users to the bb* interfaceDarren Hart
The new bash logging class provides bbnote, bbwarn, bbfatal, and bbdebug replacements (as well as bbplain and bberror) for the oe* equivalents. Use the new bb* API in preparation to delete the oe* logging API. This patch was automatically generated by a sed script. The result has been visually inspected and used to build core-image-sato for qemux86. (From OE-Core rev: a1f09fce5caba389d0484b169f0cde85d64514fa) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-19kernel: Remove debug statementsDarren Hart
A stray echo and du command from my development of the following patch remain in kernel.bbclass. Remove them. commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58 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 (From OE-Core rev: f28bd758bd9a4c59375874853609893546835346) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-19kernel: Copy over bzImage to sysroots during installDarren Hart
Fixes [Yocto #987] The following commit introduced a build failure: Commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58 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 Resulting in: | install: cannot stat `/usr/local/test/intel-bsp/build/tmp/sysroots/n450/kernel/bzImage': No such file or directory | ERROR: Function 'build_boot_bin' failed (see /usr/local/test/intel-bsp/build/tmp/work/core2-poky-linux/poky-image-minimal-live-1.0-r0/temp/log.do_bootimg.1106 for further information) The bzImage file was not being copied to sysroot, correct that. (From OE-Core rev: 65cb39826370d3e35229bcc5fe0c8da8b2ab409b) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-29base/kernel/image.bbclass: Clean up do_deploy ordering to ensure it just ↵Richard Purdie
happens before a build completes (From OE-Core rev: a3b80688465ba5ba7e6d514f9a40ee224a9d3a28) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-24kernel.bbclass: blacklist 'kernel-misc' from kernel-modulesKoen Kooi
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 (From OE-Core rev: bb72bd56101698b7fe166dd02fdca07d06a6eb8b) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Tested-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-23kernel/bbclass: rework kernel and module classes to allow for building ↵Darren Hart
out-of-tree modules The existing infrastructure uses an external build tree which references the kernel source in the work dir. If run with rm work, building external modules will fail. This patch places a configured source tree in sysroots. Striking a balance between minimal size and minimal maintenance is difficult. A fully configured tree is about 500MB after a clean. This version leans on the side of caution and removes only the obviously unecessary parts of the source tree to conserve space, resulting in about 170MB. The arch directories would be some additional pruning we could do. Given examples from the devel package from distributions, I suspect this size could be reduced to 75MB or so, but at the cost of a much more complex recipe which is likely to require a great deal more maintenance to keep current with kernel releases. Care is also taken to clean the hostprogs in scripts, and the modules are responsible for building them as needed. Although it is unclear to me if this is really necessary, especially considering that modules put these bits back as soon as they compile. If we are not generating an sstate package, I suspect we can ignore these. Please try this with your modules and let me know how it does. I tried to take non linux-yocto kernel recipes into account, but I have only tested with linux-yocto and the hello-mod recipe so far. (From OE-Core rev: a9d41062e24a6b99661b3a5256f369b557433607) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net> Acked-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-15kernel bbclass: split do_compile into do_compile and do_compile_modulesKoen Kooi
This allows recipes to insert a custom task in between building *Image and modules >From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800 (From OE-Core rev: a2cc999d663407d17f41e1b0344361944993fa86) Signed-off-by: Koen Kooi <koen@openembedded.org> Acked-by: Graeme Gregory <dp@xora.org.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03kernel: remove explicit bash call in do_menuconfigBruce Ashfield
Fixes [BUGID #598] The explicit addition of "bash" before "make menuconfig" is clearing variables that are required for pseudo. The end result is that menuconfig often fails silently with: ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored. Removing bash from the menuconfig SHELLCMDS variable fixes the psudo problem. (From OE-Core rev: b909f12a92c86fd2fe9348eeec455e2c9ef71f1a) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-24Ensure Bash is used when spawning terminalsJoshua Lock
We rely on Bashisms when spawning a terminal so ensure that bash is used when using devshell and menuconfig. Fixes [BUGID #119] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-02-14kernel.bbclass: add approproate X Environment variables to allow xterm to startSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-02-09kernel.bbclass: use defconfig if it existsDarren Hart
It is common enough to want to apply a defconfig if the inheriting recipe provides it. If the file exists in the $WORKDIR, copy it over to ${S}/.config provided the target does not already exist. This allows for recipes derived from kernel.bbclass to manage the .config on their own, such as linux.inc. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-02-01kernel.bbclass: Add fix from OE.dev for tmpnam() usageRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-21staging: Use relative path in sysroot-destdir for target recipesDongxiao Xu
Original we used absolute path in sysroot-destdir for both native and target recipes. This commit changes target recipes to use relative path which is same as the image directory. [sgw: merged with libtool sysroot work] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-01-12kernel.bbclass: Remove a binary generated by recent kernel versionsRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-12kernel bbclass: add 'perf' to kernel-modules blacklistKoen Kooi
This makes 'kernel-modules' installable again when perf isn't enabled in the kernel config Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-30kernel.bbclass: Ensure TOOLCHAIN_OPTIONS is passed to KERNEL_CC and KERNEL_LDRichard Purdie
This fixes various incorrect sysroot usages observed by people with sstate. Thanks to Kevin Tian for figuring out where the problem was and Gary Thomas for confirming the fix. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20kernel.bbclass: Use KERNEL_IMAGE_BASE_NAME variable instead of the expanded ↵Richard Purdie
equivalent. Fixes sstate rebuild issue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-16kernel.bbclass: Set vardepsexclusive for KERNEL_IMAGE_BASE_NAMEKevin Tian
Exclude the DATETIME variable from the KERNEL_IMAGE_BASE_NAME variable. This avoids the last road block linux-yocto for sstate. Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-16kernel.bbclass: Rename do_deploy so the function can be overridden in recipesKevin Tian
Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-11-10kernel: prefer the kernel produced uImageBruce Ashfield
The custom uImage produced by the kernel classes by default does not universally boot and working with existing uboot configurations and setups. This changes the preference to the uImage constructed by the kbuild processes and falls back to the other techniques if uImage is requested by the kernel does not produce one. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-09-08kernel.bbclass/linux-wrs: move definition of perf package to kernel classJoshua Lock
By defining the perf package in the shared kernel class bitbake will be able to find the package provider even when the preferred kernel doesn't build perf, preventing dependency resolution failures. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-19deploy.bbclass: use new style staging for deploy tasksJoshua Lock
All tasks which implement a do_deploy should inherit this class to have the changes in the deploy task staged. Update recipes which include a do_deploy function to inherit this class and to use DEPLOYDIR rather than DEPLOY_DIR_IMAGE. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-17kernel.bbclass: Fix adding module dependencies to RDEPENDSJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-11kernel.bbclass: do_deploy should use ${B}, not ${S} (which is what ${B} ↵Richard Purdie
defaults to) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-10kernel.bbclass: Exclude scripts/dtc object filesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-10kernel/package.bbclass: Handle kernel module stripping centrallyRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-10kernel.bbclass: Clean up kernel packaging outputRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-04kernel.bbclass: Simplify shell syntax so pysh can cope with itRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-19qemu/mips: arrange for vmlinux to be bootableBruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-06-23kernel.bbclass: Remove additional binaries from stagingScott Garman
* Remove additonal binaries known to cause "strip command failed" errors during do_package on cross platforms. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-06-09kernel.bbclass: Drop code which is duplicated later in the function, fixing ↵Richard Purdie
older kernel builds Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-24kernel.bbclass: Simplify the current external module codeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-24kernel.bbclass: Stop staging binaries within scripts/Scott Garman
* Preserves scripts/ directory but excludes binaries known to cause "strip command failed" errors during do_package on cross platforms Signed-off-by: Scott Garman <sgarman@zenlinux.com>
2010-05-20kernel.bbclass: tidy up staging of headersJoshua Lock
The changes merged from upstream used the ASMDIR variable even when it might not have been set. These changes may be incorrect but at the very least I can now build a QEMU image (including v86d) with the 2.6.33 kernel now. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-20kernel.bbclass: Package Kernel firmwareJoshua Lock
Merged change from OE.dev to create packages of the kernel firmware Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-20kernel.bbclass: match x86 header installation to other architecturesJoshua Lock
The header installation for x86 was slightly different as to that employed for other architectures, change them to match for consistency. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-19kernel.bbclass: fix installing of kernels 2.6.34 and aboveJoshua Lock
Changes merged from upstream to cope with changes to directory structures in recent kernels when building for x86 Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-18kernel.bbclass: Use B, not S in KERNEL_VERSIONRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-14kernel.bbclass: Sync with OE.devRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19kernel.bbclass: Merge do_stage into do_installRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-16debian/kernel/gconf/gtk-icon-cache: PKGDESK/PKG fixesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13classes: Remove and sanitise import statementsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2008-10-29kernel.bbclass: We dont want to tar lib/ if we dont have any modulesSamuel Ortiz
2008-06-05kernel.bbclass: Sync with OE and get recent kernel i386 -> x86 fixesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4585 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-08kernel.bbclass: Use INHIBIT_DEFAULT_DEPS to drop virtual/libc dependency ↵Richard Purdie
since the kernel doesn't need it git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4209 311d38ba-8fff-0310-9ca6-ca027cbcb966