]> git.baikalelectronics.ru Git - kernel.git/commit
builddeb: Change architecture detection fallback to use dpkg-architecture
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Jul 2018 10:20:45 +0000 (11:20 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 28 Jul 2018 01:53:44 +0000 (10:53 +0900)
commit299cc7a0bafc47edb34d9ab5329b9eb3b2013a23
tree3c1f310fb72ec2ece85485c080311caa5f0ed9bd
parent3499f4c9fa9183cd4c5264b7194590591cb80929
builddeb: Change architecture detection fallback to use dpkg-architecture

We currently use dpkg --print-architecture, which reports the
architecture of the build machine.  We can make a better guess
than this by asking dpkg-architecture what the host architecture,
i.e. the default architecture for building packages, is.  This is
sensitive to environment variables such as CC and DEB_HOST_ARCH,
which should already be set in a cross-build environment.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/package/mkdebian