source: rtems/make/custom/nios2_iss.cfg @ e7d49fb6

4.104.114.84.95
Last change on this file since e7d49fb6 was e7d49fb6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/07 at 07:19:39

Add comment on CFLAGS_OPTIMIZE_V.

  • Property mode set to 100644
File size: 1.2 KB
Line 
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
10RTEMS_CPU = nios2
11RTEMS_CPU_MODEL = economy
12
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15# This is the actual bsp directory used during the build process.
16RTEMS_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.
21CPU_CFLAGS = -mno-hw-mul -mno-hw-div
22
23# optimize flag: typically -O2
24# ATM, doesn't work with optimization levels > 0
25CFLAGS_OPTIMIZE_V = -g -O0
26
27# The following are definitions of make-exe which will work using ld as
28# is currently required.
29
30define make-exe
31        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
32            $(LINK_OBJS) $(LINK_LIBS)
33        $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@
34        $(SIZE) $(basename $@).nxe
35endef
36define make-cxx-exe
37        $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
38            $(LINK_OBJS) $(LINK_LIBS)
39        $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@
40        $(SIZE) $(basename $@).nxe
41endef
42
43# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.