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.

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