Allows make process to identify bin utils prefix (from OOT makefile)

This commit is contained in:
Kenix
2020-05-12 17:08:58 -04:00
parent 730b1ae46b
commit 6046720adc
+7
View File
@@ -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