From e77670e763bad435e5a6b0dce2e63396aa2f3af9 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Tue, 14 Apr 2026 21:52:50 +0800 Subject: [PATCH] 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 --- package/boot/uboot-tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,) -- 2.47.3