* [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
@ 2026-05-07 20:40 Ricardo Salveti
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Ricardo Salveti @ 2026-05-07 20:40 UTC (permalink / raw)
To: openembedded-core
Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
This issue is because the v1 of the patch was merged instead the v2 (which
is also not fully correct as it is not patching u-boot-tools). Drop the
patch from SRC_URI_RISCV and move it to u-boot-common.inc so it is applied
consistently to both u-boot and u-boot-tools.
Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
---
meta/recipes-bsp/u-boot/u-boot-common.inc | 5 ++++-
meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 1 -
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 574768b9f8..15e94a4e37 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -14,7 +14,10 @@ PE = "1"
# repo during parse
SRCREV = "88dc2788777babfd6322fa655df549a019aa1e69"
-SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV}"
+SRC_URI = "\
+ git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV} \
+ file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
+"
B = "${WORKDIR}/build"
diff --git a/meta/recipes-bsp/u-boot/u-boot_2026.04.bb b/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
index 9f09d91daa..5259fd5832 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
@@ -14,7 +14,6 @@ SRC_URI_RISCV = "\
${@bb.utils.contains ("TUNE_FEATURES", "d", "file://u-boot-riscv-isa_d.cfg", "", d)} \
${@bb.utils.contains_any("TUNE_FEATURES", "b zbb", "file://u-boot-riscv-isa_zbb.cfg", "", d)} \
${@bb.utils.contains ("TUNE_FEATURES", "zicbom", "file://u-boot-riscv-isa_zicbom.cfg", "", d)} \
- file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
"
SRC_URI:append:riscv32 = "${SRC_URI_RISCV}"
--
2.53.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-07 20:40 [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI Ricardo Salveti
@ 2026-05-08 14:35 ` Quentin Schulz
2026-05-08 16:04 ` Ricardo de Araujo (Salveti)
2026-05-08 22:51 ` Joao Marcos Costa
2026-05-08 19:09 ` Dmitry Baryshkov
2026-05-20 0:21 ` [PATCH v2] u-boot: move DT validation yaml removal patch to SRC_URI Ricardo Salveti
2 siblings, 2 replies; 15+ messages in thread
From: Quentin Schulz @ 2026-05-08 14:35 UTC (permalink / raw)
To: ricardo.salveti, openembedded-core
Hi Ricardo,
On 5/7/26 10:40 PM, Ricardo Salveti via lists.openembedded.org wrote:
> Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
> backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
>
> This issue is because the v1 of the patch was merged instead the v2 (which
> is also not fully correct as it is not patching u-boot-tools). Drop the
> patch from SRC_URI_RISCV and move it to u-boot-common.inc so it is applied
> consistently to both u-boot and u-boot-tools.
>
> Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
> Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
> ---
> meta/recipes-bsp/u-boot/u-boot-common.inc | 5 ++++-
> meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 1 -
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> index 574768b9f8..15e94a4e37 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> @@ -14,7 +14,10 @@ PE = "1"
> # repo during parse
> SRCREV = "88dc2788777babfd6322fa655df549a019aa1e69"
>
> -SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV}"
> +SRC_URI = "\
> + git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV} \
> + file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
> +"
>
This means any recipe including recipes-bsp/u-boot/u-boot-common.inc
will need to override SRC_URI in addition to SRCREV otherwise the patch
may not apply.
Wondering if we should move SRCREV and that patch into a
u-boot-2026.04.inc
which we can then include from
meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb
meta/recipes-bsp/u-boot/u-boot_2026.04.bb
with
require u-boot-${PV}.inc
?
Cheers,
Quentin
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
@ 2026-05-08 16:04 ` Ricardo de Araujo (Salveti)
2026-05-08 22:51 ` Joao Marcos Costa
1 sibling, 0 replies; 15+ messages in thread
From: Ricardo de Araujo (Salveti) @ 2026-05-08 16:04 UTC (permalink / raw)
To: Quentin Schulz; +Cc: openembedded-core
On Fri, May 8, 2026 at 11:35 AM Quentin Schulz <quentin.schulz@cherry.de> wrote:
>
> Hi Ricardo,
>
> On 5/7/26 10:40 PM, Ricardo Salveti via lists.openembedded.org wrote:
> > Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
> > backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
> >
> > This issue is because the v1 of the patch was merged instead the v2 (which
> > is also not fully correct as it is not patching u-boot-tools). Drop the
> > patch from SRC_URI_RISCV and move it to u-boot-common.inc so it is applied
> > consistently to both u-boot and u-boot-tools.
> >
> > Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
> > Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
> > ---
> > meta/recipes-bsp/u-boot/u-boot-common.inc | 5 ++++-
> > meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 1 -
> > 2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> > index 574768b9f8..15e94a4e37 100644
> > --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> > +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> > @@ -14,7 +14,10 @@ PE = "1"
> > # repo during parse
> > SRCREV = "88dc2788777babfd6322fa655df549a019aa1e69"
> >
> > -SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV}"
> > +SRC_URI = "\
> > + git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV} \
> > + file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
> > +"
> >
>
> This means any recipe including recipes-bsp/u-boot/u-boot-common.inc
> will need to override SRC_URI in addition to SRCREV otherwise the patch
> may not apply.
>
> Wondering if we should move SRCREV and that patch into a
>
> u-boot-2026.04.inc
>
> which we can then include from
> meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb
> meta/recipes-bsp/u-boot/u-boot_2026.04.bb
>
> with
> require u-boot-${PV}.inc
u-boot-common.inc is really minimal and mostly just to add the common
homepage, license, srcrev and src_uri, so not sure if other variants
should really be including it (e.g. LIC_FILES_CHKSUM could as well
change based on the base version used).
If we move SRCREV and SRC_URI to another common include file then
u-boot-common.inc will just be used to share non-critical variables,
which should probably also be customized by other alternatives (e.g.
HOMEPAGE could be different).
So not sure if this would help much.
Thanks,
Ricardo
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
2026-05-08 16:04 ` Ricardo de Araujo (Salveti)
@ 2026-05-08 22:51 ` Joao Marcos Costa
2026-05-08 23:43 ` Ricardo de Araujo (Salveti)
1 sibling, 1 reply; 15+ messages in thread
From: Joao Marcos Costa @ 2026-05-08 22:51 UTC (permalink / raw)
To: quentin.schulz, ricardo.salveti, openembedded-core
Hello Quentin and Ricardo,
First, thanks @Ricardo for spotting this v1-instead-of-v2 error!
On 5/8/26 16:35, Quentin Schulz via lists.openembedded.org wrote:
(...)
>
> This means any recipe including recipes-bsp/u-boot/u-boot-common.inc
> will need to override SRC_URI in addition to SRCREV otherwise the patch
> may not apply.
It's actually a bit harsher than not applying:
ERROR:
/src/openembedded-core/meta/recipes-bsp/dummy-u-boot/u-boot-foo_2026.04.foo.bb:
Unable to get checksum for u-boot-foo SRC_URI entry
0001-scripts-dtc-drop-yaml-in-DT-validation.patch: file could not be found
so bitbake halts right away, far before do_patch.
While I agree the v2 was not fully correct, this patch cannot be added
to .inc files, since they may be required by recipes whose FILESPATH
list wouldn't include the patch in the first place.
See "72d1f9ec6fc060ea586a61f3da92ffac440f0ded: u-boot: relocate
SRC_URI_RISCV into recipe".
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 22:51 ` Joao Marcos Costa
@ 2026-05-08 23:43 ` Ricardo de Araujo (Salveti)
0 siblings, 0 replies; 15+ messages in thread
From: Ricardo de Araujo (Salveti) @ 2026-05-08 23:43 UTC (permalink / raw)
To: Joao Marcos Costa; +Cc: quentin.schulz, openembedded-core
On Fri, May 8, 2026 at 7:51 PM Joao Marcos Costa
<joaomarcos.costa@bootlin.com> wrote:
>
> Hello Quentin and Ricardo,
>
> First, thanks @Ricardo for spotting this v1-instead-of-v2 error!
>
> On 5/8/26 16:35, Quentin Schulz via lists.openembedded.org wrote:
> (...)
> >
> > This means any recipe including recipes-bsp/u-boot/u-boot-common.inc
> > will need to override SRC_URI in addition to SRCREV otherwise the patch
> > may not apply.
>
> It's actually a bit harsher than not applying:
>
> ERROR:
> /src/openembedded-core/meta/recipes-bsp/dummy-u-boot/u-boot-foo_2026.04.foo.bb:
> Unable to get checksum for u-boot-foo SRC_URI entry
> 0001-scripts-dtc-drop-yaml-in-DT-validation.patch: file could not be found
>
> so bitbake halts right away, far before do_patch.
>
> While I agree the v2 was not fully correct, this patch cannot be added
> to .inc files, since they may be required by recipes whose FILESPATH
> list wouldn't include the patch in the first place.
I don't think it correct to import an .inc and later replace SRCREV
without having to also deal with other side effects, and this inc file
is really minimal, mostly to set the common recipe-related variables,
the dependencies and the source rev for both u-boot and u-boot-tools.
We could duplicate these variables per recipe, or create yet another
common file based on the version (as suggested by Quentin), but I
think it is just an overkill.
If you look at how patches were managed here before, they were always
included together with SRCREV, as it is OK to expect both to be
defined together.
Thanks,
Ricardo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-07 20:40 [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI Ricardo Salveti
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
@ 2026-05-08 19:09 ` Dmitry Baryshkov
2026-05-08 20:57 ` Ricardo de Araujo (Salveti)
2026-05-08 22:55 ` [OE-core] " Joao Marcos Costa
2026-05-20 0:21 ` [PATCH v2] u-boot: move DT validation yaml removal patch to SRC_URI Ricardo Salveti
2 siblings, 2 replies; 15+ messages in thread
From: Dmitry Baryshkov @ 2026-05-08 19:09 UTC (permalink / raw)
To: Ricardo Salveti; +Cc: openembedded-core
On Thu, May 07, 2026 at 05:40:18PM -0300, Ricardo Salveti wrote:
> Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
> backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
>
> This issue is because the v1 of the patch was merged instead the v2 (which
> is also not fully correct as it is not patching u-boot-tools). Drop the
> patch from SRC_URI_RISCV and move it to u-boot-common.inc so it is applied
> consistently to both u-boot and u-boot-tools.
>
> Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
> Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
> ---
> meta/recipes-bsp/u-boot/u-boot-common.inc | 5 ++++-
> meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 1 -
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> index 574768b9f8..15e94a4e37 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> @@ -14,7 +14,10 @@ PE = "1"
> # repo during parse
> SRCREV = "88dc2788777babfd6322fa655df549a019aa1e69"
>
> -SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV}"
> +SRC_URI = "\
> + git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV} \
> + file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
We are fetching the source basing on the PV. The patch might be
applicable or might not. I'd suggest listing the patch twice: in the
u-boot_2026.04.bb and u-boot-tools_2026.04.bb.
(in fact I did that in a local patch, it's good that I checked the ML
before sending it).
> +"
>
> B = "${WORKDIR}/build"
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 19:09 ` Dmitry Baryshkov
@ 2026-05-08 20:57 ` Ricardo de Araujo (Salveti)
2026-05-08 22:55 ` [OE-core] " Joao Marcos Costa
1 sibling, 0 replies; 15+ messages in thread
From: Ricardo de Araujo (Salveti) @ 2026-05-08 20:57 UTC (permalink / raw)
To: Dmitry Baryshkov; +Cc: openembedded-core
On Fri, May 8, 2026 at 4:09 PM Dmitry Baryshkov
<dmitry.baryshkov@oss.qualcomm.com> wrote:
> On Thu, May 07, 2026 at 05:40:18PM -0300, Ricardo Salveti wrote:
> > Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
> > backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
> >
> > This issue is because the v1 of the patch was merged instead the v2 (which
> > is also not fully correct as it is not patching u-boot-tools). Drop the
> > patch from SRC_URI_RISCV and move it to u-boot-common.inc so it is applied
> > consistently to both u-boot and u-boot-tools.
> >
> > Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
> > Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
> > ---
> > meta/recipes-bsp/u-boot/u-boot-common.inc | 5 ++++-
> > meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 1 -
> > 2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> > index 574768b9f8..15e94a4e37 100644
> > --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> > +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> > @@ -14,7 +14,10 @@ PE = "1"
> > # repo during parse
> > SRCREV = "88dc2788777babfd6322fa655df549a019aa1e69"
> >
> > -SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV}"
> > +SRC_URI = "\
> > + git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master;tag=v${PV} \
> > + file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
>
> We are fetching the source basing on the PV. The patch might be
> applicable or might not. I'd suggest listing the patch twice: in the
> u-boot_2026.04.bb and u-boot-tools_2026.04.bb.
But the SRCREV is part of u-boot-common.inc, so it is aligned with it
anyway (and it was also how patches were managed before here).
If we move the patch it might be better to move everything related to
the version used, and at that point we would end up duplicating most
entries from it anyway.
Cheers,
Ricardo
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 19:09 ` Dmitry Baryshkov
2026-05-08 20:57 ` Ricardo de Araujo (Salveti)
@ 2026-05-08 22:55 ` Joao Marcos Costa
2026-05-18 19:40 ` Michael Opdenacker
1 sibling, 1 reply; 15+ messages in thread
From: Joao Marcos Costa @ 2026-05-08 22:55 UTC (permalink / raw)
To: dmitry.baryshkov, Ricardo Salveti; +Cc: openembedded-core
Hello,
On 5/8/26 21:09, Dmitry Baryshkov via lists.openembedded.org wrote:
(...)
>
> We are fetching the source basing on the PV. The patch might be
> applicable or might not. I'd suggest listing the patch twice: in the
> u-boot_2026.04.bb and u-boot-tools_2026.04.bb.
>
> (in fact I did that in a local patch, it's good that I checked the ML
> before sending it).
I agree with this approach. Also, even if someone does not like seeing
the same patch applied in two different recipes, the patch was already
merged upstream and should be available in v2026.05 (I hope?). So, in
any case, we will drop it soon enough.
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-08 22:55 ` [OE-core] " Joao Marcos Costa
@ 2026-05-18 19:40 ` Michael Opdenacker
2026-05-19 11:59 ` Joao Marcos Costa
0 siblings, 1 reply; 15+ messages in thread
From: Michael Opdenacker @ 2026-05-18 19:40 UTC (permalink / raw)
To: joaomarcos.costa, dmitry.baryshkov, Ricardo Salveti
Cc: michael.opdenacker, openembedded-core
Greetings,
On 5/9/26 12:55 AM, Joao Marcos Costa via lists.openembedded.org wrote:
> Hello,
>
> On 5/8/26 21:09, Dmitry Baryshkov via lists.openembedded.org wrote:
> (...)
>>
>> We are fetching the source basing on the PV. The patch might be
>> applicable or might not. I'd suggest listing the patch twice: in the
>> u-boot_2026.04.bb and u-boot-tools_2026.04.bb.
>>
>> (in fact I did that in a local patch, it's good that I checked the ML
>> before sending it).
>
> I agree with this approach. Also, even if someone does not like seeing
> the same patch applied in two different recipes, the patch was already
> merged upstream and should be available in v2026.05 (I hope?). So, in
> any case, we will drop it soon enough.
Any update on this patch?
Building u-boot-tools on master for the "qemuriscv64" machine is still
broken.
For people facing this too, a workaround is the add back
"libyaml-native" to depends in meta/recipes-bsp/u-boot/u-boot-common.inc
How come the autobuilder didn't catch this issue on one of our
officially supported machines?
Cheers
Michael.
--
Root Commit
Embedded Linux Training and Consulting
https://rootcommit.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-18 19:40 ` Michael Opdenacker
@ 2026-05-19 11:59 ` Joao Marcos Costa
2026-05-19 16:29 ` Michael Opdenacker
0 siblings, 1 reply; 15+ messages in thread
From: Joao Marcos Costa @ 2026-05-19 11:59 UTC (permalink / raw)
To: Michael Opdenacker, dmitry.baryshkov, Ricardo Salveti; +Cc: openembedded-core
Hello, Mike
On 5/18/26 21:40, Michael Opdenacker wrote:
> Greetings,
>
> On 5/9/26 12:55 AM, Joao Marcos Costa via lists.openembedded.org wrote:
>> Hello,
>>
>> On 5/8/26 21:09, Dmitry Baryshkov via lists.openembedded.org wrote:
>> (...)
>>>
>>> We are fetching the source basing on the PV. The patch might be
>>> applicable or might not. I'd suggest listing the patch twice: in the
>>> u-boot_2026.04.bb and u-boot-tools_2026.04.bb.
>>>
>>> (in fact I did that in a local patch, it's good that I checked the ML
>>> before sending it).
>>
>> I agree with this approach. Also, even if someone does not like seeing
>> the same patch applied in two different recipes, the patch was already
>> merged upstream and should be available in v2026.05 (I hope?). So, in
>> any case, we will drop it soon enough.
>
>
> Any update on this patch?
> Building u-boot-tools on master for the "qemuriscv64" machine is still
> broken.
>
> For people facing this too, a workaround is the add back
> "libyaml-native" to depends in meta/recipes-bsp/u-boot/u-boot-common.inc
>
> How come the autobuilder didn't catch this issue on one of our
> officially supported machines?
> Cheers
> Michael.
>
The same patch [1] must be applied to u-boot-tools' sources to fix this,
rather than adding back the dependency.
That said, unfortunately I don't know what is the current status of
Ricardo's patch, nor how come the autobuilder didn't catch this issue.
[1]
meta/recipes-bsp/u-boot/files/0001-scripts-dtc-drop-yaml-in-DT-validation.patch
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-19 11:59 ` Joao Marcos Costa
@ 2026-05-19 16:29 ` Michael Opdenacker
2026-05-19 17:01 ` Ricardo de Araujo (Salveti)
0 siblings, 1 reply; 15+ messages in thread
From: Michael Opdenacker @ 2026-05-19 16:29 UTC (permalink / raw)
To: Joao Marcos Costa, dmitry.baryshkov, Ricardo Salveti
Cc: michael.opdenacker, openembedded-core
On 5/19/26 1:59 PM, Joao Marcos Costa wrote:
>>
>>
>> Any update on this patch?
>> Building u-boot-tools on master for the "qemuriscv64" machine is
>> still broken.
>>
>> For people facing this too, a workaround is the add back
>> "libyaml-native" to depends in meta/recipes-bsp/u-boot/u-boot-common.inc
>>
>> How come the autobuilder didn't catch this issue on one of our
>> officially supported machines?
>> Cheers
>> Michael.
>>
>
> The same patch [1] must be applied to u-boot-tools' sources to fix
> this, rather than adding back the dependency.
>
> That said, unfortunately I don't know what is the current status of
> Ricardo's patch, nor how come the autobuilder didn't catch this issue.
>
> [1]
> meta/recipes-bsp/u-boot/files/0001-scripts-dtc-drop-yaml-in-DT-validation.patch
>
From what I understood, his patch was rejected.
Maybe you should resend your patch if it's still relevant.
Thanks
Michael.
--
Root Commit
Embedded Linux Training and Consulting
https://rootcommit.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-19 16:29 ` Michael Opdenacker
@ 2026-05-19 17:01 ` Ricardo de Araujo (Salveti)
2026-05-19 20:25 ` Dmitry Baryshkov
0 siblings, 1 reply; 15+ messages in thread
From: Ricardo de Araujo (Salveti) @ 2026-05-19 17:01 UTC (permalink / raw)
To: Michael Opdenacker; +Cc: Joao Marcos Costa, dmitry.baryshkov, openembedded-core
On Tue, May 19, 2026 at 1:29 PM Michael Opdenacker
<michael.opdenacker@rootcommit.com> wrote:
> On 5/19/26 1:59 PM, Joao Marcos Costa wrote:
> >>
> >>
> >> Any update on this patch?
> >> Building u-boot-tools on master for the "qemuriscv64" machine is
> >> still broken.
> >>
> >> For people facing this too, a workaround is the add back
> >> "libyaml-native" to depends in meta/recipes-bsp/u-boot/u-boot-common.inc
> >>
> >> How come the autobuilder didn't catch this issue on one of our
> >> officially supported machines?
> >> Cheers
> >> Michael.
> >>
> >
> > The same patch [1] must be applied to u-boot-tools' sources to fix
> > this, rather than adding back the dependency.
> >
> > That said, unfortunately I don't know what is the current status of
> > Ricardo's patch, nor how come the autobuilder didn't catch this issue.
> >
> > [1]
> > meta/recipes-bsp/u-boot/files/0001-scripts-dtc-drop-yaml-in-DT-validation.patch
> >
> From what I understood, his patch was rejected.
It wasn't really rejected, we have basically 3 options to solve the
issue, and the one I decided to use was basically the same one we
already had before here, as I believe adding another common file or
duplicating the patch line just to reuse the common file is not really
that great either.
But I can send another version duplicating the patch line in both
repos, if that is preferred by everyone.
Thanks,
Ricardo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-19 17:01 ` Ricardo de Araujo (Salveti)
@ 2026-05-19 20:25 ` Dmitry Baryshkov
2026-05-20 8:10 ` Joao Marcos Costa
0 siblings, 1 reply; 15+ messages in thread
From: Dmitry Baryshkov @ 2026-05-19 20:25 UTC (permalink / raw)
To: Ricardo de Araujo (Salveti)
Cc: Michael Opdenacker, Joao Marcos Costa, openembedded-core
On Tue, 19 May 2026 at 20:02, Ricardo de Araujo (Salveti)
<ricardo.salveti@oss.qualcomm.com> wrote:
>
> On Tue, May 19, 2026 at 1:29 PM Michael Opdenacker
> <michael.opdenacker@rootcommit.com> wrote:
> > On 5/19/26 1:59 PM, Joao Marcos Costa wrote:
> > >>
> > >>
> > >> Any update on this patch?
> > >> Building u-boot-tools on master for the "qemuriscv64" machine is
> > >> still broken.
> > >>
> > >> For people facing this too, a workaround is the add back
> > >> "libyaml-native" to depends in meta/recipes-bsp/u-boot/u-boot-common.inc
> > >>
> > >> How come the autobuilder didn't catch this issue on one of our
> > >> officially supported machines?
> > >> Cheers
> > >> Michael.
> > >>
> > >
> > > The same patch [1] must be applied to u-boot-tools' sources to fix
> > > this, rather than adding back the dependency.
> > >
> > > That said, unfortunately I don't know what is the current status of
> > > Ricardo's patch, nor how come the autobuilder didn't catch this issue.
> > >
> > > [1]
> > > meta/recipes-bsp/u-boot/files/0001-scripts-dtc-drop-yaml-in-DT-validation.patch
> > >
> > From what I understood, his patch was rejected.
>
> It wasn't really rejected, we have basically 3 options to solve the
> issue, and the one I decided to use was basically the same one we
> already had before here, as I believe adding another common file or
> duplicating the patch line just to reuse the common file is not really
> that great either.
>
> But I can send another version duplicating the patch line in both
> repos, if that is preferred by everyone.
I think that's the best option.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [OE-core] [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI
2026-05-19 20:25 ` Dmitry Baryshkov
@ 2026-05-20 8:10 ` Joao Marcos Costa
0 siblings, 0 replies; 15+ messages in thread
From: Joao Marcos Costa @ 2026-05-20 8:10 UTC (permalink / raw)
To: Dmitry Baryshkov, Ricardo de Araujo (Salveti)
Cc: Michael Opdenacker, openembedded-core
Hello,
On 5/19/26 22:25, Dmitry Baryshkov wrote:
> On Tue, 19 May 2026 at 20:02, Ricardo de Araujo (Salveti)
> <ricardo.salveti@oss.qualcomm.com> wrote:
(...)
>>
>> But I can send another version duplicating the patch line in both
>> repos, if that is preferred by everyone.
>
> I think that's the best option.
So do I (i.e. if you mean in u-boot_2026.04.bb and
u-boot-tools_2026.04.bb). Thanks!
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2] u-boot: move DT validation yaml removal patch to SRC_URI
2026-05-07 20:40 [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI Ricardo Salveti
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
2026-05-08 19:09 ` Dmitry Baryshkov
@ 2026-05-20 0:21 ` Ricardo Salveti
2 siblings, 0 replies; 15+ messages in thread
From: Ricardo Salveti @ 2026-05-20 0:21 UTC (permalink / raw)
To: openembedded-core
Commit 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation") added the
backport through SRC_URI_RISCV, so only RISC-V u-boot builds picked it up.
This issue is because the v1 of the patch was merged instead the v2 (which
is also not fully correct as it is not patching u-boot-tools). Drop the
patch from SRC_URI_RISCV and add it directly to both u-boot_2026.04.bb and
u-boot-tools_2026.04.bb, so it is applied to both recipes without
affecting external recipes including u-boot-common.inc.
Fixes: 5e97f3c1e2cf ("u-boot-tools: drop yaml in DT validation")
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
---
v2:
- Add patch to both u-boot_2026.04.bb and u-boot-tools_2026.04.bb to avoid
breaking recipes including u-boot-common.inc.
meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb | 2 ++
meta/recipes-bsp/u-boot/u-boot_2026.04.bb | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb b/meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb
index 7eaf721ca8..6c3ef7efd1 100644
--- a/meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-tools_2026.04.bb
@@ -1,2 +1,4 @@
require u-boot-common.inc
require u-boot-tools.inc
+
+SRC_URI += "file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch"
diff --git a/meta/recipes-bsp/u-boot/u-boot_2026.04.bb b/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
index 9f09d91daa..92ced8079d 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2026.04.bb
@@ -3,6 +3,8 @@ require u-boot.inc
DEPENDS += "bc-native dtc-native gnutls-native python3-pyelftools-native"
+SRC_URI += "file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch"
+
# workarounds for aarch64 kvm qemu boot regressions
SRC_URI:append:qemuarm64 = " file://disable-CONFIG_BLOBLIST.cfg"
SRC_URI:append:genericarm64 = " file://disable-CONFIG_BLOBLIST.cfg"
@@ -14,7 +16,6 @@ SRC_URI_RISCV = "\
${@bb.utils.contains ("TUNE_FEATURES", "d", "file://u-boot-riscv-isa_d.cfg", "", d)} \
${@bb.utils.contains_any("TUNE_FEATURES", "b zbb", "file://u-boot-riscv-isa_zbb.cfg", "", d)} \
${@bb.utils.contains ("TUNE_FEATURES", "zicbom", "file://u-boot-riscv-isa_zicbom.cfg", "", d)} \
- file://0001-scripts-dtc-drop-yaml-in-DT-validation.patch \
"
SRC_URI:append:riscv32 = "${SRC_URI_RISCV}"
--
2.53.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
end of thread, other threads:[~2026-05-20 8:10 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 20:40 [PATCH] u-boot: move DT validation yaml removal patch to common SRC_URI Ricardo Salveti
2026-05-08 14:35 ` [OE-core] " Quentin Schulz
2026-05-08 16:04 ` Ricardo de Araujo (Salveti)
2026-05-08 22:51 ` Joao Marcos Costa
2026-05-08 23:43 ` Ricardo de Araujo (Salveti)
2026-05-08 19:09 ` Dmitry Baryshkov
2026-05-08 20:57 ` Ricardo de Araujo (Salveti)
2026-05-08 22:55 ` [OE-core] " Joao Marcos Costa
2026-05-18 19:40 ` Michael Opdenacker
2026-05-19 11:59 ` Joao Marcos Costa
2026-05-19 16:29 ` Michael Opdenacker
2026-05-19 17:01 ` Ricardo de Araujo (Salveti)
2026-05-19 20:25 ` Dmitry Baryshkov
2026-05-20 8:10 ` Joao Marcos Costa
2026-05-20 0:21 ` [PATCH v2] u-boot: move DT validation yaml removal patch to SRC_URI Ricardo Salveti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox