From: Shiji Yang Date: Tue, 14 Apr 2026 13:52:50 +0000 (+0800) Subject: uboot-tools: fix libyaml linker error X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e77670e763bad435e5a6b0dce2e63396aa2f3af9;p=thirdparty%2Fopenwrt.git uboot-tools: fix libyaml linker error When we cross build uboot-tools, the dtc tool is still compiled for the host. Therefore, we should not attempt to link the OpenWrt system libraries. CPU architecture mismatch can lead to build errors. Fixes: https://github.com/openwrt/openwrt/issues/22924 Fixes: 55925650aabb ("uboot-tools: update to v2026.04") Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22927 Signed-off-by: Robert Marko --- diff --git a/package/boot/uboot-tools/Makefile b/package/boot/uboot-tools/Makefile index 38cf4027d44..85657b351c8 100644 --- a/package/boot/uboot-tools/Makefile +++ b/package/boot/uboot-tools/Makefile @@ -82,7 +82,7 @@ MAKE_FLAGS += \ ARCH="sandbox" \ TARGET_CFLAGS="$(TARGET_CFLAGS)" \ TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ - PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ + PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR_HOST)" \ NO_PYTHON=1 \ V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1,)