From 226ea52ba88e60b9e65ba19dbf633ad7935ea700 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 27 Oct 1999 19:24:26 +0000 Subject: Updated to be more like cvme961.cfg. --- make/custom/rxgen960.cfg | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) (limited to 'make/custom') 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 -- cgit v1.2.3