source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/mcp750.cfg @ efdda565

4.115
Last change on this file since efdda565 was efdda565, checked in by Nick Withers <nick.withers@…>, on 08/09/13 at 04:18:17

Use $(EXEEXT) [defaults to "exe"] to generate binaries

  • Property mode set to 100644
File size: 792 bytes
Line 
1#
2#  Config file for Motorola MCP750 -- a MPC750 CompactPCI board
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU=powerpc
8RTEMS_CPU_MODEL=mpc750
9
10#  This contains the compiler options necessary to select the CPU model
11#  and (hopefully) optimize for it.
12#
13CPU_CFLAGS = -mcpu=750 -Dmpc750
14
15# optimize flag: typically -O2
16CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align
17
18define bsp-post-link
19        $(default-bsp-post-link)
20        $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems
21        gzip -vf9 rtems
22        $(LD) -o $(basename $@)$(DOWNEXT) \
23            $ $(PROJECT_RELEASE)/lib/bootloader.o \
24            --just-symbols=$(basename $@)$(EXEEXT) \
25            -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
26            -Map $(basename $@).map && chmod 755 $@
27        rm -f rtems.gz
28endef
Note: See TracBrowser for help on using the repository browser.