diff options
author | Bastian Germann <bage@linutronix.de> | 2023-03-14 01:40:22 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-04-17 11:03:56 +0900 |
commit | 491b146d4c13908a23436bd44dc1f01d1a0a99e6 (patch) | |
tree | a18477e0118690a5e7de81035127a9892f397afa /scripts | |
parent | 79549da691edd4874c19d99c578a134471817c47 (diff) | |
download | linux-491b146d4c13908a23436bd44dc1f01d1a0a99e6.tar.gz linux-491b146d4c13908a23436bd44dc1f01d1a0a99e6.tar.bz2 linux-491b146d4c13908a23436bd44dc1f01d1a0a99e6.zip |
kbuild: builddeb: Eliminate debian/arch use
In the builddeb context, the DEB_HOST_ARCH environment variable is set
to the same value as debian/arch's content, so use the variable with
dpkg-architecture.
This is the last use of the debian/arch file during dpkg-buildpackage time.
Signed-off-by: Bastian Germann <bage@linutronix.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/builddeb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 7b23f52c70c5..252faaa5561c 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -209,7 +209,7 @@ install_libc_headers () { # move asm headers to /usr/include/<libc-machine>/asm to match the structure # used by Debian-based distros (to support multi-arch) - host_arch=$(dpkg-architecture -a$(cat debian/arch) -qDEB_HOST_MULTIARCH) + host_arch=$(dpkg-architecture -a$DEB_HOST_ARCH -qDEB_HOST_MULTIARCH) mkdir $pdir/usr/include/$host_arch mv $pdir/usr/include/asm $pdir/usr/include/$host_arch/ } |