summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Remove debug statementsDarren Hart2011-04-191-2/+0
| | | | | | | | | | | | | | | | | | 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>
* kernel: Copy over bzImage to sysroots during installDarren Hart2011-04-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* base/kernel/image.bbclass: Clean up do_deploy ordering to ensure it just ↵Richard Purdie2011-03-291-1/+1
| | | | | | | | happens before a build completes (From OE-Core rev: a3b80688465ba5ba7e6d514f9a40ee224a9d3a28) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: blacklist 'kernel-misc' from kernel-modulesKoen Kooi2011-03-241-1/+1
| | | | | | | | | | | | 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>
* kernel/bbclass: rework kernel and module classes to allow for building ↵Darren Hart2011-03-231-62/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* kernel bbclass: split do_compile into do_compile and do_compile_modulesKoen Kooi2011-03-151-0/+5
| | | | | | | | | | | | 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>
* kernel: remove explicit bash call in do_menuconfigBruce Ashfield2011-03-031-1/+1
| | | | | | | | | | | | | | | | | | 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>
* Ensure Bash is used when spawning terminalsJoshua Lock2011-02-241-1/+1
| | | | | | | | | 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>
* kernel.bbclass: add approproate X Environment variables to allow xterm to startSaul Wold2011-02-141-0/+3
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* kernel.bbclass: use defconfig if it existsDarren Hart2011-02-091-1/+5
| | | | | | | | | | | 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>
* kernel.bbclass: Add fix from OE.dev for tmpnam() usageRichard Purdie2011-02-011-2/+5
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* staging: Use relative path in sysroot-destdir for target recipesDongxiao Xu2011-01-211-1/+1
| | | | | | | | | | 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>
* kernel.bbclass: Remove a binary generated by recent kernel versionsRichard Purdie2011-01-121-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel bbclass: add 'perf' to kernel-modules blacklistKoen Kooi2011-01-121-1/+1
| | | | | | | 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>
* kernel.bbclass: Ensure TOOLCHAIN_OPTIONS is passed to KERNEL_CC and KERNEL_LDRichard Purdie2010-12-301-2/+2
| | | | | | | | 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>
* kernel.bbclass: Use KERNEL_IMAGE_BASE_NAME variable instead of the expanded ↵Richard Purdie2010-12-201-3/+3
| | | | | | equivalent. Fixes sstate rebuild issue Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Set vardepsexclusive for KERNEL_IMAGE_BASE_NAMEKevin Tian2010-12-161-0/+2
| | | | | | | | | 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>
* kernel.bbclass: Rename do_deploy so the function can be overridden in recipesKevin Tian2010-12-161-1/+3
| | | | | Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: prefer the kernel produced uImageBruce Ashfield2010-11-101-1/+3
| | | | | | | | | | | | 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>
* kernel.bbclass/linux-wrs: move definition of perf package to kernel classJoshua Lock2010-09-081-0/+5
| | | | | | | | 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>
* deploy.bbclass: use new style staging for deploy tasksJoshua Lock2010-08-191-12/+7
| | | | | | | | | | 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>
* kernel.bbclass: Fix adding module dependencies to RDEPENDSJoshua Lock2010-08-171-0/+3
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: do_deploy should use ${B}, not ${S} (which is what ${B} ↵Richard Purdie2010-08-111-1/+1
| | | | | | defaults to) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Exclude scripts/dtc object filesRichard Purdie2010-08-101-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel/package.bbclass: Handle kernel module stripping centrallyRichard Purdie2010-08-101-3/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Clean up kernel packaging outputRichard Purdie2010-08-101-1/+9
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Simplify shell syntax so pysh can cope with itRichard Purdie2010-08-041-7/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemu/mips: arrange for vmlinux to be bootableBruce Ashfield2010-07-191-1/+3
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* kernel.bbclass: Remove additional binaries from stagingScott Garman2010-06-231-3/+9
| | | | | | | * 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>
* kernel.bbclass: Drop code which is duplicated later in the function, fixing ↵Richard Purdie2010-06-091-8/+6
| | | | | | older kernel builds Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Simplify the current external module codeRichard Purdie2010-05-241-45/+21
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Stop staging binaries within scripts/Scott Garman2010-05-241-0/+6
| | | | | | | * 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>
* kernel.bbclass: tidy up staging of headersJoshua Lock2010-05-201-3/+6
| | | | | | | | 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>
* kernel.bbclass: Package Kernel firmwareJoshua Lock2010-05-201-0/+3
| | | | | | Merged change from OE.dev to create packages of the kernel firmware Signed-off-by: Joshua Lock <josh@linux.intel.com>
* kernel.bbclass: match x86 header installation to other architecturesJoshua Lock2010-05-201-2/+3
| | | | | | | 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>
* kernel.bbclass: fix installing of kernels 2.6.34 and aboveJoshua Lock2010-05-191-17/+22
| | | | | | | 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>
* kernel.bbclass: Use B, not S in KERNEL_VERSIONRichard Purdie2009-12-181-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Sync with OE.devRichard Purdie2009-12-141-4/+22
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: Merge do_stage into do_installRichard Purdie2009-11-191-63/+64
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* debian/kernel/gconf/gtk-icon-cache: PKGDESK/PKG fixesRichard Purdie2009-11-161-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* classes: Remove and sanitise import statementsRichard Purdie2009-11-131-7/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* kernel.bbclass: We dont want to tar lib/ if we dont have any modulesSamuel Ortiz2008-10-291-1/+3
|
* kernel.bbclass: Sync with OE and get recent kernel i386 -> x86 fixesRichard Purdie2008-06-051-30/+40
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4585 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: Use INHIBIT_DEFAULT_DEPS to drop virtual/libc dependency ↵Richard Purdie2008-04-081-1/+4
| | | | | | since the kernel doesn't need it git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4209 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: use u-boot-mkimage-native for uImage kernels (from linux.inc)Marcin Juszkiewicz2008-03-251-1/+13
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4116 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: Add staging hooksRichard Purdie2008-03-201-0/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4100 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: added deploy task from linux.inc recipeMarcin Juszkiewicz2008-02-061-0/+34
| | | | | | | | | - creation of modules.tgz - uImage mangling with uboot-mkimage - symlinking built kernel git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3676 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: indent sizecheck function like rest of fileMarcin Juszkiewicz2008-02-061-6/+6
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3675 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: Cleanup various repetition, add include/video to staged ↵Richard Purdie2008-01-101-19/+6
| | | | | | files list git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3455 311d38ba-8fff-0310-9ca6-ca027cbcb966
* kernel.bbclass: added task which check size of kernel imageMarcin Juszkiewicz2007-12-061-0/+14
| | | | | | | Code was taken from linux.inc, variable with size is KERNEL_IMAGE_MAXSIZE git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3314 311d38ba-8fff-0310-9ca6-ca027cbcb966