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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [mips/] [mips64/] [current/] [cdl/] [hal_mips_mips64.cdl] - Blame information for rev 868

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

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_mips_mips64.cdl
4
#
5
#      MIPS 64 variant 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):      nickg (after MIPS32 by dmoseley)
43
# Original data:  bartv, nickg
44
# Contributors:
45
# Date:           2001-01-30
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_MIPS_MIPS64 {
52
    display       "MIPS64 variant"
53
    parent        CYGPKG_HAL_MIPS
54
    hardware
55
    include_dir   cyg/hal
56
    description   "
57
           The MIPS64 architecture HAL package provides generic support
58
           for this processor architecture. It is also necessary to
59
           select a specific target platform HAL package."
60
 
61
    cdl_option CYGHWR_HAL_MIPS_MIPS64_CORE {
62
        display       "Mips64 processor core used"
63
        flavor        data
64
        default_value {"5K"}
65
        legal_values  {"5K" "20K" }
66
        description   "
67
            The MIPS64 cores come in (at least) 2 flavors.  The main
68
            differences being in the MMU"
69
    }
70
 
71
    implements    CYGINT_HAL_MIPS_VARIANT
72
 
73
    cdl_option CYGHWR_HAL_MIPS_64BIT {
74
        display    "Variant 64 bit architecture support"
75
        calculated 1
76
    }
77
 
78
    cdl_option CYGHWR_HAL_MIPS_FPU {
79
        display    "Variant FPU support"
80
        calculated 0
81
    }
82
 
83
    cdl_option CYGHWR_HAL_MIPS_FPU_64BIT {
84
        display    "Variant 64 bit FPU support"
85
        calculated 1
86
    }
87
 
88
    cdl_option CYGPKG_HAL_MIPS_LSBFIRST {
89
        display    "CPU Variant little-endian"
90
        calculated 1
91
    }
92
 
93
    cdl_option CYGPKG_HAL_MIPS_GDB_REPORT_CP0 {
94
        display "Report contents of CP0 to GDB"
95
        calculated 1
96
    }
97
 
98
    define_proc {
99
        puts $::cdl_header "#include "
100
    }
101
 
102
    compile       var_misc.c variant.S
103
 
104
    make {
105
        /lib/target.ld: /src/mips_mips64.ld
106
        $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
107
        @echo $@ ": \\" > $(notdir $@).deps
108
        @tail -n +2 target.tmp >> $(notdir $@).deps
109
        @echo >> $(notdir $@).deps
110
        @rm target.tmp
111
    }
112
 
113
    cdl_option CYGBLD_LINKER_SCRIPT {
114
        display "Linker script"
115
        flavor data
116
        no_define
117
        calculated  { "src/mips_mips64.ld" }
118
    }
119
 
120
    cdl_component CYGBLD_GLOBAL_OPTIONS {
121
        display "Global build options"
122
        flavor  none
123
        parent  CYGPKG_NONE
124
        description   "
125
            Global build options including control over
126
            compiler flags, linker flags and choice of toolchain."
127
 
128
 
129
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
130
            display "Global command prefix"
131
            flavor  data
132
            no_define
133
            default_value { "mipsisa32-elf" }
134
            description "
135
                This option specifies the command prefix used when
136
                invoking the build tools. Note that both MIPS32 and
137
                MIPS64 targets use the same toolchain."
138
        }
139
 
140
        cdl_option CYGBLD_GLOBAL_CFLAGS {
141
            display "Global compiler flags"
142
            flavor  data
143
            no_define
144
            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mips64 -EL -msoft-float -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -G0" }
145
            description   "
146
                This option controls the global compiler flags which
147
                are used to compile all packages by
148
                default. Individual packages may define
149
                options which override these global flags."
150
        }
151
 
152
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
153
            display "Global linker flags"
154
            flavor  data
155
            no_define
156
            default_value { "-EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static" }
157
            description   "
158
                This option controls the global linker flags. Individual
159
                packages may define options which override these global flags."
160
        }
161
 
162
    }
163
 
164
}

powered by: WebSVN 2.1.0

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