Blame view

RIOT/cpu/mips_pic32mx/Makefile.include 1.46 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  export ROMABLE = 1
  
  include $(RIOTMAKE)/arch/mips.inc.mk
  include $(RIOTCPU)/mips_pic32_common/Makefile.include
  
  # define build specific options
  export CFLAGS += -march=m4k -DSKIP_COPY_TO_RAM
  
  export USEMODULE += mips_pic32_common
  export USEMODULE += periph
  export USEMODULE += periph_common
  export USEMODULE += newlib
  
  ifeq ($(USE_UHI_SYSCALLS),1)
    #Use UHI to handle syscalls
    export LINKFLAGS += -luhi
    export USEMODULE += newlib_syscalls_mips_uhi
  else
    #Use RIOT to handle syscalls (default)
    export USEMODULE += newlib_syscalls_default
  endif
  
  export LINKFLAGS += -Wl,--defsym,__use_excpt_boot=0 $(CFLAGS)
  export LINKFLAGS += -Tpic32mx512_12_128_uhi.ld
  
  # the pickit programmer (MPLAB-IPE) wants physical addresses in the hex file!!
  export OBJCOPY = objcopy #use system objcopy as toolchain one is broken.
  export OFLAGS += -O ihex \
  				--change-section-lma .bootflash-0xA0000000 \
  				--change-section-lma .exception_vector-0x80000000 \
  				--change-section-lma .text-0x80000000 \
  				--change-section-lma .init-0x80000000 \
  				--change-section-lma .fini-0x80000000 \
  				--change-section-lma .eh_frame-0x80000000 \
  				--change-section-lma .gcc_except_table-0x80000000 \
  				--change-section-lma .jcr-0x80000000 \
  				--change-section-lma .ctors-0x80000000 \
  				--change-section-lma .dtors-0x80000000 \
  				--change-section-lma .rodata-0x80000000 \
  				--change-section-lma .data-0x80000000 \
  				--change-section-lma .bss-0x80000000 \
  				--change-section-lma .startdata-0x80000000 \