Merged from 4.5.0-beta3a

This commit is contained in:
Joel Sherrill
2000-06-12 15:00:15 +00:00
parent 0ab6547431
commit df49c60c96
2120 changed files with 123526 additions and 13179 deletions

View File

@@ -53,7 +53,7 @@ define make-target-options
endef
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef

View File

@@ -59,7 +59,7 @@ define make-target-options
endef
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef

View File

@@ -55,7 +55,7 @@ define make-target-options
endef
define make-exe
$(LINK.c) $(LDLIBS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef

View File

@@ -4,55 +4,20 @@
AUTOMAKE_OPTIONS = foreign 1.4
rtems_makedir=$(prefix)/make
rtems_make_customdir=$(rtems_makedir)/custom
rtems_makedir = $(prefix)/make
rtems_make_customdir = $(rtems_makedir)/custom
rtems_make_custom_DATA = \
default.cfg
rtems_make_custom_DATA = default.cfg
EXTRA_DIST = \
FreeBSD-posix.cfg \
HPUX9-posix.cfg \
Linux-posix.cfg \
Solaris-posix.cfg \
bare.cfg \
cvme961.cfg \
dmv152.cfg \
dmv177.cfg \
efi332.cfg \
efi68k.cfg \
erc32.cfg \
eth_comm.cfg \
gen68302.cfg \
gen68340.cfg \
gen68360.cfg \
gen68360_040.cfg \
gensh1.cfg \
helas403.cfg \
i386ex.cfg \
idp.cfg \
mcp750.cfg \
mvme136.cfg \
mvme147.cfg \
mvme147s.cfg \
mvme162.cfg \
mvme162lx.cfg \
mvme167.cfg \
mvme2307.cfg \
no_bsp.cfg \
ods68302.cfg \
p4000.cfg \
p4600.cfg \
p4650.cfg \
papyrus.cfg \
pc386.cfg \
portsw.cfg \
posix.cfg \
ppcn_60x.cfg \
psim.cfg \
score603e.cfg \
simhppa.cfg \
ts_386ex.cfg
EXTRA_DIST = Cygwin-posix.cfg FreeBSD-posix.cfg HPUX9-posix.cfg \
Linux-posix.cfg Solaris-posix.cfg bare.cfg cvme961.cfg dmv152.cfg \
dmv177.cfg efi332.cfg efi68k.cfg erc32.cfg eth_comm.cfg gen68302.cfg \
gen68340.cfg gen68360.cfg gen68360_040.cfg gensh1.cfg helas403.cfg \
i386ex.cfg idp.cfg mcp750.cfg mvme136.cfg mvme147.cfg mvme147s.cfg \
mvme162.cfg mvme162lx.cfg mvme167.cfg mvme2307.cfg no_bsp.cfg \
ods68302.cfg p4000.cfg p4600.cfg p4650.cfg papyrus.cfg pc386.cfg \
portsw.cfg posix.cfg ppcn_60x.cfg psim.cfg score603e.cfg simhppa.cfg \
ts_386ex.cfg
## -------------------------------------------------------
include $(top_srcdir)/automake/local.am
include $(top_srcdir)/automake/host.am

View File

@@ -52,7 +52,7 @@ define make-target-options
endef
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef

View File

@@ -61,7 +61,7 @@ endef
else
define make-exe
$(LINK.c) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num

View File

@@ -67,7 +67,7 @@ define make-exe
endef
else
define make-exe
$(LINK.c) $(LDLIBS) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -38,14 +38,6 @@ RTEMS_BSP_FAMILY=dmv177
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (ppc)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (ppc)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -73,8 +65,6 @@ define make-target-options
@echo "#define CONSOLE_USE_INTERRUPTS 0" >>$@
@echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 0" >>$@
@echo "#define PPC_USE_DATA_CACHE 0" >>$@
@echo "#define PPC_USE_INSTRUCTION_CACHE 1" >>$@
@@ -84,7 +74,6 @@ endef
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603
#CFLAGS_DEBUG_OPTIMIZE_V=
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -107,7 +96,7 @@ HAS_RTC=yes
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -52,7 +52,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -15,7 +15,9 @@ RTEMS_BSP_FAMILY=efi68k
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -m68000 -msoft-float
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68000 -msoft-float
CPU_CFLAGS = -m68000
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -55,11 +57,11 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(PACKHEX) > $@
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef

View File

@@ -87,7 +87,7 @@ define make-exe
endef
else
define make-exe
$(LINK.c) $(LDLIBS) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe

View File

@@ -12,8 +12,7 @@ RTEMS_CPU_MODEL=mpc860
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=eth_comm
CPU_DEFINES=-DPPC_ABI=PPC_ABI_EABI \
-DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x00000000
CPU_DEFINES=-DPPC_VECTOR_FILE_BASE=0x00000000
# This section makes the target dependent options file.
@@ -60,7 +59,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@

View File

@@ -16,7 +16,9 @@ RTEMS_BSP_FAMILY=gen68302
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-m68302 -msoft-float
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68302 -msoft-float
CPU_CFLAGS = -m68302
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -58,10 +60,10 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
endif
# Miscellaneous additions go here

View File

@@ -59,25 +59,25 @@ endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
# if you want to make a prom image
# m68k-rtems-objcopy --adjust-section-vma \
# .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
# awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
# for (p=digits; p>0; p--) \
# s += (16^(p-1)) * ( index("0123456789ABCDEF",\
# substr(x,1+digits-p,1)) -1 );\
# return s } ;\
# /\.text/ { base = $$4 ; size = $$3 };\
# END { printf("0x%x", h2d(base) + h2d(size)) }'\
# ` $(basename $@).exe
# if you want to convert it to ieee
# m68k-rtems-objcopy --output-target=ieee --debugging \
# $(basename $@).exe $(basename $@).ieee
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
# if you want to make a prom image
# m68k-rtems-objcopy --adjust-section-vma \
# .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
# awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
# for (p=digits; p>0; p--) \
# s += (16^(p-1)) * ( index("0123456789ABCDEF",\
# substr(x,1+digits-p,1)) -1 );\
# return s } ;\
# /\.text/ { base = $$4 ; size = $$3 };\
# END { printf("0x%x", h2d(base) + h2d(size)) }'\
# ` $(basename $@).exe
# if you want to convert it to ieee
# m68k-rtems-objcopy --output-target=ieee --debugging \
# $(basename $@).exe $(basename $@).ieee
endif

View File

@@ -79,7 +79,7 @@ endef
else
define make-exe
$(LINK.c) $(LDLIBS) -o $@ \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@

View File

@@ -71,7 +71,8 @@ define make-exe
endef
else
define make-exe
$(LINK.c) -Wl,-Map,$(basename $@).map \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num

View File

@@ -28,9 +28,12 @@ BSP_CPPFLAGS=-DHZ=$(HZ)
#
CPU_CFLAGS= -m2
# debug flags: typically none, but we use -O1 as it produces better code
CFLAGS_DEBUG_V = -O1
# debug flags: opt. is needed to fit in RAM. '-O1' has shown bad side-
# effects by failing to set up some hardware I/O registers in
# c/src/lib/libbsp/sh/gensh2/startup/hw_init.c (and perhaps elsewhere),
# which prevented proper chip initialization and muted SCI1 output.
# CFLAGS_DEBUG_V = -O4 --save-temps
CFLAGS_DEBUG_V = -O4 -g
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -52,8 +55,8 @@ CFLAGS_OPTIMIZE_V = -O4
# This switch compiles code to jump-start from FLASH, without a monitor
#
# START_HW_INIT
# This switch selects whether 'hw_initialize()' is called from
# 'start.S' or from 'bsp_start()'
# This switch selects whether 'early_hw_init()' is called from
# 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
#
define make-target-options
@@ -61,7 +64,7 @@ define make-target-options
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "#define RTEMS_TEST_IO_STREAM 1" >>$@
@echo "/* #define STANDALONE_EVB 1 */" >>$@
@echo "/* #define START_HW_INIT 1 */" >>$@
@echo "#define START_HW_INIT 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
endef
@@ -81,7 +84,7 @@ define make-exe
endef
else
define make-exe
$(LINK.c) -Wl,-Map,$(basename $@).map \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS) -lstdc++
$(NM) -n $@ > $(basename $@).num

View File

@@ -18,10 +18,6 @@ RTEMS_CPU_MODEL=ppc403
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=helas403
# These should be defined in targopt.h now.
#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
# -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
# This section makes the target dependent options file.
# NDEBUG (C library)
@@ -39,15 +35,6 @@ RTEMS_BSP_FAMILY=helas403
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
# This BSP was initially developed using the PowerOpen ABI.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -59,8 +46,6 @@ define make-target-options
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 1" >>$@
endef
@@ -94,7 +79,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@

View File

@@ -65,7 +65,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).coff \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -60,7 +60,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -29,14 +29,6 @@ RTEMS_BSP_FAMILY=motorola_powerpc
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (ppc)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (ppc)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -57,8 +49,6 @@ define make-target-options
@echo "#define PPCN_60X_USE_NONE 1" >>$@
@echo "#define PPC_USE_DATA_CACHE 1" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 1" >>$@
endef
@@ -68,7 +58,7 @@ endef
# NOTE : cheking egcc 1.1.1 source code shows that the last know processor
# is the 604 model and that this is the default generation option.
#
# CPU_CFLAGS = -mcpu=750
CPU_CFLAGS = -mcpu=750
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -78,9 +68,14 @@ endef
# As far as I know, small data are pointer impose a very specific compliation
# model => not used.
# Currently the sdata2 and sbss2 sections are empty => r2 is not used...
CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align -mcpu=750
CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
# The following is a ld command file which works without using the
# -specs system in gcc 2.8. IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
@@ -94,18 +89,19 @@ CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align -mcpu=750
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
$(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
cd $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
$(MAKE) bootloader BINARY_LOADED=$(basename $@).exe; \
COMPLETE_FILE_NAME=$(basename $@).exe ;\
echo $${COMPLETE_FILE_NAME} ;\
FILE_NAME=`basename $${COMPLETE_FILE_NAME}` ;\
echo $${FILE_NAME} ;\
mkdir -p $(PROJECT_ROOT)/mcp750/bin ;\
$(CP) bootloader $(PROJECT_ROOT)/mcp750/bin/$${FILE_NAME}
( cd $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
$(MAKE) bootloader BINARY_LOADED=$@; )
f=`basename $@ .exe`; \
cp $(PROJECT_ROOT)/powerpc-rtems/c/mcp750/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
&& chmod 755 \
${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
endef
# Miscellaneous additions go here

View File

@@ -56,7 +56,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -53,7 +53,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -87,7 +87,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \

View File

@@ -4,6 +4,9 @@
# $Id$
#
# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES
# ARE MADE TO THE LINKCMDS FILE.
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68040
@@ -14,10 +17,12 @@ RTEMS_BSP_FAMILY=mvme167
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
# and (hopefully) optimize for it. We also specify the BSP during compilation.
# This should really get its own flag, but it works here.
#
CPU_CFLAGS = -m68040
CPU_CFLAGS = -m68040 -DRTEMS_BSP=$(RTEMS_BSP)
CFLAGS_DEBUG_V += -ggdb
# optimize flag: typically -O, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -33,11 +38,21 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
#
# RTEMS_DEBUG (RTEMS)
# If defined, debug checks in RTEMS and support library code are enabled.
#
# CD2401_INT_LEVEL
# Interrupt level for the CD2401.
#
# CD2401_POLLED_IO
# 0 for interrupt-driven, 1 for polled I/O.
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define CD2401_INT_LEVEL 1" >>$@
@echo "#define CD2401_POLLED_IO 1" >>$@
endef
# Here is the rule to actually build a $(ARCH)/foo.exe
@@ -76,9 +91,10 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).nm
$(NM) -g -n $@ > $(basename $@).nm
$(STRIP) -o $(basename $@) $@
$(SIZE) $(basename $@).exe
endef
endif

View File

@@ -8,6 +8,7 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc604
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=motorola_powerpc
@@ -34,14 +35,6 @@ RTEMS_BSP_FAMILY=motorola_powerpc
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -50,26 +43,34 @@ RTEMS_BSP_FAMILY=motorola_powerpc
#
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define CONSOLE_USE_INTERRUPTS 0" >>$@
@echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x00000100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 0" >>$@
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define PPCN_60X_USE_DINK 0" >>$@
@echo "#define PPCN_60X_USE_NONE 1" >>$@
@echo "#define PPC_USE_DATA_CACHE 1" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_USE_SPRG 1"
endef
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=604
CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V = -O4
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1
# profile flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_PROFILE_V = -O1
# The following is a linkcmds file which will work without using the
# -specs system in gcc 2.8.
@@ -83,20 +84,23 @@ 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)
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
# The following commands make a bootable image but will not work outside
# the build tree.
# test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
# $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
# ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
# $(MAKE) bootloader BINARY_LOADED=$@; )
# f=`basename $@ .exe`; \
# cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
# ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
# && chmod 755 \
# ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
endef
else
define make-exe
$(CC) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
endif
# Miscellaneous additions go here

View File

@@ -20,7 +20,9 @@ RTEMS_BSP_FAMILY=ods68302
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS =-m68302 -msoft-float
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68302 -msoft-float
CPU_CFLAGS = -m68302
CPU_DEFINES = \
-DVARIANT=$(BSP_VARIANT) -DMC68302_BASE=$(MC68302_BASE) \
-DRAM_BASE=$(RAM_BASE) -DRAM_SIZE=$(RAM_SIZE) \
@@ -71,12 +73,12 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
-o $(basename $@).exe \
-o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
endif
# Miscellaneous additions go here

View File

@@ -58,7 +58,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec

View File

@@ -70,13 +70,13 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $@ $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
$(RM) $(basename $@).srec1
$(NM) -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
endif

View File

@@ -69,7 +69,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec

View File

@@ -12,10 +12,6 @@ RTEMS_CPU_MODEL=ppc403
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=papyrus
# These should be defined in targopt.h now.
#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
# -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
# This section makes the target dependent options file.
# NDEBUG (C library)
@@ -33,15 +29,6 @@ RTEMS_BSP_FAMILY=papyrus
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
# This BSP was initially developed using the PowerOpen ABI.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -53,8 +40,6 @@ define make-target-options
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 1" >>$@
endef
@@ -88,7 +73,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@

View File

@@ -81,13 +81,16 @@ define make-exe
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
$(INSTALL_PROGRAM) -D -m 555 $(basename $@).bt \
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
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
-Wl,--oformat,elf32-i386 -o $(basename $@).obj \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
-o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \
@@ -100,16 +103,19 @@ define make-exe
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
@$(mkinstalldirs) ${PROJECT_RELEASE}/BootImgs
$(INSTALL_PROGRAM) -D -m 555 $(basename $@).bt \
${PROJECT_RELEASE}/BootImgs/$(basename $@)$(LIB_VARIANT).bt
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
test -d ${PROJECT_RELEASE}/BootImgs \
|| mkdir ${PROJECT_RELEASE}/BootImgs
f=`basename $@ .exe`; \
cp $(basename $@).bt \
${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt \
&& chmod 755 \
${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
endef
define make-cxx-exe
$(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
-Wl,--oformat,elf32-i386 -o $(basename $@).obj \
-o $(basename $@).obj \
$(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
-Wl,-Ttext,$(RELOCADDR) -o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \
@@ -121,9 +127,15 @@ define make-cxx-exe
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
$(INSTALL_PROGRAM) -D -m 555 $(basename $@).bt \
${PROJECT_RELEASE}/BootImgs/$(basename $@)$(LIB_VARIANT).bt
$(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
test -d ${PROJECT_RELEASE}/BootImgs \
|| mkdir ${PROJECT_RELEASE}/BootImgs
f=`basename $@ .exe`; \
cp $(basename $@).bt \
${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt \
&& chmod 755 \
${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt
$(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
-Wl,-Ttext,$(RELOCADDR) \
-o $(basename $@).coff $(LINK_OBJS) $(LINK_LIBS)
endef
endif

View File

@@ -36,14 +36,6 @@ RTEMS_BSP_FAMILY=ppcn_60x
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (ppc)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (ppc)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -64,8 +56,6 @@ define make-target-options
@echo "#define PPCN_60X_USE_NONE 0" >>$@
@echo "#define PPC_USE_DATA_CACHE 1" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 0" >>$@
endef
@@ -93,7 +83,7 @@ CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe

View File

@@ -39,14 +39,6 @@ RTEMS_BSP_FAMILY=psim
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -63,8 +55,6 @@ define make-target-options
@echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
@echo "#define PSIM_FAST_IDLE 1" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0xFFF00100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 1" >>$@
endef
@@ -100,7 +90,7 @@ endef
else
# -Wl,--gc-sections
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@

View File

@@ -62,8 +62,7 @@ define make-exe
endef
else
define make-exe
$(LINK.c) \
$(LDLIBS) -o $@ \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(OBJCOPY) -oformat binary $@ $(basename $@).bin

View File

@@ -61,14 +61,6 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This defines the base address of the exception table.
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
#
# PPC_ABI (ppc)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
#
# PPC_ASM (ppc)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
# PPC_USE_SPRG (RTEMS PowerPC port)
# If defined, then the PowerPC specific code in RTEMS will use some
# of the special purpose registers to slightly optimize interrupt
@@ -94,8 +86,6 @@ define make-target-options
@echo "#define SCORE603E_USE_OPEN_FIRMWARE 0" >>$@
@echo "#define PPC_USE_DATA_CACHE 0" >>$@
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
@echo "#define PPC_ABI PPC_ABI_EABI" >>$@
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 0" >>$@
@echo "#define HAS_PMC_PSC8 0" >>$@
endef
@@ -125,7 +115,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).elf

View File

@@ -117,18 +117,14 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) $(GCC_LD_LOC_OPTIONS) \
-o $(basename $@).exe \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(GCC_LD_LOC_OPTIONS) \
-o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
endif
define make-rel
$(LDARGS) $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $(OBJS)
endef
# Miscellaneous additions go here
# BSP-specific tools

View File

@@ -76,7 +76,7 @@ define make-exe
endef
else
define make-exe
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).elf \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary $(basename $@).elf $(basename $@).exe
$(NM) -g -n $(basename $@).elf > $(basename $@).num