summaryrefslogtreecommitdiffstats
path: root/make/custom/mvme2307.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/custom/mvme2307.cfg')
-rw-r--r--make/custom/mvme2307.cfg19
1 files changed, 13 insertions, 6 deletions
diff --git a/make/custom/mvme2307.cfg b/make/custom/mvme2307.cfg
index 62524c4750..bac65d2d48 100644
--- a/make/custom/mvme2307.cfg
+++ b/make/custom/mvme2307.cfg
@@ -66,13 +66,21 @@ endef
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=604
+CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
-CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align -mcpu=604
+CFLAGS_OPTIMIZE_V = -O4
+
+# debug flags: typically none, but at least -O1 is required due to this
+# BSP using inlined code
+CFLAGS_DEBUG_V = -O1
+
+# profile flags: typically none, but at least -O1 is required due to this
+# BSP using inlined code
+CFLAGS_PROFILE_V = -O1
# The following is a linkcmds file which will work without using the
# -specs system in gcc 2.8.
@@ -87,12 +95,11 @@ CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align -mcpu=604
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
- $(LINK.c) $(LDLIBS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
+ $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
-#
-# The following builds bootable images for the board. But the way
-# the build procedure jumps around the tree is not cool.
+# The following commands make a bootable image but will not work outside
+# the build tree.
# test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
# $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
# ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \