Skip to content

Commit

Permalink
Use TARGET instead of PREFIX in /tests Makefile(s) (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav-g13 authored Nov 6, 2023
1 parent 181d5c3 commit 29d774a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# RISCV Toolchain
#################################

PREFIX = riscv64-unknown-elf-

GCC = $(PREFIX)gcc
CXX = $(PREFIX)g++
CP = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
DG = $(PREFIX)gdb
SIZE = $(PREFIX)size
TARGET = riscv64-unknown-elf

GCC = $(TARGET)-gcc
CXX = $(TARGET)-g++
CP = $(TARGET)-objcopy
OBJDUMP = $(TARGET)-objdump
DG = $(TARGET)-gdb
SIZE = $(TARGET)-size


#################################
Expand Down
4 changes: 4 additions & 0 deletions tests/libgloss.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29d774a

Please sign in to comment.