mirror of the now-defunct rocklinux.org
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.

118 lines
3.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/linux/config-500.in
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. if pkgcheck linux X
  23. then
  24. menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
  25. choice ROCKCFG_PKG_LINUX_HEADERS linux26 \
  26. linux24 'Use linux kernel 2.4.x headers in /usr/include' \
  27. linux26 'Use linux kernel 2.6.x headers in /usr/include'
  28. pkgfork linux ${ROCKCFG_PKG_LINUX_HEADERS}-header stages 01-------9
  29. if [ "$ROCKCFG_PKG_LINUX_HEADERS" = linux24 ]; then
  30. pkgfork linux linux26-header stages ---3-----9
  31. fi
  32. if [ "$ROCKCFG_PKG_LINUX_HEADERS" = linux26 ]; then
  33. pkgfork linux linux24-header stages ---3-----9
  34. fi
  35. bool 'Place linux24 sources in /usr/src' \
  36. ROCKCFG_PKG_LINUX_SRC24 0
  37. if [ "$ROCKCFG_PKG_LINUX_SRC24" = 1 ]; then
  38. pkgfork linux linux24-source
  39. fi
  40. bool 'Place linux26 sources in /usr/src' \
  41. ROCKCFG_PKG_LINUX_SRC26 1
  42. if [ "$ROCKCFG_PKG_LINUX_SRC26" = 1 ]; then
  43. pkgfork linux linux26-source
  44. fi
  45. bool 'Build and install a linux24 kernel' \
  46. ROCKCFG_PKG_LINUX_IMG24 0
  47. if [ "$ROCKCFG_PKG_LINUX_IMG24" = 1 ]; then
  48. pkgfork linux linux24
  49. fi
  50. bool 'Build and install a linux26 kernel' \
  51. ROCKCFG_PKG_LINUX_IMG26 1
  52. if [ "$ROCKCFG_PKG_LINUX_IMG26" = 1 ]; then
  53. pkgfork linux linux26
  54. fi
  55. case "$ROCKCFG_PKG_LINUX_IMG24$ROCKCFG_PKG_LINUX_IMG26" in
  56. 00)
  57. const ROCKCFG_PKG_LINUX_DEFAULT none
  58. ;;
  59. 01)
  60. const ROCKCFG_PKG_LINUX_DEFAULT linux26
  61. ;;
  62. 10)
  63. const ROCKCFG_PKG_LINUX_DEFAULT linux24
  64. ;;
  65. *)
  66. choice ROCKCFG_PKG_LINUX_DEFAULT linux26 \
  67. linux24 'Use linux kernel 2.4.x as default kernel' \
  68. linux26 'Use linux kernel 2.6.x as default kernel'
  69. ;;
  70. esac
  71. choice ROCKCFG_PKG_LINUX_CONFIG_STYLE modules \
  72. none 'Do not perform any automatic kernel configuration' \
  73. nomodules 'Perform normal kernel configuration without modules' \
  74. modules 'Perform normal kernel configuration including modules'
  75. if [ "$ROCKCFG_PKG_LINUX_CONFIG_STYLE" = none ] ; then
  76. ROCKCFGSET_PKG_LINUX_CUSTCONFIG=1
  77. fi
  78. bool 'Build kernel 2.6.x module utils (module-init-tools)' \
  79. ROCKCFG_PKG_LINUX_USE26MODTOOLS 1
  80. if [ $ROCKCFG_PKG_LINUX_USE26MODTOOLS = 0 ] ; then
  81. pkgdisable module-init-tools
  82. fi
  83. bool 'Apply custom kernel build configuration settings' \
  84. ROCKCFG_PKG_LINUX_CUSTCONFIG 0
  85. if [ "$ROCKCFG_PKG_LINUX_CUSTCONFIG" = 1 ] ; then
  86. block_begin 3
  87. comment 'The kernel config is stored in:'
  88. comment "config/$config/linux.cfg"
  89. editfile ROCKCFG_PKG_LINUX_CUSTCONFIG_FILE \
  90. config/$config.$swpid/linux.cfg \
  91. 'Linux kernel build config settings'
  92. block_end
  93. else
  94. rm -f config/$config.$swpid/linux.cfg
  95. fi
  96. menu_end
  97. pkgremove linux
  98. fi