From d644ce0f94ee758d3eb8f64a1a0681342bffff22 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 2 Oct 2023 18:52:35 +0200 Subject: [PATCH] package/sunxi-tools: sunxi-fel needs dynamic library Fix the following build failure raised since bump to version 1.4.2-168-ged3039c in commit 2e330dff6a7ce7965ceb0dccdc9dcbcb329167bb: /home/buildroot/autobuild/run/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-musleabihf/12.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: attempted static link of dynamic object `libfdt/libfdt-1.6.1.so' Fixes: - http://autobuild.buildroot.org/results/6788d86c10d551b3d617e33c85083b817eb5d0b2 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (cherry picked from commit e167800979b48a449c168c229448e7069d2045e7) Signed-off-by: Peter Korsgaard --- package/sunxi-tools/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/sunxi-tools/Config.in b/package/sunxi-tools/Config.in index 14f7da5bf2..16550f4e55 100644 --- a/package/sunxi-tools/Config.in +++ b/package/sunxi-tools/Config.in @@ -23,6 +23,7 @@ config BR2_PACKAGE_SUNXI_TOOLS_BOOTINFO config BR2_PACKAGE_SUNXI_TOOLS_FEL bool "sunxi-fel" + depends on !BR2_STATIC_LIBS # dtc depends on BR2_TOOLCHAIN_HAS_THREADS # libusb depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb select BR2_PACKAGE_DTC @@ -33,8 +34,8 @@ config BR2_PACKAGE_SUNXI_TOOLS_FEL fel mode. This allows do download code to memory and execute it. -comment "sunxi-fel needs a toolchain w/ threads, gcc >= 4.9" - depends on !BR2_TOOLCHAIN_HAS_THREADS || \ +comment "sunxi-fel needs a toolchain w/ dynamic library, threads, gcc >= 4.9" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 config BR2_PACKAGE_SUNXI_TOOLS_NAND_PART