diff options
author | Julian Wundrak <julian@wundrak.net> | 2025-03-26 20:14:31 +0000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-26 21:43:22 +0100 |
commit | 664c588be752bf590adb55bf1f613d4a36f02e7c (patch) | |
tree | ffbf952cefca561c5ef3621f8cc966898d98414b | |
parent | 77883fbdd17e836247f746d888dcad3f611a6a59 (diff) | |
download | passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar.gz passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar.bz2 passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar.lz passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar.xz passt-664c588be752bf590adb55bf1f613d4a36f02e7c.tar.zst passt-664c588be752bf590adb55bf1f613d4a36f02e7c.zip |
build: normalize arm targets
Linux distributions use different dumpmachine outputs for the ARM
architecture. arm, armv6l, armv7l.
For the syscall annotation, these variants are standardized to “arm”.
Link: https://bugs.passt.top/show_bug.cgi?id=117
Signed-off-by: Julian Wundrak <julian@wundrak.net>
[sbrivio: Fix typo: assign from TARGET_ARCH, not from TARGET]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |