diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
commit | 2fca877b68b2b4fc5b94277858a1bedd46017cde (patch) | |
tree | fd02725406299ba2f26354463b3c261721e9eb6b /Makefile | |
parent | ff40c6d3d1437ecdf295b8e39adcb06c3d6021ef (diff) | |
parent | 02b3e4e2d71b6058ec11cc01c72ac651eb3ded2b (diff) |
/spare/repo/libata-dev branch 'v2.6.13'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,6 +1,6 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 12 | 3 | SUBLEVEL = 13 |
4 | EXTRAVERSION = | 4 | EXTRAVERSION = |
5 | NAME=Woozy Numbat | 5 | NAME=Woozy Numbat |
6 | 6 | ||
@@ -281,7 +281,7 @@ export quiet Q KBUILD_VERBOSE | |||
281 | # See documentation in Documentation/kbuild/makefiles.txt | 281 | # See documentation in Documentation/kbuild/makefiles.txt |
282 | 282 | ||
283 | # cc-option | 283 | # cc-option |
284 | # Usage: cflags-y += $(call gcc-option, -march=winchip-c6, -march=i586) | 284 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
285 | 285 | ||
286 | cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ | 286 | cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ |
287 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) | 287 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |
@@ -518,7 +518,7 @@ CFLAGS += $(call add-align,CONFIG_CC_ALIGN_LOOPS,-loops) | |||
518 | CFLAGS += $(call add-align,CONFIG_CC_ALIGN_JUMPS,-jumps) | 518 | CFLAGS += $(call add-align,CONFIG_CC_ALIGN_JUMPS,-jumps) |
519 | 519 | ||
520 | ifdef CONFIG_FRAME_POINTER | 520 | ifdef CONFIG_FRAME_POINTER |
521 | CFLAGS += -fno-omit-frame-pointer | 521 | CFLAGS += -fno-omit-frame-pointer $(call cc-option,-fno-optimize-sibling-calls,) |
522 | else | 522 | else |
523 | CFLAGS += -fomit-frame-pointer | 523 | CFLAGS += -fomit-frame-pointer |
524 | endif | 524 | endif |
@@ -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 | ||
1152 | ifeq ($(KBUILD_OUTPUT),) | 1156 | ifeq ($(src),$(obj)) |
1153 | __srctree = | 1157 | __srctree = |
1154 | else | 1158 | else |
1155 | __srctree = $(srctree)/ | 1159 | __srctree = $(srctree)/ |