From: John Hodge Date: Sat, 31 May 2014 06:00:29 +0000 (+0800) Subject: BuildConf - Use cross-compiler X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=920d4ea51ca96d1f3dc286928417864ea1200f96;p=tpg%2Facess2.git BuildConf - Use cross-compiler --- diff --git a/Makefile.cfg b/Makefile.cfg index 022a02ef..daa9d949 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -35,12 +35,21 @@ ifeq ($(ARCHDIR),) ARCHDIR := x86 endif +# Default compilers +CC = $(COMPILERDIR)bin/$(TRIPLET)-gcc +CXX = $(COMPILERDIR)bin/$(TRIPLET)-g++ +LD = $(COMPILERDIR)bin/$(TRIPLET)-ld +OBJDUMP = $(COMPILERDIR)bin/$(TRIPLET)-objdump + ifneq ($(ARCH),host) ifneq ($(ARCHDIR),$(ARCH)) include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg endif endif +COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/ +PATH := $(COMPILERDIR)bin/ $(PATH) + ifeq ($(PLATFORM),) PLATFORM := default endif