From: Alex Kiernan Date: Fri, 7 Oct 2022 16:46:43 +0000 (+0100) Subject: u-boot: Add savedefconfig task X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2832 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efc54f1f836651c8ef27a683a9e5d583c8ce87a6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git u-boot: Add savedefconfig task Add savedefconfig task which U-Boot supports (unfortunately not all consumers of cml1 support this). Signed-off-by: Alex Kiernan Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index b2f33e38266..5705e5835b2 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc @@ -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