OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [p4000.cfg] - Blame information for rev 630

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the algorithmics p4000 evaluation board
3
#
4
#  $Id: p4000.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
# NOTE: this file is broken !
8
 
9
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
10
 
11
# This is the actual bsp directory used during the build process.
12
RTEMS_BSP_FAMILY=p4000
13
 
14
#  This section makes the target dependent options file.
15
 
16
#  NDEBUG (C library)
17
#     if defined asserts do not generate code.  This is commonly used
18
#     as a command line option.
19
#
20
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
21
#     do not pause between screens of output in the rtems tests
22
#
23
#  RTEMS_DEBUG (RTEMS)
24
#     If defined, debug checks in RTEMS and support library code are enabled.
25
#
26
 
27
define make-target-options
28
        @echo "/* #define NDEBUG 1 */ "                     >>$@
29
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
30
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
31
endef
32
 
33
 
34
# optimize flag: typically -0, could use -O4 or -fast
35
# -O4 is ok for RTEMS
36
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
37
 
38
# The following are definitions of make-exe which will work using ld as
39
# is currently required.  It is expected that as of gcc 2.8, the end user
40
# will be able to override parts of the compilers specs and link using gcc.
41
 
42
ifeq ($(RTEMS_USE_GCC272),yes)
43
define make-exe
44
        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
45
            -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %)
46
        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
47
        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
48
        $(RM) $(basename $@).srec1
49
        $(NM) -n $(basename $@).exe > $(basename $@).num
50
        $(SIZE) $(basename $@).exe
51
endef
52
else
53
define make-exe
54
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
55
            $(LINK_OBJS) $(LINK_LIBS)
56
        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
57
        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
58
        $(RM) $(basename $@).srec1
59
        $(NM) -n $(basename $@).exe > $(basename $@).num
60
        $(SIZE) $(basename $@).exe
61
endef
62
endif
63
 
64
# Miscellaneous additions go here
65
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.