1 | # |
---|
2 | # Config file for the NIOS2_EB2_1 BSP |
---|
3 | # |
---|
4 | |
---|
5 | # Choices for CPU_MODEL: |
---|
6 | # tiny (no cache) |
---|
7 | # standard (instruction cache) |
---|
8 | # fast (instruction and data cache) |
---|
9 | |
---|
10 | RTEMS_CPU = nios2 |
---|
11 | RTEMS_CPU_MODEL = economy |
---|
12 | |
---|
13 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
14 | |
---|
15 | # This is the actual bsp directory used during the build process. |
---|
16 | RTEMS_BSP_FAMILY = nios2_iss |
---|
17 | |
---|
18 | # "-Gx" tells gcc to put objects of up to x bytes into sections sdata/sbss |
---|
19 | # where they could be addressed using the global pointer gp. -G0 effectively |
---|
20 | # disables the use of gp. |
---|
21 | CPU_CFLAGS=-mno-hw-mul -mno-hw-div |
---|
22 | |
---|
23 | ####### |
---|
24 | |
---|
25 | # ATM, doesn't work with optimization levels > 0 |
---|
26 | CFLAGS_OPTIMIZE_V = -g -O0 |
---|
27 | |
---|
28 | # The following are definitions of make-exe which will work using ld as |
---|
29 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
30 | # will be able to override parts of the compilers specs and link using gcc. |
---|
31 | |
---|
32 | define make-exe |
---|
33 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ |
---|
34 | $(LINK_OBJS) $(LINK_LIBS) |
---|
35 | $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@ |
---|
36 | $(SIZE) $(basename $@).nxe |
---|
37 | endef |
---|
38 | define make-cxx-exe |
---|
39 | $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ |
---|
40 | $(LINK_OBJS) $(LINK_LIBS) |
---|
41 | $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@ |
---|
42 | $(SIZE) $(basename $@).nxe |
---|
43 | endef |
---|
44 | |
---|
45 | # Miscellaneous additions go here |
---|