Skip to contentSkip to conversation

kbuild: deb-pkg: add debarch for ARCH=um

PATCH In review Masahiro Yamada 2 participants 2 messages Dec 3, 2024 – Dec 12, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 scripts/package/mkdebian | 7 +++++++
 1 file changed, 7 insertions(+)
scripts/package/mkdebian +7 -0
index 4ffcc70f8e31..b038a1380b8a 100755
@@ -70,6 +70,13 @@ set_debarch() {
 			debarch=sh4$(if_enabled_echo CONFIG_CPU_BIG_ENDIAN eb)
 		fi
 		;;
+	um)
+		if is_enabled CONFIG_64BIT; then
+			debarch=amd64
+		else
+			debarch=i386
+		fi
+		;;
 	esac
 	if [ -z "$debarch" ]; then
 		debarch=$(dpkg-architecture -qDEB_HOST_ARCH)
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 43 lines · Masahiro Yamada

'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.

---

 scripts/package/mkdebian | 7 +++++++
 1 file changed, 7 insertions(+)
scripts/package/mkdebian +7 -0
index 4ffcc70f8e31..b038a1380b8a 100755
@@ -70,6 +70,13 @@ set_debarch() {
 			debarch=sh4$(if_enabled_echo CONFIG_CPU_BIG_ENDIAN eb)
 		fi
 		;;
+	um)
+		if is_enabled CONFIG_64BIT; then
+			debarch=amd64
+		else
+			debarch=i386
+		fi
+		;;
 	esac
 	if [ -z "$debarch" ]; then
 		debarch=$(dpkg-architecture -qDEB_HOST_ARCH)
Signature · 1 line
2.43.0