]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel.bbclass: pass LD also in savedefconfig
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 24 Jul 2022 19:33:05 +0000 (21:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2022 21:57:54 +0000 (22:57 +0100)
* similar to:
  https://git.openembedded.org/openembedded-core/commit/?id=66c1f4b0abd3483759f9e4141a80f982eaf8ccfd
  https://git.openembedded.org/openembedded-core/commit/?id=36fe2efc91fec5a52374a2dc4814a69076a2d28e
  but for savedefconfig task
* otherwise with ld-is-gold it will fail with:
  gold linker is not supported as it is not capable of linking the kernel proper.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 5d2f17c3be2ef4d6fd300fcb92f61a8fde7e8cf7..61b3e8c95673e6ea863fa2993a342d177d3fb4c4 100644 (file)
@@ -629,7 +629,7 @@ kernel_do_configure() {
 
 do_savedefconfig() {
        bbplain "Saving defconfig to:\n${B}/defconfig"
-       oe_runmake -C ${B} savedefconfig
+       oe_runmake -C ${B} LD='${KERNEL_LD}' savedefconfig
 }
 do_savedefconfig[nostamp] = "1"
 addtask savedefconfig after do_configure