From 4c354cd1e7e7f4728573ee9e21b4ae9d0be7244d Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 27 Jul 2017 09:11:28 -0700 Subject: [PATCH] Allow users to override the tuples A user just added RTEMS support to the GCC port (via newlib), which is very similar to the existing newlib port but has a different tuple. This patch allows users to override the tuples to build other targets if they want to. --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 8873ea82..040c36a4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -45,8 +45,8 @@ ifeq ($(MULTILIB_NAMES),) endif make_tuple = riscv$(1)-unknown-$(2) -LINUX_TUPLE := $(call make_tuple,$(XLEN),linux-gnu) -NEWLIB_TUPLE := $(call make_tuple,$(XLEN),elf) +LINUX_TUPLE ?= $(call make_tuple,$(XLEN),linux-gnu) +NEWLIB_TUPLE ?= $(call make_tuple,$(XLEN),elf) CFLAGS_FOR_TARGET := $(CFLAGS_FOR_TARGET_EXTRA) @cmodel@ ASFLAGS_FOR_TARGET := $(ASFLAGS_FOR_TARGET_EXTRA) @cmodel@