From 29d774a6e46bacfa37a85efdb331b2b53ded5b62 Mon Sep 17 00:00:00 2001 From: Raghav Gupta <58498249+raghav-g13@users.noreply.github.com> Date: Mon, 6 Nov 2023 11:51:23 -0800 Subject: [PATCH] Use TARGET instead of PREFIX in /tests Makefile(s) (#1647) --- tests/Makefile | 14 +++++++------- tests/libgloss.mk | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 28976a6a..670b49ea 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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 ################################# diff --git a/tests/libgloss.mk b/tests/libgloss.mk index 2272df33..5553bdbd 100644 --- a/tests/libgloss.mk +++ b/tests/libgloss.mk @@ -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