[OE-core] [PATCH][RFC] kernel.bbclass: unset LDFLAGS when run devshell in kernel recipe
Nobuhiro Iwamatsu
nobuhiro.iwamatsu.yj at renesas.com
Fri Sep 20 05:45:46 UTC 2013
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>
---
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
More information about the Openembedded-core
mailing list