* updated korganizer (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / contrib / rtai / rtai.conf
blobc94420781f7d7e33199fc928afc332fb7da70c34
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../rtai/rtai.conf
5 # Copyright (C) 2004 - 2008 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7
8 # More information can be found in the files COPYING and README.
9
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 eval confopt=''
17 var_append confopt ' ' "--build=$arch_build"
18 var_append confopt ' ' "--host=$arch_target"
20 var_remove_regex makeopt ' ' 'prefix=.*'
21 var_append confopt ' ' '--prefix=/usr/realtime'
22 var_append confopt ' ' "--with-linux-dir=$root/usr/src/linux-2.6.23-dist-build"
23 var_append confopt ' ' "--with-kconfig-file=$base/package/contrib/rtai/.rtai_config"
24 var_append instopt ' ' "DESTDIR=$root/"
26 #var_append confopt ' ' "--with-module-dir=/usr/realtime/modules"
27 #var_append makeopt ' ' "prefix=/usr/realtime"
28 #var_append confopt ' ' "--with-linux-dir=$root/usr/src/linux-2.6.23-dist-build"
29 #var_append instopt ' ' "INSTALL_MOD_PATH=$root/lib/modules/linux-2.6.23"
31 prefix="/usr/realtime"
33 # The function below will be rewritten to use runtime configuration options
34 create_config() {
35         if [ $SDECFG_RTAI_PATCH="rthal5g" ]; then
36                 echo "CONFIG_RTAI_RTHAL=y" >> .config
37                 echo "define_bool CONFIG_RTAI_RTHAL y" >> scripts/config.in
38                 echo "define_bool CONFIG_RTAI_ADEOS n" >> scripts/config.in
39                 export INSTALL_MOD_PATH=$root/lib/modules/2.4.20/build
40         else
41                 echo "CONFIG_RTAI_ADEOS=y" >> .config
42                 echo "define_bool CONFIG_RTAI_RTHAL n" >> scripts/config.in
43                 echo "define_bool CONFIG_RTAI_ADEOS y" >> scripts/config.in
44                 export INSTALL_MOD_PATH=$root/lib/modules/2.4.20/build
45         fi
47         echo "CONFIG_RTAI=m" >> .config
48         echo "define_bool CONFIG_RTAI m" >> scripts/config.in
50         echo "CONFIG_RTAI_MOUNT_ON_LOAD=y" >> .config
51         echo "define_bool CONFIG_RTAI_MOUNT_ON_LOAD y" >> config.in
53         echo "CONFIG_RTAI_LINUX24=y" >> .config
54         echo "define_bool CONFIG_RTAI_LINUX24 y" >> scripts/config.in
55         echo "define_bool CONFIG_RTAI_LINUX22 n" >> scripts/config.in
57         echo "CONFIG_RTAI_EXPERIMENTAL=y" >> .config
59         if [ $SDECFG_RTAI_SCHED_UP = "1" ]; then
60                 echo "CONFIG_RTAI_SCHED_UP=m" >> .config
61                 echo "define_tristate CONFIG_RTAI_SCHED_UP m" >> scripts/config.in
62         else
63                 echo "define_tristate CONFIG_RTAI_SCHED_UP n" >> scripts/config.in
64         fi
66         if [ $SDECFG_RTAI_SCHED_SMP = "1" ]; then
67                 echo "CONFIG_RTAI_SCHED_SMP=m" >> .config
68                 echo "define_tristate CONFIG_RTAI_SCHED_SMP m" >> scripts/config.in
69         else    
70                 echo "define_tristate CONFIG_RTAI_SCHED_SMP n" >> scripts/config.in
71         fi
73         if [ $SDECFG_RTAI_SCHED_MUP = "1" ]; then
74                 echo "CONFIG_RTAI_SCHED_MUP=m" >> .config
75                 echo "define_tristate CONFIG_RTAI_SCHED_MUP m" >> scripts/config.in
76         else
77                 echo "define_tristate CONFIG_RTAI_SCHED_MUP n" >> scripts/config.in
78         fi
80         echo "CONFIG_RTAI_CPUS=$SDECFG_RTAI_CPUS" >> .config
81         echo "define_int CONFIG_RTAI_CPUS $SDECFG_RTAI_CPUS" >> scripts/config.in
83         if [ $SDECFG_RTAI_FPU_SUPPORT = 1 ]; then
84                 echo "CONFIG_RTAI_FPU_SUPPORT=y" >> .config
85                 echo "define_bool CONFIG_RTAI_FPU y" >> scripts/config.in
86         else
87                 echo "define_bool CONFIG_RTAI_FPU n" >> scripts/config.in
88         fi
89         
90         if [ $SDECFG_RTAI_LIBM = 1 ]; then
91                 echo "CONFIG_RTAI_LIBM=y" >> .config
92                 echo "define_tristate CONFIG_RTAI_LIBM y" >> scripts/config.in
93         else
94                 echo "define_tristate CONFIG_RTAI_LIBM n" >> scripts/config.in
95         fi
97         if [ $SDECFG_RTAI_STRANGE_APIC = 1 ]; then
98                 echo "CONFIG_RTAI_STRANGE_APIC=y" >> .config
99                 echo "define_bool CONFIG_RTAI_STRANGE_APIC y" >> scripts/config.in
100         else
101                 echo "define_bool CONFIG_RTAI_STRANGE_APIC n" >> scripts/config.in
102         fi
104         if [ $SDECFG_RTAI_DYN_MM = 1 ]; then
105                 echo "CONFIG_RTAI_DYN_MM=m" >> .config
106                 echo "echo define_tristate CONFIG_RTAI_DYN_MM m" >> scripts/config.in
107         else
108                 echo "CONFIG_RTAI_DYN_MM=y" >> .config
109                 echo "echo define_tristate CONFIG_RTAI_DYN_MM y" >> scripts/config.in
110         fi
112         if [ $SDECFG_RTAI_MM_VMALLOC = 1 ]; then
113                 echo "CONFIG_RTAI_MM_VMALLOC=y" >> .config
114                 echo "define_bool CONFIG_RTAI_MM_VMALLOC y" >> scripts/config.in
115         else
116                 echo "define_bool CONFIG_RTAI_MM_VMALLOC n" >> scripts/config.in
117         fi
119         if [ $SDECFG_RTAI_FIFOS = 1 ]; then
120                 echo "CONFIG_RTAI_FIFOS=m" >> .config
121                 echo "define_tristate CONFIG_RTAI_FIFOS m" >> scripts/config.in
122         else
123                 echo "define_tristate CONFIG_RTAI_FIFOS n" >> scripts/config.in
124         fi
126         if [ $SDECFG_RTAI_SHMEM = 1 ]; then
127                 echo "CONFIG_RTAI_SHMEM=m" >> .config
128                 echo "define_tristate CONFIG_RTAI_SHMEM m" >> scripts/config.in
129         else
130                 echo "define_tristate CONFIG_RTAI_SHMEM n" >> scripts/config.in
131         fi
133         if [ $SDECFG_RTAI_POSIX = 1 ]; then
134                 echo "CONFIG_RTAI_POSIX=m" >> .config
135                 echo "define_tristate CONFIG_RTAI_POSIX m" >> scripts/config.in
136         else
137                 echo "define_tristate CONFIG_RTAI_POSIX n" >> scripts/config.in
138         fi
139         
140         if [ $SDECFG_RTAI_WATCHDOG = 1 ]; then
141                 echo "CONFIG_RTAI_WATCHDOG=m" >> .config
142                 echo "define_tristate CONFIG_RTAI_WATCHDOG m" >> scripts/config.in
143         else
144                 echo "define_tristate CONFIG_RTAI_WATCHDOG n" >> scripts/config.in
145         fi
147         if [ $SDECFG_RTAI_LXRT = 1 ]; then
148                 echo "CONFIG_RTAI_LXRT=m" >> .config
149                 echo "define_tristate CONFIG_RTAI_LXRT m" >> scripts/config.in
150                 echo "define_bool CONFIG_RTAI_KTRD y" >> scripts/config.in
151                 echo "define_bool CONFIG_RTAI_NOKTRD n" >> scripts/config.in
152         else
153                 echo "define_tristate CONFIG_RTAI_LXRT n" >> scripts/config.in
154         fi
156         if [ $SDECFG_RTAI_NEWLXRT = 1 ]; then
157                 echo "CONFIG_RTAI_NEWLXRT=m" >> .config
158                 echo "CONFIG_RTAI_NEWLXRT_NOBUDDY=y" >> .config
159                 echo "define_tristate CONFIG_RTAI_NEWLXRT m" >> scripts/config.in
160                 echo "define_bool CONFIG_RTAI_NOBUDDY y" >> scripts/config.in
161                 echo "define_bool CONFIG_RTAI_BUDDY n" >> scripts/config.in
162         else
163                 echo "define_tristate CONFIG_RTAI_NEWLXRT n" >> scripts/config.in
164         fi
166         if [ $SDECFG_RTAI_RTCOM_LXRT = 1 ]; then
167                 echo "CONFIG_RTAI_RTCOM_LXRT=m" >> .config
168                 echo "define_tristate CONFIG_RTAI_RTCOM_LXRT m" >> scripts/config.in
169         else
170                 echo "define_tristate CONFIG_RTAI_RTCOM_LXRT n" >> scripts/config.in
171         fi
173         if [ $SDECFG_RTAI_FIFOS_LXRT = 1 ]; then
174                 echo "CONFIG_RTAI_FIFOS_LXRT=m" >> .config
175                 echo "define_tristate CONFIG_RTAI_FIFOS_LXRT m" >> scripts/config.in
176         else
177                 echo "define_tristate CONFIG_RTAI_FIFOS_LXRT n" >> scripts/config.in
178         fi
180         if [ $SDECFG_RTAI_COMEDI_LXRT = 1 ]; then
181                 echo "CONFIG_RTAI_COMEDI_LXRT=m" >> .config
182                 echo "define_trisate CONFIG_RTAI_COMEDI_LXRT m" >> scripts/config.in
183         else
184                 echo "define_trisate CONFIG_RTAI_COMEDI_LXRT n" >> scripts/config.in
185         fi
187         if [ $SDECFG_RTAI_CPLUSPLUS = 1 ]; then
188                 echo "CONFIG_RTAI_CPLUSPLUS=m" >> .config
189                 echo "define_tristate CONFIG_RTAI_CPLUSPLUS m" >> scripts/config.in
190         else
191                 echo "define_tristate CONFIG_RTAI_CPLUSPLUS n" >> scripts/config.in
192         fi
194         if [ $SDECFG_RTAI_NEW_CPP = 1 ]; then
195                 echo "CONFIG_RTAI_NEW_CPP=m" >> .config
196                 echo "define_bool CONFIG_RTAI_NEW_CPP m" >> scripts/config.in
197         else
198                 echo "define_bool CONFIG_RTAI_NEW_CPP n" >> scripts/config.in
199         fi
201         if [ $SDECFG_RTAI_TASKLETS = 1 ]; then
202                 echo "CONFIG_RTAI_TASKLETS=m" >> .config
203                 echo "define_tristate CONFIG_RTAI_TASKLETS m" >> scripts/config.in
204         else
205                 echo "define_tristate CONFIG_RTAI_TASKLETS n" >> scripts/config.in
206         fi
208         if [ $SDECFG_RTAI_BITS = 1 ]; then
209                 echo "CONFIG_RTAI_BITS=m" >> .config
210                 echo "define_tristate CONFIG_RTAI_BITS m" >> scripts/config.in
211         else
212                 echo "define_tristate CONFIG_RTAI_BITS n" >> scripts/config.in
213         fi
215         if [ $SDECFG_RTAI_TBX = 1 ]; then
216                 echo "CONFIG_RTAI_TBX=m" >> .config
217         fi
219         if [ $SDECFG_RTAI_RTCOM = 1 ]; then
220                 echo "CONFIG_RTAI_RTCOM=m" >> .config
221                 echo "define_tristate CONFIG_RTAI_RTCOM m" >> scripts/config.in
222         else
223                 echo "define_tristate CONFIG_RTAI_RTCOM n" >> scripts/config.in
224         fi
226         if [ $SDECFG_RTAI_SPDRV = 1 ]; then
227                 echo "CONFIG_RTAI_SPDRV=m" >> .config
228                 echo "define_tristate CONFIG_RTAI_SPDRV m" >> scripts/config.in
229         else
230                 echo "define_tristate CONFIG_RTAI_SPDRV n" >> scripts/config.in
231         fi
233         if [ $SDECFG_RTAI_NETRPC = 1 ]; then
234                 echo "CONFIG_RTAI_NETRPC=m" >> .config
235                 echo "define_tristate CONFIG_RTAI_NETRPC m" >> scripts/config.in
236         else
237                 echo "define_tristate CONFIG_RTAI_NETRPC n" >> scripts/config.in
238         fi
240         if [ $SDECFG_RTAI_RTNET = 1 ]; then
241                 echo "CONFIG_RTAI_RTNET=m" >> .config
242                 echo "define_tristate CONFIG_RTAI_RTNET m" >> scripts/config.in
243         else
244                 echo "define_tristate CONFIG_RTAI_RTNET n" >> scripts/config.in
245         fi
247         if [ $SDECFG_RTAI_EXAMPLES = 1 ]; then
248                 echo "CONFIG_RTAI_EXAMPLES=y" >> .config
249                 echo "define_bool CONFIG_RTAI_EXAMPLES y" >> scripts/config.in
250         else
251                 echo "define_bool CONFIG_RTAI_EXAMPLES n" >> scripts/config.in
252         fi
254         if [ $SDECFG_RTAI_LXRT_EXAMPLES = 1 ]; then
255                 echo "CONFIG_RTAI_LXRT_EXAMPLES=y" >> .config
256                 echo "define_bool CONFIG_RTAI_LXRT_EXAMPLES y" >> scripts/config.in
257         else
258                 echo "define_bool CONFIG_RTAI_LXRT_EXAMPLES n" >> scripts/config.in
259         fi
261         if [ $SDECFG_RTAI_TESTS = 1 ]; then
262                 echo "CONFIG_RTAI_TESTS=y" >> .config
263                 echo "define_bool CONFIG_RTAI_TESTS y" >> scripts/config.in
264         else
265                 echo "define_bool CONFIG_RTAI_TESTS n" >> scripts/config.in
266         fi