Patchwork [3/7] kernel-yocto: add KBUILD_OUTPUT to OE_TERMINAL_EXPORTS

login
register
mail settings
Submitter Bruce Ashfield
Date Jan. 18, 2013, 5:19 a.m.
Message ID <dfca8aca0cbe20a7094cad0492db210019e9ed3b.1358485481.git.bruce.ashfield@windriver.com>
Download mbox | patch
Permalink /patch/42843/
State Accepted
Commit 486e19d180ae8bfc2693e090f2cd393ebfa86145
Headers show

Comments

Bruce Ashfield - Jan. 18, 2013, 5:19 a.m.
Since linux-yocto based recipes have a split build and source directory,
we should export KBUILD=${B} to the devshell. This allows the kernel to
be incrementally build within the shell and not dirty the source
directory (which breaks subsequent full builds).

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta/classes/kernel-yocto.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 99b3a46..aaee441 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -340,5 +340,6 @@  do_kernel_link_vmlinux() {
 	ln -sf ../../../vmlinux
 }
 
-OE_TERMINAL_EXPORTS += "GUILT_BASE"
+OE_TERMINAL_EXPORTS += "GUILT_BASE KBUILD_OUTPUT"
 GUILT_BASE = "meta"
+KBUILD_OUTPUT = "${B}"