aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 278d50992c71..9cf07e7b9f88 100644
--- a/Makefile
+++ b/Makefile
@@ -792,6 +792,9 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
792 $(Q)$(MAKE) $(build)=$(@D) $@ 792 $(Q)$(MAKE) $(build)=$(@D) $@
793%.o: %.c scripts FORCE 793%.o: %.c scripts FORCE
794 $(Q)$(MAKE) $(build)=$(@D) $@ 794 $(Q)$(MAKE) $(build)=$(@D) $@
795%.ko: scripts FORCE
796 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D) $(@:.ko=.o)
797 $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modpost
795%/: scripts prepare FORCE 798%/: scripts prepare FORCE
796 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D) 799 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D)
797%.lst: %.c scripts FORCE 800%.lst: %.c scripts FORCE
@@ -1033,6 +1036,7 @@ help:
1033 @echo ' modules_install - Install all modules' 1036 @echo ' modules_install - Install all modules'
1034 @echo ' dir/ - Build all files in dir and below' 1037 @echo ' dir/ - Build all files in dir and below'
1035 @echo ' dir/file.[ois] - Build specified target only' 1038 @echo ' dir/file.[ois] - Build specified target only'
1039 @echo ' dir/file.ko - Build module including final link'
1036 @echo ' rpm - Build a kernel as an RPM package' 1040 @echo ' rpm - Build a kernel as an RPM package'
1037 @echo ' tags/TAGS - Generate tags file for editors' 1041 @echo ' tags/TAGS - Generate tags file for editors'
1038 @echo ' cscope - Generate cscope index' 1042 @echo ' cscope - Generate cscope index'
@@ -1149,7 +1153,7 @@ endif # KBUILD_EXTMOD
1149#(which is the most common case IMHO) to avoid unneeded clutter in the big tags file. 1153#(which is the most common case IMHO) to avoid unneeded clutter in the big tags file.
1150#Adding $(srctree) adds about 20M on i386 to the size of the output file! 1154#Adding $(srctree) adds about 20M on i386 to the size of the output file!
1151 1155
1152ifeq ($(KBUILD_OUTPUT),) 1156ifeq ($(src),$(obj))
1153__srctree = 1157__srctree =
1154else 1158else
1155__srctree = $(srctree)/ 1159__srctree = $(srctree)/