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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [frv/] [arch/] [v2_0/] [cdl/] [hal_frv.cdl] - Blame information for rev 773

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_frv.cdl
4
#
5
#      FUJITSU architectural HAL package configuration data
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      bartv
44
# Original data:  gthomas
45
# Contributors:
46
# Date:           2001-09-07
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
cdl_package CYGPKG_HAL_FRV {
52
    display       "FUJITSU architecture"
53
    parent        CYGPKG_HAL
54
    hardware
55
    include_dir   cyg/hal
56
    define_header hal_frv.h
57
    description   "
58
        The FUJITSU architecture HAL package provides generic
59
        support for this processor architecture. It is also
60
        necessary to select a specific target platform HAL
61
        package."
62
 
63
    compile       hal_misc.c context.S frv_stub.c hal_syscall.c
64
 
65
    # special rule used to build any include files, etc, used by assembly code
66
    make -priority 1 {
67
        frv.inc : /src/hal_mk_defs.c
68
        $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,frv.tmp -o hal_mk_defs.tmp -S $<
69
        fgrep .equ hal_mk_defs.tmp | sed s/#// | sed s/\\.equ/#define/ > $@
70
        @echo $@ ": \\" > $(notdir $@).deps
71
        @tail +2 frv.tmp >> $(notdir $@).deps
72
        @echo >> $(notdir $@).deps
73
        @rm frv.tmp hal_mk_defs.tmp
74
    }
75
 
76
    make {
77
        /lib/vectors.o : /src/vectors.S
78
        $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
79
        @echo $@ ": \\" > $(notdir $@).deps
80
        @tail +2 vectors.tmp >> $(notdir $@).deps
81
        @echo >> $(notdir $@).deps
82
        @rm vectors.tmp
83
    }
84
 
85
    make {
86
        /lib/target.ld: /src/frv.ld
87
        $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
88
        @echo $@ ": \\" > $(notdir $@).deps
89
        @tail +2 target.tmp >> $(notdir $@).deps
90
        @echo >> $(notdir $@).deps
91
        @rm target.tmp
92
    }
93
 
94
    cdl_interface CYGINT_HAL_FRV_ARCH_FR400 {
95
        display "The CPU architecture supports the FR400 architecture"
96
    }
97
 
98
    cdl_interface CYGINT_HAL_FRV_ARCH_FR500 {
99
        display "The CPU architecture supports the FR500 architecture"
100
    }
101
 
102
    cdl_option CYGHWR_HAL_FRV_CPU_FAMILY {
103
        display       "FUJITSU CPU family"
104
        flavor        data
105
        legal_values  { (CYGINT_HAL_FRV_ARCH_FR400 != 0) ? "FR400" : ""
106
                        (CYGINT_HAL_FRV_ARCH_FR500 != 0) ? "FR500" : ""
107
                        "" }
108
        default_value  { (CYGINT_HAL_FRV_ARCH_FR400 != 0) ? "FR400" :
109
                         (CYGINT_HAL_FRV_ARCH_FR500 != 0) ? "FR500" :
110
                         "unknown" }
111
        no_define
112
        description   "
113
             It is possible to optimize code for different
114
             FUJITSU CPU families. This option selects which CPU to
115
             optimize for on boards that support multiple CPU types."
116
    }
117
 
118
    cdl_option CYGBLD_LINKER_SCRIPT {
119
        display "Linker script"
120
        flavor data
121
        no_define
122
        calculated  { "src/frv.ld" }
123
    }
124
 
125
    cdl_interface CYGINT_HAL_FRV_MEM_REAL_REGION_TOP {
126
        display  "Implementations of hal_frv_mem_real_region_top()"
127
    }
128
 
129
    cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
130
        display       "Number of breakpoints supported by the HAL."
131
        flavor        data
132
        default_value 32
133
        active_if     CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
134
        description   "
135
            This option determines the number of breakpoints supported by the HAL."
136
    }
137
 
138
    cdl_option CYGSEM_HAL_FRV_USE_BREAK_INSTRUCTION {
139
        display       "Use 'break' for breakpoints."
140
        flavor        bool
141
        default_value 1
142
        active_if     { CYGINT_HAL_FRV_ARCH_FR500 != 0 }
143
        requires      CYGNUM_HAL_BREAKPOINT_LIST_SIZE
144
        description   "
145
            Select this option to use the 'break' instruction for breakpoints.
146
            This option can only be used if the GDB stubs use local breakpoints."
147
    }
148
 
149
    cdl_option CYGSEM_HAL_FRV_HW_DEBUG {
150
        display       "Hardware debug features available"
151
        flavor        bool
152
        default_value 1
153
        active_if     { CYGINT_HAL_FRV_ARCH_FR500 != 0 }
154
        description   "
155
            Select this option to enable the use of a hardware debug unit."
156
    }
157
}

powered by: WebSVN 2.1.0

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