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.

106 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 - 2006 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 Wolf <clifford@clifford.at> and adapted
  22. for various new 2.5/2.6 kernels by Rene Rebe <rene.rebe@gmx.net>.
  23. --- ./scripts/kconfig/conf.c.vanilla 2006-01-10 17:29:02.000000000 +0100
  24. +++ ./scripts/kconfig/conf.c 2006-01-10 17:33:34.000000000 +0100
  25. @@ -20,6 +20,7 @@
  26. ask_all,
  27. ask_new,
  28. ask_silent,
  29. + ask_no2mod,
  30. set_default,
  31. set_yes,
  32. set_mod,
  33. @@ -91,6 +92,15 @@
  34. return;
  35. }
  36. break;
  37. + case ask_no2mod:
  38. + if (type == S_TRISTATE &&
  39. + sym_get_tristate_value(sym) == no) {
  40. + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
  41. + line[0] = 'm';
  42. + line[1] = '\n';
  43. + line[2] = 0;
  44. + break;
  45. + }
  46. case ask_new:
  47. case ask_silent:
  48. if (sym_has_value(sym)) {
  49. @@ -354,6 +364,7 @@
  50. break;
  51. }
  52. check_stdin();
  53. + case ask_no2mod:
  54. case ask_all:
  55. fflush(stdout);
  56. fgets(line, 128, stdin);
  57. @@ -523,6 +534,9 @@
  58. case 'm':
  59. input_mode = set_mod;
  60. break;
  61. + case 'M':
  62. + input_mode = ask_no2mod;
  63. + break;
  64. case 'y':
  65. input_mode = set_yes;
  66. break;
  67. @@ -565,6 +579,7 @@
  68. }
  69. case ask_all:
  70. case ask_new:
  71. + case ask_no2mod:
  72. conf_read(NULL);
  73. break;
  74. case set_no:
  75. --- ./scripts/kconfig/Makefile.vanilla 2006-01-10 17:29:25.000000000 +0100
  76. +++ ./scripts/kconfig/Makefile 2006-01-10 17:29:45.000000000 +0100
  77. @@ -42,7 +42,7 @@
  78. $(Q)rm -f arch/um/Kconfig_arch
  79. $(Q)rm -f scripts/kconfig/linux_*.pot scripts/kconfig/config.pot
  80. -.PHONY: randconfig allyesconfig allnoconfig allmodconfig defconfig
  81. +.PHONY: randconfig allyesconfig allnoconfig allmodconfig no2modconfig defconfig
  82. randconfig: $(obj)/conf
  83. $< -r arch/$(ARCH)/Kconfig
  84. @@ -56,6 +56,9 @@
  85. allmodconfig: $(obj)/conf
  86. $< -m arch/$(ARCH)/Kconfig
  87. +no2modconfig: scripts/kconfig/conf
  88. + $< -M arch/$(ARCH)/Kconfig
  89. +
  90. defconfig: $(obj)/conf
  91. ifeq ($(KBUILD_DEFCONFIG),)
  92. $< -d arch/$(ARCH)/Kconfig
  93. @@ -77,6 +80,7 @@
  94. @echo ' randconfig - New config with random answer to all options'
  95. @echo ' defconfig - New config with default answer to all options'
  96. @echo ' allmodconfig - New config selecting modules when possible'
  97. + @echo ' no2modconfig - New config selecting modules for disabled options'
  98. @echo ' allyesconfig - New config where all options are accepted with yes'
  99. @echo ' allnoconfig - New minimal config'