forked from Imagelibrary/rtems
Updated to be more like cvme961.cfg.
This commit is contained in:
@@ -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
|
||||
$(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
|
||||
$(SIZE) $(basename $@).exe
|
||||
rm -f *.o
|
||||
@echo "rxgen960 does not support this gcc 2.7.2"
|
||||
exit 1
|
||||
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
|
||||
else
|
||||
define make-exe
|
||||
$(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(OBJCOPY) -oformat binary $(basename $@).exe $(basename $@).bin
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user