diff --git a/.gitignore b/.gitignore index 4d40434..361390b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ *.i*86 *.x86_64 *.hex + +Makefile.user diff --git a/sys/pic32/gcc-config.mk b/sys/pic32/gcc-config.mk index aae0bcb..d026bc4 100644 --- a/sys/pic32/gcc-config.mk +++ b/sys/pic32/gcc-config.mk @@ -1,3 +1,11 @@ +# chipKIT PIC32 compiler from UECIDE +ifdef UECIDE +ifndef GCCPREFIX + GCCPREFIX = ${HOME}/.uecide/compilers/pic32-tools/bin/pic32- + LDFLAGS = -Wl,--oformat=elf32-tradlittlemips +endif +endif + # chipKIT PIC32 compiler on Linux # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Download from https://github.com/jasonkajita/chipKIT-cxx/downloads diff --git a/target.mk b/target.mk index 0128b30..00e3c49 100644 --- a/target.mk +++ b/target.mk @@ -1,6 +1,15 @@ MACHINE = mips DESTDIR ?= $(TOPSRC) +# chipKIT PIC32 compiler from UECIDE +ifdef UECIDE +ifndef GCCPREFIX + GCCPREFIX = ${HOME}/.uecide/compilers/pic32-tools/bin/pic32- + LDFLAGS = -Wl,--oformat=elf32-tradlittlemips + INCLUDES = -I${HOME}/.uecide/compilers/pic32-tools/lib/gcc/pic32mx/4.5.1/include +endif +endif + # chipKIT PIC32 compiler on Linux # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Download from https://github.com/jasonkajita/chipKIT-cxx/downloads