aboutsummaryrefslogtreecommitdiffstats
path: root/classes/kernel.bbclass
AgeCommit message (Collapse)Author
2011-06-22kernel bbclass: add the crypto directory to stagingchase maupin
* Add the include/crypto directory from the kernel to the list of directories to be staged. * This directory contains the cryptodev.h file required by other drivers and applications. * Not including this directory leads to build errors of being unable to find the cryptodev.h file. Signed-off-by: Greg Turner <gregturner@ti.com> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Acked-by: Denys Dmytriyenko <denys@ti.com> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2011-05-23kernel.bbclass: pass AR, NM and OBJCOPY to makeAndreas Oberritter
- Fixes build with certain vendor-supplied Montavista kernels. - Pass the same set of variables to every invocation of make. - Create KERNEL_*SUFFIX, TARGET_*_KERNEL_ARCH and HOST_*_KERNEL_ARCH for the three variables, analogue to LD. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Phil Blundell <philb@gnu.org>
2011-05-23kernel.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. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Phil Blundell <philb@gnu.org>
2011-02-23kernel.bbclass: provide virtual/kernel-${PV}Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-18kernel.bbclass: fix retrieving dependencies between modules.Filip Zyzniewski
get_dependencies() searched for a filename key in dependencies directory with the /lib/modules/kernel_version prefix while the directory had entries stripped of it. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12kernel.bbclass: simplify "if image" conditionBernhard Reutner-Fischer
Anything that expands image to any false value should not set INITRAMFS_TASK (instead of just "" or None). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-31kernel.bbclass: Add kernel-* to PACKAGES_DYNAMICAndreas Oberritter
* Use it as a hint for BitBake to know that packages inheriting kernel.bbclass do provide kernel-x.y.z-localversion. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: Paul Menzel <paulepanter@users.sourceforge.net> for `omap3-sgx-modules` with `angstrom-2008.1`
2011-01-17kernel.bbclass: Drop comment about kernel_do_configureTom Rini
After talking with Chris more, the way this is done now is best. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-17kernel,cml1.bbclass: Move menuconfig to cml1Tom Rini
The menuconfig target exists in places other than the kernel that use kernel style config. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-06kernel class: stage ocf directoryChase Maupin
* Added the crypto/ocf directory to the list of directories to be staged when building the kernel (if it is present) * This is required when building OCF modules that allow access to crypto hardware outside of the kernel tree. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Koen Kooi <k-kooi@ti.com>
2010-12-02kernel.bbclass: put bluez-dtl1-workaround to DEPENDS directlyMartin Jansa
* DEPENDS_kernel-module-dtl1-cs aren't probably included in run queue * RDEPENDS_kernel-module-dtl1-cs probably also doesn't put it to run queue, because kernel-module-* are created by PACKAGES_DYNAMIC += "kernel-module-*" so not even known before even building kernel, but does work ok in runtime * bluez-dtl1-workaround is small and fast to build so won't hurt to build even when kernel doesn't have this bluez module enabled in defconfig Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-10-12kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please ↵Koen Kooi
insane.bbclass Signed-off-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Graeme Gregory <dp@xora.org.uk>
2010-10-12kernel 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 Signed-off-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Graeme Gregory <dp@xora.org.uk>
2010-10-04kernel.bbclass: set kerneldirFrans Meulenbroeks
commit b6cc4bc217e695801db060a1366915a870cab5db moved work from kernel_do_install to sysroot_stage_all_append This change changed kerneldir and staged directy from ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}. This works fine but the patch removed the line kerneldir=${D}/kernel/ from do_install. However, some kernel recipes have a do_install_append which references ${kerneldir}. This patch adds setting kerneldir to the end of do_install so the value is available for everyone who appends Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-30kernel.bbclass: avoid NOTE messages for files that are staged but not packagedFrans Meulenbroeks
copy the files directly from the work area to staging. That way there are no unpackaged files in image/ so no NOTE messages. Additional advantage is that it is faster as we save the copy to the image dir. See also http://thread.gmane.org/gmane.comp.handhelds.openembedded/37487 Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Roman I Khimov <khimov@altell.ru> Tested-by: Petr Stetiar <ynezz@true.cz> Acked-by: Eric Benard <eric@eukrea.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Tested-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-09-30Revert "wpa-supplicant : moved unused files to obsolete dir"Frans Meulenbroeks
This reverts commit 9a5382aad4e5a3e52fa52722cf5587fdba958e9f. This one accidentally also dragged in classes/kernel.bbclass I will redo the commit for wpa-supplicant later. classes/kernel.bbclass will be se a separate commit Thanks for Paul Menzel for spotting this Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-29wpa-supplicant : moved unused files to obsolete dirFrans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-15kernel.bbclass: Fix INITRAMFS_IMAGE logicTom Rini
Due to a bitbake bug to be fixed in 1.10.1, EXPORT_FUNCTIONS isn't remapping kernel_do_compile[depends] to do_compile[depends], so make a comment about cleaning this up once we depend on a working bitbake. Next, it needs to add to do_configure (like the users have manually set a dependancy on) rather than do_compile so that the initramfs is copied into place in time. Since we're fixing the logic in kernel.bbclass, we can drop the workarounds that linux-kexecboot and linux-preboot have added. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-08-03Recipe fixups for package_dbg usageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-20kernel bbclass: switch to u-boot-mkimage-nativeKoen Kooi
This is a long demanded change. The u-boot-mkimage is up to date to OE standards, while the openmoko one is not
2010-05-07kernel.bbclass: fix staging of .configEric Benard
- in staging.bb : sysroot_stage_dir does : cp -fpPR "$src"/* "$dest" which means it won't copy .config - so do the copy of .config in sysroot_stage_all_append after sysroot_stage_dir Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock
populate_staging task to populate_sysroot This change, pulled from Poky, makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-02kernel.class : fix for recent kernel on x86Eric BENARD
- bitbake linux for a x86 machine fails with the following message : cp: target `.../image/kernel//include/asm-x86/' is not a directory so create $kerneldir/include/asm-x86 before trying to copy something in this directory. - make headers_install fails because of missing directories in include (tested with linux 2.6.32 and 2.6.33 on x86) and missing Kbuild Signed-off-by: Eric Benard <eric@eukrea.com> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-04-17kernel.bbclass: fix ASMDIR regressionsKoen Kooi
2010-04-16kernel bbclass: convert to new style staging (from poky)koen.kooi@gmail.com
Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Philip Balister <philip@balister.org> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-04-15kernel bbclass: read version from ${B}, remove obsolete hostap logic that ↵Koen Kooi
breaks the build (from poky)
2010-04-15kernel bbclass: don't depend on c library (from poky)Koen Kooi
2010-04-14kernel.bbclass: s!D!PKGD! (trivial)Enrico Scholz
Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-03-04kernel.bbclass: pass ${KERNEL_VERSION} to depmod -aMichael Smith
The postinsts for kernel-image and modules run "depmod -a" on the target, but this only updates the old kernel's modules.dep. "depmod -a ${KERNEL_VERSION}" updates the files in /lib/modules/${KERNEL_VERSION}. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-02-16kernel.bbclass: prepare for 2.6.33 header move and simplify logic a bitKoen Kooi
2010-02-14zaurus-kernels: move the kernel size check to linux-kexecboot.inc.Andrea Adami
* no need for DONT_CHECK_KERNELSIZE * clean up the affected files * check happens only if KERNEL_IMAGE_MAXSIZE is set
2010-02-03kernel.bbclass: Fix pstaging do_deploy.Tom Rini
We need to add ${S}/${KERNEL_OUTPUT} with package_stagefile_shell to avoid playing more complex games with the install line. We should also use package_stagefile_shell on the modules tarball as that will not otherwise be reproduced.
2010-01-29Revert "kernel.bbclass only install image in do_deploy if not installing ↵Frans Meulenbroeks
from packaged staging" This reverts commit 61acb940a7436a43d0894284d25e8d106f461c23. This patch is not as robust as I thought, will reassess the issue at hand later Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-01-29kernel.bbclass only install image in do_deploy if not installing from ↵Frans Meulenbroeks
packaged staging kernel.bbclass do_deploy has: install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin which expands to install -m 0644 arch/arm/boot/uImage .../deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin but in packaged staging arch/arm/boot/uImage does not exist so we get the error: install: cannot stat `arch/arm/boot/uImage': No such file or directory This patch only installs uImage if not using packaged staging Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-01-21kernel.bbclass: fix kernel build, version >= 2.6.33-rc1, arch x86Aleksey Makarov
* Apply the same change as c0a3e91845fad1cdda723bdcf962de8bc01f8a2d for x86 path * A check was missed in the x86 path of the stage method. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2009-12-31kernel.bbclass: copy gz, lzo, lzma initramfs cpio images. - since 2.6.30 ↵Andrea Adami
there is choice between gzip and lzma for the initramfs.cpio - in patchwork there are pending patches for lzo compressor, so we add lzo too - patch is only concerning initramfs images
2009-12-23kernel, linux-kernel-base classes: update for 2.6.33-rc1 and newerMartin Jansa
* include/asm link was killed in http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f7f16b7799ed68654850ab340ef812895aebcf4c * utsrelease.h was moved in http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=273b281fa22c293963ee3e6eec418f5dda2dbc83 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2009-11-23kernel.bbclass: force do_deploy call before do_buildMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2009-11-23kernel.bbclass, linux.inc: move do_deploy task after do_packageMartin Jansa
* Move do_deploy after do_package in kernel.bbclass as RP said * Move devicetree_image before do_deploy in linux.inc, because it creates dependency loop if its between after do_package and before do_deploy. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2009-11-23kernel.bbclass: do_deploy modules.tgz should operating on PKGDRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-18move menuconfig task from "after do_patch" to "after do_configure";Phil Blundell
patch from Przemyslaw Wesolek <przemyslaw.wesolek@cs.put.poznan.pl>
2009-11-16kernel.bbclass: Revert import os removal for nowRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-16classes: Drop a number of unneeded import calls (from Poky)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-14kernel.bbclass: Fix populate_packaged 'D' referencesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-20kernel.bbclass: fix ownership inside the modules tarballDenys Dmytriyenko
Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Khem Raj <raj.khem@gmail.com>
2009-08-24kernel.bbclass: Set EXTRA_OEMAKE to null for kernelDale Farnsworth
Currently the only thing in EXTRA_OEMAKE is '-e MAKEFLAGS='. We don't want to overide the kernel's Makefile variables from the environment. It caused the passed -j<N> parameter from PARALLEL_MAKE to be ignored. Signed-off-by: Dale Farnsworth <dfarnsworth@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
2009-08-24kernel.bbclass: Install & package symvers as /boot/Module.symvers-<ver>.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Michael Smith <msmith@cbnco.com>
2009-08-22kernel.bbclass: stage more include files for x86 in 2.6.27+Michael Smith
Some packages include <linux/types.h>, which requires <asm/types.h>. Supplement b6220af33a70d96345dea130005ce842eeadfdf5 to copy files from arch/x86/include/asm to include/asm-x86. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Roman I Khimov <khimov@altell.ru>
2009-08-14kernel.bbclass: introduce MODULES_IMAGE_BASE_NAMEDenys Dmytriyenko
Similar to KERNEL_IMAGE_BASE_NAME, allow overwriting from a recipe Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Henning Heinold <heinold@inf.fu-berlin.de>
2009-07-31kernel.bbclass : moved uImage creation from do_deploy to between do_compileGraham Gower
and do_install as discussed on ML. linux.inc : removed uImage creation, its now in kernel.bbclass Signed-off-by: Graham Gower <graham.gower@gmail.com> Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Koen Kooi <koen@openembedded.org>