summaryrefslogtreecommitdiffstats
path: root/make/custom
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-27 19:24:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-27 19:24:26 +0000
commit226ea52ba88e60b9e65ba19dbf633ad7935ea700 (patch)
tree8e2bf0c5d60f21318832176866e0b780d30c807e /make/custom
parentLatest version from Ralf Corsepius <corsepiu@faw.uni-ulm.de> which (diff)
downloadrtems-226ea52ba88e60b9e65ba19dbf633ad7935ea700.tar.bz2
Updated to be more like cvme961.cfg.
Diffstat (limited to 'make/custom')
-rw-r--r--make/custom/rxgen960.cfg36
1 files changed, 10 insertions, 26 deletions
diff --git a/make/custom/rxgen960.cfg b/make/custom/rxgen960.cfg
index 66bdbea144..ac7420aaf8 100644
--- a/make/custom/rxgen960.cfg
+++ b/make/custom/rxgen960.cfg
@@ -21,21 +21,10 @@ CPU_CFLAGS = -mrp -D__i960RP__ -D__i960_RP__
# configured on top of Intel Release 2.4. We did this to replace
# the GCC 2.4.5 shipped with Intel Release 2.4.
-
-# we don't suuport libc dir* functions right now.
-RTEMS_USE_NEWLIB=yes
-
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
-# Define this to yes if this target supports multiprocessor environments.
-HAS_MP=yes
-
-# This target does NOT support the TCP/IP stack so ignore requests
-# to enable it.
-HAS_NETWORKING=no
-
# This section makes the target dependent options file.
# NDEBUG (C library)
@@ -66,25 +55,20 @@ endef
# LD_LIBS += $(PROJECT_RELEASE)/lib/libbsp.a
+ifeq ($(RTEMS_USE_GCC272),yes)
define make-exe
- cp $(PROJECT_ROOT)/c/src/lib/libbsp/i960/rxgen960/startup/o-rxgen960/*.o .
- $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
- $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
+ @echo "rxgen960 does not support this gcc 2.7.2"
+ exit 1
+endef
+else
+define make-exe
+ $(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
- $(LD) -u _sbrk $(LDFLAGS) -oformat binary -Map $(basename $@).map -N -T $(LINKCMDS) -o $(basename $@).bin \
- $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
+ $(OBJCOPY) -oformat binary $(basename $@).exe $(basename $@).bin
$(SIZE) $(basename $@).exe
- rm -f *.o
endef
-
-# else
-# define make-exe
-# $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
-# $(LINK_OBJS) $(LINK_LIBS)
-# $(NM) -g -n $(basename $@).exe > $(basename $@).num
-# $(SIZE) $(basename $@).exe
-# endef
-# endif
+endif
# Miscellaneous additions go here