[elbe-devel] [PATCH] debianize u-boot: Add cross-build dependencies
bage at linutronix.de
bage at linutronix.de
Thu Jun 18 17:49:19 CEST 2020
From: "Ahmed S. Darwish" <a.darwish at linutronix.de>
Complete the list of u-boot build dependencies, so it can also be cross
compiled using `dpkg-buildpackage -a ${p_arch} -us -uc`.
Debian packages "which can satisfy dependencies of a package of a
different architecture" should mark themselves with:
Multi-Arch: foreign
Correctly, this is the case for debian packages like make, gzip, flex,
bison, etc.
lzop should've marked itself similarly, but it doesn't do so.
Cross-building u-boot's debian package thus leads to the error:
dpkg-checkbuilddeps: error: Unmet build dependencies: lzop
So force-use "lzop:native" in the u-boot build deps. As stated in the
Multiarch HOWTO:
"Any exceptions to the default rules are marked package:any
or package:native in the package source."
Link: https://wiki.debian.org/Multiarch/HOWTO
Signed-off-by: Ahmed S. Darwish <a.darwish at linutronix.de>
Reviewed-by: Kurt Kanzenbach <kurt at linutronix.de>
---
elbepack/makofiles/debianize/u-boot/control.mako | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/elbepack/makofiles/debianize/u-boot/control.mako b/elbepack/makofiles/debianize/u-boot/control.mako
index f76d48b83..261a08372 100644
--- a/elbepack/makofiles/debianize/u-boot/control.mako
+++ b/elbepack/makofiles/debianize/u-boot/control.mako
@@ -7,7 +7,14 @@ Source: u-boot-${p_name}-${k_version}
Section: admin
Priority: optional
Maintainer: ${m_name} <${m_mail}>
-Build-Depends: debhelper (>= 9), bc
+Build-Depends:
+ debhelper (>= 9),
+ bc,
+ bison,
+ device-tree-compiler,
+ debhelper,
+ flex,
+ lzop:native,
Standards-Version: 3.8.4
Homepage: http://www.denx.de/wiki/U-Boot/
More information about the elbe-devel
mailing list