aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2006-12-08 01:07:56 -0500
committerDmitry Torokhov <dtor@insightbb.com>2006-12-08 01:07:56 -0500
commitbef986502fa398b1785a3979b1aa17cd902d3527 (patch)
treeb59c1afe7b1dfcc001b86e54863f550d7ddc8c34 /scripts
parent4bdbd2807deeccc0793d57fb5120d7a53f2c0b3c (diff)
parentc99767974ebd2a719d849fdeaaa1674456f5283f (diff)
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts: drivers/usb/input/hid.h
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_initramfs_list.sh3
-rw-r--r--scripts/kallsyms.c24
-rw-r--r--scripts/kconfig/.gitignore2
-rw-r--r--scripts/kconfig/lxdialog/util.c16
-rw-r--r--scripts/kconfig/qconf.cc9
-rwxr-xr-xscripts/kernel-doc2
-rw-r--r--scripts/mod/modpost.c2
-rwxr-xr-xscripts/ver_linux8
8 files changed, 48 insertions, 18 deletions
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
160list_header() { 160list_header() {
161 echo "deps_initramfs := \\" 161 :
162} 162}
163 163
164header() { 164header() {
@@ -227,6 +227,7 @@ arg="$1"
227case "$arg" in 227case "$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..f359b730c2c5 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -43,7 +43,7 @@ struct sym_entry {
43 43
44static struct sym_entry *table; 44static struct sym_entry *table;
45static unsigned int table_size, table_cnt; 45static unsigned int table_size, table_cnt;
46static unsigned long long _stext, _etext, _sinittext, _einittext, _sextratext, _eextratext; 46static unsigned long long _text, _stext, _etext, _sinittext, _einittext, _sextratext, _eextratext;
47static int all_symbols = 0; 47static int all_symbols = 0;
48static char symbol_prefix_char = '\0'; 48static 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;
@@ -265,9 +267,25 @@ static void write_src(void)
265 267
266 printf(".data\n"); 268 printf(".data\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
8zconf.hash.c 8zconf.hash.c
9*.moc
10lkc_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 */
222static void color_setup(const char *theme) 222static 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
1161QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) 1161QPopupMenu* 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 */
1261ConfigMainWindow::ConfigMainWindow(void) 1261ConfigMainWindow::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 2e1141623147..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",
@@ -931,6 +932,7 @@ static int init_section_ref_ok(const char *name)
931 ".altinstructions", 932 ".altinstructions",
932 ".eh_frame", 933 ".eh_frame",
933 ".debug", 934 ".debug",
935 ".parainstructions",
934 NULL 936 NULL
935 }; 937 };
936 /* 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 \
48xfs_db -V 2>&1 | grep version | awk \ 48xfs_db -V 2>&1 | grep version | awk \
49'NR==1{print "xfsprogs ", $3}' 49'NR==1{print "xfsprogs ", $3}'
50 50
51pccardctl -V 2>&1| grep pcmciautils | awk '{print "pcmciautils ", $2}'
52
51cardmgr -V 2>&1| grep version | awk \ 53cardmgr -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 \
87loadkeys -V 2>&1 | awk \ 89loadkeys -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
92oprofiled --version 2>&1 | awk \
93'(NR==1 && ($2 == "oprofile")) {print "oprofile ", $3}'
94
90expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' 95expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'
91 96
92udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' 97udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}'
93 98
99iwconfig --version 2>&1 | awk \
100'(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}'
101
94if [ -e /proc/modules ]; then 102if [ -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