1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../rtai/rtai.conf
5 # Copyright (C) 2004 - 2008 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
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 ---
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
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
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
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
63 echo "define_tristate CONFIG_RTAI_SCHED_UP n" >> scripts/config.in
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
70 echo "define_tristate CONFIG_RTAI_SCHED_SMP n" >> scripts/config.in
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
77 echo "define_tristate CONFIG_RTAI_SCHED_MUP n" >> scripts/config.in
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
87 echo "define_bool CONFIG_RTAI_FPU n" >> scripts/config.in
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
94 echo "define_tristate CONFIG_RTAI_LIBM n" >> scripts/config.in
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
101 echo "define_bool CONFIG_RTAI_STRANGE_APIC n" >> scripts/config.in
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
108 echo "CONFIG_RTAI_DYN_MM=y" >> .config
109 echo "echo define_tristate CONFIG_RTAI_DYN_MM y" >> scripts/config.in
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
116 echo "define_bool CONFIG_RTAI_MM_VMALLOC n" >> scripts/config.in
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
123 echo "define_tristate CONFIG_RTAI_FIFOS n" >> scripts/config.in
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
130 echo "define_tristate CONFIG_RTAI_SHMEM n" >> scripts/config.in
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
137 echo "define_tristate CONFIG_RTAI_POSIX n" >> scripts/config.in
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
144 echo "define_tristate CONFIG_RTAI_WATCHDOG n" >> scripts/config.in
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
153 echo "define_tristate CONFIG_RTAI_LXRT n" >> scripts/config.in
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
163 echo "define_tristate CONFIG_RTAI_NEWLXRT n" >> scripts/config.in
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
170 echo "define_tristate CONFIG_RTAI_RTCOM_LXRT n" >> scripts/config.in
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
177 echo "define_tristate CONFIG_RTAI_FIFOS_LXRT n" >> scripts/config.in
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
184 echo "define_trisate CONFIG_RTAI_COMEDI_LXRT n" >> scripts/config.in
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
191 echo "define_tristate CONFIG_RTAI_CPLUSPLUS n" >> scripts/config.in
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
198 echo "define_bool CONFIG_RTAI_NEW_CPP n" >> scripts/config.in
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
205 echo "define_tristate CONFIG_RTAI_TASKLETS n" >> scripts/config.in
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
212 echo "define_tristate CONFIG_RTAI_BITS n" >> scripts/config.in
215 if [ $SDECFG_RTAI_TBX = 1 ]; then
216 echo "CONFIG_RTAI_TBX=m" >> .config
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
223 echo "define_tristate CONFIG_RTAI_RTCOM n" >> scripts/config.in
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
230 echo "define_tristate CONFIG_RTAI_SPDRV n" >> scripts/config.in
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
237 echo "define_tristate CONFIG_RTAI_NETRPC n" >> scripts/config.in
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
244 echo "define_tristate CONFIG_RTAI_RTNET n" >> scripts/config.in
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
251 echo "define_bool CONFIG_RTAI_EXAMPLES n" >> scripts/config.in
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
258 echo "define_bool CONFIG_RTAI_LXRT_EXAMPLES n" >> scripts/config.in
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
265 echo "define_bool CONFIG_RTAI_TESTS n" >> scripts/config.in