aboutsummaryrefslogtreecommitdiffstats
path: root/scripts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2005-03-28[PATCH] checkstack: fix sort misbehavior for long function namesJörn Engel1-2/+2
Fix sort behavior when long names are encountered. The previour regular expression depended on a tab to find the size in a string. For long names, this tab no longer exists, so it is smarter to check for a colon instead. For the kernel, this change shouldn't make a difference. But people started using the same script for c++ code in other projects. Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-28[PATCH] revert recent gconfig changesAndrew Morton2-57/+52
Revert a 2.6.11 patch "make gconfig work with gtk-2.4". It causes the cute little pixmap buttons to not appear any more. Hopefully this will motivate someone to have another attempt at fixing gconf for gtk-2.4. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-17[PATCH] docbook: fix escaping of kernel-docMartin Waitz1-5/+5
This fixes a bug I introduced with the last patches of the DocBook generation. Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-13[PATCH] scripts/mod/sumversion.c: replace strtok() with strsep()Domen Puncer1-1/+3
Replaces strtok() with strsep() Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-12Merge bk://linux-sam.bkbits.net/kconfigLinus Torvalds1-4/+36
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2005-03-13Merge bk://linux-sam.bkbits.net/kconfigSam Ravnborg1-4/+36
into mars.ravnborg.org:/home/sam/bk/kconfig
2005-03-13kconfig: gconfig - fix 2 warningsRomain Liévin1-3/+3
This patch fixes some warnings about GtkToolButton in gconfig Signed-off-by: Romain Liévin <lkml@lievin.net> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-03-12kconfig: gconfig - define local iconsSam Ravnborg1-1/+33
Define own icons for tree structure, allowing icons to match other icons. This also makes gconfig independent on icons defined for xconfig. Teached bk to ignore gconf executable Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-03-11Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds7-23/+48
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2005-03-12Merge mars.ravnborg.org:/home/sam/bk/linux-2.6Sam Ravnborg7-23/+48
into mars.ravnborg.org:/home/sam/bk/kbuild
2005-03-11[PATCH] docbook: escape declaration_purposeMartin Waitz1-1/+1
Escape declaration_purpose Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-11[PATCH] docbook: factor out escaping of XML special charactersMartin Waitz1-12/+12
Factor out escaping of XML special characters Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-11[PATCH] docbook: s/sgml/xml/ in scripts/kernel-docMartin Waitz1-24/+24
s/sgml/xml/ in scripts/kernel-doc Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-11[PATCH] docbook: allow preprocessor directives between kernel-doc and functionMartin Waitz1-2/+2
Allow preprocessor directives between kernel-doc and function Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-11kconfig: Add explicit depedenciesSam Ravnborg1-0/+4
Without these I could not do make menuconfig when using O= This is the shipped rule that plays tricks here. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-03-11kbuild: Install external modules in a path relative to their own pathSam Ravnborg1-2/+3
When an external module is being built in down in a directory structure keep the relative directory when installing the module. Example: fs/ contains a Makefile used to build both modules: obj-y := myfs/ oldfs/ Install directories fs/myfs/myfs.ko => Will be installed in /lib/modules/<version>/extra/fs/myfs/ fs/oldfs/oldfs.o => Will be installed in /lib/modules/<version>/extra/fs/oldfs/ Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-03-09Merge bk://kernel.bkbits.net/vojtech/for-linusLinus Torvalds1-1/+22
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2005-03-10Manual mergeVojtech Pavlik1-1/+22
2005-03-09[PATCH] checkstack false positive fixJörn Engel1-1/+2
Randy Dunlap found one case where checkstack reported a false positive. From objdump of efi_stub.o: 5: 81 ea 00 00 00 c0 sub $0xc0000000,%edx With the old code, this was interpreted as a negative number. The output line was: 0xc0116f5d efi_call_phys: 1073741824 Randy wanted a change to return the correct number, like this: 0xc0116f5d efi_call_phys: 3221225472 adding "or I can just ignore it, like I've been doing for awhile..." Let's help him with the most sophisticated electronic tools and have the script actively ignore this case for him. Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-07[PATCH] cross-compile scripts/lxdialog/ on AIXPeter Samuelson4-13/+7
AIX curses.h defines macros 'clear_screen' and 'color_names' but does not define 'scroll()'. Signed-Off-By: Peter Samuelson <peter@p12n.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-07[PATCH] add timing information to printk messagesTim Bird1-0/+129
Here's a little patch which is useful for showing timing information for kernel bootup activities. This patch adds a new Kconfig option under "Kernel Hacking" and a new option for the kernel command line. It also provides a script for showing delta information. Note that the timing data may not be correct on some platforms until after time_init() is called. Recently (as of about 2.6.10) I found that the message log produced by dmesg is truncated when I use this feature. That is, the first few printk messages of the boot sequence are not in the dmesg output, although they are printed to console during startup. This is a new behavior - dmesg output was fine as of 2.6.9. Increasing CONFIG_LOG_BUF_SHIFT had no effect on the truncation. Has something changed with printk recently? For more information on this patch, see: http://tree.celinuxforum.org/CelfPubWiki/InstrumentedPrintk Here's some sample output: ... [4294667.296000] Kernel command line: ro root=/dev/nfs ip=dhcp hdc=ide-scsi console=vga console=ttyS0,115200 [4294667.296000] ide_setup: hdc=ide-scsi [4294667.296000] Initializing CPU#0 [4294667.296000] PID hash table entries: 512 (order: 9, 8192 bytes) [ 0.000000] Detected 1995.620 MHz processor. [ 21.397369] Using tsc for high-res timesource [ 21.399820] Console: colour VGA+ 80x25 [ 21.537244] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 21.544547] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 21.555066] Memory: 125076k/130240k available (2002k kernel code, 4556k reserved, 1006k data, 140k init, 0k highmem) [ 21.565775] Checking if this processor honours the WP bit even in supervisor mode... Ok. [ 21.574089] Calibrating delay loop... 3940.35 BogoMIPS (lpj=1970176) [ 21.596511] Mount-cache hash table entries: 512 (order: 0, 4096 bytes) [ 21.603263] CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000 [ 21.603276] CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000 [ 21.603287] CPU: Trace cache: 12K uops, L1 D cache: 8K [ 21.608884] CPU: L2 cache: 128K ... And now the patch... Signed-off-by: Tim Bird <tim.bird@am.sony.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-07[PATCH] sh64: Initial checkstack portPaul Mundt1-0/+7
This provides a port of checkstack for sh64 for the simple frames allocated as an immediate with a single instruction. Stack frame creation on sh64 happens in a couple of different ways, when the frame size is less than 511 bytes an addi or addi.l is typically used, generally along the lines of something like: addi{,.l} r15, -IMM_FRAME_SIZE, r15 For larger frames, this ends up getting split up into a movi/sub pair: movi IMM_FRAME_SIZE, rX sub r15, rX, r15 We currently don't handle the split pair case, as basically any register can be used, and there is no easy way to determine what happens without scanning the prologue multiple times and using some sort of register cache (we already do something similar for the sh64 stack unwinder, but it would be preferable not to do this in perl..). This does have limited usefulness in that we are not easily able to check for huge frames without manual inspection, but this is still useful enough in the general case to be worth doing for the addi/addi.l case as long as people are aware of this caveat. It may be worth revisiting at a later point to try and catch the larger users though. Signed-off-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-02-24input: adjust file2alias utility to export aliases forDmitry Torokhov1-1/+22
serio drivers (serio:tyNprNidNexN). Move serio_device_id from serio.h to mod_devicetable.h Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2005-02-02kbuild: Fix debugging leftoverSam Ravnborg1-1/+1
So now check for commandline options actually works again. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-02-01[PATCH] mips: build script fixesRalf Bächle2-0/+2
Ignore a few MIPS specific sections that otherwise would cause a large number of false warnings in the kernel's scripts. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-31kbuild: make 'make help' show all *config targets and update descriptions ↵Jesper Juhl1-1/+3
slightly. "make help" doesn't show "make randconfig" nor "make config" as options and the description of oldconfig could be better (IMHO). Patch below adds the missing targets to the help and updates the description of oldconfig. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-31kbuild: update scripts/namespace.plAdrian Bunk1-0/+5
The patch below removes some false positives I've observed. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-30kbuild: Dont include absolute filenames in binariesAndreas Gruenbacher3-9/+16
The kbuild utilities are compiled with absolute patch names, so paths starting with $RPM_BUILD_ROOT would end up in the binaries. To avoid this, remove all references to __FILE__ (directly and indirectly via assert()). Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-30kbuild: Introdude KBUILD_NOCMDDEPSam Ravnborg1-1/+5
When tossing around with different gcc compilers there is no way to tell kbuild to ignore the new name of the compiler. The new option KBUILD_NOCMDDEP tell kbuild not to check the commandline for changes. This should be used with care because the resulting kernel may become inconsistent if one part is build with 2.96, and another part build with 3.3.4. So use only when you know what you are doing. Syntax: make KBUILD_NOCMDDEP=1 Original request for this feature came from hpa. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-29kbuild: Makefile.lib - small cleanupSam Ravnborg1-11/+13
Combine duplicate code in two smaller 'functions' Signed-off-by: Sam Ravnborg
2005-01-20[PATCH] scripts/reference*.pl - treat built-in.o as conglomerateKeith Owens2-2/+3
scripts/reference*.pl - treat built-in.o as conglomerate. Ignore references from altinstructions to init text/data. Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-14Merge bk://linux-sam.bkbits.net/kconfigLinus Torvalds12-399/+474
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2005-01-09Merge kroah.com:/home/greg/linux/BK/bleed-2.6Greg Kroah-Hartman1-0/+2
into kroah.com:/home/greg/linux/BK/usb-2.6
2005-01-07[PATCH] initramfs: unprivileged image creationThayne Harbaugh1-28/+101
This patch makes several tweaks so that an initramfs image can be completely created by an unprivileged user. It should maintain compatibility with previous initramfs early userspace cpio/image creation and it updates documentation. There are a few very important tweaks: CONFIG_INITRAMFS_SOURCE is now either a single cpio archive that is directly used or a list of directories and files for building a cpio archive for the initramfs image. Making the cpio archive listable in CONFIG_INITRAMFS_SOURCE makes the cpio step more official and automated so that it doesn't have to be copied by hand to usr/initramfs_data.cpio (I think this was broken anyway and would be overwritten). The alternative list of directories *and* files means that files can be install in a "root" directory and device-special files can be listed in a file list. CONFIG_ROOT_UID and CONFIG_ROOT_GID are now available for doing simple user/group ID translation. That means that user ID 500, group ID 500 can create all the files in the "root" directory, but that they can all be owned by user ID 0, group ID 0 in the cpio image. Various documentation updates to pull it all together. Removal of old cruft that was unused/misleading. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-07[PATCH] gen_init_cpio symlink, pipe and socket supportThayne Harbaugh1-3/+15
This patch makes gen_init_cpio more complete by adding symlink, pipe and socket support. It updates scripts/gen_initramfs_list.sh to support the new types. The patch applies to the recent mm series that already have the updated gen_init_cpio and gen_initramfs_list.sh. From: William Lee Irwin III <wli@holomorphy.com> The rest of gen_init_cpio.c seems to cast the result of strlen() to handle this situation, so this patch follows suit while killing off size_t -related printk() warnings. Signed-off-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-06mergeGreg Kroah-Hartman1-0/+2
2005-01-06[PATCH] add printing of udev version to scripts/ver_linuxJesper Juhl1-0/+2
Since udev is starting to be used a lot of places and I've seen people get asked about their udev version a few times on lkml I figured it was perhaps time that scripts/ver_linux reported this info so it would get into more bugreports by default. This patch adds printing of udev version to scripts/ver_linux Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2005-01-05Merge bk://linux-sam.bkbits.net/kconfigSam Ravnborg2-1/+9
into mars.ravnborg.org:/home/sam/bk/kconfig
2005-01-05kconfig: Fold README.Menuconfig into mconf.cSam Ravnborg2-209/+136
Content of README.Menuconfig folded into mconf.c and README.Menuconfig deleted. Text was slightly updated - mainly by deleting obsolete information. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-05kconfig: Include more info when selecting help for a symbol in menuconfigSam Ravnborg1-39/+45
When selecting help on a symbol include information below help text displaying relevant info that kconf has stored. The info printed is the same info obtained when searching for a symbol and the same methods are resued. Sample (help for "System V IPC"): ----------------------------------------------------------------------- CONFIG_SYSIPC: Inter Process Communcation ... Symbol: SYSVIPC [=y] Prompt: System V IPC Defined at init/Kconfig:82 Depends on: MMU Location: -> General setup ----------------------------------------------------------------------- Idea-from: Cal Peake <cp@absolutedigital.net> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-05kconfig: Redo and improve search supportSam Ravnborg6-135/+193
Based on patch from: Roman Zippel <zippel@linux-m68k.org> The search functionality has been improved: - Restructured printout with more info - Include value of relevant symbols - Improved handling of corner cases - Generic search support moved to backend - ready to be utilised by xconfig and gconfig - Search functionality moved to fronend - not hardcoded in menubox.c Sample search (^$ used to limit search): Search for "^USB_STORAGE$": Symbol: USB_STORAGE [=y] Prompt: USB Mass Storage support Defined at drivers/usb/storage/Kconfig:7 Depends on: USB Location: -> Device Drivers -> USB Support Selects: SCSI Some symbols has loong "Depends on:" lines - for example FW_LOADER. Use arrows to scroll horisontally to see full value. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-04[PATCH] make gconfig work with gtk-2.4J. A. Magallon2-51/+21
I need this to make gconfig work under gtk-2.4. Without this, it just coredumps. There is some problem with pixmap creation/usage from XPM in the way it is done in gconf, so I just added some stock icons. It is even prettier..;) Could someone test this still works on gtk-2.0 or 2.2 ? Changes: - change the wiget class 'button' in glade files to something known to glade (GtkToolButton) - use 'stock-id' property for toolbar buttons instead of "stock_pixmap" - change unknown signal "pressed" to "clicked" - remove manual setting of icons in gconf.c Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-03kconfig: introduce util.cSam Ravnborg5-40/+124
Moved two functions from menu.c to new file util.c. Introduced functions to handle growable strings - no user yet. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-01-03kconfig: pass 0, 0 to show_file() to select max size windowSam Ravnborg1-5/+5
From: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravbnorg <sam@ravnborg.org>
2005-01-02kallsyms: Avoid kallsyms corner case on _etext and _einittextKeith Owens1-0/+9
Avoid kallsyms corner case on _etext and _einittext with CONFIG_KALLSYMS_ALL=n. Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-12-29kbuild: Use -isystem `gcc --print-file-name=include`Sam Ravnborg1-1/+0
Using "-nostdinc -isystem `gcc --print-file-name=include" let us see full path to compiler specific files when compiling with make V=1 Furthermore it lets us use same definition for sparse (CHECKFLAGS) and the kernel. Tested with gcc 3.3.4 only. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-11-06kconfig: fix xconfig and gconfigSam Ravnborg1-4/+5
Patch that disabled use of loadable modules broke qconf and gconf. Fixed by disabling this also for these targets. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-11-06kernel-doc: Print preprocessor directives correctly.Alexey Dobriyan1-3/+37
Print preprocessor directives (usually "#ifdef CONFIG_SOMETHING" and "#endif") in structs definitions correctly (-text, -html, sgmldocs, htmldocs, pdfdocs, mandocs). Correctly means: - on the separate line - starting from column 0 - not glued to the type of the next member - not breeding if members are separated by comma - not imitating pointers to functions ("#if defined(CONFIG_X)...") - not giving bogus warnings because of this imitation Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-11-04Merge mars.ravnborg.org:/home/sam/bk/linux-2.6Sam Ravnborg10-60/+155
into mars.ravnborg.org:/home/sam/bk/to-akpm
2004-11-03kbuild: check timestamps on files for initramfsMartin Schlemmer1-4/+19
Add a comment to gen_initramfs_list.sh output that contains the numeric mtime of the last modified file in the source directory, or the mtime of the source list. This should cause the initramfs image to be rebuild if a file in the source directory changed, or the source list (if that was used rather than a directory as source). Signed-off-by: Martin Schlemmer <azarah@nosferatu.za.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>