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.

128 lines
4.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/linux24/12-conf-hacks.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./scripts/Configure.orig 2003-01-13 23:24:50.000000000 +0100
  20. +++ ./scripts/Configure 2003-01-13 23:24:54.000000000 +0100
  21. @@ -49,6 +49,8 @@
  22. # 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
  23. # - Improve the exit message (Jeff Ronne).
  24. +# 20-06-1999: Added ALL_MODS_HACK and NEVER_ASK_HACK - Clifford
  25. +# 01-05-2001: Improved ALL_MODS_HACK - Rene
  26. #
  27. # Make sure we're really running bash.
  28. #
  29. @@ -184,6 +186,7 @@
  30. ;;
  31. esac
  32. while :; do
  33. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  34. readln "$1 ($2) [$defprompt] " "$def" "$old"
  35. case "$ans" in
  36. [yY] | [yY]es ) define_bool "$2" "y"
  37. @@ -216,6 +219,10 @@
  38. ;;
  39. esac
  40. while :; do
  41. + if [ ".$ALL_MODS_HACK" = .1 -a ".$def" != .y ] ; then
  42. + old=m ; def=m
  43. + fi
  44. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  45. readln "$1 ($2) [$defprompt] " "$def" "$old"
  46. case "$ans" in
  47. [yY] | [yY]es ) define_tristate "$2" "y"
  48. @@ -271,6 +278,10 @@
  49. ;;
  50. esac
  51. while :; do
  52. + if [ ".$ALL_MODS_HACK" = .1 ] ; then
  53. + old=m ; def=m
  54. + fi
  55. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  56. readln "$ques ($var) [$defprompt] " "$def" "$old"
  57. case "$ans" in
  58. [nN] | [nN]o ) define_tristate "$var" "n"
  59. @@ -359,6 +370,8 @@
  60. max=10000000 # !!
  61. fi
  62. while :; do
  63. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
  64. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  65. readln "$1 ($2) [$def] " "$def" "$old"
  66. if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; then
  67. define_int "$2" "$ans"
  68. @@ -390,6 +403,8 @@
  69. def=${old:-$3}
  70. def=${def#*[x,X]}
  71. while :; do
  72. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
  73. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  74. readln "$1 ($2) [$def] " "$def" "$old"
  75. ans=${ans#*[x,X]}
  76. if expr "$ans" : '[0-9a-fA-F][0-9a-fA-F]*$' > /dev/null; then
  77. @@ -420,6 +435,8 @@
  78. function string () {
  79. old=$(eval echo "\${$2}")
  80. def=${old:-$3}
  81. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="-"
  82. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  83. while :; do
  84. if [ "$old" = "?" ]; then
  85. readln "$1 ($2) [$def] " "$def" ""
  86. @@ -474,6 +491,7 @@
  87. val=""
  88. while [ -z "$val" ]; do
  89. ambg=n
  90. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  91. readln "$question ($names) [$def] " "$def" "$old"
  92. ans=$(echo $ans | tr a-z A-Z)
  93. set -- $choices
  94. @@ -534,11 +552,19 @@
  95. echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
  96. DEFAULT=""
  97. -if [ "$1" = "-d" ] ; then
  98. +ALL_MODS_HACK="0"
  99. +NEVER_ASK_HACK="0"
  100. +
  101. +if [ "$1" = "-d" -o "$1" = "-D" -o "$1" = "-m" -o "$1" = "-M" ] ; then
  102. + [ "$1" = "-D" -o "$1" = "-M" ] && NEVER_ASK_HACK="1"
  103. + [ "$1" = "-m" -o "$1" = "-M" ] && ALL_MODS_HACK="1"
  104. DEFAULT="-d"
  105. shift
  106. fi
  107. +[ $NEVER_ASK_HACK = 1 ] && echo "Debug: NEVER_ASK_HACK active."
  108. +[ $ALL_MODS_HACK = 1 ] && echo "Debug: ALL_MODS_HACK active."
  109. +
  110. CONFIG_IN=./config.in
  111. if [ "$1" != "" ] ; then
  112. CONFIG_IN=$1
  113. --- ./Makefile.orig 2003-01-13 23:24:57.000000000 +0100
  114. +++ ./Makefile 2003-01-13 23:25:56.000000000 +0100
  115. @@ -301,6 +301,9 @@
  116. oldconfig: symlinks
  117. $(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
  118. +no2modconfig: symlinks
  119. + $(CONFIG_SHELL) scripts/Configure -m arch/$(ARCH)/config.in
  120. +
  121. xconfig: symlinks
  122. $(MAKE) -C scripts kconfig.tk
  123. wish -f scripts/kconfig.tk