diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-09-16 02:55:59 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-09-16 16:34:08 +0200 |
commit | 08df0ecf707a2193a73a39079f37e5d472ce3e01 (patch) | |
tree | 0bd8dbc331c21e9745dcfc11c6f642b221fb00fd | |
parent | b9a4638e5dd6804c42e15c685fb3b3bd7fa94ae8 (diff) |
riscv-usb-cdcacm: Makefile: use CROSS_COMPILE instead of TRGT
The CROSS_COMPILE variable is widely used among free and open
source projects like Linux, u-boot, etc.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | riscv-usb-cdcacm/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/riscv-usb-cdcacm/Makefile b/riscv-usb-cdcacm/Makefile index d7ae967..98dccf2 100644 --- a/riscv-usb-cdcacm/Makefile +++ b/riscv-usb-cdcacm/Makefile @@ -2,14 +2,14 @@ GIT_VERSION := $(shell git describe --tags) # There is no 64-bit gcc on Raspberry Pi, so use the 32-bit version ifneq (,$(wildcard /etc/rpi-issue)) -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 |