History

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.

Masahiro Yamada committed 1 year ago

Commit a34e92d1 parent d67393f1 file · +7 −0Browse files

Unified · Split

scripts/package/mkdebian+7−0
@@ -70,6 +70,13 @@ set_debarch() { · 69 unmodified lines
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)