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