1 | # |
---|
2 | # Config file for ARMulator |
---|
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=armulator |
---|
14 | |
---|
15 | # This section makes the target dependent options file. |
---|
16 | |
---|
17 | # if defined asserts do not generate code. This is commonly used |
---|
18 | |
---|
19 | define make-target-options |
---|
20 | endef |
---|
21 | |
---|
22 | # This contains the compiler options necessary to select the CPU model |
---|
23 | # and (hopefully) optimize for it. |
---|
24 | # |
---|
25 | #CPU_CFLAGS = -mcpu=arm7tdmi |
---|
26 | CPU_CFLAGS = |
---|
27 | |
---|
28 | # optimize flag: typically -0, could use -O4 or -fast |
---|
29 | # -O4 is ok for RTEMS |
---|
30 | # NOTE2: some level of -O may be actually required by inline assembler (at least |
---|
31 | # -O2 so far. |
---|
32 | # NOTE2 Apparently nobody really knows the status or r2 and r13. |
---|
33 | # As far as I know, small data are pointer impose a very specific compliation |
---|
34 | # model => not used. |
---|
35 | # Currently the sdata2 and sbss2 sections are empty => r2 is not used... |
---|
36 | CFLAGS_OPTIMIZE_V= |
---|
37 | #CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align |
---|
38 | #CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750 |
---|
39 | |
---|
40 | # debug flags: typically none, but at least -O1 is required due to this |
---|
41 | # BSP using inlined code |
---|
42 | CFLAGS_DEBUG_V = -O1 |
---|
43 | #CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align |
---|
44 | |
---|
45 | define make-exe |
---|
46 | # $(CC) -v -static -Wl,-Map -Wl,Mapfile -Wl,-T -Wl,linkcmds -Wl,-N -o $(basename $@).obj $(LINK_OBJS) $(LINK_LIBS) |
---|
47 | $(LINK.c) $(LDLIBS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
---|
48 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
49 | $(SIZE) $(basename $@).exe |
---|
50 | |
---|
51 | endef |
---|
52 | |
---|
53 | # Miscellaneous additions go here |
---|