Use TARGET instead of PREFIX in /tests Makefile(s) (#1647)

This commit is contained in:
Raghav Gupta
2023-11-06 11:51:23 -08:00
committed by GitHub
parent 181d5c3c0f
commit 29d774a6e4
2 changed files with 11 additions and 7 deletions

View File

@@ -2,14 +2,14 @@
# RISCV Toolchain
#################################
PREFIX = riscv64-unknown-elf-
TARGET = riscv64-unknown-elf
GCC = $(PREFIX)gcc
CXX = $(PREFIX)g++
CP = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
DG = $(PREFIX)gdb
SIZE = $(PREFIX)size
GCC = $(TARGET)-gcc
CXX = $(TARGET)-g++
CP = $(TARGET)-objcopy
OBJDUMP = $(TARGET)-objdump
DG = $(TARGET)-gdb
SIZE = $(TARGET)-size
#################################

View File

@@ -5,6 +5,10 @@ ifndef GCC
$(error GCC is not defined)
endif
ifndef TARGET
$(error TARGET is not defined)
endif
libgloss_specs := htif_nano.specs
# Test whether libgloss-htif is globally installed and usable