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.

112 lines
3.6 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/linux26/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. Set all unset options to module. Needed by the ROCK Linux kernel
  23. configuration.
  24. Initally written by Clifford Wold <clifford@clifford.at> and adapted
  25. for various new 2.5/2.6 kernels by Rene Rebe <rene.rebe@gmx.net>.
  26. diff -ru linux-2.6.0-test4/scripts/kconfig/Makefile linux-2.6.0-test4-rock/scripts/kconfig/Makefile
  27. --- linux-2.6.0-test4/scripts/kconfig/Makefile 2003-08-23 02:02:34.000000000 +0200
  28. +++ linux-2.6.0-test4-rock/scripts/kconfig/Makefile 2003-08-23 16:51:01.000000000 +0200
  29. @@ -20,7 +20,7 @@
  30. oldconfig: scripts/kconfig/conf
  31. ./scripts/kconfig/conf -o arch/$(ARCH)/Kconfig
  32. -.PHONY: randconfig allyesconfig allnoconfig allmodconfig defconfig
  33. +.PHONY: randconfig allyesconfig allnoconfig allmodconfig no2modconfig defconfig
  34. randconfig: scripts/kconfig/conf
  35. ./scripts/kconfig/conf -r arch/$(ARCH)/Kconfig
  36. @@ -34,6 +34,9 @@
  37. allmodconfig: scripts/kconfig/conf
  38. ./scripts/kconfig/conf -m arch/$(ARCH)/Kconfig
  39. +no2modconfig: scripts/kconfig/conf
  40. + ./scripts/kconfig/conf -M arch/$(ARCH)/Kconfig
  41. +
  42. defconfig: scripts/kconfig/conf
  43. ./scripts/kconfig/conf -d arch/$(ARCH)/Kconfig
  44. @@ -45,6 +48,7 @@
  45. @echo ' gconfig - Update current config utilising a GTK based front-end'
  46. @echo ' defconfig - New config with default answer to all options'
  47. @echo ' allmodconfig - New config selecting modules when possible'
  48. + @echo ' no2modconfig - New config selecting modules for disabled options'
  49. @echo ' allyesconfig - New config where all options are accepted with yes'
  50. @echo ' allnoconfig - New minimal config'
  51. Only in linux-2.6.0-test4-rock/scripts/kconfig: conf
  52. diff -ru linux-2.6.0-test4/scripts/kconfig/conf.c linux-2.6.0-test4-rock/scripts/kconfig/conf.c
  53. --- linux-2.6.0-test4/scripts/kconfig/conf.c 2003-08-23 01:59:45.000000000 +0200
  54. +++ linux-2.6.0-test4-rock/scripts/kconfig/conf.c 2003-08-23 16:48:07.000000000 +0200
  55. @@ -20,6 +20,7 @@
  56. ask_all,
  57. ask_new,
  58. ask_silent,
  59. + ask_no2mod,
  60. set_default,
  61. set_yes,
  62. set_mod,
  63. @@ -81,6 +82,15 @@
  64. }
  65. switch (input_mode) {
  66. + case ask_no2mod:
  67. + if (type == S_TRISTATE &&
  68. + sym_get_tristate_value(sym) == no) {
  69. + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
  70. + line[0] = 'm';
  71. + line[1] = '\n';
  72. + line[2] = 0;
  73. + break;
  74. + }
  75. case ask_new:
  76. case ask_silent:
  77. if (sym_has_value(sym)) {
  78. @@ -344,6 +354,7 @@
  79. break;
  80. }
  81. check_stdin();
  82. + case ask_no2mod:
  83. case ask_all:
  84. fflush(stdout);
  85. fgets(line, 128, stdin);
  86. @@ -504,6 +515,9 @@
  87. case 'm':
  88. input_mode = set_mod;
  89. break;
  90. + case 'M':
  91. + input_mode = ask_no2mod;
  92. + break;
  93. case 'y':
  94. input_mode = set_yes;
  95. break;
  96. @@ -543,6 +557,7 @@
  97. }
  98. case ask_all:
  99. case ask_new:
  100. + case ask_no2mod:
  101. conf_read(NULL);
  102. break;
  103. default: