Skip to contentSkip to conversation

builddeb: Use aarch64 instead of arm64 for UTS_MACHINE

PATCH New Will Deacon 2 participants 2 messages Dec 9, 2016 – Dec 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builddeb: Use aarch64 instead of arm64 for UTS_MACHINE

From: Michal Marek <[email protected]>

On arm64-based systems, uname -m reports "aarch64", so this is what we should be using for UTS_MACHINE and matching that in the builddeb script instead of "arm64".

There was a patch fixing this:

https://patchwork.kernel.org/patch/9305483/

but I accidentally merged v1 of the patch, which omitted the update to builddeb. This patch follows up with that missing hunk.

[will: salvaged missing hunk from original patch]
---
 scripts/package/builddeb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/builddeb +1 -1
index 8ea9fd2b6573..9530b1634a02 100755
@@ -51,7 +51,7 @@ set_debarch() {
 		debarch=hppa ;;
 	mips*)
 		debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
-	arm64)
+	aarch64*)
 		debarch=arm64 ;;
 	arm*)
 		if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 builddeb: Use aarch64 instead of arm64 for UTS_MACHINE

Hi Will,

Just found out that a similar patch was submitted earlier back in Nov.

https://patchwork.kernel.org/patch/9444665/

Thanks!

Quoted 37 lines · Will Deacon

From: Michal Marek <[email protected]>

On arm64-based systems, uname -m reports "aarch64", so this is what we should be using for UTS_MACHINE and matching that in the builddeb script instead of "arm64".

There was a patch fixing this:

https://patchwork.kernel.org/patch/9305483/

but I accidentally merged v1 of the patch, which omitted the update to builddeb. This patch follows up with that missing hunk.

[will: salvaged missing hunk from original patch]
---
 scripts/package/builddeb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/builddeb +1 -2
index 8ea9fd2b6573..9530b1634a02 100755
@@ -51,7 +51,7 @@ set_debarch() {
                debarch=hppa ;;
        mips*)
                debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
-       arm64)
+       aarch64*)
                debarch=arm64 ;;
        arm*)
                if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then
--

2.1.4