[oe-commits] Nobuhiro Iwamatsu : kernel.bbclass: unset LDFLAGS when run devshell in kernel recipe

git at git.openembedded.org git at git.openembedded.org
Mon Oct 7 11:39:19 UTC 2013


Module: openembedded-core.git
Branch: master-next-1.6
Commit: b2b98d7886dfd0576a016289937602abcac5498e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b2b98d7886dfd0576a016289937602abcac5498e

Author: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
Date:   Fri Sep 20 14:45:46 2013 +0900

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.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/kernel.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4acfb7e..f40ea89 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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() {



More information about the Openembedded-commits mailing list