public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] build: normalize arm targets
@ 2025-03-26 20:14 Julian Wundrak
  2025-03-26 20:29 ` Stefano Brivio
  0 siblings, 1 reply; 6+ messages in thread
From: Julian Wundrak @ 2025-03-26 20:14 UTC (permalink / raw)
  To: passt-dev; +Cc: Julian Wundrak

Linux distributions use different dumpmachine outputs for the ARM
architecture. arm, armv6l, armv7l.
For the syscall annotation, these variants are standardized to “arm”.

Signed-off-by: Julian Wundrak <julian@wundrak.net>
---
Hey everyone,

This resolves bug #117. 
I hope I did everything correctly, because this is the first time I have
had to submit a patch via git send emails.

Julian


 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 31cbac3..1b83234 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ $(if $(TARGET),,$(error Failed to get target architecture))
 # Get 'uname -m'-like architecture description for target
 TARGET_ARCH := $(firstword $(subst -, ,$(TARGET)))
 TARGET_ARCH := $(patsubst [:upper:],[:lower:],$(TARGET_ARCH))
+TARGET_ARCH := $(patsubst arm%,arm,$(TARGET))
 TARGET_ARCH := $(subst powerpc,ppc,$(TARGET_ARCH))
 
 # On some systems enabling optimization also enables source fortification,
-- 
@@ -20,6 +20,7 @@ $(if $(TARGET),,$(error Failed to get target architecture))
 # Get 'uname -m'-like architecture description for target
 TARGET_ARCH := $(firstword $(subst -, ,$(TARGET)))
 TARGET_ARCH := $(patsubst [:upper:],[:lower:],$(TARGET_ARCH))
+TARGET_ARCH := $(patsubst arm%,arm,$(TARGET))
 TARGET_ARCH := $(subst powerpc,ppc,$(TARGET_ARCH))
 
 # On some systems enabling optimization also enables source fortification,
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] build: normalize arm targets
@ 2025-03-26 20:38 Julian Wundrak
  0 siblings, 0 replies; 6+ messages in thread
From: Julian Wundrak @ 2025-03-26 20:38 UTC (permalink / raw)
  To: passt-dev; +Cc: Julian Wundrak

Linux distributions use different dumpmachine outputs for the ARM
architecture. arm, armv6l, armv7l.
For the syscall annotation, these variants are standardized to “arm”.

Signed-off-by: Julian Wundrak <julian@wundrak.net>
---
Argh, same problem with target instead of target_arch as in comment.
I squashed it, but I'm not sure, how this works with the mails.

Sorry for the overhead!
Julian

 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 31cbac3..3328f83 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ $(if $(TARGET),,$(error Failed to get target architecture))
 # Get 'uname -m'-like architecture description for target
 TARGET_ARCH := $(firstword $(subst -, ,$(TARGET)))
 TARGET_ARCH := $(patsubst [:upper:],[:lower:],$(TARGET_ARCH))
+TARGET_ARCH := $(patsubst arm%,arm,$(TARGET_ARCH))
 TARGET_ARCH := $(subst powerpc,ppc,$(TARGET_ARCH))
 
 # On some systems enabling optimization also enables source fortification,
-- 
@@ -20,6 +20,7 @@ $(if $(TARGET),,$(error Failed to get target architecture))
 # Get 'uname -m'-like architecture description for target
 TARGET_ARCH := $(firstword $(subst -, ,$(TARGET)))
 TARGET_ARCH := $(patsubst [:upper:],[:lower:],$(TARGET_ARCH))
+TARGET_ARCH := $(patsubst arm%,arm,$(TARGET_ARCH))
 TARGET_ARCH := $(subst powerpc,ppc,$(TARGET_ARCH))
 
 # On some systems enabling optimization also enables source fortification,
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-26 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-26 20:14 [PATCH] build: normalize arm targets Julian Wundrak
2025-03-26 20:29 ` Stefano Brivio
2025-03-26 20:45   ` Stefano Brivio
     [not found]   ` <pmg-aquar-646738-20250326214531.0939b23d@elisabeth>
2025-03-26 21:18     ` Julian Wundrak
2025-03-26 22:15       ` Stefano Brivio
2025-03-26 20:38 Julian Wundrak

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).