1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_synth_i386.cdl
|
4 |
|
|
#
|
5 |
|
|
# i386-specific synthetic target 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): jskov
|
44 |
|
|
# Original data: jskov
|
45 |
|
|
# Contributors: bartv
|
46 |
|
|
# Date: 1999-11-01
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_HAL_SYNTH_I386 {
|
53 |
|
|
parent CYGPKG_HAL_SYNTH
|
54 |
|
|
display "Linux/i386 synthetic target"
|
55 |
|
|
description "
|
56 |
|
|
The Linux/i386 Synthetic Target HAL package provides the
|
57 |
|
|
support needed to run eCos binaries on top of the i386
|
58 |
|
|
Linux kernel."
|
59 |
|
|
|
60 |
|
|
include_dir cyg/hal
|
61 |
|
|
define_header hal_synth_i386.h
|
62 |
|
|
define_proc {
|
63 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
64 |
|
|
}
|
65 |
|
|
# On the synthetic target the default main stack size is smaller than
|
66 |
|
|
# the recommended minimum from var_arch.h
|
67 |
|
|
requires { !CYGPKG_LIBC_STARTUP || CYGINT_LIBC_STARTUP_MAIN_NO_STACK_SIZE || (CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE >= (16 * 1024)) }
|
68 |
|
|
|
69 |
|
|
make {
|
70 |
|
|
/lib/vectors.o : /src/vectors.S
|
71 |
|
|
$(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
|
72 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
73 |
|
|
@tail +2 vectors.tmp >> $(notdir $@).deps
|
74 |
|
|
@echo >> $(notdir $@).deps
|
75 |
|
|
@rm vectors.tmp
|
76 |
|
|
}
|
77 |
|
|
compile context.S syscall-i386-linux-1.0.S
|
78 |
|
|
|
79 |
|
|
cdl_component CYG_HAL_STARTUP {
|
80 |
|
|
display "Startup type"
|
81 |
|
|
flavor data
|
82 |
|
|
legal_values {"ROM"}
|
83 |
|
|
default_value {"ROM"}
|
84 |
|
|
no_define
|
85 |
|
|
define -file system.h CYG_HAL_STARTUP
|
86 |
|
|
description "
|
87 |
|
|
At the moment only ROM startup is supported. In the context
|
88 |
|
|
of the synthetic target this means a read-only region for
|
89 |
|
|
code and a read-write region for data."
|
90 |
|
|
}
|
91 |
|
|
|
92 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
93 |
|
|
display "Global build options"
|
94 |
|
|
flavor none
|
95 |
|
|
parent CYGPKG_NONE
|
96 |
|
|
description "
|
97 |
|
|
Global build options including control over
|
98 |
|
|
compiler flags, linker flags and choice of toolchain."
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
102 |
|
|
display "Global command prefix"
|
103 |
|
|
flavor data
|
104 |
|
|
no_define
|
105 |
|
|
if { ($tcl_platform(os) == "Linux") && [string match "i*86" $tcl_platform(machine)] } {
|
106 |
|
|
default_value { "" }
|
107 |
|
|
} else {
|
108 |
|
|
default_value { "i686-pc-linux-gnu" }
|
109 |
|
|
}
|
110 |
|
|
description "
|
111 |
|
|
This option specifies the command prefix used when
|
112 |
|
|
invoking the build tools. You must be using gcc-2.95.2 or
|
113 |
|
|
later, and \"ld -v\" must report a version more recent than
|
114 |
|
|
2.9.1."
|
115 |
|
|
}
|
116 |
|
|
|
117 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
118 |
|
|
display "Global compiler flags"
|
119 |
|
|
flavor data
|
120 |
|
|
no_define
|
121 |
|
|
default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
|
122 |
|
|
description "
|
123 |
|
|
This option controls the global compiler flags which
|
124 |
|
|
are used to compile all packages by
|
125 |
|
|
default. Individual packages may define
|
126 |
|
|
options which override these global flags."
|
127 |
|
|
}
|
128 |
|
|
|
129 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
130 |
|
|
display "Global linker flags"
|
131 |
|
|
flavor data
|
132 |
|
|
no_define
|
133 |
|
|
default_value { "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
|
134 |
|
|
description "
|
135 |
|
|
This option controls the global linker flags. Individual
|
136 |
|
|
packages may define options which override these global flags."
|
137 |
|
|
}
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
141 |
|
|
display "Memory layout"
|
142 |
|
|
flavor data
|
143 |
|
|
no_define
|
144 |
|
|
calculated { "mlt_synth_i386_rom" }
|
145 |
|
|
|
146 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
147 |
|
|
display "Memory layout linker script fragment"
|
148 |
|
|
flavor data
|
149 |
|
|
no_define
|
150 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
151 |
|
|
calculated { "" }
|
152 |
|
|
}
|
153 |
|
|
|
154 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
155 |
|
|
display "Memory layout header file"
|
156 |
|
|
flavor data
|
157 |
|
|
no_define
|
158 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
159 |
|
|
calculated { "" }
|
160 |
|
|
}
|
161 |
|
|
}
|
162 |
|
|
}
|