Skip to content

Commit e77670e

Browse files
DragonBlueprobimarko
authored andcommitted
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: openwrt/openwrt#22924 Fixes: 5592565 ("uboot-tools: update to v2026.04") Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: openwrt/openwrt#22927 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 9dfc0c3 commit e77670e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/boot/uboot-tools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ MAKE_FLAGS += \
8282
ARCH="sandbox" \
8383
TARGET_CFLAGS="$(TARGET_CFLAGS)" \
8484
TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
85-
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
85+
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR_HOST)" \
8686
NO_PYTHON=1 \
8787
V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1,)
8888

0 commit comments

Comments
 (0)