1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_calm16_core.cdl
|
4 |
|
|
#
|
5 |
|
|
# CalmRISC16 core 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): msalter
|
43 |
|
|
# Original data: bartv, nickg
|
44 |
|
|
# Contributors:
|
45 |
|
|
# Date: 2001-02-12
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_HAL_CALM16_CORE {
|
52 |
|
|
display "Core variant"
|
53 |
|
|
parent CYGPKG_HAL_CALM16
|
54 |
|
|
hardware
|
55 |
|
|
include_dir cyg/hal
|
56 |
|
|
description "
|
57 |
|
|
The Calm16 core 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 |
|
|
implements CYGINT_HAL_CALM16_VARIANT
|
62 |
|
|
|
63 |
|
|
define_proc {
|
64 |
|
|
puts $::cdl_header "#include "
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
compile var_misc.c variant.S
|
68 |
|
|
|
69 |
|
|
make {
|
70 |
|
|
/lib/target.ld: /src/calm16_core.ld
|
71 |
|
|
$(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
|
72 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
73 |
|
|
@tail -n +2 target.tmp >> $(notdir $@).deps
|
74 |
|
|
@echo >> $(notdir $@).deps
|
75 |
|
|
@rm target.tmp
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
cdl_option CYGBLD_LINKER_SCRIPT {
|
79 |
|
|
display "Linker script"
|
80 |
|
|
flavor data
|
81 |
|
|
no_define
|
82 |
|
|
calculated { "src/calm16_core.ld" }
|
83 |
|
|
}
|
84 |
|
|
|
85 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
86 |
|
|
display "Global build options"
|
87 |
|
|
flavor none
|
88 |
|
|
parent CYGPKG_NONE
|
89 |
|
|
description "
|
90 |
|
|
Global build options including control over
|
91 |
|
|
compiler flags, linker flags and choice of toolchain."
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
95 |
|
|
display "Global command prefix"
|
96 |
|
|
flavor data
|
97 |
|
|
no_define
|
98 |
|
|
default_value { "calmrisc16-elf" }
|
99 |
|
|
description "
|
100 |
|
|
This option specifies the command prefix used when
|
101 |
|
|
invoking the build tools."
|
102 |
|
|
}
|
103 |
|
|
|
104 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
105 |
|
|
display "Global compiler flags"
|
106 |
|
|
flavor data
|
107 |
|
|
no_define
|
108 |
|
|
default_value { CYGBLD_GLOBAL_WARNFLAGS . " -g -O2 -fno-rtti -fno-exceptions -fno-builtin" }
|
109 |
|
|
description "
|
110 |
|
|
This option controls the global compiler flags which
|
111 |
|
|
are used to compile all packages by
|
112 |
|
|
default. Individual packages may define
|
113 |
|
|
options which override these global flags."
|
114 |
|
|
}
|
115 |
|
|
|
116 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
117 |
|
|
display "Global linker flags"
|
118 |
|
|
flavor data
|
119 |
|
|
no_define
|
120 |
|
|
default_value { "-g -nostdlib -Wl,-static -Wl,-Map,redboot.map" }
|
121 |
|
|
description "
|
122 |
|
|
This option controls the global linker flags. Individual
|
123 |
|
|
packages may define options which override these global flags."
|
124 |
|
|
}
|
125 |
|
|
|
126 |
|
|
}
|
127 |
|
|
|
128 |
|
|
}
|