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:14:31 +0000 [thread overview]
Message-ID: <20250326201431.4301-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>
---
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
next reply other threads:[~2025-03-26 20:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 20:14 Julian Wundrak [this message]
2025-03-26 20:29 ` [PATCH] build: normalize arm targets 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
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=20250326201431.4301-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).