diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-10-07 17:46:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-25 13:42:03 +0100 |
commit | 6ba44ce2eef26ec3ad08f0e50466d4b066e7672e (patch) | |
tree | 03fa97f07fc3afb5aab96b10d8a25413ebbc0777 /meta/recipes-bsp | |
parent | 691fb631a2b3f7c79ec9918aa0c468f9d49342b4 (diff) | |
download | poky-6ba44ce2eef26ec3ad08f0e50466d4b066e7672e.tar.gz |
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>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index b2f33e3826..5705e5835b 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 ?= "" | |||
26 | 26 | ||
27 | require u-boot-configure.inc | 27 | require u-boot-configure.inc |
28 | 28 | ||
29 | do_savedefconfig() { | ||
30 | bbplain "Saving defconfig to:\n${B}/defconfig" | ||
31 | oe_runmake -C ${B} savedefconfig | ||
32 | } | ||
33 | do_savedefconfig[nostamp] = "1" | ||
34 | addtask savedefconfig after do_configure | ||
35 | |||
29 | do_compile () { | 36 | do_compile () { |
30 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then | 37 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then |
31 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk | 38 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk |