Skip to content

Commit a34e92d

Browse files
committed
kbuild: deb-pkg: add debarch for ARCH=um
'make ARCH=um bindeb-pkg' shows the following warning. $ make ARCH=um bindeb-pkg [snip] GEN debian ** ** ** WARNING ** ** ** Your architecture doesn't have its equivalent Debian userspace architecture defined! Falling back to the current host architecture (amd64). Please add support for um to ./scripts/package/mkdebian ... This commit hard-codes i386/amd64 because UML is only supported for x86. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
1 parent d67393f commit a34e92d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/package/mkdebian

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ set_debarch() {
7070
debarch=sh4$(if_enabled_echo CONFIG_CPU_BIG_ENDIAN eb)
7171
fi
7272
;;
73+
um)
74+
if is_enabled CONFIG_64BIT; then
75+
debarch=amd64
76+
else
77+
debarch=i386
78+
fi
79+
;;
7380
esac
7481
if [ -z "$debarch" ]; then
7582
debarch=$(dpkg-architecture -qDEB_HOST_ARCH)

0 commit comments

Comments
 (0)