Skip to content

Commit

Permalink
toolchain.mk: Rename $(TARGET_ARCH) to $(ARCH)
Browse files Browse the repository at this point in the history
Rename $(TARGET_ARCH) to concise $(ARCH).

Signed-off-by: Alvin Chang <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
gagachang authored and jforissier committed Aug 2, 2023
1 parent c89852c commit 344f771
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toolchain.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SHELL = /bin/bash
ROOT ?= $(CURDIR)/..
TOOLCHAIN_ROOT ?= $(ROOT)/toolchains
UNAME_M := $(shell uname -m)
TARGET_ARCH ?= arm
ARCH ?= arm

# Download toolchain macro for saving some repetition
# $(1) is $AARCH.._PATH : i.e., path to the destination
Expand Down Expand Up @@ -45,7 +45,7 @@ define build_toolchain
endef

ifeq ($(UNAME_M),x86_64)
ifeq ($(TARGET_ARCH),arm)
ifeq ($(ARCH),arm)
AARCH32_PATH ?= $(TOOLCHAIN_ROOT)/aarch32
AARCH32_CROSS_COMPILE ?= $(AARCH32_PATH)/bin/arm-linux-gnueabihf-
AARCH32_GCC_VERSION ?= arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf
Expand Down Expand Up @@ -83,7 +83,7 @@ endef
clang-toolchains:
$(call dl-clang,$(CLANG_VER),$(CLANG_PATH))

else ifeq ($(TARGET_ARCH),riscv)
else ifeq ($(ARCH),riscv)
RISCV64_PATH ?= $(TOOLCHAIN_ROOT)/riscv64
RISCV64_CROSS_COMPILE ?= $(RISCV64_PATH)/bin/riscv64-unknown-linux-gnu-
RISCV64_GCC_RELEASE_DATE ?= 2023.07.07
Expand Down

0 comments on commit 344f771

Please sign in to comment.