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

* Re: [PATCH] build: normalize arm targets
  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>
  0 siblings, 2 replies; 6+ messages in thread
From: Stefano Brivio @ 2025-03-26 20:29 UTC (permalink / raw)
  To: Julian Wundrak; +Cc: passt-dev

Hi Julian,

On Wed, 26 Mar 2025 20:14:31 +0000
Julian Wundrak <julian@wundrak.net> wrote:

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

Then you got it right on the first attempt! I'll just add a tag in the
commit message:

Link: https://bugs.passt.top/show_bug.cgi?id=117

...and I'll run tests, then apply it.

-- 
Stefano


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

* Re: [PATCH] build: normalize arm targets
  2025-03-26 20:29 ` Stefano Brivio
@ 2025-03-26 20:45   ` Stefano Brivio
       [not found]   ` <pmg-aquar-646738-20250326214531.0939b23d@elisabeth>
  1 sibling, 0 replies; 6+ messages in thread
From: Stefano Brivio @ 2025-03-26 20:45 UTC (permalink / raw)
  To: Julian Wundrak; +Cc: passt-dev

On Wed, 26 Mar 2025 21:29:02 +0100
Stefano Brivio <sbrivio@redhat.com> wrote:

> Hi Julian,
> 
> On Wed, 26 Mar 2025 20:14:31 +0000
> Julian Wundrak <julian@wundrak.net> wrote:
> 
> > 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.  
> 
> Then you got it right on the first attempt! I'll just add a tag in the
> commit message:
> 
> Link: https://bugs.passt.top/show_bug.cgi?id=117
> 
> ...and I'll run tests, then apply it.

...almost: you forgot to fix this as you mentioned in:

  https://bugs.passt.top/show_bug.cgi?id=117#c3

I'm fixing it up on merge as it's a trivial typo.

-- 
Stefano


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

* RE: [PATCH] build: normalize arm targets
       [not found]   ` <pmg-aquar-646738-20250326214531.0939b23d@elisabeth>
@ 2025-03-26 21:18     ` Julian Wundrak
  2025-03-26 22:15       ` Stefano Brivio
  0 siblings, 1 reply; 6+ messages in thread
From: Julian Wundrak @ 2025-03-26 21:18 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: passt-dev

Thanks Stefano,

Sorry for this stupid error and the overhead.

---
 
Von: "Stefano Brivio" <sbrivio@redhat.com> 
 An: "Julian Wundrak" <julian@wundrak.net> 
Cc: "undefined" <passt-dev@passt.top>
Gesendet: Mittwoch, 26. März 2025 21:45 
 Betreff: Re: [PATCH] build: normalize arm targets 

On Wed, 26 Mar 2025 21:29:02 +0100
Stefano Brivio  wrote:

> Hi Julian,
> 
> On Wed, 26 Mar 2025 20:14:31 +0000
> Julian Wundrak  wrote:
> 
> > 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 
> > ---
> > 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.  
> 
> Then you got it right on the first attempt! I'll just add a tag in the
> commit message:
> 
> Link: https://bugs.passt.top/show_bug.cgi?id=117
> 
> ...and I'll run tests, then apply it.

...almost: you forgot to fix this as you mentioned in:

  https://bugs.passt.top/show_bug.cgi?id=117#c3

I'm fixing it up on merge as it's a trivial typo.

-- 
Stefano




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

* Re: [PATCH] build: normalize arm targets
  2025-03-26 21:18     ` Julian Wundrak
@ 2025-03-26 22:15       ` Stefano Brivio
  0 siblings, 0 replies; 6+ messages in thread
From: Stefano Brivio @ 2025-03-26 22:15 UTC (permalink / raw)
  To: Julian Wundrak; +Cc: passt-dev

On Wed, 26 Mar 2025 21:18:57 +0000 (UTC)
Julian Wundrak <julian@wundrak.net> wrote:

> Thanks Stefano,
> 
> Sorry for this stupid error and the overhead.

No worries, thanks for the fix, patch applied, welcome to the git log!

-- 
Stefano


^ permalink raw reply	[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).