diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 14:05:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 14:05:15 -0400 |
| commit | 2a2ed2db353d949c06b6ef8b6913f65b39111eab (patch) | |
| tree | d835c3dd101da91089c3bdf51c8632e84be37232 /scripts/Makefile.build | |
| parent | 972d19e837833b93466c6f6a8ef2a7d653000aa3 (diff) | |
| parent | 070b98bfda3d27269519067c1c67eaef695f3e0c (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
kbuild: trivial fixes in Makefile
kbuild: adding symbols in Kconfig and defconfig to TAGS
kbuild: replace abort() with exit(1)
kbuild: support for %.symtypes files
kbuild: fix silentoldconfig recursion
kbuild: add option for stripping modules while installing them
kbuild: kill some false positives from modpost
kbuild: export-symbol usage report generator
kbuild: fix make -rR breakage
kbuild: append -dirty for updated but uncommited changes
kbuild: append git revision for all untagged commits
kbuild: fix module.symvers parsing in modpost
kbuild: ignore make's built-in rules & variables
kbuild: bugfix with initramfs
kbuild: modpost build fix
kbuild: check license compatibility when building modules
kbuild: export-type enhancement to modpost.c
kbuild: add dependency on kernel.release to the package targets
kbuild: `make kernelrelease' speedup
kconfig: KCONFIG_OVERWRITECONFIG
...
Diffstat (limited to 'scripts/Makefile.build')
| -rw-r--r-- | scripts/Makefile.build | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index e48e60da3040..3cb445cc7432 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -8,7 +8,7 @@ PHONY := __build | |||
| 8 | __build: | 8 | __build: |
| 9 | 9 | ||
| 10 | # Read .config if it exist, otherwise ignore | 10 | # Read .config if it exist, otherwise ignore |
| 11 | -include .config | 11 | -include include/config/auto.conf |
| 12 | 12 | ||
| 13 | include scripts/Kbuild.include | 13 | include scripts/Kbuild.include |
| 14 | 14 | ||
| @@ -117,7 +117,7 @@ $(real-objs-m:.o=.lst): quiet_modtag := [M] | |||
| 117 | $(obj-m) : quiet_modtag := [M] | 117 | $(obj-m) : quiet_modtag := [M] |
| 118 | 118 | ||
| 119 | # Default for not multi-part modules | 119 | # Default for not multi-part modules |
| 120 | modname = $(*F) | 120 | modname = $(basetarget) |
| 121 | 121 | ||
| 122 | $(multi-objs-m) : modname = $(modname-multi) | 122 | $(multi-objs-m) : modname = $(modname-multi) |
| 123 | $(multi-objs-m:.o=.i) : modname = $(modname-multi) | 123 | $(multi-objs-m:.o=.i) : modname = $(modname-multi) |
| @@ -140,6 +140,15 @@ cmd_cc_i_c = $(CPP) $(c_flags) -o $@ $< | |||
| 140 | %.i: %.c FORCE | 140 | %.i: %.c FORCE |
| 141 | $(call if_changed_dep,cc_i_c) | 141 | $(call if_changed_dep,cc_i_c) |
| 142 | 142 | ||
| 143 | quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@ | ||
| 144 | cmd_cc_symtypes_c = \ | ||
| 145 | $(CPP) -D__GENKSYMS__ $(c_flags) $< \ | ||
| 146 | | $(GENKSYMS) -T $@ >/dev/null; \ | ||
| 147 | test -s $@ || rm -f $@ | ||
| 148 | |||
| 149 | %.symtypes : %.c FORCE | ||
| 150 | $(call if_changed_dep,cc_symtypes_c) | ||
| 151 | |||
| 143 | # C (.c) files | 152 | # C (.c) files |
| 144 | # The C file is compiled and updated dependency information is generated. | 153 | # The C file is compiled and updated dependency information is generated. |
| 145 | # (See cmd_cc_o_c + relevant part of rule_cc_o_c) | 154 | # (See cmd_cc_o_c + relevant part of rule_cc_o_c) |
| @@ -166,7 +175,8 @@ cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $< | |||
| 166 | cmd_modversions = \ | 175 | cmd_modversions = \ |
| 167 | if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \ | 176 | if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \ |
| 168 | $(CPP) -D__GENKSYMS__ $(c_flags) $< \ | 177 | $(CPP) -D__GENKSYMS__ $(c_flags) $< \ |
| 169 | | $(GENKSYMS) -a $(ARCH) \ | 178 | | $(GENKSYMS) $(if $(KBUILD_SYMTYPES), \ |
| 179 | -T $(@D)/$(@F:.o=.symtypes)) -a $(ARCH) \ | ||
| 170 | > $(@D)/.tmp_$(@F:.o=.ver); \ | 180 | > $(@D)/.tmp_$(@F:.o=.ver); \ |
| 171 | \ | 181 | \ |
| 172 | $(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \ | 182 | $(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \ |
