1 | # |
---|
2 | # Config file for Motorola MVME2100 -- a MPC8240 VMEBus board |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=powerpc |
---|
10 | RTEMS_CPU_MODEL=mpc8240 |
---|
11 | RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new |
---|
12 | |
---|
13 | # This is the actual bsp directory used during the build process. |
---|
14 | RTEMS_BSP_FAMILY=motorola_powerpc |
---|
15 | |
---|
16 | # This contains the compiler options necessary to select the CPU model |
---|
17 | # and (hopefully) optimize for it. |
---|
18 | CPU_CFLAGS = -mcpu=603e -Dmpc603e -Dppc603e |
---|
19 | |
---|
20 | # optimize flag: typically -0, could use -O4 or -fast |
---|
21 | # -O4 is ok for RTEMS |
---|
22 | # NOTE2: some level of -O may be actually required by inline assembler (at least |
---|
23 | # -O2 so far. |
---|
24 | # NOTE2 Apparently nobody really knows the status or r2 and r13. |
---|
25 | # As far as I know, small data are pointer impose a very specific compliation |
---|
26 | # model => not used. |
---|
27 | # Currently the sdata2 and sbss2 sections are empty => r2 is not used... |
---|
28 | CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align |
---|
29 | |
---|
30 | # debug flags: typically none, but at least -O1 is required due to this |
---|
31 | # BSP using inlined code |
---|
32 | CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align |
---|
33 | |
---|
34 | define make-exe |
---|
35 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
36 | -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) |
---|
37 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
38 | $(SIZE) $(basename $@).nxe |
---|
39 | $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems |
---|
40 | gzip -vf9 rtems |
---|
41 | $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ |
---|
42 | -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ |
---|
43 | -Map $(basename $@).map && chmod 755 $@ |
---|
44 | rm -f rtems.gz |
---|
45 | endef |
---|
46 | |
---|
47 | define make-cxx-exe |
---|
48 | $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
49 | -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) |
---|
50 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
51 | $(SIZE) $(basename $@).nxe |
---|
52 | $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems |
---|
53 | gzip -vf9 rtems |
---|
54 | $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ |
---|
55 | -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ |
---|
56 | -Map $(basename $@).map && chmod 755 $@ |
---|
57 | rm -f rtems.gz |
---|
58 | endef |
---|
59 | |
---|
60 | # Miscellaneous additions go here |
---|