summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/u-boot.inc
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-10-07 17:46:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-25 13:42:03 +0100
commit6ba44ce2eef26ec3ad08f0e50466d4b066e7672e (patch)
tree03fa97f07fc3afb5aab96b10d8a25413ebbc0777 /meta/recipes-bsp/u-boot/u-boot.inc
parent691fb631a2b3f7c79ec9918aa0c468f9d49342b4 (diff)
downloadpoky-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/u-boot/u-boot.inc')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc7
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
27require u-boot-configure.inc 27require u-boot-configure.inc
28 28
29do_savedefconfig() {
30 bbplain "Saving defconfig to:\n${B}/defconfig"
31 oe_runmake -C ${B} savedefconfig
32}
33do_savedefconfig[nostamp] = "1"
34addtask savedefconfig after do_configure
35
29do_compile () { 36do_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