OpenSDE Packages Database (without history before r20070)
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.

105 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux26-rt/12-conf-hacks.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  18. Set all unset options to module. Needed by the T2 / ROCK Linux kernel
  19. configuration.
  20. Initally written by Clifford Wold <clifford@clifford.at> and adapted
  21. for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>.
  22. --- ./scripts/kconfig/Makefile.orig 2006-03-19 19:38:46.080184500 +0100
  23. +++ ./scripts/kconfig/Makefile 2006-03-19 20:01:55.859040250 +0100
  24. @@ -2,7 +2,7 @@
  25. # Kernel configuration targets
  26. # These targets are used from top-level makefile
  27. -PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
  28. +PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig no2modconfig update-po-config
  29. xconfig: $(obj)/qconf
  30. $< arch/$(ARCH)/Kconfig
  31. @@ -56,6 +56,9 @@
  32. allmodconfig: $(obj)/conf
  33. $< -m arch/$(ARCH)/Kconfig
  34. +no2modconfig: scripts/kconfig/conf
  35. + $< -M arch/$(ARCH)/Kconfig
  36. +
  37. defconfig: $(obj)/conf
  38. ifeq ($(KBUILD_DEFCONFIG),)
  39. $< -d arch/$(ARCH)/Kconfig
  40. @@ -77,6 +80,7 @@
  41. @echo ' randconfig - New config with random answer to all options'
  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 config where all options are answered with no'
  47. --- linux-2.6.17/scripts/kconfig/conf.c 2006-06-18 03:49:35.000000000 +0200
  48. +++ linux26.macbook/scripts/kconfig/conf.c 2006-07-22 11:57:17.000000000 +0200
  49. @@ -21,6 +21,7 @@
  50. ask_all,
  51. ask_new,
  52. ask_silent,
  53. + set_no2mod,
  54. set_default,
  55. set_yes,
  56. set_mod,
  57. @@ -83,6 +84,15 @@
  58. }
  59. switch (input_mode) {
  60. + case set_no2mod:
  61. + if (type == S_TRISTATE &&
  62. + sym_get_tristate_value(sym) == no) {
  63. + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
  64. + line[0] = 'm';
  65. + line[1] = '\n';
  66. + line[2] = 0;
  67. + break;
  68. + }
  69. case set_no:
  70. case set_mod:
  71. case set_yes:
  72. @@ -372,6 +382,7 @@
  73. break;
  74. case set_random:
  75. def = (random() % cnt) + 1;
  76. + case set_no2mod:
  77. case set_default:
  78. case set_yes:
  79. case set_mod:
  80. @@ -523,6 +534,9 @@
  81. case 'm':
  82. input_mode = set_mod;
  83. break;
  84. + case 'M':
  85. + input_mode = set_no2mod;
  86. + break;
  87. case 'y':
  88. input_mode = set_yes;
  89. break;
  90. @@ -565,6 +579,7 @@
  91. }
  92. case ask_all:
  93. case ask_new:
  94. + case set_no2mod:
  95. conf_read(NULL);
  96. break;
  97. case set_no: