Skip to content

Commit 491b146

Browse files
Bastian Germannmasahir0y
authored andcommitted
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>
1 parent 79549da commit 491b146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/package/builddeb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ install_libc_headers () {
209209

210210
# move asm headers to /usr/include/<libc-machine>/asm to match the structure
211211
# used by Debian-based distros (to support multi-arch)
212-
host_arch=$(dpkg-architecture -a$(cat debian/arch) -qDEB_HOST_MULTIARCH)
212+
host_arch=$(dpkg-architecture -a$DEB_HOST_ARCH -qDEB_HOST_MULTIARCH)
213213
mkdir $pdir/usr/include/$host_arch
214214
mv $pdir/usr/include/asm $pdir/usr/include/$host_arch/
215215
}

0 commit comments

Comments
 (0)