| 1 |
30 |
unneback |
#
|
| 2 |
|
|
# Config file for a Radstone Technology Plc. PowerPC 60x based VME board
|
| 3 |
|
|
#
|
| 4 |
|
|
# $Id: ppcn_60x.cfg
|
| 5 |
|
|
#
|
| 6 |
|
|
|
| 7 |
|
|
include $(RTEMS_ROOT)/make/custom/default.cfg
|
| 8 |
|
|
|
| 9 |
|
|
RTEMS_CPU=powerpc
|
| 10 |
|
|
RTEMS_CPU_MODEL=ppc603e
|
| 11 |
|
|
|
| 12 |
|
|
# This is the actual bsp directory used during the build process.
|
| 13 |
|
|
|
| 14 |
|
|
RTEMS_BSP_FAMILY=ppcn_60x
|
| 15 |
|
|
|
| 16 |
|
|
# This contains the compiler options necessary to select the CPU model
|
| 17 |
|
|
# This section makes the target dependent options file.
|
| 18 |
|
|
|
| 19 |
|
|
# NDEBUG (C library)
|
| 20 |
|
|
# if defined asserts do not generate code. This is commonly used
|
| 21 |
|
|
# as a command line option.
|
| 22 |
|
|
#
|
| 23 |
|
|
# RTEMS_TEST_NO_PAUSE (RTEMS tests)
|
| 24 |
|
|
# do not pause between screens of output in the rtems tests
|
| 25 |
|
|
#
|
| 26 |
|
|
# RTEMS_DEBUG (RTEMS)
|
| 27 |
|
|
# If defined, debug checks in RTEMS and support library code are enabled.
|
| 28 |
|
|
#
|
| 29 |
|
|
# PPCN_60X_USE_DINK (ppcn_60x_bsp)
|
| 30 |
|
|
# PPCN_60X_USE_NONE (ppcn_60x_bsp)
|
| 31 |
|
|
# The Score603e board can be configured with 3 ROM monitors. Only two
|
| 32 |
|
|
# are appropriate for use with RTEMS. Set exactly one of these to "1"
|
| 33 |
|
|
# to indicate which ROM monitor is on the board you are using.
|
| 34 |
|
|
#
|
| 35 |
|
|
# PPC_VECTOR_FILE_BASE (ppc)
|
| 36 |
|
|
# This defines the base address of the exception table.
|
| 37 |
|
|
# NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
|
| 38 |
|
|
#
|
| 39 |
|
|
# PPC_USE_SPRG (RTEMS PowerPC port)
|
| 40 |
|
|
# If defined, then the PowerPC specific code in RTEMS will use some
|
| 41 |
|
|
# of the special purpose registers to slightly optimize interrupt
|
| 42 |
|
|
# response time. The use of these registers can conflict with
|
| 43 |
|
|
# other tools like debuggers.
|
| 44 |
|
|
#
|
| 45 |
|
|
# PPC_USE_DATA_CACHE (RTEMS PowerPC port)
|
| 46 |
|
|
# If defined, then the PowerPC specific code in RTEMS will use
|
| 47 |
|
|
# data cache instructions to optimize the context switch code.
|
| 48 |
|
|
# This code can conflict with debuggers or emulators.
|
| 49 |
|
|
#
|
| 50 |
|
|
|
| 51 |
|
|
define make-target-options
|
| 52 |
|
|
@echo "/* #define NDEBUG 1 */ " >>$@
|
| 53 |
|
|
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
|
| 54 |
|
|
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
|
| 55 |
|
|
@echo "#define PPCN_60X_USE_DINK 1" >>$@
|
| 56 |
|
|
@echo "#define PPCN_60X_USE_NONE 0" >>$@
|
| 57 |
|
|
@echo "#define PPC_USE_DATA_CACHE 1" >>$@
|
| 58 |
|
|
@echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@
|
| 59 |
|
|
@echo "#define PPC_USE_SPRG 0" >>$@
|
| 60 |
|
|
endef
|
| 61 |
|
|
|
| 62 |
|
|
# This contains the compiler options necessary to select the CPU model
|
| 63 |
|
|
# and (hopefully) optimize for it.
|
| 64 |
|
|
#
|
| 65 |
|
|
CPU_CFLAGS = -mcpu=603
|
| 66 |
|
|
|
| 67 |
|
|
# optimize flag: typically -0, could use -O4 or -fast
|
| 68 |
|
|
# -O4 is ok for RTEMS
|
| 69 |
|
|
# NOTE: some level of -O may be actually required by inline assembler
|
| 70 |
|
|
CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile
|
| 71 |
|
|
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile
|
| 72 |
|
|
|
| 73 |
|
|
# The following is a linkcmds file which will work without using the
|
| 74 |
|
|
# -specs system in gcc 2.8.
|
| 75 |
|
|
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
|
| 76 |
|
|
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
|
| 77 |
|
|
# $(LD) $(XLDFLAGS) -Ttext 0x20000 \
|
| 78 |
|
|
# -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
|
| 79 |
|
|
|
| 80 |
|
|
# $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
|
| 81 |
|
|
# -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
|
| 82 |
|
|
# $(START_FILE) $(LINK_OBJS) \
|
| 83 |
|
|
# $(LD_LIBS) \
|
| 84 |
|
|
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
|
| 85 |
|
|
define make-exe
|
| 86 |
|
|
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
|
| 87 |
|
|
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
|
| 88 |
|
|
$(NM) -g -n $(basename $@).exe > $(basename $@).num
|
| 89 |
|
|
$(SIZE) $(basename $@).exe
|
| 90 |
|
|
endef
|
| 91 |
|
|
|
| 92 |
|
|
# Miscellaneous additions go here
|
| 93 |
|
|
|
| 94 |
|
|
DRIVER_ARCHITECTURE=vmebus
|