u-boot: Add savedefconfig task

Add savedefconfig task which U-Boot supports (unfortunately not all
consumers of cml1 support this).

(From OE-Core rev: efc54f1f836651c8ef27a683a9e5d583c8ce87a6)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alex Kiernan
2022-10-07 17:46:43 +01:00
committed by Richard Purdie
parent 691fb631a2
commit 6ba44ce2ee

View File

@@ -26,6 +26,13 @@ UBOOT_LOCALVERSION ?= ""
require u-boot-configure.inc
do_savedefconfig() {
bbplain "Saving defconfig to:\n${B}/defconfig"
oe_runmake -C ${B} savedefconfig
}
do_savedefconfig[nostamp] = "1"
addtask savedefconfig after do_configure
do_compile () {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then
sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk