public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Julian Wundrak <julian@wundrak.net>
To: passt-dev@passt.top
Cc: Julian Wundrak <julian@wundrak.net>
Subject: [PATCH] build: normalize arm targets
Date: Wed, 26 Mar 2025 20:38:45 +0000	[thread overview]
Message-ID: <20250326203844.6063-2-julian@wundrak.net> (raw)

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



             reply	other threads:[~2025-03-26 20:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 20:38 Julian Wundrak [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250326203844.6063-2-julian@wundrak.net \
    --to=julian@wundrak.net \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).