summaryrefslogtreecommitdiffstats
path: root/make/custom/mcf5235.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-06 21:51:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-06 21:51:01 +0000
commit6087a6925701db0d0da461fc38ec39bd73d02390 (patch)
tree8c6b313b671f943f5c661ea16c6b0c645c0c6473 /make/custom/mcf5235.cfg
parentSwitch back to old GCC_RPMREL versioning scheme. (diff)
downloadrtems-6087a6925701db0d0da461fc38ec39bd73d02390.tar.bz2
Make all BSPs use the same rules for invoking gcc and g++ to link an application. Share as much logic as possible for .num file and size information. Let BSPs provide custom rules to tranform executable from linked .exe to downloadable RTEMS Application Loadable File (RALF) .ralf file.
Diffstat (limited to 'make/custom/mcf5235.cfg')
-rw-r--r--make/custom/mcf5235.cfg30
1 files changed, 3 insertions, 27 deletions
diff --git a/make/custom/mcf5235.cfg b/make/custom/mcf5235.cfg
index a19c2361d1..dde892f060 100644
--- a/make/custom/mcf5235.cfg
+++ b/make/custom/mcf5235.cfg
@@ -20,41 +20,17 @@ RTEMS_BSP_FAMILY=mcf5235
# and (hopefully) optimize for it.
CPU_CFLAGS = -m528x
-
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
-
ifndef MTARGET
MTARGET=ram
endif
-# The following are definitions of make-exe which will work using ld as
+# This defines the operations performed on the linked executable.
# is currently required.
-
-define bsp-link-c
- $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
-endef
-
-define bsp-link-cxx
- $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
-endef
-
define bsp-post-link
- $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) $(basename $@).nxe
+ $(OBJCOPY) -O binary --strip-all \
+ $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
$(SIZE) $(basename $@)$(EXEEXT)
endef
-
-define make-exe
- $(bsp-link-c)
- $(bsp-post-link)
-endef
-
-define make-cxx-exe
- $(bsp-link-cxx)
- $(bsp-post-link)
-endef
-
-# Miscellaneous additions go here