[PATCH 2/2] Fix u-boot build for u-boot-de0-nano-soc for buster:

0 views
Skip to first unread message

Uladzimir Bely

unread,
Feb 18, 2026, 4:06:25 AM (yesterday) Feb 18
to isar-...@googlegroups.com
Bypass the following build error:

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_install
dh_installdocs
dh_installchangelogs
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_dwz
dwz: Too few files for multifile optimization
arm-linux-gnueabihf-objcopy: 'debian/u-boot-tools/usr/lib/debug/.dwz/arm-linux-gnueabihf/u-boot-tools.debug': No such file
dh_dwz: arm-linux-gnueabihf-objcopy --compress-debug-sections debian/u-boot-tools/usr/lib/debug/.dwz/arm-linux-gnueabihf/u-boot-tools.debug returned exit code 1
make: *** [debian/rules:34: binary] Error 2

Simply ignore missing debug symbols file.
---
.../recipes-bsp/u-boot/u-boot-de0-nano-soc_2020.10.bb | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2020.10.bb b/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2020.10.bb
index feecd96d..bc84bc8c 100644
--- a/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2020.10.bb
+++ b/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2020.10.bb
@@ -9,3 +9,11 @@ require u-boot-${PV}.inc
U_BOOT_TOOLS_PACKAGE = "1"

COMPATIBLE_MACHINE = "^(de0-nano-soc)$"
+
+do_prepare_build:buster:append() {
+ echo =-=-=
+cat << _EOF_ >> ${S}/debian/rules
+override_dh_dwz:
+ dh_dwz || :
+_EOF_
+}
--
2.52.0

Reply all
Reply to author
Forward
0 new messages