diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
commit | c4366889dda8110247be59ca41fddb82951a8c26 (patch) | |
tree | 705c1a996bed8fd48ce94ff33ec9fd00f9b94875 /scripts | |
parent | db2fb9db5735cc532fd4fc55e94b9a3c3750378e (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Conflicts:
drivers/cpufreq/cpufreq.c
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 19 | ||||
-rw-r--r-- | scripts/Makefile.headersinst | 2 | ||||
-rw-r--r-- | scripts/Makefile.modpost | 2 | ||||
-rw-r--r-- | scripts/basic/docproc.c | 2 | ||||
-rw-r--r-- | scripts/gen_initramfs_list.sh | 3 | ||||
-rw-r--r-- | scripts/kallsyms.c | 26 | ||||
-rw-r--r-- | scripts/kconfig/.gitignore | 2 | ||||
-rw-r--r-- | scripts/kconfig/lxdialog/util.c | 16 | ||||
-rw-r--r-- | scripts/kconfig/qconf.cc | 9 | ||||
-rwxr-xr-x | scripts/kernel-doc | 2 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 4 | ||||
-rwxr-xr-x | scripts/ver_linux | 8 |
12 files changed, 66 insertions, 29 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 4f5ff19b992b..f01f8c072852 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -56,6 +56,9 @@ endef | |||
56 | # gcc support functions | 56 | # gcc support functions |
57 | # See documentation in Documentation/kbuild/makefiles.txt | 57 | # See documentation in Documentation/kbuild/makefiles.txt |
58 | 58 | ||
59 | # output directory for tests below | ||
60 | TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/) | ||
61 | |||
59 | # as-option | 62 | # as-option |
60 | # Usage: cflags-y += $(call as-option, -Wa$(comma)-isa=foo,) | 63 | # Usage: cflags-y += $(call as-option, -Wa$(comma)-isa=foo,) |
61 | 64 | ||
@@ -66,9 +69,11 @@ as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \ | |||
66 | # as-instr | 69 | # as-instr |
67 | # Usage: cflags-y += $(call as-instr, instr, option1, option2) | 70 | # Usage: cflags-y += $(call as-instr, instr, option1, option2) |
68 | 71 | ||
69 | as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o astest$$$$.out ; \ | 72 | as-instr = $(shell if echo -e "$(1)" | \ |
70 | then echo "$(2)"; else echo "$(3)"; fi; \ | 73 | $(CC) $(AFLAGS) -c -xassembler - \ |
71 | rm -f astest$$$$.out) | 74 | -o $(TMPOUT)astest$$$$.out > /dev/null 2>&1; \ |
75 | then rm $(TMPOUT)astest$$$$.out; echo "$(2)"; \ | ||
76 | else echo "$(3)"; fi) | ||
72 | 77 | ||
73 | # cc-option | 78 | # cc-option |
74 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) | 79 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
@@ -97,10 +102,10 @@ cc-ifversion = $(shell if [ $(call cc-version, $(CC)) $(1) $(2) ]; then \ | |||
97 | 102 | ||
98 | # ld-option | 103 | # ld-option |
99 | # Usage: ldflags += $(call ld-option, -Wl$(comma)--hash-style=both) | 104 | # Usage: ldflags += $(call ld-option, -Wl$(comma)--hash-style=both) |
100 | ld-option = $(shell if $(CC) $(1) \ | 105 | ld-option = $(shell if $(CC) $(1) -nostdlib -xc /dev/null \ |
101 | -nostdlib -o ldtest$$$$.out -xc /dev/null \ | 106 | -o $(TMPOUT)ldtest$$$$.out > /dev/null 2>&1; \ |
102 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi; \ | 107 | then rm $(TMPOUT)ldtest$$$$.out; echo "$(1)"; \ |
103 | rm -f ldtest$$$$.out) | 108 | else echo "$(2)"; fi) |
104 | 109 | ||
105 | ### | 110 | ### |
106 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= | 111 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= |
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 6a026f69b563..4241e0dfeeaf 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
@@ -168,7 +168,7 @@ $(objhdr-y) $(header-y) $(unifdef-y): $(KBUILDFILES) | |||
168 | $(call cmd,gen) | 168 | $(call cmd,gen) |
169 | 169 | ||
170 | else | 170 | else |
171 | $(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES) | 171 | $(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(objtree)/$(obj)/%.h $(KBUILDFILES) |
172 | $(call cmd,o_hdr_install) | 172 | $(call cmd,o_hdr_install) |
173 | 173 | ||
174 | $(header-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES) | 174 | $(header-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES) |
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index 6c5469b1473b..65e0a79c36cf 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
@@ -44,7 +44,7 @@ include scripts/Kbuild.include | |||
44 | include scripts/Makefile.lib | 44 | include scripts/Makefile.lib |
45 | 45 | ||
46 | kernelsymfile := $(objtree)/Module.symvers | 46 | kernelsymfile := $(objtree)/Module.symvers |
47 | modulesymfile := $(KBUILD_EXTMOD)/Module.symvers | 47 | modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers |
48 | 48 | ||
49 | # Step 1), find all modules listed in $(MODVERDIR)/ | 49 | # Step 1), find all modules listed in $(MODVERDIR)/ |
50 | __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod))) | 50 | __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod))) |
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index 4ab6cbf09225..d6071cbf13d7 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
@@ -250,7 +250,7 @@ void intfunc(char * filename) { docfunctions(filename, NOFUNCTION); } | |||
250 | void extfunc(char * filename) { docfunctions(filename, FUNCTION); } | 250 | void extfunc(char * filename) { docfunctions(filename, FUNCTION); } |
251 | 251 | ||
252 | /* | 252 | /* |
253 | * Document spåecific function(s) in a file. | 253 | * Document specific function(s) in a file. |
254 | * Call kernel-doc with the following parameters: | 254 | * Call kernel-doc with the following parameters: |
255 | * kernel-doc -docbook -function function1 [-function function2] | 255 | * kernel-doc -docbook -function function1 [-function function2] |
256 | */ | 256 | */ |
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 331c079f029b..4c723fd18648 100644 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh | |||
@@ -158,7 +158,7 @@ unknown_option() { | |||
158 | } | 158 | } |
159 | 159 | ||
160 | list_header() { | 160 | list_header() { |
161 | echo "deps_initramfs := \\" | 161 | : |
162 | } | 162 | } |
163 | 163 | ||
164 | header() { | 164 | header() { |
@@ -227,6 +227,7 @@ arg="$1" | |||
227 | case "$arg" in | 227 | case "$arg" in |
228 | "-l") # files included in initramfs - used by kbuild | 228 | "-l") # files included in initramfs - used by kbuild |
229 | dep_list="list_" | 229 | dep_list="list_" |
230 | echo "deps_initramfs := \\" | ||
230 | shift | 231 | shift |
231 | ;; | 232 | ;; |
232 | "-o") # generate gzipped cpio image named $1 | 233 | "-o") # generate gzipped cpio image named $1 |
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 22d281c6ec24..8b809b264d18 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c | |||
@@ -43,7 +43,7 @@ struct sym_entry { | |||
43 | 43 | ||
44 | static struct sym_entry *table; | 44 | static struct sym_entry *table; |
45 | static unsigned int table_size, table_cnt; | 45 | static unsigned int table_size, table_cnt; |
46 | static unsigned long long _stext, _etext, _sinittext, _einittext, _sextratext, _eextratext; | 46 | static unsigned long long _text, _stext, _etext, _sinittext, _einittext, _sextratext, _eextratext; |
47 | static int all_symbols = 0; | 47 | static int all_symbols = 0; |
48 | static char symbol_prefix_char = '\0'; | 48 | static char symbol_prefix_char = '\0'; |
49 | 49 | ||
@@ -91,7 +91,9 @@ static int read_symbol(FILE *in, struct sym_entry *s) | |||
91 | sym++; | 91 | sym++; |
92 | 92 | ||
93 | /* Ignore most absolute/undefined (?) symbols. */ | 93 | /* Ignore most absolute/undefined (?) symbols. */ |
94 | if (strcmp(sym, "_stext") == 0) | 94 | if (strcmp(sym, "_text") == 0) |
95 | _text = s->addr; | ||
96 | else if (strcmp(sym, "_stext") == 0) | ||
95 | _stext = s->addr; | 97 | _stext = s->addr; |
96 | else if (strcmp(sym, "_etext") == 0) | 98 | else if (strcmp(sym, "_etext") == 0) |
97 | _etext = s->addr; | 99 | _etext = s->addr; |
@@ -263,11 +265,27 @@ static void write_src(void) | |||
263 | printf("#define ALGN .align 4\n"); | 265 | printf("#define ALGN .align 4\n"); |
264 | printf("#endif\n"); | 266 | printf("#endif\n"); |
265 | 267 | ||
266 | printf(".data\n"); | 268 | printf("\t.section .rodata, \"a\"\n"); |
267 | 269 | ||
270 | /* Provide proper symbols relocatability by their '_text' | ||
271 | * relativeness. The symbol names cannot be used to construct | ||
272 | * normal symbol references as the list of symbols contains | ||
273 | * symbols that are declared static and are private to their | ||
274 | * .o files. This prevents .tmp_kallsyms.o or any other | ||
275 | * object from referencing them. | ||
276 | */ | ||
268 | output_label("kallsyms_addresses"); | 277 | output_label("kallsyms_addresses"); |
269 | for (i = 0; i < table_cnt; i++) { | 278 | for (i = 0; i < table_cnt; i++) { |
270 | printf("\tPTR\t%#llx\n", table[i].addr); | 279 | if (toupper(table[i].sym[0]) != 'A') { |
280 | if (_text <= table[i].addr) | ||
281 | printf("\tPTR\t_text + %#llx\n", | ||
282 | table[i].addr - _text); | ||
283 | else | ||
284 | printf("\tPTR\t_text - %#llx\n", | ||
285 | _text - table[i].addr); | ||
286 | } else { | ||
287 | printf("\tPTR\t%#llx\n", table[i].addr); | ||
288 | } | ||
271 | } | 289 | } |
272 | printf("\n"); | 290 | printf("\n"); |
273 | 291 | ||
diff --git a/scripts/kconfig/.gitignore b/scripts/kconfig/.gitignore index e8ad1f6b3da4..b49584c932cc 100644 --- a/scripts/kconfig/.gitignore +++ b/scripts/kconfig/.gitignore | |||
@@ -6,6 +6,8 @@ lex.*.c | |||
6 | *.tab.c | 6 | *.tab.c |
7 | *.tab.h | 7 | *.tab.h |
8 | zconf.hash.c | 8 | zconf.hash.c |
9 | *.moc | ||
10 | lkc_defs.h | ||
9 | 11 | ||
10 | # | 12 | # |
11 | # configuration programs | 13 | # configuration programs |
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c index ebc781b493d7..d54440fc166c 100644 --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c | |||
@@ -221,16 +221,14 @@ static void init_dialog_colors(void) | |||
221 | */ | 221 | */ |
222 | static void color_setup(const char *theme) | 222 | static void color_setup(const char *theme) |
223 | { | 223 | { |
224 | if (set_theme(theme)) { | 224 | int use_color; |
225 | if (has_colors()) { /* Terminal supports color? */ | 225 | |
226 | start_color(); | 226 | use_color = set_theme(theme); |
227 | init_dialog_colors(); | 227 | if (use_color && has_colors()) { |
228 | } | 228 | start_color(); |
229 | } | 229 | init_dialog_colors(); |
230 | else | 230 | } else |
231 | { | ||
232 | set_mono_theme(); | 231 | set_mono_theme(); |
233 | } | ||
234 | } | 232 | } |
235 | 233 | ||
236 | /* | 234 | /* |
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 393f3749f330..f5628c57640b 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -798,7 +798,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e) | |||
798 | QAction *action; | 798 | QAction *action; |
799 | 799 | ||
800 | headerPopup = new QPopupMenu(this); | 800 | headerPopup = new QPopupMenu(this); |
801 | action = new QAction("Show Name", 0, this); | 801 | action = new QAction(NULL, "Show Name", 0, this); |
802 | action->setToggleAction(TRUE); | 802 | action->setToggleAction(TRUE); |
803 | connect(action, SIGNAL(toggled(bool)), | 803 | connect(action, SIGNAL(toggled(bool)), |
804 | parent(), SLOT(setShowName(bool))); | 804 | parent(), SLOT(setShowName(bool))); |
@@ -806,7 +806,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e) | |||
806 | action, SLOT(setOn(bool))); | 806 | action, SLOT(setOn(bool))); |
807 | action->setOn(showName); | 807 | action->setOn(showName); |
808 | action->addTo(headerPopup); | 808 | action->addTo(headerPopup); |
809 | action = new QAction("Show Range", 0, this); | 809 | action = new QAction(NULL, "Show Range", 0, this); |
810 | action->setToggleAction(TRUE); | 810 | action->setToggleAction(TRUE); |
811 | connect(action, SIGNAL(toggled(bool)), | 811 | connect(action, SIGNAL(toggled(bool)), |
812 | parent(), SLOT(setShowRange(bool))); | 812 | parent(), SLOT(setShowRange(bool))); |
@@ -814,7 +814,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e) | |||
814 | action, SLOT(setOn(bool))); | 814 | action, SLOT(setOn(bool))); |
815 | action->setOn(showRange); | 815 | action->setOn(showRange); |
816 | action->addTo(headerPopup); | 816 | action->addTo(headerPopup); |
817 | action = new QAction("Show Data", 0, this); | 817 | action = new QAction(NULL, "Show Data", 0, this); |
818 | action->setToggleAction(TRUE); | 818 | action->setToggleAction(TRUE); |
819 | connect(action, SIGNAL(toggled(bool)), | 819 | connect(action, SIGNAL(toggled(bool)), |
820 | parent(), SLOT(setShowData(bool))); | 820 | parent(), SLOT(setShowData(bool))); |
@@ -1161,7 +1161,7 @@ void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char | |||
1161 | QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) | 1161 | QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) |
1162 | { | 1162 | { |
1163 | QPopupMenu* popup = Parent::createPopupMenu(pos); | 1163 | QPopupMenu* popup = Parent::createPopupMenu(pos); |
1164 | QAction* action = new QAction("Show Debug Info", 0, popup); | 1164 | QAction* action = new QAction(NULL,"Show Debug Info", 0, popup); |
1165 | action->setToggleAction(TRUE); | 1165 | action->setToggleAction(TRUE); |
1166 | connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool))); | 1166 | connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool))); |
1167 | connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool))); | 1167 | connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool))); |
@@ -1259,6 +1259,7 @@ void ConfigSearchWindow::search(void) | |||
1259 | * Construct the complete config widget | 1259 | * Construct the complete config widget |
1260 | */ | 1260 | */ |
1261 | ConfigMainWindow::ConfigMainWindow(void) | 1261 | ConfigMainWindow::ConfigMainWindow(void) |
1262 | : searchWindow(0) | ||
1262 | { | 1263 | { |
1263 | QMenuBar* menu; | 1264 | QMenuBar* menu; |
1264 | bool ok; | 1265 | bool ok; |
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 187f5de4612c..df3b272f7ce6 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -1430,7 +1430,7 @@ sub create_parameterlist($$$) { | |||
1430 | # corresponding data structures "correctly". Catch it later in | 1430 | # corresponding data structures "correctly". Catch it later in |
1431 | # output_* subs. | 1431 | # output_* subs. |
1432 | push_parameter($arg, "", $file); | 1432 | push_parameter($arg, "", $file); |
1433 | } elsif ($arg =~ m/\(/) { | 1433 | } elsif ($arg =~ m/\(.*\*/) { |
1434 | # pointer-to-function | 1434 | # pointer-to-function |
1435 | $arg =~ tr/#/,/; | 1435 | $arg =~ tr/#/,/; |
1436 | $arg =~ m/[^\(]+\(\*([^\)]+)\)/; | 1436 | $arg =~ m/[^\(]+\(\*([^\)]+)\)/; |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 41277963f47a..ac0a58222992 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -911,6 +911,7 @@ static int init_section_ref_ok(const char *name) | |||
911 | ".toc1", /* used by ppc64 */ | 911 | ".toc1", /* used by ppc64 */ |
912 | ".stab", | 912 | ".stab", |
913 | ".rodata", | 913 | ".rodata", |
914 | ".parainstructions", | ||
914 | ".text.lock", | 915 | ".text.lock", |
915 | "__bug_table", /* used by powerpc for BUG() */ | 916 | "__bug_table", /* used by powerpc for BUG() */ |
916 | ".pci_fixup_header", | 917 | ".pci_fixup_header", |
@@ -921,6 +922,8 @@ static int init_section_ref_ok(const char *name) | |||
921 | ".fixup", | 922 | ".fixup", |
922 | ".smp_locks", | 923 | ".smp_locks", |
923 | ".plt", /* seen on ARCH=um build on x86_64. Harmless */ | 924 | ".plt", /* seen on ARCH=um build on x86_64. Harmless */ |
925 | "__ftr_fixup", /* powerpc cpu feature fixup */ | ||
926 | "__fw_ftr_fixup", /* powerpc firmware feature fixup */ | ||
924 | NULL | 927 | NULL |
925 | }; | 928 | }; |
926 | /* Start of section names */ | 929 | /* Start of section names */ |
@@ -929,6 +932,7 @@ static int init_section_ref_ok(const char *name) | |||
929 | ".altinstructions", | 932 | ".altinstructions", |
930 | ".eh_frame", | 933 | ".eh_frame", |
931 | ".debug", | 934 | ".debug", |
935 | ".parainstructions", | ||
932 | NULL | 936 | NULL |
933 | }; | 937 | }; |
934 | /* part of section name */ | 938 | /* part of section name */ |
diff --git a/scripts/ver_linux b/scripts/ver_linux index 84999f69773d..72876dfadc8a 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
@@ -48,6 +48,8 @@ fsck.reiser4 -V 2>&1 | grep ^fsck.reiser4 | awk \ | |||
48 | xfs_db -V 2>&1 | grep version | awk \ | 48 | xfs_db -V 2>&1 | grep version | awk \ |
49 | 'NR==1{print "xfsprogs ", $3}' | 49 | 'NR==1{print "xfsprogs ", $3}' |
50 | 50 | ||
51 | pccardctl -V 2>&1| grep pcmciautils | awk '{print "pcmciautils ", $2}' | ||
52 | |||
51 | cardmgr -V 2>&1| grep version | awk \ | 53 | cardmgr -V 2>&1| grep version | awk \ |
52 | 'NR==1{print "pcmcia-cs ", $3}' | 54 | 'NR==1{print "pcmcia-cs ", $3}' |
53 | 55 | ||
@@ -87,10 +89,16 @@ loadkeys -h 2>&1 | awk \ | |||
87 | loadkeys -V 2>&1 | awk \ | 89 | loadkeys -V 2>&1 | awk \ |
88 | '(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools ", $3}' | 90 | '(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools ", $3}' |
89 | 91 | ||
92 | oprofiled --version 2>&1 | awk \ | ||
93 | '(NR==1 && ($2 == "oprofile")) {print "oprofile ", $3}' | ||
94 | |||
90 | expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' | 95 | expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' |
91 | 96 | ||
92 | udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' | 97 | udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' |
93 | 98 | ||
99 | iwconfig --version 2>&1 | awk \ | ||
100 | '(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}' | ||
101 | |||
94 | if [ -e /proc/modules ]; then | 102 | if [ -e /proc/modules ]; then |
95 | X=`cat /proc/modules | sed -e "s/ .*$//"` | 103 | X=`cat /proc/modules | sed -e "s/ .*$//"` |
96 | echo "Modules Loaded "$X | 104 | echo "Modules Loaded "$X |