mirror of
https://passt.top/passt
synced 2025-05-05 18:28:52 +02:00
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>
This commit is contained in:
parent
77883fbdd1
commit
664c588be7
1 changed files with 1 additions and 0 deletions
1
Makefile
1
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue