BuildConf - Use cross-compiler
authorJohn Hodge <[email protected]>
Sat, 31 May 2014 06:00:29 +0000 (14:00 +0800)
committerJohn Hodge <[email protected]>
Sat, 31 May 2014 06:00:29 +0000 (14:00 +0800)
Makefile.cfg

index 022a02e..daa9d94 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au