Skip to content

Commit

Permalink
kernel.bbclass: pass LD also in savedefconfig
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
shr-project authored and rpurdie committed Jul 25, 2022
1 parent 3a58988 commit f0c9e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/classes/kernel.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0c9e1b

Please sign in to comment.