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

Message ID 20260218090615.4034500-3-ubely@ilbers.de
State New
Headers show
Series Fix build failures on de0-nano-soc-buster | expand

Commit Message

Uladzimir Bely Feb. 18, 2026, 9:04 a.m. UTC
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(+)

Patch

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_
+}