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.

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