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.

104 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux26mm/12-conf-hacks.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. Set all unset options to module. Needed by the T2 / ROCK Linux kernel
  18. configuration.
  19. Initally written by Clifford Wold <clifford@clifford.at> and adapted
  20. for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>.
  21. --- ./scripts/kconfig/Makefile.orig 2006-03-19 19:38:46.080184500 +0100
  22. +++ ./scripts/kconfig/Makefile 2006-03-19 20:01:55.859040250 +0100
  23. @@ -2,7 +2,7 @@
  24. # Kernel configuration targets
  25. # These targets are used from top-level makefile
  26. -PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
  27. +PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig no2modconfig update-po-config
  28. xconfig: $(obj)/qconf
  29. $< arch/$(ARCH)/Kconfig
  30. @@ -56,6 +56,9 @@
  31. allmodconfig: $(obj)/conf
  32. $< -m arch/$(ARCH)/Kconfig
  33. +no2modconfig: scripts/kconfig/conf
  34. + $< -M arch/$(ARCH)/Kconfig
  35. +
  36. defconfig: $(obj)/conf
  37. ifeq ($(KBUILD_DEFCONFIG),)
  38. $< -d arch/$(ARCH)/Kconfig
  39. @@ -77,6 +80,7 @@
  40. @echo ' randconfig - New config with random answer to all options'
  41. @echo ' defconfig - New config with default answer to all options'
  42. @echo ' allmodconfig - New config selecting modules when possible'
  43. + @echo ' no2modconfig - New config selecting modules for disabled options'
  44. @echo ' allyesconfig - New config where all options are accepted with yes'
  45. @echo ' allnoconfig - New config where all options are answered with no'
  46. --- linux-2.6.0-test4/scripts/kconfig/conf.c 2003-08-23 01:59:45.000000000 +0200
  47. +++ linux-2.6.0-test4-rock/scripts/kconfig/conf.c 2003-08-23 16:48:07.000000000 +0200
  48. @@ -20,6 +20,7 @@
  49. ask_all,
  50. ask_new,
  51. ask_silent,
  52. + ask_no2mod,
  53. set_default,
  54. set_yes,
  55. set_mod,
  56. @@ -82,6 +83,15 @@
  57. }
  58. switch (input_mode) {
  59. + case ask_no2mod:
  60. + if (type == S_TRISTATE &&
  61. + sym_get_tristate_value(sym) == no) {
  62. + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
  63. + line[0] = 'm';
  64. + line[1] = '\n';
  65. + line[2] = 0;
  66. + break;
  67. + }
  68. case set_no:
  69. case set_mod:
  70. case set_yes:
  71. @@ -354,6 +364,7 @@
  72. break;
  73. }
  74. check_stdin();
  75. + case ask_no2mod:
  76. case ask_all:
  77. fflush(stdout);
  78. fgets(line, 128, stdin);
  79. @@ -523,6 +534,9 @@
  80. case 'm':
  81. input_mode = set_mod;
  82. break;
  83. + case 'M':
  84. + input_mode = ask_no2mod;
  85. + break;
  86. case 'y':
  87. input_mode = set_yes;
  88. break;
  89. @@ -565,6 +579,7 @@
  90. }
  91. case ask_all:
  92. case ask_new:
  93. + case ask_no2mod:
  94. conf_read(NULL);
  95. break;
  96. case set_no: