summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2013-09-20 14:45:46 +0900
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-14 16:55:23 +0100
commit029b0fef50fb118d4e09ac042338621d19a95bc8 (patch)
treeb4faa65e13558cbfb3113e6a201d64d1b624ec6d
parentf4d3a3dc329a854aae7ac8830e1bdfb94747b1d9 (diff)
downloadpoky-029b0fef50fb118d4e09ac042338621d19a95bc8.tar.gz
kernel.bbclass: unset LDFLAGS when run devshell in kernel recipe
When user runs devshell in kernel recipe and compiles kernel, this will fail by unrecognized option of LD. ---- $ make ... arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1' arm-poky-linux-gnueabi-ld: use the --help option for usage information ---- This set to empty LDFLAGS when user runs the devshell, and solve this problem. (From OE-Core rev: e36ac3ab3a7fe02c7eeb3998ff33c001ab795841) Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4acfb7e2b6..f40ea8985d 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -147,6 +147,11 @@ do_bundle_initramfs () {
147 fi 147 fi
148} 148}
149do_bundle_initramfs[nostamp] = "1" 149do_bundle_initramfs[nostamp] = "1"
150
151python do_devshell_prepend () {
152 os.environ["LDFLAGS"] = ''
153}
154
150addtask bundle_initramfs after do_compile 155addtask bundle_initramfs after do_compile
151 156
152kernel_do_compile() { 157kernel_do_compile() {