aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-06 16:21:57 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-06 16:21:57 -0400
commit15700770ef7c5d12e2f1659d2ddbeb3f658d9f37 (patch)
tree7fa2f81c33c9efcb1a1568385beead75c5892cfb /scripts
parent6de410c2b0cc055ae9ee640c84331f6a70878d9b (diff)
parent11de39e2fbbc592018e0a231d0ee773653dcc8d6 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (38 commits) kconfig: fix mconf segmentation fault kbuild: enable use of code from a different dir kconfig: error out if recursive dependencies are found kbuild: scripts/basic/fixdep segfault on pathological string-o-death kconfig: correct minor typo in Kconfig warning message. kconfig: fix path to modules.txt in Kconfig help usr/Kconfig: fix typo kernel-doc: alphabetically-sorted entries in index.html of 'htmldocs' kbuild: be more explicit on missing .config file kbuild: clarify the creation of the LOCALVERSION_AUTO string. kbuild: propagate errors from find in scripts/gen_initramfs_list.sh kconfig: refer to qt3 if we cannot find qt libraries kbuild: handle compressed cpio initramfs-es kbuild: ignore section mismatch warning for references from .paravirtprobe to .init.text kbuild: remove stale comment in modpost.c kbuild/mkuboot.sh: allow spaces in CROSS_COMPILE kbuild: fix make mrproper for Documentation/DocBook/man kbuild: remove kconfig binaries during make mrproper kconfig/menuconfig: do not hardcode '.config' kbuild: override build timestamp & version ...
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build19
-rw-r--r--scripts/Makefile.host14
-rw-r--r--scripts/Makefile.modpost8
-rw-r--r--scripts/basic/fixdep.c2
-rwxr-xr-xscripts/checksyscalls.sh118
-rwxr-xr-xscripts/cleanfile126
-rwxr-xr-xscripts/cleanpatch206
-rw-r--r--scripts/gen_initramfs_list.sh12
-rw-r--r--scripts/kconfig/Makefile5
-rw-r--r--scripts/kconfig/conf.c1
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped2
-rw-r--r--scripts/kconfig/lkc.h1
-rw-r--r--scripts/kconfig/lxdialog/dialog.h1
-rw-r--r--scripts/kconfig/lxdialog/util.c9
-rw-r--r--scripts/kconfig/mconf.c43
-rw-r--r--scripts/kconfig/menu.c2
-rw-r--r--scripts/kconfig/qconf.cc5
-rw-r--r--scripts/kconfig/qconf.h2
-rw-r--r--scripts/kconfig/symbol.c13
-rw-r--r--scripts/kconfig/zconf.l2
-rw-r--r--scripts/kconfig/zconf.tab.c_shipped6
-rw-r--r--scripts/kconfig/zconf.y6
-rwxr-xr-xscripts/mkcompile_h27
-rwxr-xr-xscripts/mkuboot.sh2
-rw-r--r--scripts/mod/file2alias.c21
-rw-r--r--scripts/mod/modpost.c141
-rw-r--r--scripts/mod/modpost.h1
-rw-r--r--scripts/mod/sumversion.c5
28 files changed, 689 insertions, 111 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index e2ad2dccccdb..a525112847fd 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -131,13 +131,13 @@ $(multi-objs-y:.o=.lst) : modname = $(modname-multi)
131quiet_cmd_cc_s_c = CC $(quiet_modtag) $@ 131quiet_cmd_cc_s_c = CC $(quiet_modtag) $@
132cmd_cc_s_c = $(CC) $(c_flags) -fverbose-asm -S -o $@ $< 132cmd_cc_s_c = $(CC) $(c_flags) -fverbose-asm -S -o $@ $<
133 133
134%.s: %.c FORCE 134$(obj)/%.s: $(src)/%.c FORCE
135 $(call if_changed_dep,cc_s_c) 135 $(call if_changed_dep,cc_s_c)
136 136
137quiet_cmd_cc_i_c = CPP $(quiet_modtag) $@ 137quiet_cmd_cc_i_c = CPP $(quiet_modtag) $@
138cmd_cc_i_c = $(CPP) $(c_flags) -o $@ $< 138cmd_cc_i_c = $(CPP) $(c_flags) -o $@ $<
139 139
140%.i: %.c FORCE 140$(obj)/%.i: $(src)/%.c FORCE
141 $(call if_changed_dep,cc_i_c) 141 $(call if_changed_dep,cc_i_c)
142 142
143quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@ 143quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@
@@ -146,7 +146,7 @@ cmd_cc_symtypes_c = \
146 | $(GENKSYMS) -T $@ >/dev/null; \ 146 | $(GENKSYMS) -T $@ >/dev/null; \
147 test -s $@ || rm -f $@ 147 test -s $@ || rm -f $@
148 148
149%.symtypes : %.c FORCE 149$(obj)/%.symtypes : $(src)/%.c FORCE
150 $(call if_changed_dep,cc_symtypes_c) 150 $(call if_changed_dep,cc_symtypes_c)
151 151
152# C (.c) files 152# C (.c) files
@@ -198,14 +198,13 @@ define rule_cc_o_c
198endef 198endef
199 199
200# Built-in and composite module parts 200# Built-in and composite module parts
201 201$(obj)/%.o: $(src)/%.c FORCE
202%.o: %.c FORCE
203 $(call cmd,force_checksrc) 202 $(call cmd,force_checksrc)
204 $(call if_changed_rule,cc_o_c) 203 $(call if_changed_rule,cc_o_c)
205 204
206# Single-part modules are special since we need to mark them in $(MODVERDIR) 205# Single-part modules are special since we need to mark them in $(MODVERDIR)
207 206
208$(single-used-m): %.o: %.c FORCE 207$(single-used-m): $(obj)/%.o: $(src)/%.c FORCE
209 $(call cmd,force_checksrc) 208 $(call cmd,force_checksrc)
210 $(call if_changed_rule,cc_o_c) 209 $(call if_changed_rule,cc_o_c)
211 @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod) 210 @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod)
@@ -215,7 +214,7 @@ quiet_cmd_cc_lst_c = MKLST $@
215 $(CONFIG_SHELL) $(srctree)/scripts/makelst $*.o \ 214 $(CONFIG_SHELL) $(srctree)/scripts/makelst $*.o \
216 System.map $(OBJDUMP) > $@ 215 System.map $(OBJDUMP) > $@
217 216
218%.lst: %.c FORCE 217$(obj)/%.lst: $(src)/%.c FORCE
219 $(call if_changed_dep,cc_lst_c) 218 $(call if_changed_dep,cc_lst_c)
220 219
221# Compile assembler sources (.S) 220# Compile assembler sources (.S)
@@ -229,13 +228,13 @@ $(real-objs-m:.o=.s): modkern_aflags := $(AFLAGS_MODULE)
229quiet_cmd_as_s_S = CPP $(quiet_modtag) $@ 228quiet_cmd_as_s_S = CPP $(quiet_modtag) $@
230cmd_as_s_S = $(CPP) $(a_flags) -o $@ $< 229cmd_as_s_S = $(CPP) $(a_flags) -o $@ $<
231 230
232%.s: %.S FORCE 231$(obj)/%.s: $(src)/%.S FORCE
233 $(call if_changed_dep,as_s_S) 232 $(call if_changed_dep,as_s_S)
234 233
235quiet_cmd_as_o_S = AS $(quiet_modtag) $@ 234quiet_cmd_as_o_S = AS $(quiet_modtag) $@
236cmd_as_o_S = $(CC) $(a_flags) -c -o $@ $< 235cmd_as_o_S = $(CC) $(a_flags) -c -o $@ $<
237 236
238%.o: %.S FORCE 237$(obj)/%.o: $(src)/%.S FORCE
239 $(call if_changed_dep,as_o_S) 238 $(call if_changed_dep,as_o_S)
240 239
241targets += $(real-objs-y) $(real-objs-m) $(lib-y) 240targets += $(real-objs-y) $(real-objs-m) $(lib-y)
@@ -246,7 +245,7 @@ targets += $(extra-y) $(MAKECMDGOALS) $(always)
246quiet_cmd_cpp_lds_S = LDS $@ 245quiet_cmd_cpp_lds_S = LDS $@
247 cmd_cpp_lds_S = $(CPP) $(cpp_flags) -D__ASSEMBLY__ -o $@ $< 246 cmd_cpp_lds_S = $(CPP) $(cpp_flags) -D__ASSEMBLY__ -o $@ $<
248 247
249%.lds: %.lds.S FORCE 248$(obj)/%.lds: $(src)/%.lds.S FORCE
250 $(call if_changed_dep,cpp_lds_S) 249 $(call if_changed_dep,cpp_lds_S)
251 250
252# Build the compiled-in targets 251# Build the compiled-in targets
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 575afbe5e370..6943a7a5bb98 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -114,7 +114,7 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags)
114quiet_cmd_host-csingle = HOSTCC $@ 114quiet_cmd_host-csingle = HOSTCC $@
115 cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \ 115 cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \
116 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 116 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
117$(host-csingle): %: %.c FORCE 117$(host-csingle): $(obj)/%: $(src)/%.c FORCE
118 $(call if_changed_dep,host-csingle) 118 $(call if_changed_dep,host-csingle)
119 119
120# Link an executable based on list of .o files, all plain c 120# Link an executable based on list of .o files, all plain c
@@ -123,14 +123,14 @@ quiet_cmd_host-cmulti = HOSTLD $@
123 cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \ 123 cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \
124 $(addprefix $(obj)/,$($(@F)-objs)) \ 124 $(addprefix $(obj)/,$($(@F)-objs)) \
125 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 125 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
126$(host-cmulti): %: $(host-cobjs) $(host-cshlib) FORCE 126$(host-cmulti): $(obj)/%: $(host-cobjs) $(host-cshlib) FORCE
127 $(call if_changed,host-cmulti) 127 $(call if_changed,host-cmulti)
128 128
129# Create .o file from a single .c file 129# Create .o file from a single .c file
130# host-cobjs -> .o 130# host-cobjs -> .o
131quiet_cmd_host-cobjs = HOSTCC $@ 131quiet_cmd_host-cobjs = HOSTCC $@
132 cmd_host-cobjs = $(HOSTCC) $(hostc_flags) -c -o $@ $< 132 cmd_host-cobjs = $(HOSTCC) $(hostc_flags) -c -o $@ $<
133$(host-cobjs): %.o: %.c FORCE 133$(host-cobjs): $(obj)/%.o: $(src)/%.c FORCE
134 $(call if_changed_dep,host-cobjs) 134 $(call if_changed_dep,host-cobjs)
135 135
136# Link an executable based on list of .o files, a mixture of .c and .cc 136# Link an executable based on list of .o files, a mixture of .c and .cc
@@ -140,20 +140,20 @@ quiet_cmd_host-cxxmulti = HOSTLD $@
140 $(foreach o,objs cxxobjs,\ 140 $(foreach o,objs cxxobjs,\
141 $(addprefix $(obj)/,$($(@F)-$(o)))) \ 141 $(addprefix $(obj)/,$($(@F)-$(o)))) \
142 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 142 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
143$(host-cxxmulti): %: $(host-cobjs) $(host-cxxobjs) $(host-cshlib) FORCE 143$(host-cxxmulti): $(obj)/%: $(host-cobjs) $(host-cxxobjs) $(host-cshlib) FORCE
144 $(call if_changed,host-cxxmulti) 144 $(call if_changed,host-cxxmulti)
145 145
146# Create .o file from a single .cc (C++) file 146# Create .o file from a single .cc (C++) file
147quiet_cmd_host-cxxobjs = HOSTCXX $@ 147quiet_cmd_host-cxxobjs = HOSTCXX $@