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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the IDP BSP
3
#
4
#  $Id: idp.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
include $(RTEMS_ROOT)/make/custom/default.cfg
8
 
9
RTEMS_CPU=m68k
10
RTEMS_CPU_MODEL=m68ec040
11
 
12
# This is the actual bsp directory used during the build process.
13
RTEMS_BSP_FAMILY=idp
14
 
15
#  This section makes the target dependent options file.
16
 
17
#  NDEBUG (C library)
18
#     if defined asserts do not generate code.  This is commonly used
19
#     as a command line option.
20
#
21
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
22
#     do not pause between screens of output in the rtems tests
23
#
24
#  RTEMS_DEBUG (RTEMS)
25
#     If defined, debug checks in RTEMS and support library code are enabled.
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
#  This contains the compiler options necessary to select the CPU model
34
#  and (hopefully) optimize for it.
35
#
36
CPU_CFLAGS = -msoft-float
37
 
38
# optimize flag: typically -0, could use -O4 or -fast
39
# -O4 is ok for RTEMS
40
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
41
 
42
# The following are definitions of make-exe which will work using ld as
43
# is currently required.  It is expected that as of gcc 2.8, the end user
44
# will be able to override parts of the compilers specs and link using gcc.
45
 
46
ifeq ($(RTEMS_USE_GCC272),yes)
47
 
48
# override default location of Standard C Library
49
LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/msoft-float/libc.a
50
LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/msoft-float/libm.a
51
 
52
define make-exe
53
        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
54
            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
55
        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
56
        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
57
            $(PACKHEX) > $(basename $@).exe
58
        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
59
        $(SIZE) $(basename $@).nxe
60
endef
61
else
62
define make-exe
63
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
64
            $(LINK_OBJS) $(LINK_LIBS)
65
        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
66
        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
67
            $(PACKHEX) > $(basename $@).exe
68
        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
69
        $(SIZE) $(basename $@).nxe
70
endef
71
endif
72
 
73
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

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