generic-poky/meta
Darren Hart 3b49416fc7 kernel/bbclass: rework kernel and module classes to allow for building 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-23 15:43:46 +00:00
..
classes kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules 2011-03-23 15:43:46 +00:00
conf bitbake.conf: Increase image overhead factor to account for rpm/zypper database size 2011-03-18 16:50:24 +00:00
files Fixing my bad license parsing: license.bbclass 2011-02-26 14:04:41 -08:00
lib/oe qa.py: Fix a typo when evaluating bitsize 2011-03-03 23:49:19 +00:00
recipes-bsp formfactor: Assume HAVE_TOUCHSCREEN=0 2011-03-16 13:54:29 +00:00
recipes-connectivity nfs-utils: fix "sh: bad number" error on start/stop of nfsserver 2011-03-18 23:23:30 +00:00
recipes-core initscripts: Make umountfs a bit more robust, bump PR 2011-03-18 23:23:31 +00:00
recipes-devtools qemu: enabling the alsa driver needs alsa in DEPENDS, add it 2011-03-23 15:43:44 +00:00
recipes-extended msmtp: add link sendmail for lsb command check 2011-03-23 15:43:45 +00:00
recipes-gnome gnome-vfs: Force acl to be disabled since its not a dependency 2011-03-17 12:33:50 +00:00
recipes-graphics xserver-nodm-init: Mark as machine specific after recent rootless X changes 2011-03-19 01:31:22 +00:00
recipes-kernel kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules 2011-03-23 15:43:46 +00:00
recipes-multimedia alsa-lib: extend to -native for qemu-native 2011-03-23 15:43:43 +00:00
recipes-qt Update SRC_URIs to use BPN instead of PN 2011-03-14 22:36:25 +00:00
recipes-sato task-base, task-poky-basic, task-poky: Remove hard-coded references to dropbear 2011-03-16 13:54:30 +00:00
recipes-support db: Fix path of arm-thumb patch 2011-03-18 23:23:31 +00:00
site site/x86_x64: add entry to fix x86_64 compile errors 2011-02-01 14:54:39 +00:00
COPYING.MIT Add missing licence files (COPYING.MIT) 2006-07-23 13:52:32 +00:00
recipes.txt Major layout change to the packages directory 2010-08-27 15:29:45 +01:00