From 2458b7dfefdcbe7c39b4590467e3cf6c96f8ef00 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 14 Sep 2020 22:54:42 +0800 Subject: fix makefile --- core/makefile | 9 +++++---- makefile | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/core/makefile b/core/makefile index 591f63510..e423b0c5c 100644 --- a/core/makefile +++ b/core/makefile @@ -184,10 +184,11 @@ endif endif # translate architecture, e.g. armhf/armv7l -> arm, arm64-v8a -> arm64 -ARCH := $(if $(findstring aarch64,$(ARCH)),arm64,$(ARCH)) -ARCH := $(if $(findstring arm64,$(ARCH)),arm64,$(ARCH)) -ARCH := $(if $(findstring arm,$(ARCH)),arm,$(ARCH)) -ARCH := $(if $(findstring i686,$(ARCH)),i386,$(ARCH)) +ARCHSTR := $(ARCH) +ARCH := $(if $(findstring aarch64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm,$(ARCHSTR)),arm,$(ARCH)) +ARCH := $(if $(findstring i686,$(ARCHSTR)),i386,$(ARCH)) # debug DEBUG :=$(if $(DEBUG),$(DEBUG),n) diff --git a/makefile b/makefile index 69883794d..4d046fdc5 100644 --- a/makefile +++ b/makefile @@ -58,10 +58,11 @@ endif endif # translate architecture, e.g. armhf/armv7l -> arm, arm64-v8a -> arm64 -ARCH := $(if $(findstring aarch64,$(ARCH)),arm64,$(ARCH)) -ARCH := $(if $(findstring arm64,$(ARCH)),arm64,$(ARCH)) -ARCH := $(if $(findstring arm,$(ARCH)),arm,$(ARCH)) -ARCH := $(if $(findstring i686,$(ARCH)),i386,$(ARCH)) +ARCHSTR := $(ARCH) +ARCH := $(if $(findstring aarch64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm,$(ARCHSTR)),arm,$(ARCH)) +ARCH := $(if $(findstring i686,$(ARCHSTR)),i386,$(ARCH)) # conditionally map ARCH from amd64 to x86_64 if set from the outside # -- cgit v1.3.1