On Thu, 22 Jan 2026 04:28:53 -0500, Greg Malysa wrote:
> When building with a toolchain that uses a modified sysroot (such as a
> Yocto-generated SDK) that does not include libyaml, on a host that does
> have libyaml, building dtc will fail with errors like:
>
> HOSTLD scripts/dtc/dtc
> /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:
> scripts/dtc/yamltree.o: in function `yaml_propval_int':
> yamltree.c:(.text+0x167): undefined reference to
> `yaml_sequence_start_event_initialize'
> /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:
> yamltree.c:(.text+0x172): undefined reference to `yaml_emitter_emit'
> /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:
> yamltree.c:(.text+0x1e8): undefined reference to
> `yaml_scalar_event_initialize'
> /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:
> yamltree.c:(.text+0x1f5): undefined reference to `yaml_emitter_emit'
>
> [...]
Applied to u-boot/master, thanks!
[1/1] scripts/dtc: Fix pkg-config behavior under sysroot
commit: 807bcd844afeadbfe47ac132524cc7e3b699bc46
--
Tom