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.

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