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.

114 lines
3.1 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 - 2006 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=.*" .
  23. then
  24. menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
  25. bool 'Place linux24 sources in /usr/src' \
  26. ROCKCFG_PKG_LINUX_SRC24 0
  27. if [ "$ROCKCFG_PKG_LINUX_SRC24" = 0 ]; then
  28. pkgdisable linux=linux24-source
  29. else
  30. pkgenable linux=linux24-source
  31. fi
  32. bool 'Place linux26 sources in /usr/src' \
  33. ROCKCFG_PKG_LINUX_SRC26 1
  34. if [ "$ROCKCFG_PKG_LINUX_SRC26" = 0 ]; then
  35. pkgdisable linux=linux26-source
  36. else
  37. pkgenable linux=linux26-source
  38. fi
  39. bool 'Build and install a linux24 kernel' \
  40. ROCKCFG_PKG_LINUX_IMG24 0
  41. if [ "$ROCKCFG_PKG_LINUX_IMG24" = 0 ]; then
  42. pkgdisable linux=linux24
  43. else
  44. pkgenable linux=linux24
  45. fi
  46. bool 'Build and install a linux26 kernel' \
  47. ROCKCFG_PKG_LINUX_IMG26 1
  48. if [ "$ROCKCFG_PKG_LINUX_IMG26" = 0 ]; then
  49. pkgdisable linux=linux26
  50. else
  51. pkgenable linux=linux26
  52. fi
  53. case "$ROCKCFG_PKG_LINUX_IMG24$ROCKCFG_PKG_LINUX_IMG26" in
  54. 00)
  55. const ROCKCFG_PKG_LINUX_DEFAULT none
  56. ;;
  57. 01)
  58. const ROCKCFG_PKG_LINUX_DEFAULT linux26
  59. ;;
  60. 10)
  61. const ROCKCFG_PKG_LINUX_DEFAULT linux24
  62. ;;
  63. *)
  64. choice ROCKCFG_PKG_LINUX_DEFAULT linux26 \
  65. linux24 'Use linux kernel 2.4.x as default kernel' \
  66. linux26 'Use linux kernel 2.6.x as default kernel'
  67. ;;
  68. esac
  69. choice ROCKCFG_PKG_LINUX_CONFIG_STYLE modules \
  70. none 'Do not perform any automatic kernel configuration' \
  71. nomodules 'Perform normal kernel configuration without modules' \
  72. modules 'Perform normal kernel configuration including modules'
  73. if [ "$ROCKCFG_PKG_LINUX_CONFIG_STYLE" = none ] ; then
  74. ROCKCFGSET_PKG_LINUX_CUSTCONFIG=1
  75. fi
  76. bool 'Build kernel 2.6.x module utils (module-init-tools)' \
  77. ROCKCFG_PKG_LINUX_USE26MODTOOLS 1
  78. if [ $ROCKCFG_PKG_LINUX_USE26MODTOOLS = 0 ] ; then
  79. pkgdisable module-init-tools
  80. fi
  81. bool 'Apply custom kernel build configuration settings' \
  82. ROCKCFG_PKG_LINUX_CUSTCONFIG 0
  83. include "package/*/*/pkg_config_linux.in"
  84. if [ "$ROCKCFG_PKG_LINUX_CUSTCONFIG" = 1 ] ; then
  85. block_begin 3
  86. comment 'The kernel config is stored in:'
  87. comment "config/$config/linux.cfg"
  88. editfile ROCKCFG_PKG_LINUX_CUSTCONFIG_FILE \
  89. $swpdir/linux.cfg \
  90. 'Linux kernel build config settings'
  91. block_end
  92. else
  93. rm -f $swpdir/linux.cfg
  94. fi
  95. menu_end
  96. fi