]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-tools: fix libyaml linker error main master 22927/head
authorShiji Yang <yangshiji66@outlook.com>
Tue, 14 Apr 2026 13:52:50 +0000 (21:52 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 14 Apr 2026 17:17:47 +0000 (19:17 +0200)
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 <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22927
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/uboot-tools/Makefile

index 38cf4027d44df4304415f537e7bb62125c5ce1e8..85657b351c8fc6deb15711c61af09d673cc54c07 100644 (file)
@@ -82,7 +82,7 @@ MAKE_FLAGS += \
        ARCH="sandbox" \
        TARGET_CFLAGS="$(TARGET_CFLAGS)" \
        TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
        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,)
 
        NO_PYTHON=1 \
        V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1,)