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. (From OE-Core rev: e36ac3ab3a7fe02c7eeb3998ff33c001ab795841) Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f4d3a3dc32
commit
029b0fef50
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue