[fb7e6dcf] | 1 | # |
---|
| 2 | # Config file for VEGAPLUS ARM BOARD -- |
---|
| 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 8 | |
---|
| 9 | RTEMS_CPU=arm |
---|
| 10 | RTEMS_CPU_MODEL=arm7tdmi |
---|
| 11 | |
---|
| 12 | # This is the actual bsp directory used during the build process. |
---|
| 13 | RTEMS_BSP_FAMILY=vegaplus |
---|
| 14 | |
---|
| 15 | # This contains the compiler options necessary to select the CPU model |
---|
| 16 | # and (hopefully) optimize for it. |
---|
| 17 | # |
---|
| 18 | #CPU_CFLAGS = -mcpu=arm7tdmi |
---|
[e68206a1] | 19 | # CPU_CFLAGS = -msoft-float |
---|
[fb7e6dcf] | 20 | |
---|
| 21 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 22 | # -O4 is ok for RTEMS |
---|
| 23 | # NOTE2: some level of -O may be actually required by inline assembler (at least |
---|
| 24 | # -O2 so far. |
---|
| 25 | CFLAGS_OPTIMIZE_V= |
---|
| 26 | #CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align |
---|
| 27 | |
---|
| 28 | # debug flags: typically none, but at least -O1 is required due to this |
---|
| 29 | # BSP using inlined code |
---|
| 30 | CFLAGS_DEBUG_V = -O1 |
---|
| 31 | #CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align |
---|
| 32 | |
---|
| 33 | define make-exe |
---|
[3db37a7c] | 34 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
[45afe48] | 35 | -static -Wl,-Map,$(basename $@).map -o $(basename $@).obj \ |
---|
[3db37a7c] | 36 | $(LINK_OBJS) $(LINK_LIBS) |
---|
[fb7e6dcf] | 37 | $(OBJCOPY) -O binary \ |
---|
| 38 | --only-section=.text \ |
---|
| 39 | --only-section=.data \ |
---|
| 40 | --only-section=.rodata \ |
---|
[dfa6d4b7] | 41 | --strip-unneeded $(basename $@).obj $(basename $@).exe |
---|
[fb7e6dcf] | 42 | $(NM) -g -n $(basename $@).obj > $(basename $@).num |
---|
| 43 | $(SIZE) $(basename $@).obj |
---|
[dfa6d4b7] | 44 | # test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin |
---|
| 45 | # f=`basename $@ .exe`; \ |
---|
| 46 | # cp $(basename $@).bin $(basename $@).exe |
---|
| 47 | # cp $(basename $@).bin ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe |
---|
[fb7e6dcf] | 48 | endef |
---|
| 49 | |
---|
| 50 | # Miscellaneous additions go here |
---|