diff options
author | Sean Cross <sean@xobs.io> | 2019-09-15 09:21:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-15 09:21:45 +0800 |
commit | b9a4638e5dd6804c42e15c685fb3b3bd7fa94ae8 (patch) | |
tree | 3b775dc926fbb7ac45037b255c2b91955b52e792 | |
parent | b918f51b58bc91a41d1082f07c9cadc82b62f661 (diff) | |
parent | 13db50777015d0d2e079218dbf042b13fe235108 (diff) |
Merge pull request #56 from GNUtoo/master
riscv-blink: Makefile: use CROSS_COMPILE instead of TRGT
-rw-r--r-- | riscv-blink/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/riscv-blink/Makefile b/riscv-blink/Makefile index 08a96ae..eb01d8b 100644 --- a/riscv-blink/Makefile +++ b/riscv-blink/Makefile @@ -2,14 +2,14 @@ GIT_VERSION := $(shell git describe --tags) # Earlier versions of the Raspberry Pi image only had riscv32-gcc ifneq (,$(wildcard /usr/bin/riscv32-unknown-elf-gcc)) -TRGT ?= riscv32-unknown-elf- +CROSS_COMPILE ?= riscv32-unknown-elf- else -TRGT ?= riscv64-unknown-elf- +CROSS_COMPILE ?= riscv64-unknown-elf- endif -CC := $(TRGT)gcc -CXX := $(TRGT)g++ -OBJCOPY := $(TRGT)objcopy +CC := $(CROSS_COMPILE)gcc +CXX := $(CROSS_COMPILE)g++ +OBJCOPY := $(CROSS_COMPILE)objcopy RM := rm -rf COPY := cp -a |