From 6046720adcafb1b296d3120d89272efd701a0f3b Mon Sep 17 00:00:00 2001 From: Kenix Date: Tue, 12 May 2020 17:08:58 -0400 Subject: [PATCH] Allows make process to identify bin utils prefix (from OOT makefile) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index d24db81e53..1be7e59e20 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,12 @@ # TODO think about how to split this up +#### Tools #### +ifeq ($(shell type mips-linux-gnu-ld >/dev/null 2>/dev/null; echo $$?), 0) + MIPS_BINUTILS_PREFIX := mips-linux-gnu- +else + MIPS_BINUTILS_PREFIX := mips64-elf- +endif + AS := $(MIPS_BINUTILS_PREFIX)as LD := $(MIPS_BINUTILS_PREFIX)ld