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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [frv/] [arch/] [current/] [cdl/] [hal_frv.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
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 Free Software Foundation, 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
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      bartv
43
# Original data:  gthomas
44
# Contributors:
45
# Date:           2001-09-07
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
cdl_package CYGPKG_HAL_FRV {
51
    display       "FUJITSU architecture"
52
    parent        CYGPKG_HAL
53
    hardware
54
    include_dir   cyg/hal
55
    define_header hal_frv.h
56
    description   "
57
        The FUJITSU architecture HAL package provides generic
58
        support for this processor architecture. It is also
59
        necessary to select a specific target platform HAL
60
        package."
61
 
62
    compile       hal_diag.c hal_misc.c context.S frv_stub.c hal_syscall.c
63
 
64
    # special rule used to build any include files, etc, used by assembly code
65
    make -priority 1 {
66
        frv.inc : /src/hal_mk_defs.c
67
        $(CC) $(ACTUAL_CFLAGS) $(INCLUDE_PATH) -Wp,-MD,frv.tmp -o hal_mk_defs.tmp -S $<
68
        fgrep .equ hal_mk_defs.tmp | sed s/#// | sed s/\\.equ/#define/ > $@
69
        @echo $@ ": \\" > $(notdir $@).deps
70
        @tail -n +2 frv.tmp >> $(notdir $@).deps
71
        @echo >> $(notdir $@).deps
72
        @rm frv.tmp hal_mk_defs.tmp
73
    }
74
 
75
    make {
76
        /lib/vectors.o : /src/vectors.S
77
        $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
78
        @echo $@ ": \\" > $(notdir $@).deps
79
        @tail -n +2 vectors.tmp >> $(notdir $@).deps
80
        @echo >> $(notdir $@).deps
81
        @rm vectors.tmp
82
    }
83
 
84
    make {
85
        /lib/target.ld: /src/frv.ld
86
        $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(ACTUAL_CFLAGS) -o $@ $<
87
        @echo $@ ": \\" > $(notdir $@).deps
88
        @tail -n +2 target.tmp >> $(notdir $@).deps
89
        @echo >> $(notdir $@).deps
90
        @rm target.tmp
91
    }
92
 
93
    cdl_interface CYGINT_HAL_FRV_ARCH_FR400 {
94
        display "The CPU architecture supports the FR400 architecture"
95
    }
96
 
97
    cdl_interface CYGINT_HAL_FRV_ARCH_FR500 {
98
        display "The CPU architecture supports the FR500 architecture"
99
    }
100
 
101
    cdl_option CYGHWR_HAL_FRV_CPU_FAMILY {
102
        display       "FUJITSU CPU family"
103
        flavor        data
104
        legal_values  { (CYGINT_HAL_FRV_ARCH_FR400 != 0) ? "FR400" : ""
105
                        (CYGINT_HAL_FRV_ARCH_FR500 != 0) ? "FR500" : ""
106
                        "" }
107
        default_value  { (CYGINT_HAL_FRV_ARCH_FR400 != 0) ? "FR400" :
108
                         (CYGINT_HAL_FRV_ARCH_FR500 != 0) ? "FR500" :
109
                         "unknown" }
110
        no_define
111
        description   "
112
             It is possible to optimize code for different
113
             FUJITSU CPU families. This option selects which CPU to
114
             optimize for on boards that support multiple CPU types."
115
    }
116
 
117
    cdl_option CYGBLD_LINKER_SCRIPT {
118
        display "Linker script"
119
        flavor data
120
        no_define
121
        calculated  { "src/frv.ld" }
122
    }
123
 
124
    cdl_interface CYGINT_HAL_FRV_MEM_REAL_REGION_TOP {
125
        display  "Implementations of hal_frv_mem_real_region_top()"
126
    }
127
 
128
    cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
129
        display       "Number of breakpoints supported by the HAL."
130
        flavor        data
131
        default_value 32
132
        compile       hal_breakpoint.c
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 0
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_component CYGPKG_REDBOOT_FRV_OPTIONS {
150
        display       "Redboot for FR-V options"
151
        flavor        none
152
        no_define
153
        parent        CYGPKG_REDBOOT
154
        active_if     CYGPKG_REDBOOT
155
        description   "
156
            This option lists the target's requirements for a valid Redboot
157
            configuration."
158
 
159
        cdl_component CYGSEM_REDBOOT_FRV_LINUX_BOOT {
160
            active_if      CYGBLD_BUILD_REDBOOT_WITH_EXEC
161
            display        "Support booting Linux via RedBoot"
162
            flavor         bool
163
            default_value  1
164
            description    "
165
               This option allows RedBoot to support booting of a Linux kernel."
166
            compile -library=libextras.a redboot_linux_exec.c
167
 
168
            cdl_option CYGDAT_REDBOOT_FRV_LINUX_BOOT_ENTRY {
169
                display        "Default kernel entry address"
170
                flavor         data
171
                default_value  0xff040000
172
            }
173
 
174
            cdl_option CYGDAT_REDBOOT_FRV_LINUX_BOOT_COMMAND_LINE {
175
                display        "Default COMMAND_LINE"
176
                flavor         data
177
                default_value  { "" }
178
            }
179
        }
180
    }
181
 
182
}

powered by: WebSVN 2.1.0

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