]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: unset LDFLAGS when run devshell in kernel recipe
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 20 Sep 2013 05:45:46 +0000 (14:45 +0900)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:54:26 +0000 (16:54 +0100)
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 <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 4acfb7e2b649c006c765b8d90af2dcfecd8b248a..f40ea8985d6c1f39292c0adc7e91b63c7dac17d9 100644 (file)
@@ -147,6 +147,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() {