OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

267 lines
8.6 KiB

  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 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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 ---
  15. create_config() {
  16. if [ $SDECFG_RTAI_PATCH="rthal5g" ]; then
  17. echo "CONFIG_RTAI_RTHAL=y" >> .config
  18. echo "define_bool CONFIG_RTAI_RTHAL y" >> scripts/config.in
  19. echo "define_bool CONFIG_RTAI_ADEOS n" >> scripts/config.in
  20. export INSTALL_MOD_PATH=$root/lib/modules/2.4.20/build
  21. else
  22. echo "CONFIG_RTAI_ADEOS=y" >> .config
  23. echo "define_bool CONFIG_RTAI_RTHAL n" >> scripts/config.in
  24. echo "define_bool CONFIG_RTAI_ADEOS y" >> scripts/config.in
  25. export INSTALL_MOD_PATH=$root/lib/modules/2.4.20/build
  26. fi
  27. echo "CONFIG_RTAI=m" >> .config
  28. echo "define_bool CONFIG_RTAI m" >> scripts/config.in
  29. echo "CONFIG_RTAI_MOUNT_ON_LOAD=y" >> .config
  30. echo "define_bool CONFIG_RTAI_MOUNT_ON_LOAD y" >> config.in
  31. echo "CONFIG_RTAI_LINUX24=y" >> .config
  32. echo "define_bool CONFIG_RTAI_LINUX24 y" >> scripts/config.in
  33. echo "define_bool CONFIG_RTAI_LINUX22 n" >> scripts/config.in
  34. echo "CONFIG_RTAI_EXPERIMENTAL=y" >> .config
  35. if [ $SDECFG_RTAI_SCHED_UP = "1" ]; then
  36. echo "CONFIG_RTAI_SCHED_UP=m" >> .config
  37. echo "define_tristate CONFIG_RTAI_SCHED_UP m" >> scripts/config.in
  38. else
  39. echo "define_tristate CONFIG_RTAI_SCHED_UP n" >> scripts/config.in
  40. fi
  41. if [ $SDECFG_RTAI_SCHED_SMP = "1" ]; then
  42. echo "CONFIG_RTAI_SCHED_SMP=m" >> .config
  43. echo "define_tristate CONFIG_RTAI_SCHED_SMP m" >> scripts/config.in
  44. else
  45. echo "define_tristate CONFIG_RTAI_SCHED_SMP n" >> scripts/config.in
  46. fi
  47. if [ $SDECFG_RTAI_SCHED_MUP = "1" ]; then
  48. echo "CONFIG_RTAI_SCHED_MUP=m" >> .config
  49. echo "define_tristate CONFIG_RTAI_SCHED_MUP m" >> scripts/config.in
  50. else
  51. echo "define_tristate CONFIG_RTAI_SCHED_MUP n" >> scripts/config.in
  52. fi
  53. echo "CONFIG_RTAI_CPUS=$SDECFG_RTAI_CPUS" >> .config
  54. echo "define_int CONFIG_RTAI_CPUS $SDECFG_RTAI_CPUS" >> scripts/config.in
  55. if [ $SDECFG_RTAI_FPU_SUPPORT = 1 ]; then
  56. echo "CONFIG_RTAI_FPU_SUPPORT=y" >> .config
  57. echo "define_bool CONFIG_RTAI_FPU y" >> scripts/config.in
  58. else
  59. echo "define_bool CONFIG_RTAI_FPU n" >> scripts/config.in
  60. fi
  61. if [ $SDECFG_RTAI_LIBM = 1 ]; then
  62. echo "CONFIG_RTAI_LIBM=y" >> .config
  63. echo "define_tristate CONFIG_RTAI_LIBM y" >> scripts/config.in
  64. else
  65. echo "define_tristate CONFIG_RTAI_LIBM n" >> scripts/config.in
  66. fi
  67. if [ $SDECFG_RTAI_STRANGE_APIC = 1 ]; then
  68. echo "CONFIG_RTAI_STRANGE_APIC=y" >> .config
  69. echo "define_bool CONFIG_RTAI_STRANGE_APIC y" >> scripts/config.in
  70. else
  71. echo "define_bool CONFIG_RTAI_STRANGE_APIC n" >> scripts/config.in
  72. fi
  73. if [ $SDECFG_RTAI_DYN_MM = 1 ]; then
  74. echo "CONFIG_RTAI_DYN_MM=m" >> .config
  75. echo "echo define_tristate CONFIG_RTAI_DYN_MM m" >> scripts/config.in
  76. else
  77. echo "CONFIG_RTAI_DYN_MM=y" >> .config
  78. echo "echo define_tristate CONFIG_RTAI_DYN_MM y" >> scripts/config.in
  79. fi
  80. if [ $SDECFG_RTAI_MM_VMALLOC = 1 ]; then
  81. echo "CONFIG_RTAI_MM_VMALLOC=y" >> .config
  82. echo "define_bool CONFIG_RTAI_MM_VMALLOC y" >> scripts/config.in
  83. else
  84. echo "define_bool CONFIG_RTAI_MM_VMALLOC n" >> scripts/config.in
  85. fi
  86. if [ $SDECFG_RTAI_FIFOS = 1 ]; then
  87. echo "CONFIG_RTAI_FIFOS=m" >> .config
  88. echo "define_tristate CONFIG_RTAI_FIFOS m" >> scripts/config.in
  89. else
  90. echo "define_tristate CONFIG_RTAI_FIFOS n" >> scripts/config.in
  91. fi
  92. if [ $SDECFG_RTAI_SHMEM = 1 ]; then
  93. echo "CONFIG_RTAI_SHMEM=m" >> .config
  94. echo "define_tristate CONFIG_RTAI_SHMEM m" >> scripts/config.in
  95. else
  96. echo "define_tristate CONFIG_RTAI_SHMEM n" >> scripts/config.in
  97. fi
  98. if [ $SDECFG_RTAI_POSIX = 1 ]; then
  99. echo "CONFIG_RTAI_POSIX=m" >> .config
  100. echo "define_tristate CONFIG_RTAI_POSIX m" >> scripts/config.in
  101. else
  102. echo "define_tristate CONFIG_RTAI_POSIX n" >> scripts/config.in
  103. fi
  104. if [ $SDECFG_RTAI_WATCHDOG = 1 ]; then
  105. echo "CONFIG_RTAI_WATCHDOG=m" >> .config
  106. echo "define_tristate CONFIG_RTAI_WATCHDOG m" >> scripts/config.in
  107. else
  108. echo "define_tristate CONFIG_RTAI_WATCHDOG n" >> scripts/config.in
  109. fi
  110. if [ $SDECFG_RTAI_LXRT = 1 ]; then
  111. echo "CONFIG_RTAI_LXRT=m" >> .config
  112. echo "define_tristate CONFIG_RTAI_LXRT m" >> scripts/config.in
  113. echo "define_bool CONFIG_RTAI_KTRD y" >> scripts/config.in
  114. echo "define_bool CONFIG_RTAI_NOKTRD n" >> scripts/config.in
  115. else
  116. echo "define_tristate CONFIG_RTAI_LXRT n" >> scripts/config.in
  117. fi
  118. if [ $SDECFG_RTAI_NEWLXRT = 1 ]; then
  119. echo "CONFIG_RTAI_NEWLXRT=m" >> .config
  120. echo "CONFIG_RTAI_NEWLXRT_NOBUDDY=y" >> .config
  121. echo "define_tristate CONFIG_RTAI_NEWLXRT m" >> scripts/config.in
  122. echo "define_bool CONFIG_RTAI_NOBUDDY y" >> scripts/config.in
  123. echo "define_bool CONFIG_RTAI_BUDDY n" >> scripts/config.in
  124. else
  125. echo "define_tristate CONFIG_RTAI_NEWLXRT n" >> scripts/config.in
  126. fi
  127. if [ $SDECFG_RTAI_RTCOM_LXRT = 1 ]; then
  128. echo "CONFIG_RTAI_RTCOM_LXRT=m" >> .config
  129. echo "define_tristate CONFIG_RTAI_RTCOM_LXRT m" >> scripts/config.in
  130. else
  131. echo "define_tristate CONFIG_RTAI_RTCOM_LXRT n" >> scripts/config.in
  132. fi
  133. if [ $SDECFG_RTAI_FIFOS_LXRT = 1 ]; then
  134. echo "CONFIG_RTAI_FIFOS_LXRT=m" >> .config
  135. echo "define_tristate CONFIG_RTAI_FIFOS_LXRT m" >> scripts/config.in
  136. else
  137. echo "define_tristate CONFIG_RTAI_FIFOS_LXRT n" >> scripts/config.in
  138. fi
  139. if [ $SDECFG_RTAI_COMEDI_LXRT = 1 ]; then
  140. echo "CONFIG_RTAI_COMEDI_LXRT=m" >> .config
  141. echo "define_trisate CONFIG_RTAI_COMEDI_LXRT m" >> scripts/config.in
  142. else
  143. echo "define_trisate CONFIG_RTAI_COMEDI_LXRT n" >> scripts/config.in
  144. fi
  145. if [ $SDECFG_RTAI_CPLUSPLUS = 1 ]; then
  146. echo "CONFIG_RTAI_CPLUSPLUS=m" >> .config
  147. echo "define_tristate CONFIG_RTAI_CPLUSPLUS m" >> scripts/config.in
  148. else
  149. echo "define_tristate CONFIG_RTAI_CPLUSPLUS n" >> scripts/config.in
  150. fi
  151. if [ $SDECFG_RTAI_NEW_CPP = 1 ]; then
  152. echo "CONFIG_RTAI_NEW_CPP=m" >> .config
  153. echo "define_bool CONFIG_RTAI_NEW_CPP m" >> scripts/config.in
  154. else
  155. echo "define_bool CONFIG_RTAI_NEW_CPP n" >> scripts/config.in
  156. fi
  157. if [ $SDECFG_RTAI_TASKLETS = 1 ]; then
  158. echo "CONFIG_RTAI_TASKLETS=m" >> .config
  159. echo "define_tristate CONFIG_RTAI_TASKLETS m" >> scripts/config.in
  160. else
  161. echo "define_tristate CONFIG_RTAI_TASKLETS n" >> scripts/config.in
  162. fi
  163. if [ $SDECFG_RTAI_BITS = 1 ]; then
  164. echo "CONFIG_RTAI_BITS=m" >> .config
  165. echo "define_tristate CONFIG_RTAI_BITS m" >> scripts/config.in
  166. else
  167. echo "define_tristate CONFIG_RTAI_BITS n" >> scripts/config.in
  168. fi
  169. if [ $SDECFG_RTAI_TBX = 1 ]; then
  170. echo "CONFIG_RTAI_TBX=m" >> .config
  171. fi
  172. if [ $SDECFG_RTAI_RTCOM = 1 ]; then
  173. echo "CONFIG_RTAI_RTCOM=m" >> .config
  174. echo "define_tristate CONFIG_RTAI_RTCOM m" >> scripts/config.in
  175. else
  176. echo "define_tristate CONFIG_RTAI_RTCOM n" >> scripts/config.in
  177. fi
  178. if [ $SDECFG_RTAI_SPDRV = 1 ]; then
  179. echo "CONFIG_RTAI_SPDRV=m" >> .config
  180. echo "define_tristate CONFIG_RTAI_SPDRV m" >> scripts/config.in
  181. else
  182. echo "define_tristate CONFIG_RTAI_SPDRV n" >> scripts/config.in
  183. fi
  184. if [ $SDECFG_RTAI_NETRPC = 1 ]; then
  185. echo "CONFIG_RTAI_NETRPC=m" >> .config
  186. echo "define_tristate CONFIG_RTAI_NETRPC m" >> scripts/config.in
  187. else
  188. echo "define_tristate CONFIG_RTAI_NETRPC n" >> scripts/config.in
  189. fi
  190. if [ $SDECFG_RTAI_RTNET = 1 ]; then
  191. echo "CONFIG_RTAI_RTNET=m" >> .config
  192. echo "define_tristate CONFIG_RTAI_RTNET m" >> scripts/config.in
  193. else
  194. echo "define_tristate CONFIG_RTAI_RTNET n" >> scripts/config.in
  195. fi
  196. if [ $SDECFG_RTAI_EXAMPLES = 1 ]; then
  197. echo "CONFIG_RTAI_EXAMPLES=y" >> .config
  198. echo "define_bool CONFIG_RTAI_EXAMPLES y" >> scripts/config.in
  199. else
  200. echo "define_bool CONFIG_RTAI_EXAMPLES n" >> scripts/config.in
  201. fi
  202. if [ $SDECFG_RTAI_LXRT_EXAMPLES = 1 ]; then
  203. echo "CONFIG_RTAI_LXRT_EXAMPLES=y" >> .config
  204. echo "define_bool CONFIG_RTAI_LXRT_EXAMPLES y" >> scripts/config.in
  205. else
  206. echo "define_bool CONFIG_RTAI_LXRT_EXAMPLES n" >> scripts/config.in
  207. fi
  208. if [ $SDECFG_RTAI_TESTS = 1 ]; then
  209. echo "CONFIG_RTAI_TESTS=y" >> .config
  210. echo "define_bool CONFIG_RTAI_TESTS y" >> scripts/config.in
  211. else
  212. echo "define_bool CONFIG_RTAI_TESTS n" >> scripts/config.in
  213. fi
  214. }
  215. rtai_main() {
  216. current_dir=`pwd`
  217. #cd $root/usr/src/linux-2.4.21-rock
  218. #make dep
  219. #cd $current_dir
  220. rm -rf scripts/config.in
  221. create_config
  222. eval ./configure --linuxdir $root/usr/src/linux-2.4.21-rock --non-interactive
  223. eval make
  224. eval make install
  225. mkdir -p /usr/include/rtai
  226. cp -r include/* /usr/include/rtai
  227. }
  228. custmain="rtai_main"