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.

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
---
 meta/classes/kernel.bbclass |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 8cf66ce..0bf39e6 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -145,6 +145,11 @@ do_bundle_initramfs () {
        fi
 }
 do_bundle_initramfs[nostamp] = "1"
+
+python do_devshell_prepend () {
+    os.environ["LDFLAGS"] = ''
+}
+
 addtask bundle_initramfs after do_compile
 
 kernel_do_compile() {
-- 
1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to