diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2011-08-05 19:49:00 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-08-05 19:49:59 +0200 |
commit | 3d96cb8778d347d070d32c390f113cb36e4587c9 (patch) | |
tree | a374e1bd9875353b67cdf61954edbf5b288b3d17 /meta-oe/classes | |
parent | 3df1853e1e662e377af332841c3790d7052f5aa3 (diff) | |
download | meta-openembedded-3d96cb8778d347d070d32c390f113cb36e4587c9.tar.gz |
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>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index edf455d8e..862913370 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -186,8 +186,8 @@ sysroot_stage_all_append() { | |||
186 | kernel_do_configure() { | 186 | kernel_do_configure() { |
187 | # Copy defconfig to .config if .config does not exist. This allows | 187 | # Copy defconfig to .config if .config does not exist. This allows |
188 | # recipes to manage the .config themselves in do_configure_prepend(). | 188 | # recipes to manage the .config themselves in do_configure_prepend(). |
189 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${S}/.config" ]; then | 189 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then |
190 | cp "${WORKDIR}/defconfig" "${S}/.config" | 190 | cp "${WORKDIR}/defconfig" "${B}/.config" |
191 | fi | 191 | fi |
192 | 192 | ||
193 | yes '' | oe_runmake oldconfig | 193 | yes '' | oe_runmake oldconfig |