From e36ac3ab3a7fe02c7eeb3998ff33c001ab795841 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Fri, 20 Sep 2013 14:45:46 +0900 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/kernel.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes/kernel.bbclass') 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 () { fi } do_bundle_initramfs[nostamp] = "1" + +python do_devshell_prepend () { + os.environ["LDFLAGS"] = '' +} + addtask bundle_initramfs after do_compile kernel_do_compile() { -- cgit v1.2.3