diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 21:04:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 21:04:28 -0400 |
commit | 3df302ff56fac91d54e964faed9d293018ac71ca (patch) | |
tree | 1c130ae32cdd91d83072b00e1576c993b2e836dd | |
parent | 685d87f7ccc649ab92b55e18e507a65d0e694eb9 (diff) | |
parent | 64a99d2a8c3ed5c4e39f3ae1cc682aa8fd3977fc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
kbuild: a better way to generate cscope database change
Kconfig: Extend "menuconfig" for modules to simplify Kconfig file
bugfix for scripts/patch-kernel in 2.6 sublevel stepping
kbuild: fix O=.. build with arm
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | init/Kconfig | 9 | ||||
-rwxr-xr-x | scripts/patch-kernel | 3 |
3 files changed, 10 insertions, 10 deletions
@@ -929,10 +929,10 @@ ifneq ($(KBUILD_SRC),) | |||
929 | echo " in the '$(srctree)' directory.";\ | 929 | echo " in the '$(srctree)' directory.";\ |
930 | /bin/false; \ | 930 | /bin/false; \ |
931 | fi; | 931 | fi; |
932 | $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; | 932 | $(Q)if [ ! -d include2 ]; then \ |
933 | $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/errno.h ]; then \ | 933 | mkdir -p include2; \ |
934 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ | 934 | ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ |
935 | fi | 935 | fi |
936 | endif | 936 | endif |
937 | 937 | ||
938 | # prepare2 creates a makefile if using a separate output directory | 938 | # prepare2 creates a makefile if using a separate output directory |
@@ -1492,7 +1492,7 @@ quiet_cmd_cscope-file = FILELST cscope.files | |||
1492 | cmd_cscope-file = (echo \-k; echo \-q; $(all-sources)) > cscope.files | 1492 | cmd_cscope-file = (echo \-k; echo \-q; $(all-sources)) > cscope.files |
1493 | 1493 | ||
1494 | quiet_cmd_cscope = MAKE cscope.out | 1494 | quiet_cmd_cscope = MAKE cscope.out |
1495 | cmd_cscope = cscope -b | 1495 | cmd_cscope = cscope -b -f cscope.out |
1496 | 1496 | ||
1497 | cscope: FORCE | 1497 | cscope: FORCE |
1498 | $(call cmd,cscope-file) | 1498 | $(call cmd,cscope-file) |
diff --git a/init/Kconfig b/init/Kconfig index 7e6dae1ae727..b678803deccf 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -845,9 +845,10 @@ menuconfig MODULES | |||
845 | 845 | ||
846 | If unsure, say Y. | 846 | If unsure, say Y. |
847 | 847 | ||
848 | if MODULES | ||
849 | |||
848 | config MODULE_FORCE_LOAD | 850 | config MODULE_FORCE_LOAD |
849 | bool "Forced module loading" | 851 | bool "Forced module loading" |
850 | depends on MODULES | ||
851 | default n | 852 | default n |
852 | help | 853 | help |
853 | Allow loading of modules without version information (ie. modprobe | 854 | Allow loading of modules without version information (ie. modprobe |
@@ -856,7 +857,6 @@ config MODULE_FORCE_LOAD | |||
856 | 857 | ||
857 | config MODULE_UNLOAD | 858 | config MODULE_UNLOAD |
858 | bool "Module unloading" | 859 | bool "Module unloading" |
859 | depends on MODULES | ||
860 | help | 860 | help |
861 | Without this option you will not be able to unload any | 861 | Without this option you will not be able to unload any |
862 | modules (note that some modules may not be unloadable | 862 | modules (note that some modules may not be unloadable |
@@ -875,7 +875,6 @@ config MODULE_FORCE_UNLOAD | |||
875 | 875 | ||
876 | config MODVERSIONS | 876 | config MODVERSIONS |
877 | bool "Module versioning support" | 877 | bool "Module versioning support" |
878 | depends on MODULES | ||
879 | help | 878 | help |
880 | Usually, you have to use modules compiled with your kernel. | 879 | Usually, you have to use modules compiled with your kernel. |
881 | Saying Y here makes it sometimes possible to use modules | 880 | Saying Y here makes it sometimes possible to use modules |
@@ -886,7 +885,6 @@ config MODVERSIONS | |||
886 | 885 | ||
887 | config MODULE_SRCVERSION_ALL | 886 | config MODULE_SRCVERSION_ALL |
888 | bool "Source checksum for all modules" | 887 | bool "Source checksum for all modules" |
889 | depends on MODULES | ||
890 | help | 888 | help |
891 | Modules which contain a MODULE_VERSION get an extra "srcversion" | 889 | Modules which contain a MODULE_VERSION get an extra "srcversion" |
892 | field inserted into their modinfo section, which contains a | 890 | field inserted into their modinfo section, which contains a |
@@ -898,11 +896,12 @@ config MODULE_SRCVERSION_ALL | |||
898 | 896 | ||
899 | config KMOD | 897 | config KMOD |
900 | def_bool y | 898 | def_bool y |
901 | depends on MODULES | ||
902 | help | 899 | help |
903 | This is being removed soon. These days, CONFIG_MODULES | 900 | This is being removed soon. These days, CONFIG_MODULES |
904 | implies CONFIG_KMOD, so use that instead. | 901 | implies CONFIG_KMOD, so use that instead. |
905 | 902 | ||
903 | endif # MODULES | ||
904 | |||
906 | config STOP_MACHINE | 905 | config STOP_MACHINE |
907 | bool | 906 | bool |
908 | default y | 907 | default y |
diff --git a/scripts/patch-kernel b/scripts/patch-kernel index ece46ef0ba54..46a59cae3a0a 100755 --- a/scripts/patch-kernel +++ b/scripts/patch-kernel | |||
@@ -213,6 +213,7 @@ fi | |||
213 | if [ $stopvers != "default" ]; then | 213 | if [ $stopvers != "default" ]; then |
214 | STOPSUBLEVEL=`echo $stopvers | cut -d. -f3` | 214 | STOPSUBLEVEL=`echo $stopvers | cut -d. -f3` |
215 | STOPEXTRA=`echo $stopvers | cut -d. -f4` | 215 | STOPEXTRA=`echo $stopvers | cut -d. -f4` |
216 | STOPFULLVERSION=${stopvers%%.$STOPEXTRA} | ||
216 | #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/" | 217 | #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/" |
217 | else | 218 | else |
218 | STOPSUBLEVEL=9999 | 219 | STOPSUBLEVEL=9999 |
@@ -249,7 +250,7 @@ while : # incrementing SUBLEVEL (s in v.p.s) | |||
249 | do | 250 | do |
250 | CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL" | 251 | CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL" |
251 | EXTRAVER= | 252 | EXTRAVER= |
252 | if [ $stopvers = $CURRENTFULLVERSION ]; then | 253 | if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then |
253 | echo "Stopping at $CURRENTFULLVERSION base as requested." | 254 | echo "Stopping at $CURRENTFULLVERSION base as requested." |
254 | break | 255 | break |
255 | fi | 256 | fi |