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.

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