URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/rtos/rtems/make/custom
- from Rev 30 to Rev 173
- ↔ Reverse comparison
Rev 30 → Rev 173
/rxgen960.cfg
0,0 → 1,74
# |
# Config file for the generix RAMiX boards with i960 |
# |
# $Id: rxgen960.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=i960 |
RTEMS_CPU_MODEL=i960rp |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=rxgen960 |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -mrp -D__i960RP__ -D__i960_RP__ |
|
# -pipe does not work in our local configuration of FSF GCC 2.6.0 |
# configured on top of Intel Release 2.4. We did this to replace |
# the GCC 2.4.5 shipped with Intel Release 2.4. |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
# ar x $(PROJECT_ROOT)/$(RTEMS_BSP_FAMILY)/lib/libbsp.a |
|
# LD_LIBS += $(PROJECT_RELEASE)/lib/libbsp.a |
|
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) |
$(NM) -g -n $@ > $(basename $@).num |
$(OBJCOPY) -oformat binary $@ $(basename $@).bin |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
|
/default.cfg
0,0 → 1,35
# Default target settings |
# |
# Some of these values are redefined in the target specific .cfg files. |
# |
# Created by Jiri Gaisler, 16-03-97 (who is owed a debt of gratitude |
# for converting RTEMS to autoconf. Thanks. --joel) |
# |
# $Id: default.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/target.cfg |
include $(RTEMS_ROOT)/make/host.cfg |
|
include $(RTEMS_ROOT)/make/main.cfg |
include $(RTEMS_ROOT)/$(RTEMS_BSP)/make/bsp.cfg |
|
# use the inline functions instead of the macros |
# ref: src/exec/generic/Makefile |
ifeq ($(RTEMS_USE_MACROS),yes) |
INLINE=macros |
INLINE_UPCASE= |
else |
INLINE=inline |
INLINE_UPCASE=INLINE |
endif |
|
## Target compiler config file, if any |
CONFIG.CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg |
|
## GCC specs extension file location |
RTEMS_BSP_SPECS = $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/bsp_specs |
|
# Base name of start file |
START_BASE=start |
|
/gensh1.cfg
0,0 → 1,83
# |
# gensh1.cfg |
# |
# default configuration for Hitachi sh1 processors |
# |
# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
# |
# $Id: gensh1.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
HZ=20000000 |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=sh |
RTEMS_CPU_MODEL=sh7032 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=gensh1 |
|
# BSP specific preprocessor flags. |
# These should only be used in BSP dependent directories. |
BSP_CPPFLAGS=-DHZ=$(HZ) |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS=-m1 |
|
# debug flags: typically none, but we use -O1 as it produces better code |
# CFLAGS_DEBUG_V = -O1 |
CFLAGS_DEBUG_V = |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O4 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
# The following are definitions of make-exe which will work using ld as |
# 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 $@ \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
/i386ex.cfg
0,0 → 1,79
# |
# Config file for the i386ex BSP |
# |
# $Id: i386ex.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=i386 |
RTEMS_CPU_MODEL=i386_nofp |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=i386ex |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
# -fomit-frame-pointer breaks debugging and C++ exceptions |
CFLAGS_OPTIMIZE_V=-O4 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# Something like this should produce a map file but this does not work. |
|
# -Xlinker "-Map $(basename $@).map" $(LINK_OBJS) |
# |
# This is a good way to get debug information. The rdmp file is large |
# though (1.9 Mb for hello) and greatly slows the build process. |
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
|
# Miscellaneous additions go here |
|
/gensh2.cfg
0,0 → 1,95
# |
# gensh2.cfg |
# |
# default configuration for Hitachi sh1 processors |
# |
# Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
# |
# $Id: gensh2.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
HZ:=29491200 |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=sh |
RTEMS_CPU_MODEL=sh7045 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=gensh2 |
|
# BSP specific preprocessor flags. |
# These should only be used in BSP dependent directories. |
BSP_CPPFLAGS=-DHZ=$(HZ) |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS= -m2 |
|
# 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 |
CFLAGS_OPTIMIZE_V = -O4 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# STANDALONE_EVB |
# This switch compiles code to jump-start from FLASH, without a monitor |
# |
# START_HW_INIT |
# 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 |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@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 RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
# The following are definitions of make-exe which will work using ld as |
# 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 $@ \ |
$(LINK_OBJS) $(LINK_LIBS) -lstdc++ |
$(NM) -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
/cvme961.cfg
0,0 → 1,73
# |
# Config file for the Cyclone i960ca CVME961 BSP |
# |
# $Id: cvme961.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=i960 |
RTEMS_CPU_MODEL=i960ca |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=cvme961 |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS=-mca |
|
# -pipe does not work in our local configuration of FSF GCC 2.6.0 |
# configured on top of Intel Release 2.4. We did this to replace |
# the GCC 2.4.5 shipped with Intel Release 2.4. |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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 $@ \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -g -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
|
/efi332.cfg
0,0 → 1,66
# |
# Config file for the efi332 BSP |
# |
# $Id: efi332.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=mcpu32 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=efi332 |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
CPU_CFLAGS = -mcpu32 |
|
# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
|
|
# Miscellaneous additions go here |
/eth_comm.cfg
0,0 → 1,71
# |
# Config file for MPC860 based Ethernet Comm Board |
# |
# $Id: eth_comm.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=mpc860 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=eth_comm |
|
CPU_DEFINES=-DPPC_VECTOR_FILE_BASE=0x00000000 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -mcpu=860 |
|
# 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 |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
|
|
/mvme162.cfg
0,0 → 1,103
# |
# Config file for the mvme162 BSP |
# |
# $Id: mvme162.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
|
ifeq ($(RTEMS_MVME162_MODEL),mvme162lx) |
|
RTEMS_CPU_MODEL=m68lc040 |
|
else |
ifeq ($(RTEMS_MVME162_MODEL),) |
|
RTEMS_MVME162_MODEL=mvme162 |
RTEMS_CPU_MODEL=m68040 |
|
endif # mvme162 - mc68040 |
endif # mvme162lx - mc68lc040 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=mvme162 |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
|
ifeq ($(RTEMS_CPU_MODEL),m68040) |
CPU_CFLAGS = -m68040 |
else |
ifeq ($(RTEMS_CPU_MODEL),m68lc040) |
CPU_CFLAGS = -m68040 -msoft-float |
endif # mc68040 |
endif # mc68lc040 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "#undef $(RTEMS_MVME162_MODEL)" >>$@ |
@echo "#define $(RTEMS_MVME162_MODEL)" >>$@ |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
|
ifeq ($(RTEMS_CPU_MODEL),m68lc040) |
# 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 |
endif # mc68lc040 |
|
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) |
$(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 |
endif |
|
# Miscellaneous additions go here |
|
# BSP-specific tools |
SLOAD=$(PROJECT_TOOLS)/sload |
/ppcn_60x.cfg
0,0 → 1,94
# |
# Config file for a Radstone Technology Plc. PowerPC 60x based VME board |
# |
# $Id: ppcn_60x.cfg |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc603e |
|
# This is the actual bsp directory used during the build process. |
|
RTEMS_BSP_FAMILY=ppcn_60x |
|
# This contains the compiler options necessary to select the CPU model |
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# PPCN_60X_USE_DINK (ppcn_60x_bsp) |
# PPCN_60X_USE_NONE (ppcn_60x_bsp) |
# The Score603e board can be configured with 3 ROM monitors. Only two |
# are appropriate for use with RTEMS. Set exactly one of these to "1" |
# to indicate which ROM monitor is on the board you are using. |
# |
# PPC_VECTOR_FILE_BASE (ppc) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
# |
# PPC_USE_DATA_CACHE (RTEMS PowerPC port) |
# If defined, then the PowerPC specific code in RTEMS will use |
# data cache instructions to optimize the context switch code. |
# This code can conflict with debuggers or emulators. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
@echo "#define PPCN_60X_USE_DINK 1" >>$@ |
@echo "#define PPCN_60X_USE_NONE 0" >>$@ |
@echo "#define PPC_USE_DATA_CACHE 1" >>$@ |
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@ |
@echo "#define PPC_USE_SPRG 0" >>$@ |
endef |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -mcpu=603 |
|
# 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=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile |
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile |
|
# The following is a linkcmds file which will work without using the |
# -specs system in gcc 2.8. |
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
# $(START_FILE) $(LINK_OBJS) \ |
# $(LD_LIBS) \ |
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
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 |
|
# Miscellaneous additions go here |
|
DRIVER_ARCHITECTURE=vmebus |
/mvme147.cfg
0,0 → 1,67
# |
# Config file for the mvme147 BSP |
# |
# $Id: mvme147.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68030 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=mvme147 |
|
# default flags |
CPU_CFLAGS= |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
# Miscellaneous additions go here |
|
|
/mvme167.cfg
0,0 → 1,102
# |
# Config file for the mvme167 BSP |
# |
# $Id: mvme167.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# 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 |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=mvme167 |
|
# |
# This contains the compiler options necessary to select the CPU model |
# 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 -DRTEMS_BSP=$(RTEMS_BSP) |
CFLAGS_DEBUG_V += -ggdb |
|
# optimize flag: typically -O, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# 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 |
# It also builds $(ARCH)/foo.nm |
# Usage ref: src/tests/sptest/sp1/Makefile |
# |
# We use TFTP to transfer files to the MVME167. We generate binary files |
# rather than S-records. We skip the header during downloads. |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
# rtems/c/src/lib/libcpu/m68k/m68040/fpsp |
# The default is to use the FPSP. |
# To use the msoft-float libraries, uncomment the three lines below. |
# You then should comment the M68KFPSPInstallExceptionHandlers() statement |
# 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 $@).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 $@).nm |
$(STRIP) -o $(basename $@) $@ |
$(SIZE) $(basename $@).exe |
endef |
endif |
|
# Miscellaneous additions go here |
/posix.cfg
0,0 → 1,36
# |
# Config file for the posix based RTEMS |
# |
# $Id: posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# include $(RTEMS_ROOT)/make/target.cfg |
include $(RTEMS_ROOT)/make/host.cfg |
|
# Set them here, otherwise gcc-target-default.cfg will set them to values |
# not working on some os variants (linux-RH5.0, glibc versions 2.0.0 - 2.0.7) |
# These should be available on all unices |
LIBC_LIBC=-lc |
LIBC_LIBM=-lm |
|
include $(RTEMS_ROOT)/make/custom/$(RTEMS_HOST)-posix.cfg |
|
# Not applicable - let's override 'em |
LINKCMDS= |
START_FILE= |
START_BASE= |
|
# Here is the rule to actually build a $(ARCH)/foo.exe |
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
# Usage ref: src/tests/sptest/sp1/Makefile |
# |
# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile) |
# If NODE is set as an environment variable, don't trust it, zero it out. |
# (NODE turns out to be a very common environment variable) |
ifeq (,$(NODE)) |
NODE=0 |
else |
ifeq "$(origin NODE)" "environment" |
NODE=0 |
endif |
endif |
/gen68360_040.cfg
0,0 → 1,15
# |
# Configuration file for a 68040 using the 68360 in companion mode |
# |
# $Id: gen68360_040.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# |
# All gen68360 configurations share the same base file, only the cpu model |
# differs. |
# |
|
RTEMS_GEN68360_COMPANION_MODE=yes |
|
include $(RTEMS_ROOT)/make/custom/gen68360.cfg |
|
/p4000.cfg
0,0 → 1,65
# |
# Config file for the algorithmics p4000 evaluation board |
# |
# $Id: p4000.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# NOTE: this file is broken ! |
|
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=p4000 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
|
# Miscellaneous additions go here |
|
/papyrus.cfg
0,0 → 1,85
# |
# Config file for a PowerPC 403 based papyrus card |
# |
# $Id: papyrus.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc403 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=papyrus |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# |
# PPC_VECTOR_FILE_BASE (PowerPC) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 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=403 |
|
# 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 |
|
# No start file |
START_BASE= |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
|
|
/p4600.cfg
0,0 → 1,77
# |
# Config file for the algorithmics p4000 evaluation board with R4600 cpu |
# |
# $Id: p4600.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=mips64orion |
RTEMS_CPU_MODEL=R4600 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=p4000 |
|
CPU_CFLAGS=-mcpu=4600 -G0 |
CCMIPS_CFLAGS_CPU=-cpu=r4600 |
|
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(OBJCOPY) -O srec $@ $(basename $@).srec1 |
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
$(RM) $(basename $@).srec1 |
$(NM) -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
|
/Solaris-posix.cfg
0,0 → 1,63
# |
# Config file for the Solaris based RTEMS UNIX |
# |
# $Id: Solaris-posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=unix |
RTEMS_CPU_FAMILY=sparc |
RTEMS_CPU_MODEL=sparc_v8 |
RTEMS_UNIX_FLAVOR=solaris |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=posix |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# The following define the memory reserved in the executable for the |
# RTEMS Workspace and the C Program Heap. |
LIBC_DEFINES += -DWORKSPACE_MB=2 |
LIBC_DEFINES += -DHEAPSPACE_MB=1 |
LIBC_DEFINES +=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
|
DEFINES += -D__EXTENSIONS__ -Dsolaris2 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O2 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# RTEMS_UNIX (unix) |
# Define this to indicate this is an RTEMS UNIX port. |
|
define make-target-options |
echo "/* #define NDEBUG 1 */ " >>$@ |
echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
echo "#define RTEMS_UNIX 1 " >>$@ |
endef |
|
define make-exe |
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
$(NM) -ng $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
|
# ***************************************************************** |
|
|
# Miscellaneous additions go here |
/idp.cfg
0,0 → 1,73
# |
# Config file for the IDP BSP |
# |
# $Id: idp.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68ec040 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=idp |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -msoft-float |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
|
# Miscellaneous additions go here |
/HPUX9-posix.cfg
0,0 → 1,68
# |
# Config file for HPUX running the posix bsp |
# |
# $Id: HPUX9-posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# Specify here the host and target "architectures" |
RTEMS_CPU=unix |
RTEMS_CPU_FAMILY=hppa1_1 |
RTEMS_CPU_MODEL=hppa7200 |
RTEMS_UNIX_FLAVOR=hpux |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=posix |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# use the macros instead of the inline functions |
# The macros work better when mixed with other compilers. |
INLINE=macros |
INLINE_UPCASE=MACRO |
|
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
|
# The following define the memory reserved in the executable for the |
# RTEMS Workspace and the C Program Heap. |
# NOTE: some of the timing tests need > 1M workspace |
LIBC_DEFINES += -DWORKSPACE_MB=2 |
LIBC_DEFINES += -DHEAPSPACE_MB=1 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O2 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# RTEMS_UNIX (unix) |
# Define this to indicate this is an RTEMS UNIX port. |
|
define make-target-options |
echo "/* #define NDEBUG 1 */ " >>$@ |
echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
echo "#define RTEMS_UNIX 1 " >>$@ |
endef |
|
define make-exe |
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
$(NM) -ng $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
|
# Miscellaneous additions go here |
|
/erc32.cfg
0,0 → 1,97
# |
# Config file for the European Space Agency ERC32 |
# a V7 SPARC processor derived from the Cypress 601/602 set. |
# |
# $Id: erc32.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=sparc |
RTEMS_CPU_MODEL=erc32 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=erc32 |
|
# 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 |
else |
# -mcpu=cypress says to optimize for a Cypress 60x chipset |
CPU_CFLAGS = -mcpu=cypress |
endif |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 |
|
# This makes the target dependent options file |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# CONSOLE_USE_POLLED (erc32_bsp) |
# CONSOLE_USE_INTERRUPTS (erc32_bsp) |
# The erc32 console driver can operate in either polled or interrupt mode. |
# Under the simulator (especially when FAST_UART is defined), polled seems |
# to operate better. It is common for a task to print a line (like the |
# end of test message) and then exit. In this case, the program returns |
# control to the simulator command line before the program has even queued |
# the output to the uart. Thus sis has no chance of getting the data out. |
# |
# SIMSPARC_FAST_IDLE (erc32_bsp) |
# If defined, speed up the clock ticks while the idle task is running so |
# time spent in the idle task is minimized. This significantly reduces |
# the wall time required to execute the RTEMS test suites. |
# |
# FPU_REVB (erc32_bsp) |
# If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
@echo "#define NO_TABLE_MOVE 1" >>$@ |
@echo "#define CONSOLE_USE_INTERRUPTS 0" >>$@ |
@echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@ |
@echo "/* #define SIMSPARC_FAST_IDLE 1 */" >>$@ |
@echo "#define FPU_REVB 1" >>$@ |
endef |
|
|
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
|
/dmv152.cfg
0,0 → 1,80
# |
# Config file for the dmv152 BSP |
# |
# $Id: dmv152.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68020 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=dmv152 |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
|
CPU_CFLAGS = |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# USE_CHANNEL_A (DMV152) |
# USE_CHANNEL_B (DMV152) |
# One and only one of these should be set to 1 to indicate which |
# serial port is used as the RTEMS console. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
@echo "#define USE_CHANNEL_A 1" >>$@ |
@echo "#define USE_CHANNEL_B 0" >>$@ |
endef |
|
# Here is the rule to actually build a $(ARCH)/foo.exe |
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
# Usage ref: src/tests/sptest/sp1/Makefile |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
$(PACKHEX) > $@ |
$(NM) -g -n $(basename $@).nxe > $(basename $@).num |
$(SIZE) $(basename $@).nxe |
endef |
endif |
|
# Miscellaneous additions go here |
/no_bsp.cfg
0,0 → 1,31
# |
# Configuration file for the "no_bsp" board |
# |
# $Id: no_bsp.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=no_cpu |
RTEMS_CPU_MODEL=no_cpu_model |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=no_bsp |
|
# Define this to yes if C++ is included in the development environment. |
# This requires that at least the GNU C++ compiler and libg++ be installed. |
# |
# Need "main" in BSP so can't link C++ sample test or you will get |
# duplicate symbol errors for main |
# |
HAS_CPLUSPLUS=no |
|
# Miscellaneous additions go here |
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 |
/mvme2307.cfg
0,0 → 1,108
# |
# Config file for the PowerPC 604 based mvme2307 |
# |
# $Id: mvme2307.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
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 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# CONSOLE_USE_POLLED (mvme2307_bsp) |
# CONSOLE_USE_INTERRUPTS (mvme2307_bsp) |
# The mvme2307 console driver has the structure to operate in either |
# polled or interrupt mode. However both modes only trap to the |
# monitor currently. |
# |
# PPC_VECTOR_FILE_BASE (PowerPC) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
# |
|
define make-target-options |
@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 -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 |
|
# 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. |
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
# $(START_FILE) $(LINK_OBJS) \ |
# $(LD_LIBS) \ |
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
define make-exe |
$(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 |
|
|
# Miscellaneous additions go here |
|
# No start file |
START_BASE= |
/ts_386ex.cfg
0,0 → 1,88
# |
# Config file for the ts-386ex BSP |
# |
# $Id: ts_386ex.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=i386 |
RTEMS_CPU_MODEL=i386_nofp |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=ts_386ex |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. Enables software floating-point |
# emulation since we don't have a i387 co-processor. |
# |
CPU_CFLAGS =-msoft-float -mno-fp-ret-in-387 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
# -fomit-frame-pointer breaks debugging and C++ exceptions |
CFLAGS_OPTIMIZE_V= -O4 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# BSP_DEBUG (BSP) |
# Enables some debugging in the BSP package. |
# |
# LOAD_RTC_AT_START (BSP) |
# Initialize RTC and load into system clock at startup. This will break |
# some tests. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "#define RTEMS_DEBUG 1" >>$@ |
@echo "/* #define UARTDEBUG 1 */" >>$@ |
@echo "/* #define BSP_DEBUG 1 */" >>$@ |
@echo "#define LOAD_RTC_AT_START 1" >>$@ |
endef |
|
# Something like this should produce a map file but this does not work. |
|
# -Xlinker "-Map $(basename $@).map" $(LINK_OBJS) |
# |
# This is a good way to get debug information. The rdmp file is large |
# though (1.9 Mb for hello) and greatly slows the build process. |
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(OBJCOPY) -O binary $(basename $@).elf $(basename $@).exe |
$(NM) -g -n $(basename $@).elf > $(basename $@).num |
$(SIZE) $(basename $@).elf |
endef |
endif |
|
# Miscellaneous additions go here |
|
/helas403.cfg
0,0 → 1,91
# |
# Config file for a PowerPC 403 based helas403 card |
# |
# $Id: helas403.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
# this is derived from: |
# |
# Config file for a PowerPC 403 based papyrus card |
# |
# Id: papyrus.cfg,v 1.7 1998/06/27 17:09:47 joel Exp |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc403 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=helas403 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# |
# PPC_VECTOR_FILE_BASE (PowerPC) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 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=403 |
|
# 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 |
|
# No start file |
START_BASE= |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
|
|
/mvme147s.cfg
0,0 → 1,16
# |
# Config file for the mvme147s BSP |
# |
# $Id: mvme147s.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# |
# mvme147s and mvme147 use the same toolset |
# |
|
include $(RTEMS_ROOT)/make/custom/mvme147.cfg |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=mvme147s |
|
# Miscellaneous additions go here |
/dmv177.cfg
0,0 → 1,112
# |
# Config file for a PowerPC 603e based DY-4 VMEbus Single Board Computer. |
# This BSP should work with the following models: |
# |
# + SVME-171/DMV-171 |
# + SVME-176/DMV-176 |
# |
# $Id: dmv177.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc603e |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=dmv177 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# CONSOLE_USE_POLLED (psim_bsp) |
# CONSOLE_USE_INTERRUPTS (psim_bsp) |
# The psim console driver has the structure to operate in either |
# polled or interrupt mode. However both modes only trap to the |
# monitor currently. |
# |
# PPC_VECTOR_FILE_BASE (ppc) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
# |
# PPC_USE_DATA_CACHE (RTEMS PowerPC port/BSP) |
# If defined, then the PowerPC specific code in RTEMS will use |
# data cache instructions to optimize the context switch code. |
# This code can conflict with debuggers or emulators. It is known |
# to break the Corelis PowerPC emulator with at least some combinations |
# of PowerPC 603e revisions and emulator versions. |
# The BSP actually contains the call that enables this. |
# |
# PPC_USE_INSTRUCTION_CACHE (RTEMS PowerPC port/BSP) |
# If defined, then the PowerPC specific code in RTEMS will use |
# data cache instructions to optimize the context switch code. |
# This code can conflict with debuggers or emulators. |
# The BSP actually contains the call that enables this. |
|
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 0x0100" >>$@ |
@echo "#define PPC_USE_SPRG 0" >>$@ |
@echo "#define PPC_USE_DATA_CACHE 0" >>$@ |
@echo "#define PPC_USE_INSTRUCTION_CACHE 1" >>$@ |
endef |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -mcpu=603 |
|
# 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 |
|
# Define this to yes if this target supports a real-time clock. |
HAS_RTC=yes |
|
# 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) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
# $(START_FILE) $(LINK_OBJS) \ |
# $(LD_LIBS) \ |
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
define make-exe |
$(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 |
$(NM) -g -n $(basename $@).nxe > $(basename $@).num |
$(SIZE) $(basename $@).nxe |
$(STRIP) $(basename $@).nxe |
endef |
|
# Miscellaneous additions go here |
|
# Let the HWAPI know which set of drivers to build |
DRIVER_ARCHITECTURE=vmebus |
/ods68302.cfg
0,0 → 1,106
# |
# Config file for a "ODS 68302" BSP |
# |
# Differs from the gen68302 by providing most of the boot code as C |
# code. This allows separate board definitions to be based on C |
# header files. The file is based on the VARIANT defined. |
# |
# $Id: ods68302.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68302 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=ods68302 |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
# 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) \ |
-DROM_BASE=$(ROM_BASE) -DROM_SIZE=$(ROM_SIZE) |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# debugging please |
CFLAGS_DEBUG_V = |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "#define RTEMS_DEBUG 1" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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 -Ttext $(ROM_BASE) \ |
-defsym MC68302_BASE=$(MC68302_BASE) \ |
-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) \ |
-Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \ |
-o $@ \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -g -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
# Miscellaneous additions go here |
|
ifeq "$(strip $(BSP_VARIANT))" "" |
BSP_VARIANT=bare |
MC68302_BASE=0x00700000 |
RAM_BASE=0x00000000 |
RAM_SIZE=0x00100000 |
|
ifeq ($(RTEMS_DEBUGGER),yes) |
ROM_BASE=0x00010000 |
LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom |
else |
ROM_BASE=0x00C00000 |
LINKCMDS=$(PROJECT_RELEASE)/lib/rom |
endif |
|
ROM_SIZE=0x00100000 |
|
else |
|
# pattern match the variant to set the memory map |
|
endif |
/efi68k.cfg
0,0 → 1,70
# |
# Config file for the efi68k BSP |
# |
# $Id: efi68k.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68000 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=efi68k |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
# 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 |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
$(PACKHEX) > $@ |
$(NM) -g -n $(basename $@).nxe > $(basename $@).num |
$(SIZE) $(basename $@).nxe |
endef |
endif |
|
# Miscellaneous additions go here |
/portsw.cfg
0,0 → 1,56
# |
# Custom file for "portsw" -- AMD 29205 based board |
# |
# $Id: portsw.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# Note: This file is broken for sure |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=a29k |
RTEMS_CPU_MODEL=a29205 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=portsw |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
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 $@ \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
/mvme136.cfg
0,0 → 1,71
# |
# Config file for the mvme136 BSP |
# |
# $Id: mvme136.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68020 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=mvme136 |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
# Miscellaneous additions go here |
|
|
|
/Linux-posix.cfg
0,0 → 1,65
# |
# Config file for the Linux 1.x based RTEMS UNIX |
# |
# $Id: Linux-posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=unix |
RTEMS_CPU_FAMILY=i386 |
RTEMS_CPU_MODEL=i486dx |
RTEMS_UNIX_FLAVOR=linux |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=posix |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
LIBC_DEFINES =-D_POSIX_C_SOURCE |
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
|
# The following define the memory reserved in the executable for the |
# RTEMS Workspace and the C Program Heap. |
LIBC_DEFINES += -DWORKSPACE_MB=2 |
LIBC_DEFINES += -DHEAPSPACE_MB=1 |
|
DEFINES += -D_BSD_SOURCE |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O2 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# RTEMS_UNIX (unix) |
# Define this to indicate this is an RTEMS UNIX port. |
|
define make-target-options |
echo "/* #define NDEBUG 1 */ " >>$@ |
echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
echo "#define RTEMS_UNIX 1 " >>$@ |
endef |
|
define make-exe |
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
$(NM) -ng $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
|
|
# ***************************************************************** |
# Miscellaneous additions go here |
/bender.cfg
0,0 → 1,30
# |
# Configuration file for the "bender" chip |
# |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=or1k |
RTEMS_CPU_MODEL=or1k_model |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=bender |
|
# Define this to yes if C++ is included in the development environment. |
# This requires that at least the GNU C++ compiler and libg++ be installed. |
# |
# Need "main" in BSP so can't link C++ sample test or you will get |
# duplicate symbol errors for main |
# |
HAS_CPLUSPLUS=no |
|
# Miscellaneous additions go here |
define make-exe |
$(LD) $(LDFLAGS) -N -e ___rst \ |
-T$(PROJECT_RELEASE)/lib/linkcmds\ |
-o $(basename $@).exe \ |
$(START_FILE) $(LINK_OBJS) -lrtemsall -lcsupport -lposix -lc -lbsp /projects/or32-rtems/lib/gcc-lib/or32-rtems/2.95.2/libgcc.a -lm -lc -lcsupport --start-group --end-group |
$(NM) -n $(basename $@).exe > $(basename $@).num |
$(SIZE) $(basename $@).exe |
endef |
/Cygwin-posix.cfg
0,0 → 1,65
# |
# Config file for the Cygwin based RTEMS UNIX |
# |
# $Id: Cygwin-posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=unix |
RTEMS_CPU_FAMILY=i386 |
RTEMS_CPU_MODEL=i486dx |
RTEMS_UNIX_FLAVOR=cygwin |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=posix |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
LIBC_DEFINES =-D_POSIX_C_SOURCE |
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
|
# The following define the memory reserved in the executable for the |
# RTEMS Workspace and the C Program Heap. |
LIBC_DEFINES += -DWORKSPACE_MB=2 |
LIBC_DEFINES += -DHEAPSPACE_MB=1 |
|
DEFINES += -D_BSD_SOURCE |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O2 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# RTEMS_UNIX (unix) |
# Define this to indicate this is an RTEMS UNIX port. |
|
define make-target-options |
echo "/* #define NDEBUG 1 */ " >>$@ |
echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
echo "#define RTEMS_UNIX 1 " >>$@ |
endef |
|
define make-exe |
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
$(NM) -ng $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
|
|
# ***************************************************************** |
# Miscellaneous additions go here |
/mvme162lx.cfg
0,0 → 1,17
# |
# Configuration file for a MVME162LX |
# |
# This is an MVME162 model with ... |
# |
# $Id: mvme162lx.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# |
# All mvme162 configurations share the same base file, only the cpu model |
# differs. |
# |
|
RTEMS_MVME162_MODEL=mvme162lx |
|
include $(RTEMS_ROOT)/make/custom/mvme162.cfg |
|
/simhppa.cfg
0,0 → 1,131
# |
# Config file for the 7100 pa-risc simulator |
# |
# $Id: simhppa.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=hppa1.1 |
RTEMS_CPU_MODEL=hppa7200 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=simhppa |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
# Possibles: |
# -mpa-risc-1-1 -- HPPA 1.1 instead of 1.0 |
# -mportable-runtime |
# |
CPU_CFLAGS = -mpa-risc-1-1 -mportable-runtime |
|
# Possibles: |
# -Wall -- lots of warnings |
# -pipe -- compiler uses pipes to talk to phases (usually faster) |
# -ansi -- ANSI C compliance |
# -fasm -- ANSI, but allow inline assembler |
# -mgas -- we are using gas as assembler |
# -fno-keep-inline-functions -- do not emit any inlines as static |
CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall -ansi -fasm -mgas |
|
# 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 |
|
# This makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# SIMHPPA_FAST_IDLE (simhppa) |
# If defined, speed up the clock ticks while the idle task is running so |
# time spent in the idle task is minimized. This significantly reduces |
# the wall time required to execute the RTEMS test suites. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
@echo "#define SIMHPPA_FAST_IDLE 1 " >>$@ |
endef |
|
# |
# GNU ld options |
# `-Tbss ORG' |
# `-Tdata ORG' |
# `-Ttext ORG' |
# Use ORG as the starting address for--respectively--the `bss', |
# `data', or the `text' segment of the output file. ORG must be a |
# single hexadecimal integer; for compatibility with other linkers, |
# you may omit the leading `0x' usually associated with hexadecimal |
# values. |
|
# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile) |
# If NODE is set as an environment variable, don't trust it, zero it out. |
# (NODE turns out to be a very common environment variable) |
ifeq (,$(NODE)) |
NODE=0 |
else |
ifeq "$(origin NODE)" "environment" |
NODE=0 |
endif |
endif |
|
# XXX some/all of this should move into 'linkcmds' |
# single processor |
DATA_0_BASE=0x40001000 |
TEXT_0_BASE=0x00001000 |
|
# first node (mptests number them from 1) |
DATA_1_BASE=$(DATA_0_BASE) |
TEXT_1_BASE=$(TEXT_0_BASE) |
|
# second node (mptests number them from 1) |
DATA_2_BASE=0x48001000 |
TEXT_2_BASE=0x08001000 |
|
# for hpux ld |
#LD_LOC_OPTIONS=-D $(DATA_$(NODE)_BASE) -R $(TEXT_$(NODE)_BASE) |
# for gnu ld |
LD_LOC_OPTIONS=-Tdata $(DATA_$(NODE)_BASE) -Ttext $(TEXT_$(NODE)_BASE) |
GCC_LD_LOC_OPTIONS=-W,l-T -W,ldata -W,l$(DATA_$(NODE)_BASE) \ |
-W,l-T -W,ltext -W,l$(TEXT_$(NODE)_BASE) |
|
|
# The following are definitions of make-exe which will work using ld as |
# 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 $@ \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -g -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
|
# BSP-specific tools |
PRINTDUMP=$(PROJECT_TOOLS)/print_dump |
/pc386.cfg
0,0 → 1,146
# |
# Config file for the PC 386 BSP |
# |
# $Id: pc386.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=i386 |
ifeq ($(RTEMS_CPU_MODEL),) |
RTEMS_CPU_MODEL=i386_fp |
endif |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=pc386 |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
# NOTE: CPU_CFLAGS is set by pc386 variants. |
# CPU_CFLAGS = |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
# -fomit-frame-pointer breaks debugging and C++ exceptions |
CFLAGS_OPTIMIZE_V=-O4 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "/* #define RTEMS_TEST_NO_PAUSE 1 */" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# Here is the rule to actually build a $(ARCH)/foo.exe |
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm |
# Usage ref: src/tests/sptest/sp1/Makefile |
|
#+--------------------------------------------------------------------------+ |
#| Set the value of RELOCADDR to the address where you want your image to |
#| load. If you'll be using GRUB to load the images it will have to be >= |
#| 0x100000 (1024K). If you are using NetBoot to load the images it can be |
#| >= 0x10000 (64K) AND <= 0x97C00 (607K) OR >= 0x100000 (1024K). The memory |
#| top is of course another limit. Make sure there is enough space before the |
#| upper memory limits for the image and the memory allocated by it to fit. |
#| Make sure the value you choose is aligned to 4 bytes. |
#+--------------------------------------------------------------------------+ |
RELOCADDR=0x00100000 |
|
START16FILE=$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin |
START16ADDR=0x00097C00 |
HEADERADDR=0x00097E00 |
|
# The following are definitions of make-exe which will work using ld as |
# 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 \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(OBJCOPY) -O elf32-i386 \ |
--remove-section=.rodata \ |
--remove-section=.comment \ |
--remove-section=.note \ |
--strip-unneeded $(basename $@).obj $@ |
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin |
$(PROJECT_TOOLS)/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 |
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 |
$(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 \ |
--remove-section=.comment \ |
--remove-section=.note \ |
--strip-unneeded $(basename $@).obj $@ |
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin |
$(PROJECT_TOOLS)/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 |
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 |
|
# Miscellaneous additions go here |
|
# BSP-specific tools |
BIN2BOOT=$(PROJECT_TOOLS)/bin2boot |
/pc486.cfg
0,0 → 1,11
# |
# Configuration file for a PC using an i486DX Class CPU |
# |
# $Id: pc486.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU_MODEL=i486dx |
CPU_CFLAGS = -mcpu=i486 |
|
include $(RTEMS_ROOT)/make/custom/pc386.cfg |
|
/pc586.cfg
0,0 → 1,11
# |
# Configuration file for a PC using a Pentium Class CPU |
# |
# $Id: pc586.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU_MODEL=pentium |
CPU_CFLAGS = -mcpu=i586 |
|
include $(RTEMS_ROOT)/make/custom/pc386.cfg |
|
/pc686.cfg
0,0 → 1,11
# |
# Configuration file for a PC using a PentiumPro Class CPU |
# |
# $Id: pc686.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU_MODEL=pentiumpro |
CPU_CFLAGS = -mcpu=i686 |
|
include $(RTEMS_ROOT)/make/custom/pc386.cfg |
|
/psim.cfg
0,0 → 1,100
# |
# Config file for the PowerPC 60x simulator - psim |
# |
# $Id: psim.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc603e |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=psim |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# CONSOLE_USE_POLLED (psim_bsp) |
# CONSOLE_USE_INTERRUPTS (psim_bsp) |
# The psim console driver has the structure to operate in either |
# polled or interrupt mode. However both modes only trap to the |
# monitor currently. |
# |
# PSIM_FAST_IDLE (psim_bsp) |
# If defined, speed up the clock ticks while the idle task is running so |
# time spent in the idle task is minimized. This significantly reduces |
# the wall time required to execute the RTEMS test suites. |
# |
# PPC_VECTOR_FILE_BASE (PowerPC) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
|
|
|
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 PSIM_FAST_IDLE 1" >>$@ |
@echo "#define PPC_VECTOR_FILE_BASE 0xFFF00100" >>$@ |
@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=603 |
#-ffunction-sections |
|
# 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 |
|
# The following is a linkcmds file which will work without using the |
# -specs system in gcc 2.8. |
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
# $(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 \ |
$(LINK_OBJS) $(LINK_LIBS) |
$(NM) -g -n $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
endif |
|
# Miscellaneous additions go here |
/bare.cfg
0,0 → 1,53
# |
# Config file for the "bare" BSP |
# |
# $Id: bare.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=bare |
|
RTEMS_BSP=bare |
|
RTEMS_CPU_MODEL=$(BARE_CPU_MODEL) |
|
CPU_CFLAGS=$(BARE_CPU_CFLAGS) |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# this target has no start file |
START_BASE= |
|
# The following are definitions of make-exe which will work using ld as |
# 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. |
|
define make-exe |
echo "Cannot do a link with the bare bsp." |
echo "#!/bin/sh" > $(basename $@).exe |
echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe |
endef |
|
# Miscellaneous additions go here |
/score603e.cfg
0,0 → 1,131
# |
# Config file for a PowerPC 603e based Vista VMEbus Single Board Computer. |
# This BSP should work with the following models: |
# |
# + Vista SCORE 603e |
# |
# $Id: score603e.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=ppc603e |
|
# Set the default generation if it has not been overridden |
ifeq ($(SCORE603E_GENERATION),) |
SCORE603E_GENERATION=2 |
endif |
|
|
# This is the actual bsp directory used during the build process. |
|
RTEMS_BSP_FAMILY=score603e |
|
ifeq ($(SCORE603E_GENERATION),1) |
RTEMS_BSP=score603e_g1 |
|
else |
ifeq ($(SCORE603E_GENERATION),2) |
RTEMS_BSP=score603e |
|
endif # generation 2 |
endif # generation 1 |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# CONSOLE_USE_POLLED (score603e_bsp) |
# CONSOLE_USE_INTERRUPTS (score603e_bsp) |
# The score603e console driver has the structure to operate in either |
# polled or interrupt mode. However both modes only trap to the |
# monitor currently. |
# |
# SCORE603E_USE_SDS (score603e_bsp) |
# SCORE603E_USE_OPEN_FIRMWARE (score603e_bsp) |
# SCORE603E_USE_NONE (score603e_bsp) |
# The Score603e board can be configured with 3 ROM monitors. Only two |
# are appropriate for use with RTEMS. Set exactly one of these to "1" |
# to indicate which ROM monitor is on the board you are using. |
# |
# PPC_VECTOR_FILE_BASE (ppc) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
# |
# PPC_USE_DATA_CACHE (RTEMS PowerPC port) |
# If defined, then the PowerPC specific code in RTEMS will use |
# data cache instructions to optimize the context switch code. |
# This code can conflict with debuggers or emulators. |
# |
|
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 INITIALIZE_COM_PORTS 1" >>$@ |
@echo "#define SCORE603E_GENERATION $(SCORE603E_GENERATION)" >>$@ |
@echo "#define SCORE603E_USE_SDS 0" >>$@ |
@echo "#define SCORE603E_USE_NONE 0" >>$@ |
@echo "#define SCORE603E_USE_DINK 1" >>$@ |
@echo "#define SCORE603E_USE_OPEN_FIRMWARE 0" >>$@ |
@echo "#define PPC_USE_DATA_CACHE 0" >>$@ |
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@ |
@echo "#define PPC_USE_SPRG 0" >>$@ |
@echo "#define HAS_PMC_PSC8 0" >>$@ |
endef |
|
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
CPU_CFLAGS = -mcpu=603 |
|
# 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=-O0 |
|
# The following is a linkcmds file which will work without using the |
# -specs system in gcc 2.8. |
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(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) |
$(NM) -g -n $(basename $@).elf > $(basename $@).num |
$(SIZE) $(basename $@).elf |
$(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1 |
sed -e 's/.$$//' $(basename $@).s1 | \ |
$(PACKHEX) >$(basename $@).exe |
rm -f $(basename $@).s1 |
endef |
endif |
|
# Miscellaneous additions go here |
|
DRIVER_ARCHITECTURE=vmebus |
/FreeBSD-posix.cfg
0,0 → 1,63
# |
# Config file for the FreeBSD 2.x based RTEMS UNIX |
# |
# |
|
RTEMS_CPU=unix |
RTEMS_CPU_FAMILY=i386 |
RTEMS_CPU_MODEL=i486dx |
RTEMS_UNIX_FLAVOR=freebsd |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=posix |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
LIBC_DEFINES =-D_POSIX_C_SOURCE |
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
|
# The following define the memory reserved in the executable for the |
# RTEMS Workspace and the C Program Heap. |
LIBC_DEFINES += -DWORKSPACE_MB=2 |
LIBC_DEFINES += -DHEAPSPACE_MB=1 |
|
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V = -O2 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# NO_TABLE_MOVE (SPARC PORT) |
# do not have a second trap table -- use the BSP's |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# RTEMS_UNIX (unix) |
# Define this to indicate this is an RTEMS UNIX port. |
|
define make-target-options |
echo "/* #define NDEBUG 1 */ " >>$@ |
echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
echo "#define RTEMS_UNIX 1 " >>$@ |
endef |
|
define make-exe |
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
$(NM) -ng $@ > $(basename $@).num |
$(SIZE) $@ |
endef |
|
|
# ***************************************************************** |
# Miscellaneous additions go here |
/mcp750.cfg
0,0 → 1,110
# |
# Config file for Motorola MCP750 -- a MPC750 CompactPCI board |
# |
# $Id: mcp750.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=powerpc |
RTEMS_CPU_MODEL=mpc750 |
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=motorola_powerpc |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
# PPC_VECTOR_FILE_BASE (ppc) |
# This defines the base address of the exception table. |
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
# |
# 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 |
# response time. The use of these registers can conflict with |
# other tools like debuggers. |
# |
# PPC_USE_DATA_CACHE (RTEMS PowerPC port) |
# If defined, then the PowerPC specific code in RTEMS will use |
# data cache instructions to optimize the context switch code. |
# This code can conflict with debuggers or emulators. |
# |
|
define make-target-options |
@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. |
# |
# 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 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
# NOTE2: some level of -O may be actually required by inline assembler (at least |
# -O2 so far. |
# NOTE2 Apparently nobody really knows the status or r2 and r13. |
# 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 |
#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) \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \ |
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES) |
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \ |
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \ |
# $(START_FILE) $(LINK_OBJS) \ |
# $(LD_LIBS) \ |
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\) |
define make-exe |
$(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=$@; ) |
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 |
|
# Let the HWAPI know which set of drivers to build |
DRIVER_ARCHITECTURE=compactpci |
/Makefile.am
0,0 → 1,23
## |
## $Id: Makefile.am,v 1.2 2001-09-27 12:02:52 chris Exp $ |
## |
|
AUTOMAKE_OPTIONS = foreign 1.4 |
|
rtems_makedir = $(prefix)/make |
rtems_make_customdir = $(rtems_makedir)/custom |
|
rtems_make_custom_DATA = default.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/host.am |
/gen68302.cfg
0,0 → 1,69
# |
# Config file for a "generic 68302" BSP |
# |
# $Id: gen68302.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=m68k |
RTEMS_CPU_MODEL=m68302 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=gen68302 |
|
# |
# This contains the compiler options necessary to select the CPU model |
# and (hopefully) optimize for it. |
# |
# 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 |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
/gen68340.cfg
0,0 → 1,84
# |
# Config file for a "generic 68340" BSP |
# |
# $Id: gen68340.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=m68k |
|
RTEMS_CPU_MODEL=mcpu32 |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=gen68340 |
|
CPU_CFLAGS = -mcpu32 |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |
# 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 |
|
|
# Miscellaneous additions go here |
/p4650.cfg
0,0 → 1,75
# |
# Config file for the algorithmics p4000 evaluation board with R4650 cpu |
# |
# $Id: p4650.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
RTEMS_CPU=mips64orion |
RTEMS_CPU_MODEL=R4650 |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=p4000 |
|
CPU_CFLAGS=-m4650 -G0 |
CCMIPS_CFLAGS_CPU=-cpu=r4650 |
|
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
|
# This section makes the target dependent options file. |
|
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
|
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# The following are definitions of make-exe which will work using ld as |
# 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) |
$(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 |
endif |
|
# Miscellaneous additions go here |
/gen68360.cfg
0,0 → 1,90
# |
# Config file for a "generic 68360" BSP |
# |
# $Id: gen68360.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $ |
# |
|
RTEMS_CPU=m68k |
|
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes) |
RTEMS_CPU_MODEL=m68040 |
else |
RTEMS_CPU_MODEL=mcpu32 |
endif |
|
include $(RTEMS_ROOT)/make/custom/default.cfg |
|
# This is the actual bsp directory used during the build process. |
RTEMS_BSP_FAMILY=gen68360 |
|
# |
# You must use versions of gcc and gas that support the -mcpu32 option. |
# |
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes) |
CPU_CFLAGS= -m68040 |
else |
CPU_CFLAGS = -mcpu32 |
endif |
|
# optimize flag: typically -0, could use -O4 or -fast |
# -O4 is ok for RTEMS |
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
|
# This section makes the target dependent options file. |
# NDEBUG (C library) |
# if defined asserts do not generate code. This is commonly used |
# as a command line option. |
# |
# RTEMS_TEST_NO_PAUSE (RTEMS tests) |
# do not pause between screens of output in the rtems tests |
# |
# RTEMS_DEBUG (RTEMS) |
# If defined, debug checks in RTEMS and support library code are enabled. |
# |
|
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes) |
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
endef |
else |
define make-target-options |
@echo "/* #define NDEBUG 1 */ " >>$@ |
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
@echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
@echo "#define RTEMS__mcpu32p__ 1" >>$@ |
endef |
endif |
|
# The following are definitions of make-exe which will work using ld as |
# 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 |