forked from Imagelibrary/rtems
2002-03-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* custom/cvme961.cfg: Remove GCC272 support. * custom/dmv152.cfg: Remove GCC272 support. * custom/efi332.cfg: Remove GCC272 support. * custom/efi68k.cfg: Remove GCC272 support. * custom/eth_comm.cfg: Remove GCC272 support. * custom/gen405.cfg: Remove GCC272 support. * custom/gen68302.cfg: Remove GCC272 support. * custom/gen68340.cfg: Remove GCC272 support. * custom/gen68360.cfg: Remove GCC272 support. * custom/genmongoosev.cfg: Remove GCC272 support. * custom/helas403.cfg: Remove GCC272 support. * custom/i386ex.cfg: Remove GCC272 support. * custom/i960sim.cfg: Remove GCC272 support. * custom/idp.cfg: Remove GCC272 support. * custom/leon2.cfg: Remove GCC272 support. * custom/mbx8xx.cfg: Remove GCC272 support. * custom/mcf5206elite.cfg: Remove GCC272 support. * custom/mpc8260ads.cfg: Remove GCC272 support. * custom/mrm332.cfg: Remove GCC272 support. * custom/mvme136.cfg: Remove GCC272 support. * custom/mvme147.cfg: Remove GCC272 support. * custom/mvme167.cfg: Remove GCC272 support. * custom/ods68302.cfg: Remove GCC272 support. * custom/p4000.cfg: Remove GCC272 support. * custom/p4600.cfg: Remove GCC272 support. * custom/p4650.cfg: Remove GCC272 support. * custom/pc386.cfg: Remove GCC272 support. * custom/portsw.cfg: Remove GCC272 support. * custom/psim.cfg: Remove GCC272 support. * custom/rxgen960.cfg: Remove GCC272 support. * custom/score603e.cfg: Remove GCC272 support. * custom/sim68000.cfg: Remove GCC272 support. * custom/simhppa.cfg: Remove GCC272 support. * custom/simsh4.cfg: Remove GCC272 support. * custom/ts_386ex.cfg: Remove GCC272 support.
This commit is contained in:
@@ -1,3 +1,41 @@
|
||||
2002-03-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* custom/cvme961.cfg: Remove GCC272 support.
|
||||
* custom/dmv152.cfg: Remove GCC272 support.
|
||||
* custom/efi332.cfg: Remove GCC272 support.
|
||||
* custom/efi68k.cfg: Remove GCC272 support.
|
||||
* custom/eth_comm.cfg: Remove GCC272 support.
|
||||
* custom/gen405.cfg: Remove GCC272 support.
|
||||
* custom/gen68302.cfg: Remove GCC272 support.
|
||||
* custom/gen68340.cfg: Remove GCC272 support.
|
||||
* custom/gen68360.cfg: Remove GCC272 support.
|
||||
* custom/genmongoosev.cfg: Remove GCC272 support.
|
||||
* custom/helas403.cfg: Remove GCC272 support.
|
||||
* custom/i386ex.cfg: Remove GCC272 support.
|
||||
* custom/i960sim.cfg: Remove GCC272 support.
|
||||
* custom/idp.cfg: Remove GCC272 support.
|
||||
* custom/leon2.cfg: Remove GCC272 support.
|
||||
* custom/mbx8xx.cfg: Remove GCC272 support.
|
||||
* custom/mcf5206elite.cfg: Remove GCC272 support.
|
||||
* custom/mpc8260ads.cfg: Remove GCC272 support.
|
||||
* custom/mrm332.cfg: Remove GCC272 support.
|
||||
* custom/mvme136.cfg: Remove GCC272 support.
|
||||
* custom/mvme147.cfg: Remove GCC272 support.
|
||||
* custom/mvme167.cfg: Remove GCC272 support.
|
||||
* custom/ods68302.cfg: Remove GCC272 support.
|
||||
* custom/p4000.cfg: Remove GCC272 support.
|
||||
* custom/p4600.cfg: Remove GCC272 support.
|
||||
* custom/p4650.cfg: Remove GCC272 support.
|
||||
* custom/pc386.cfg: Remove GCC272 support.
|
||||
* custom/portsw.cfg: Remove GCC272 support.
|
||||
* custom/psim.cfg: Remove GCC272 support.
|
||||
* custom/rxgen960.cfg: Remove GCC272 support.
|
||||
* custom/score603e.cfg: Remove GCC272 support.
|
||||
* custom/sim68000.cfg: Remove GCC272 support.
|
||||
* custom/simhppa.cfg: Remove GCC272 support.
|
||||
* custom/simsh4.cfg: Remove GCC272 support.
|
||||
* custom/ts_386ex.cfg: Remove GCC272 support.
|
||||
|
||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Templates/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
|
||||
@@ -29,16 +29,6 @@ CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
define make-exe
|
||||
$(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
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDLIBS) -o $@ \
|
||||
@@ -46,7 +36,6 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -31,17 +31,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -51,6 +40,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -23,17 +23,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -43,6 +32,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -27,17 +27,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -47,6 +36,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -50,25 +50,12 @@ CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# The --defsym arguments define arguments which are required by the linkcmds
|
||||
# file which is designed for gcc 2.8
|
||||
define make-exe
|
||||
$(LD) $(XLDFLAGS) -T $(LINKCMDS) \
|
||||
--defsym __fini=0 --defsym __init=0 \
|
||||
-o $@ -u atexit -u __vectors -u download_entry \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -37,26 +37,12 @@ START_BASE=
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# The --defsym arguments define arguments which are required by the linkcmds
|
||||
# file which is designed for gcc 2.8
|
||||
define make-exe
|
||||
$(LD) $(XLDFLAGS) -T $(LINKCMDS) \
|
||||
--defsym __fini=0 --defsym __init=0 \
|
||||
-o $@ -u atexit -u __vectors -u download_entry \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
# $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
|
||||
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
|
||||
define make-cxx-exe
|
||||
|
||||
@@ -28,24 +28,10 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
|
||||
# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -23,23 +23,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
|
||||
# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
|
||||
|
||||
define make-exe
|
||||
@ echo
|
||||
@ echo "WARNING: newlib may use bit test instructions!!"
|
||||
@ echo
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
-o $@ $(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -60,6 +43,5 @@ endef
|
||||
# if you want to convert it to ieee
|
||||
# m68k-rtems-objcopy --output-target=ieee --debugging \
|
||||
# $(basename $@).exe $(basename $@).ieee
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -45,29 +45,11 @@ endif
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
|
||||
# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
|
||||
|
||||
define make-exe
|
||||
@ echo
|
||||
@ echo "WARNING: newlib may use bit test instructions!!"
|
||||
@ echo
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -25,16 +25,6 @@ CFLAGS_OPTIMIZE_V=-O2 -g
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
define make-exe
|
||||
$(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
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDLIBS) -o $@ \
|
||||
@@ -42,7 +32,6 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -30,20 +30,6 @@ START_BASE=
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# The --defsym arguments define arguments which are required by the linkcmds
|
||||
# file which is designed for gcc 2.8
|
||||
define make-exe
|
||||
$(LD) $(XLDFLAGS) -T $(LINKCMDS) \
|
||||
--defsym __fini=0 --defsym __init=0 \
|
||||
-o $@ -u atexit -u __vectors -u download_entry \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
# $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -51,7 +37,6 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -34,18 +34,6 @@ CFLAGS_OPTIMIZE_V=-O4
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).coff \
|
||||
-noinhibit-exec -Map $(basename $@).map \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).coff > $(basename $@).num
|
||||
$(SIZE) $(basename $@).coff
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -55,7 +43,6 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).coff > $(basename $@).num
|
||||
$(SIZE) $(basename $@).coff
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -26,16 +26,6 @@ CFLAGS_OPTIMIZE_V=-O0 -g
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
define make-exe
|
||||
$(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
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDLIBS) -o $@ \
|
||||
@@ -43,7 +33,6 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -25,22 +25,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/msoft-float/libc.a
|
||||
# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/msoft-float/libm.a
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -50,6 +34,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -19,13 +19,10 @@ RTEMS_BSP_FAMILY=leon
|
||||
# The -mflat avoids the use of save/restore instructions. It has
|
||||
# a negative impact on the performance of RTEMS and should not be used.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# -mno-v8 says not to use v8 level instructions. i.e. use v7 only
|
||||
CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT)
|
||||
else
|
||||
# This had been used with gcc-2.7.2
|
||||
# CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT)
|
||||
# -mcpu=cypress says to optimize for a Cypress 60x chipset
|
||||
CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT)
|
||||
endif
|
||||
|
||||
# optimize flag: typically -0, could use -O4 or -fast
|
||||
# -O4 is ok for RTEMS
|
||||
@@ -52,20 +49,11 @@ endef
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(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
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
endif
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -92,20 +92,6 @@ CXXFLAGS_OPTIMIZE_V=-O4
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# The --defsym arguments define arguments which are required by the linkcmds
|
||||
# file which is designed for gcc 2.8
|
||||
define make-exe
|
||||
$(LD) $(XLDFLAGS) -T $(LINKCMDS) -o $(basename $@)_sym.exe \
|
||||
--defsym __fini=0 --defsym __init=0 \
|
||||
-u atexit -u __vectors -u start \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@)_sym.exe> $(basename $@).nm
|
||||
cp $(basename $@)_sym.exe $(basename $@).exe
|
||||
$(STRIP) $(basename $@).exe
|
||||
$(SIZE) $(basename $@)_sym.exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
|
||||
-o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -114,7 +100,6 @@ define make-exe
|
||||
$(STRIP) $(basename $@).exe
|
||||
$(SIZE) $(basename $@)_sym.exe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -29,30 +29,11 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
|
||||
LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
|
||||
|
||||
define make-exe
|
||||
@ echo
|
||||
@ echo "WARNING: newlib may use bit test instructions!!"
|
||||
@ echo
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -48,25 +48,12 @@ CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# The --defsym arguments define arguments which are required by the linkcmds
|
||||
# file which is designed for gcc 2.8
|
||||
define make-exe
|
||||
$(LD) $(XLDFLAGS) -T $(LINKCMDS) \
|
||||
--defsym __fini=0 --defsym __init=0 \
|
||||
-o $@ -u atexit -u __vectors -u download_entry \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -23,17 +23,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
ifeq ($(MRM_IN_ROM),yes)
|
||||
# Build a rommable image - move the .data section after the .text section
|
||||
# in the image.
|
||||
@@ -70,7 +59,5 @@ define make-exe
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -31,17 +31,6 @@ endef
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -51,6 +40,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -23,17 +23,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -43,6 +32,5 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).nxe
|
||||
endef
|
||||
endif
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -59,8 +59,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fno-omit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# The MC68040 does not implement all MC68881/MC68882 instructions, so use
|
||||
# either the gcc floating-point software support (msoft-float libraries), or
|
||||
# use the Motorola FPSP floating-point emulator in
|
||||
@@ -71,20 +69,6 @@ ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# in rtems/c/src/lib/libbsp/m68k/mvme167/startup/bststart.c in bsp_start().
|
||||
# Floating-point support will then be limited. See the mvme167 README file
|
||||
# for more details.
|
||||
|
||||
# LIBC_LIBC = $(RTEMS_LIBC_DIR)/lib/msoft-float/libc.a
|
||||
# LIBC_LIBM = $(RTEMS_LIBC_DIR)/lib/msoft-float/libm.a
|
||||
# LIBGCC = $(shell $(CC) -msoft-float -print-libgcc-file-name)
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@)_sym.exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
|
||||
cp $(basename $@)_sym.exe $(basename $@).exe
|
||||
$(STRIP) $(basename $@).exe
|
||||
$(SIZE) $(basename $@)_sym.exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -93,6 +77,5 @@ define make-exe
|
||||
$(STRIP) $(basename $@).exe
|
||||
$(SIZE) $(basename $@)_sym.exe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -35,21 +35,6 @@ CFLAGS_DEBUG_V =
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
|
||||
# override default location of Standard C Library
|
||||
# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
|
||||
# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N \
|
||||
-T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
-o $@ \
|
||||
@@ -57,7 +42,7 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
ifeq ($(RTEMS_DEBUGGER),yes)
|
||||
|
||||
@@ -26,17 +26,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
|
||||
-T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %)
|
||||
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
|
||||
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
|
||||
$(RM) $(basename $@).srec1
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -46,7 +35,6 @@ define make-exe
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -30,22 +30,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# This rule was used in 3.6.0
|
||||
# $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
|
||||
# -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) \
|
||||
--start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
|
||||
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
|
||||
$(RM) $(basename $@).srec1
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
-o $@ $(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -55,7 +39,6 @@ define make-exe
|
||||
$(NM) -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -29,22 +29,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
# This rule was used in 3.6.0
|
||||
# $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
|
||||
# -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
|
||||
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) \
|
||||
--start-group $(LINK_LIBS) --end-group $(LD_LIBS)
|
||||
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
|
||||
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
|
||||
$(RM) $(basename $@).srec1
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
$(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
|
||||
@@ -54,6 +38,5 @@ define make-exe
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -48,29 +48,6 @@ HEADERADDR=0x00097E00
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) -N -T $(LINKCMDS) -Ttext $(RELOCADDR) -e start -nostdlib \
|
||||
-o $(basename $@).obj \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O a.out-i386 \
|
||||
--remove-section=.rodata \
|
||||
--remove-section=.comment \
|
||||
--remove-section=.note \
|
||||
--strip-unneeded $(basename $@).obj $@
|
||||
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin
|
||||
$(BIN2BOOT) -v $(basename $@).bt $(HEADERADDR)\
|
||||
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
|
||||
$(NM) -g -n $(basename $@).obj > $(basename $@).num
|
||||
$(SIZE) $(basename $@).obj
|
||||
# test -d ${PROJECT_RELEASE}/BootImgs \
|
||||
# || mkdir ${PROJECT_RELEASE}/BootImgs
|
||||
# cp $(basename $@).bt \
|
||||
# ${PROJECT_RELEASE}/BootImgs/$(basename $@)$(LIB_VARIANT).bt
|
||||
# chmod 755 \
|
||||
# ${PROJECT_RELEASE}/BootImgs/$(basename $@)$(LIB_VARIANT).bt
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
|
||||
-o $(basename $@).obj \
|
||||
@@ -110,7 +87,6 @@ define make-cxx-exe
|
||||
$(NM) -g -n $(basename $@).obj > $(basename $@).num
|
||||
$(SIZE) $(basename $@).obj
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -14,16 +14,6 @@ RTEMS_CPU_MODEL=a29205
|
||||
# This is the actual bsp directory used during the build process.
|
||||
RTEMS_BSP_FAMILY=portsw
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -e _start \
|
||||
-T$(PROJECT_RELEASE)/lib/linkcmds\
|
||||
-o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) -Wl,-Map,$(basename $@).map \
|
||||
$(LDLIBS) -o $@ \
|
||||
@@ -31,6 +21,5 @@ define make-exe
|
||||
$(NM) -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -35,13 +35,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
|
||||
# $(START_FILE) $(LINK_OBJS) \
|
||||
# $(LD_LIBS) \
|
||||
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
# -Wl,--gc-sections
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
||||
@@ -49,6 +42,5 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -30,12 +30,6 @@ CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
@echo "rxgen960 does not support this gcc 2.7.2"
|
||||
exit 1
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -43,7 +37,6 @@ define make-exe
|
||||
$(OBJCOPY) -O binary $@ $(basename $@).bin
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -35,12 +35,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
|
||||
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \
|
||||
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
@echo gcc 2.7.2 style linking not supported by score603e
|
||||
@exit 1
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
-o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -51,7 +45,6 @@ define make-exe
|
||||
$(PACKHEX) >$(basename $@).exe
|
||||
rm -f $(basename $@).s1
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -24,11 +24,6 @@ CFLAGS_DEBUG_V =
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
@echo GCC 2.7.2 and older are not supported
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
||||
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -36,5 +31,4 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -78,15 +78,6 @@ GCC_LD_LOC_OPTIONS=-W,l-T -W,ldata -W,l$(DATA_$(NODE)_BASE) \
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LDARGS) $(LD) $(LD_LOC_OPTIONS) $(XLDFLAGS) -a archive \
|
||||
-o $@ -u atexit \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(GCC_LD_LOC_OPTIONS) \
|
||||
-o $@ \
|
||||
@@ -94,7 +85,6 @@ define make-exe
|
||||
$(NM) -g -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
@@ -40,16 +40,6 @@ CFLAGS_OPTIMIZE_V = -O4
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -e _start \
|
||||
-T$(PROJECT_RELEASE)/lib/linkcmds\
|
||||
-o $(basename $@).exe \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(NM) -n $(basename $@).exe > $(basename $@).num
|
||||
$(SIZE) $(basename $@).exe
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
|
||||
$(LDLIBS) -o $@ \
|
||||
@@ -57,6 +47,5 @@ define make-exe
|
||||
$(NM) -n $@ > $(basename $@).num
|
||||
$(SIZE) $@
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
@@ -37,18 +37,6 @@ CFLAGS_OPTIMIZE_V= -O4
|
||||
# is currently required. It is expected that as of gcc 2.8, the end user
|
||||
# will be able to override parts of the compilers specs and link using gcc.
|
||||
|
||||
ifeq ($(RTEMS_USE_GCC272),yes)
|
||||
define make-exe
|
||||
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).coff \
|
||||
-noinhibit-exec -Map $(basename $@).map \
|
||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
|
||||
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
|
||||
$(PACKHEX) > $(basename $@).exe
|
||||
$(NM) -g -n $(basename $@).coff > $(basename $@).num
|
||||
$(SIZE) $(basename $@).coff
|
||||
endef
|
||||
else
|
||||
define make-exe
|
||||
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
|
||||
$(LINK_OBJS) $(LINK_LIBS)
|
||||
@@ -56,7 +44,6 @@ define make-exe
|
||||
$(NM) -g -n $(basename $@).elf > $(basename $@).num
|
||||
$(SIZE) $(basename $@).elf
|
||||
endef
|
||||
endif
|
||||
|
||||
# Miscellaneous additions go here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user