aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2004-08-22[PATCH] fix compiling oldconfig with gcc-3.5Thierry Vignaud1-1/+1
fix compiling oldconfig with gcc-3.5: Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] Fix menuconfig partial inability to show help texts.Alexey Dobriyan1-4/+4
Fix menuconfig inability to show help texts when there is menu item with letter "H" highlighted on the screen. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-30Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds13-144/+223
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-07-28[PATCH] remove scripts/mkconfigsBrian Gerst1-67/+0
This script is no longer used after the patch to consolidate the stored configs. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-28kbuild: Create Makefile in output directory if != kernel treeSam Ravnborg1-0/+31
When building a kernel using the O= syntax to save output files in a separate output directory now create a small Makefile in that same dir. This Makefile allow one to use make in the output directory without the hassle of going back to the kernel source tree. The O= option is added by this Makefile stub. Please note that the Makefile silently overwrite an old one, so changes will be lost if modified. If there is a need to tweak a Makefile in the output directory it is recommended to use the filename 'makefile', which GNU Make will try first. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-23kbuild: Fix up moving of modpostSam Ravnborg3-2/+18
A few small issues to fix the moving of modpost. A few files was missing in the commit and one change needed. Also bk ignored the files in their new location. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-23kbuild: Move modpost files to a new subdir scripts/modBrian Gerst8-17/+4
Move modpost and support files to scripts/mod. Directory named mod by Sam. From: Brian Gerst <bgerst@didntduck.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-23kbuild: scripts/genksyms/parse.c_shipped needs to be rebuiltAndreas Schwab1-125/+133
parse.c_shipped has never been regenerated after parse.y has been modified 4 months ago. Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-21kbuild: Rebuild .spec file when kernel version changesSam Ravnborg1-2/+2
Make a dependency in scripts/package/Makefile to top-level Makefile forcing .spec file to be generated when kernel version changes. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-21kbuild: build binary rpm from pre-built treeGreg Edwards2-0/+37
Many times it would be nice to quickly package up a kernel tree you're working on, without having to rebuild the whole thing again from a clean source tree (like the current rpm-pkg target does). The patch below adds an "binrpm-pkg" target which uses your existing (already built) tree. Modified by me to always do a make and use binrpm-pkg. Signed-off-by: Greg Edwards <edwardsg@sgi.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-07-13[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failedJan-Benedict Glaw1-19/+17
While reading code, I found this buglet. If the TIOCGWINSZ fails, mconf.c assumes 24/80 as screen size, without honoring the LINES and COLUMNS environment variables. This is the shorter and IMHO more correct version. Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-10[PATCH] trivial: scripts_kernel-doc: missing bracket.Rusty Russell1-1/+1
From: <adobriyan@mail.ru> Fix missing bracket when parameter to be documented is a pointer to function. int (* resume (struct usb_interface *intf); Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-10[PATCH] trivial: scripts_kernel-doc: ignoring embedded structs shouldn't beRusty Russell1-1/+1
From: <adobriyan@mail.ru> Imagine you have a code similar to struct foo { union { struct tcphdr *th; } h; union { struct iphdr *iph; } nh; }; kernel-doc in it's current state will happily eat everything from first '{' to last '}' and nobody will see parameter 'h' in documentation (look at include/linux/skbuff.h:struct sk_buff for real world example). So, fix the greedy regexp. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-10[PATCH] kallsyms ppc32 fixKeith Owens1-0/+5
PPC small data area base symbols shift between kallsyms phases 1 and 2, which makes the kallsyms data unstable. Exclude them from the kallsyms list. Signed-off-by: Keith Owens <kaos@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-10[PATCH] kbuild: sort modules for modpost and modinstBrian Gerst2-2/+2
Process modules in sorted order during modpost and modules install. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-10[PATCH] kbuild: clean up module install rulesBrian Gerst1-14/+4
Consolidate rules for installing internal and external modules. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-29[PATCH] small fixes to checkstackJörn Engel1-1/+1
- fix documentation - use $(src) in Makefile (fixes cross-compilation) Both spottet by Geert Uytterhoeven 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>
2004-06-29[PATCH] Add m68k support to checkstackJörn Engel1-0/+5
Add m68k support to checkstack.pl Regular expression combination by Andres Schwab Signed-off-by: <geert@linux-m68k.org> 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>
2004-06-26[PATCH] kallsyms: exclude kallsyms-generated symbolsKeith Owens1-1/+9
Exclude symbols added by kallsyms itself, so .tmp_kallsyms[12].S have the same list of symbols. Signed-off-by: Keith Owens <kaos@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-23[PATCH] consolidate in-kernel configurationAndrew Morton1-38/+49
From: Andy Whitcroft <apw@shadowen.org> Being able to recover the configuration from a kernel is very useful and it would be nice to default this option to Yes. Currently, to have the config available both from the image (using extract-ikconfig) and via /proc we keep two copies of the original .config in the kernel. One in plain text and one gzip compressed. This is not optimal. This patch removes the plain text version of the configuration and updates the extraction tools to locate and use the gzip'd version of the file. This has the added bonus of providing us with the exact same results in both cases, the original .config; including the comments. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-23[PATCH] update ikconfig generator scriptAndrew Morton1-11/+11
From: "Randy.Dunlap" <rddunlap@osdl.org> http://bugme.osdl.org/show_bug.cgi?id=2701 Current script has problems with some shells and utilities. Remove use of 'echo' in the script. From: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-20[PATCH] kbuild: add deb-pkg targetSam Ravnborg4-17/+158
To prepare kbuild for more kernel packaging formats move all packaging support to scripts/package. In top-level Makefile introduce generic support for all package formats using target names *-pkg. Included the old rpm target for backward compatibility. A new variable KBUILD_IMAGE is used to specify what kernel image will be part of the final package, and is to be set by the arch specific makefile. KBUILD_IMAGE may be overridden from command line or environment. KBUILD_IMAGE will see wider usage later, mainly when installing kernel images. Introducing KBUILD_IMAGE allowed arch specific details to be deleted from the mkspec and builddeb scripts. While in the process added the deb packet format. Script is From: Wichert Akkerman <wichert@wiggy.net> To create a RPM packet use 'make rpm-pkg'. To create a deb packet use 'make deb-pkg'. Both targets are included in 'make help' Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-17[PATCH] checksatck.pl fixesThierry Vignaud1-15/+14
- "\<" and "\>" can be safely replaced with "<" and ">" - "$var =~ /^string$/" is better written "$var eq 'string'" - $i is better written without the double quotes - it's not safe to use for without "my"ing the iteration variable - "print foreach @array" is better written "print @array" - declare variables - ".*" is useless at the end of a regexp - "$a[@a] = $foo" is a rather obfuscated syntax for "push @a, $foo"... let's not opencoding language basic operators... - ignoring return value from a regexp is very bad: this can results in working on previous value of $1, $2, ... Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-02[PATCH] Add reference_init.pl to `make buildcheck' targetAndrew Morton2-1/+103
`make buildcheck' only checks for calls to linker discarded sections, reference_init checks for calls to sections discarded at run time, init was cloned from discarded. They are separate because the linker detects the discarded case and I did not want to confuse users with messages about init text/data while they were fixing the linker errors. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-05-31[PATCH] Improve `make checkstack'Jörn Engel1-3/+10
On i386, stack usually grows with "sub $0x8,%esp" and shrinks with "add $0x8,%esp" respectively. In some cases, though, stack grows with "add $0xffffff80,%esp" and shrinks with "sub $0xffffff80,%esp". Obviously, we don't want to miss those cases. Since in either case add and sub seem to be balanced and contain the same parameter, we don't need a second regex. We simply accept hex numbers of up to 8 digits and treat them as negative numbers when the sub appears to be a little too high. ...or so I thought. But another day of testing proved me wrong again. Some functions do stuff like "sub $0x10,%esp", ..., "add $0x20,%esp". In other words, add and sub are *NOT* balanced. Manual inspection showed that 0x20 is a more realistic number, so I accept either variant, just in case. We pay for this with a bunch of duplicates in our output, but that beats missing some stack hogs. In the long run, this script has to be replaced by gcc options, really. Looking at the result and guessing back is such a stupid idea. Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
2004-05-28[PATCH] Add `make checkstack' targetAndrew Morton1-0/+101
Jorn Engel <joern@wohnheim.fh-wedel.de> Adds a `make checkstack' target. This disassembles and parses vmlinux and *.ko, generating a sorted list of stack hogs, eg: 0xc0100663 huft_build: 1456 0xc01022d3 huft_build: 1456 0xc0103127 inflate_dynamic: 1328 0xc0101487 inflate_dynamic: 1324 0xc010131f inflate_fixed: 1168 0xc0102fb7 inflate_fixed: 1168 0x00000003 sha512_transform: 984 0xc024aee3 Vpd: 952 0x00000003 twofish_setkey: 804 0x000060c3 isd200_action: 792 0x0000e6cb nfsd4_proc_compound: 760 0xc0249087 SkPnmiGetStruct: 712 .... Supported architectures are alleged to be arm, x86, ia64, mips, mips64, ppc, ppc64 and s390x. 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>
2004-05-24[PATCH] H8/300 module fixAndrew Morton1-1/+1
From: Yoshinori Sato <ysato@users.sourceforge.jp> - fix relocation - define SYMBOL_PREFIX
2004-05-20[PATCH] trivial: add parantheses for if (necessary for cross-compilation)Andrew Morton1-1/+1
From: Rusty Russell <rusty@rustcorp.com.au> From: Martin Schaffner <schaffner@gmx.li>
2004-05-20[PATCH] trivial: scripts_kernel-doc should strip comments inside structs'Andrew Morton1-0/+2
From: Rusty Russell <rusty@rustcorp.com.au> From: <adobriyan@mail.ru> Long block comment before declaration moves it out of page in pdfs. Alexey $ ./linux-2.6.6-rc2/scripts/kernel-doc.orig -text test.c struct stuff: struct stuff { int a; /** comment here*/char b; }; Members: a aaaa b bbbbb Description: stuff $ ./linux-2.6.6-rc2/scripts/kernel-doc -text test.c struct stuff: struct stuff { int a; char b; }; Members: a aaaa b bbbbb Description: stuff
2004-05-20[PATCH] Debugging option to put data symbols in kallsymsAndrew Morton1-18/+25
From: Rusty Russell <rusty@rustcorp.com.au> kallsyms contains only function names, but some debuggers (eg. xmon on PPC/PPC64) use it to lookup symbols: it'd be much nicer if it included data symbols too.
2004-05-14[PATCH] Fix endianess in modpost when cross-compiling for sparc on i386Andrew Morton1-0/+1
From: Mathieu Chouquet-Stringer <mchouque@online.fr> This patch makes the following code work again: #ifdef STT_REGISTER if (info->hdr->e_machine == EM_SPARC || info->hdr->e_machine == EM_SPARCV9) { /* Ignore register directives. */ if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER) break; } #endif This portion of code is sparc specific and nothing else in modpost.c uses e_machine meaning cross-compiling for sparc on i386 (or any little endian machine) is the only way to experience the bug. Without it, e_machine has the wrong value and modpost then generates a lot of "*** Warning: \"symbol\" [filename.ko] undefined" messages.
2004-05-14[PATCH] make buildcheckAndrew Morton1-0/+109
From: Arjan van de Ven <arjanv@redhat.com> the patch below adds a "make buildcheck" target which checks for the "uses exit in init" bug using Keith Owen's script. In the future other similar sanity checks can be added to this target, but even just this one has been quite useful already. I use it in the kernel rpm build process for example, and I'm sure the OSDL build testers can/want to use it too. From: Keith Owens <kaos@ocs.com.au> They commented out the progress print statements, I prefer to have them present but no big deal. The licence is missing.
2004-05-14[PATCH] Include Aliases in kallsymsAndrew Morton1-11/+2
From: Rusty Russell <rusty@rustcorp.com.au> Kallsyms discards symbols with the same address, but these are sometimes useful. Skip this minor optimization and make kallsyms_lookup deal with aliases
2004-05-06[PATCH] fix value toggle in gconfRoman Zippel1-7/+1
gconf doesn't correctly toggle through the values of a symbol, so use sym_toggle_tristate_value() instead. Problem reported by Martin Persenius <martin@persenius.net>
2004-04-26[PATCH] kbuild: Improved external module supportAndrew Morton2-33/+62
From: Sam Ravnborg <sam@ravnborg.org> The external module support recently introduced caused a number of problems: - To build an external module the Module.symvers file was needed - To create the Module.symvers file a module was required - If Module.symvers was missing kbuild boiled out with an error - If vmlinux was missing also the stage 2 of module build failed (make -k) - It was not documented what was needed to actually bauild a module The following patch addresses this by adding the following functionality: - Always generate the Module.symvers file - Ignore a missing Module.symvers file - Add a new target modules_prepare, it prepares the kernel for building external modules, and is also usefull with O= - And it adds some more comments to Makefile.modpost, so others may follow it with some luck - .modpost.cmd is no longer generated This should close all reports on issues with respect to building external modules with current kernel - which has been identified as kernel problems.
2004-04-17[PATCH] Fix unix moduleAndrew Morton1-0/+1
From: Rusty Russell <rusty@rustcorp.com.au> # lsmod Module Size Used by 1 26060 6 # The compiler #define's unix to 1: we use -DKBUILD_MODNAME=unix. We used to #undef unix at the top of af_unix.c, but now the name is inserted by modpost, that doesn't help. #undef unix in modpost.c's generated C file.
2004-04-12[PATCH] kbuild: Create .tmp_versions when building external modulesAndrew Morton1-4/+0
From: Sam Ravnborg <sam@ravnborg.org> When building external modules the $PWD/.tmp_versions directory is used. The .tmp_versions directory in the kernel tree cannot be used because this would clutter up the kernel tree especially when more than one external module is being build for the same kernel tree. This patch make sure to create $PWD/.tmp_versions, and to delete it during make clean. It also removes warning about 'messed with SUBDIRS', this is no longer relevant when .tmp_versions is made outside the kernel tree.
2004-04-12[PATCH] kbuild: external module supportAndrew Morton3-13/+114
From: Sam Ravnborg <sam@ravnborg.org> Based on initial patch from Andreas Gruenbacher there is now better support for building external modules with kbuild. The preferred syntax is now: make -C $KERNELSRC M=$PWD but the old syntax: make -C $KERNELSRC SUBDIRS=$PWD modules will remain supported. The major differences compared to before are that: 1) No attempt is made to neither check nor update any files in $KERNELSRC 2) Module versions are now supported During stage 2 of kernel compilation where the modules are built, a new file Module.symvers is created. This file contains the version for all symbols exported by the kernel and any module compiled within the kernel tree. When the external module is build the Module.symvers file is being read and symbol versions are used from that file. The purpose of avoiding any updates in the kernel src is that usually in a distribution the kernel src will be read-only, and there is no need to try to update it. And when building an external module the focus is on the module, not the kernel. I expect the distributions will start using something like this: kernel src - with no generated files. Not even .config: /usr/src/linux-<version> Output from build: /lib/modules/linux-<version>/build where build is a real directory with relevant output files and the appropriate .config. I have some Documentation in the pipe-line, but wants to see how this approach is received before completing it. This patch is made on top of the previously posted patch to divide make clean in three steps. And you may need to edit the following line in the patch to make it apply: %docs: scripts_basic FORCE to %docs: scripts FORCE
2004-04-12[PATCH] Fix More Problems Introduced By Module Structure Added in modpost.cAndrew Morton1-4/+10
From: Rusty Russell <rusty@rustcorp.com.au> Sam Ravnborg found these. 1) have_vmlinux is a global, and should not be reset every time. 2) We pretend every module needs cleanup_module so it gets versioned, but that isn't defined for CONFIG_MODULE_UNLOAD=n. 3) The visible effect of this is that modpost will start complaning about undefined symbols - previously this happened only when the module was isntalled.
2004-04-11[PATCH] kill spurious MAKDEV scriptsAndrew Morton2-210/+0
From: Christoph Hellwig <hch@lst.de> Kill magic ide/sound makedev scripts in scripts/. The userland MAKEDEV is the proper place and already has support for them.
2004-04-11[PATCH] fix modversions now __this_module is created only in .koAndrew Morton1-20/+16
From: Rusty Russell <rusty@rustcorp.com.au> Brian Gerst's patch which moved __this_module out from module.h into the module post-processing had a side effect. genksyms didn't see the undefined symbols for modules without a module_init (or module_exit), and hence didn't generate a version for them, causing the kernel to be tainted. The simple solution is to always include the versions for these functions. Also includes two cleanups: 1) alloc_symbol is easier to use if it populates ->next for us. 2) add_exported_symbol should set owner to module, not head of module list (we don't use this field in entries in that list, fortunately).
2004-04-11[PATCH] Move __this_module to modpostAndrew Morton2-0/+14
From: Brian Gerst <bgerst@didntduck.org> Move the __this_module structure to the modpost code where it really belongs.
2004-04-11[PATCH] Fix genksyms parsingAndrew Morton1-1/+1
From: Rusty Russell <rusty@rustcorp.com.au> From: Andreas Schwab <schwab@suse.de> I'm getting a warning when building for ia64 with MODVERSIONS enabled. This is a bug in genksyms, it can't cope with some arguments of __typeof__. The following patch will fix that. Actually the argument of __typeof__ is an abstract declarator, but the genksyms parser has no production for that; decl_specifier_seq also matches some invalid constructs, but I don't think this is a problem in practice, since the compiler will reject them.
2004-04-11[PATCH] ver_linux fixAndrew Morton1-1/+2
From: Rusty Russell <rusty@rustcorp.com.au> From: Adrian Bunk <bunk@fs.tum.de> Some versions of ps print non-version lines when ps --version is invoked. grep them out.
2004-04-11[PATCH] Fix scripts/kernel-doc to handle __attribute__Andrew Morton1-0/+1
From: Tom Rini <trini@kernel.crashing.org> The following patch is needed so that kernel-doc can handle functions which have __attribute__'s on them (such as __attribute__ ((weak))).
2004-03-30Merge bk://kernel.bkbits.net/davem/sparc-2.6Linus Torvalds1-14/+2
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-03-29[SPARC32]: Update module linking for symbols starting with "."Keith M. Wesolowski1-14/+2
Rusty did not like the __dot_sym approach and suggested instead: 1) make rem, urem, mul, umul, div and udiv aliases to .rem, .urem etc: extern int rem(int, int) __attribute__((weak,alias(".rem"))); 2) EXPORT_SYMBOL(rem) etc. 3) Check genksyms recognises that prototype (it should). 4) Copy "dedotify" from ppc64 to handle them on load. The only real downside is the risk that someone else will export those names, but I think that's pretty unlikely.
2004-03-23kbuild: Trivial spelling / rephrasingSam Ravnborg1-1/+1
From: Ingo Molnar <mingo@elte.hu>
2004-03-23kbuild: Less modules printed when warned about SUBDIRS usageSam Ravnborg1-1/+1
From: Rusty Russell <rusty@rustcorp.com.au> Now kbuild prints out a line telling only what modules there are added, not all modules.
2004-03-18[PATCH] config: choice fixAndrew Morton2-13/+15
From: Roman Zippel <zippel@linux-m68k.org> When a boolean choice value has a dependency of 'm' it can be shortly treated as a tristate symbol. This fixes this and also add a small optimization to precompute the value of the module symbol instead of checking it all the time.
2004-03-18[PATCH] config: persistent qconf configurationAndrew Morton2-25/+150
From: Roman Zippel <zippel@linux-m68k.org> This patch is by Andreas Fester <Andreas.Fester@gmx.de> and saves and restores various runtime options of qconf.
2004-03-18[PATCH] config: disable debug printsAndrew Morton2-23/+28
From: Roman Zippel <zippel@linux-m68k.org> This disables some debug prints, which are more confusing than helpful for normal users.
2004-03-18[PATCH] kconfig: don't rename target dir when saving configAndrew Morton1-2/+8
From: Roman Zippel <zippel@linux-m68k.org> conf_write() now checks the target path whether it's a directory, so it saves the config in the directory instead of renaming it.
2004-03-18[PATCH] kconfig: fix xconfig on /lib64 properlyAndrew Morton1-5/+9
From: Roman Zippel <zippel@linux-m68k.org> The correct link path is needed at config time to find the correct library, so let's ask gcc for the real path.
2004-03-15[PATCH] kbuild: fix modpost when used with O=Andrew Morton3-48/+79
From: Sam Ravnborg <sam@ravnborg.org> modpost or to be more specific sumversion.c was not behaving correct when used with O= and MODULE_VERSION was used. Previously it failed to use local .h when calculation the md-sum in case of a O= build. The following patch introduces the following: - A generic get_next_line() - Check that the topmost part of the directory matches - Using strrch when checking for file with suffix .o - Use NOFAIL for allocations in sumversion - Avoid memory leak in new_module The generic get_next_line will pay off when Andreas implmentation of storing symbol addresses in a seperate file is introduced.
2004-03-15[PATCH] Fix scripts/ver_linuxAndrew Morton1-2/+3
From: Trivial Patch Monkey <trivial@rustcorp.com.au> From: Thomas Molina <tmolina@cablespeed.com> ver_linux hasn't displayed binutils version right for some time. This patch corrects that and preserves the old behaviour as well, as suggested by Rusty.
2004-03-15[PATCH] Fix early parallel make failuresAndrew Morton7-33/+44
From: Sam Ravnborg <sam@ravnborg.org> Ingo said: Starting at around 2.6.4-rc2-mm1, I keep seeing 'scripts/fixdep: Text file busy' messages when doing a -j10 bzImage build - which seems to suggest that by the time fixdep is used by the build system it's not built yet. Sam said: I was pretty sure it was something I had caused, so I gave it a spin. What actually happened was that we tried to build the target 'silentoldconfig' in parrallel with 'scripts'. Since 'silentoldconfig' started a new make and then the config target needed 'scripts' we saw two parallel runs. The way I decided to fix it was to split scripts/ in two parts. The first part is now the very basic stuff - moved to scripts/basic/. The second part is dependent on kernel config etc. and kept in scripts/ In the 2.7 timeframe i will redo this initial stuff - it's becoming too messy for anyone to understand today. Description: Fix dependencies in early phases of kernel build. This solves a few problems nively: modpost is no longer rebuild twicewhen reaching the 'target' state 'make -j10' now works nicely again The patch is rather large due to the following file moves: mkdir scripts/basic mv scripts/fixdep.c scripts/basic mv scripts/split-include.c scripts/basic mv scripts/docproc.c scripts/basic
2004-03-11[PATCH] kbuild: fix usage with directories containing '.o'Andrew Morton1-4/+7
From: Sam Ravnborg <sam@ravnborg.org> From: Daniel Mack <daniel@zonque.org>, me modpost unconditionally searched for ".o" assuming this is always the suffix of the module. This fails in two cases: a) when building external modules where any directory include ".o" in the name. One example is a directory named: .../cvs.alsa.org/... b) when someone names a kernel directory so it contains ".o". One example is drivers/scsi/aic.ok/... case b) was triggered by renaming the directory for aic7xxx, and modifying Makefile and Kconfig. This caused make modules to fail.
2004-03-01[PATCH] scripts/modpost warningAndrew Morton1-1/+1
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> I need the following patch to kill a warning (__endian() may be unused) when cross-compiling m68k kernels on an ia32 box.
2004-02-26[PATCH] Add a MODULE_VERSION macroAndrew Morton7-26/+598
From: Rusty Russell <rusty@au1.ibm.com> The way it works is that the .mod file contains the name of the module (as before), but succeeding lines are the constituent parts (assumed to be .c files, which usually works: if they use MODULE_VERSION in a file for which this isn't true we'll get a warning). As we postprocess modules, we look in the .modinfo section for a "version=", which is placed by the MODULE_VERSION() macro. This will be of form "version=<macroarg>" "\0" [24 chars] "\0". The 24 chars are replaced by the md4 sum of the .c files and any files they #include using '#include "file"' which are found in the current directory. Whitespace is collapsed outside strings, and comments are ignored for purposes of the sum. The result is a .modinfo entry such as version=1.16ac-rustytest B13E9451C4CA3B89577DEFF At the kernel summit, various people asked for a MODULE_VERSION macro to store module strings (for later access through sysfs). A simple md4 is needed to identify changes in modules which, inevitably, do not update the version. It skips whitespace and comments, and includes #includes which are in the same dir. The module versions should be set according to this definition, based on the RPM one, or CVS Revision tags. Violators will be shot. [<epoch>`:']<version>[`-'<extraversion>] <epoch>: A (small) unsigned integer which allows you to start versions anew. If not mentioned, it's zero. eg. "2:1.0" is after "1:2.0". <version>: The <version> may contain only alphanumerics. <extraversion>: Like <version>, but inserted for local customizations, eg "rh3" or "rusty1". Comparison of two versions (assuming same epoch): Split each into all-digit and all-alphabetical parts. Compare each one one at a time: digit parts numerically, alphabetical in ASCII order. So 0.10 comes after 0.9.
2004-02-24[PATCH] Fix make xconfig on /lib64 systemsAndrew Morton1-1/+1
From: Andi Kleen <ak@suse.de>, R. J. Wysocki Without this make xconfig doesn't find the Qt library on systems using /lib64 (like x86-64)
2004-02-18[PATCH] Add CONFIG for -mregparm=3Andrew Morton1-0/+14
From: Andi Kleen <ak@muc.de>, me. Using -mregparm=3 shrinks the kernel further: (compiled with gcc 3.4, without -funit-at-a-time, using the later and together with -Os shrinks .text even more, making over 700KB difference) 4129346 708629 207240 5045215 4cfbdf vmlinux 3892905 708629 207240 4808774 496046 vmlinux-regparm This one helps even more, >236KB .text difference. Clearly worth the effort. This patch adds an option to use -mregparm=3 while compiling the kernel. I did an LTP run and it showed no additional failures over an non regparm kernel. According to some gcc developers it should be safe to use in all gccs that are still supports (2.95 and up) I didn't make it the default because it will break all binary only modules (although they can be fixed by adding a wrapper that calls them with "asmlinkage"). Actually it may be a good idea to make this default with 2.7.1 or somesuch. We add new kbuild infrastructure: the command scripts/gcc-version.sh $(CC) will print out the version of gcc in a canonical 4-digit form suitable for performing numerical tests against. DESC arch/i386/Makefile,scripts/gcc-version.sh,Makefile small fixes EDESC From: Serge Belyshev <33554432@mtu-net.ru> arch/i386/Makefile: * omitted $(KBUILD_SRC)/ in script call. scripts/gcc-version.sh: * GNU tail no longer supports 'tail -1' syntax. We should consider adding -fweb option: vanilla: $ size vmlinux text data bss dec hex filename 3056270 526780 386056 3969106 3c9052 vmlinux with -fweb: $ size vmlinux text data bss dec hex filename 3049523 526780 386056 3962359 3c75f7 vmlinux Also note 0.1 ... 1.0% speedup in various benchmarks. This option is not enabled by default at -O2 because it (like -fomit-frame-pointer) makes debugging impossible.
2004-02-18[PATCH] menuconfig: fix the check for ncurses-develAndrew Morton1-6/+4
From: Sam Ravnborg <sam@ravnborg.org> Corrected check for missing ncurses-devel when executing "make menuconfig". Now tell user to install 'ncurses-devel' if check fails.
2004-02-18[PATCH] Fix make rpm when using RH9 or Fedora..Andrew Morton1-0/+1
From: Thomas Davis <tadavis@lbl.gov> Doing a 'make rpm' will fail with the current RH9/Fedora RPM macros. The failure message is this: Processing files: kernel-debuginfo-2.6.3rc1mm1-12 error: Could not open %files file /usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory The fix is this patch:
2004-02-17[PATCH] Avoid bogus warning about recursive dependenciesRoman Zippel1-1/+1
This allows us to do something like config FB_RADEON select I2C_ALGOBIT if FB_RADEON_I2C where FB_RADEON_I2C itself depends on FB_RADEON without getting a bogus warning about recursive dependencies. This matters because the select takes the default minimum dependancy from the parent menu, so we want to do this under FB_RADEON rather than under FB_RADEON_I2C (so that the I2C_ALGOBIT config depends properly on the state of FB_RADEON)
2004-02-08Merge http://linux.bkbits.net/linux-2.5Adam Belay1-0/+29
into neo.rr.com:/home/ambx1/linux/bk/linus-2.5
2004-02-08[PNP]: file2alias supportAdam Belay1-0/+29
This patch updates file2alias.c to support pnp ids. It is from Takashi Iwai <tiwai@suse.de>.
2004-02-06[SPARC32]: Fix sparc32 module support.Keith M. Wesolowski1-2/+14
2004-02-03[PATCH] Lindent fixed to match realityAndrew Morton1-1/+1
From: Matt Mackall <mpm@selenic.com> I've been fiddling with cleaning up some old code here and suggest the following to make Lindent match actual practice more closely. This does: a) (no -psl) void *foo(void) { instead of void * foo(void) { b) (no -bs) "sizeof(foo)" rather than "sizeof (foo)" c) (-ncs) "(void *)foo" rather than "(void *) foo"
2004-02-03[PATCH] fix menuconfig choice item help displayAndrew Morton2-8/+21
From: Bjorn Helgaas <bjorn.helgaas@hp.com> Anders Gustafsson <andersg@0x63.nu> Roman Zippel <zippel@linux-m68k.org> This patch fixes menuconfig so it can display help text for individual choice group config entries. Previously it would only display the help text attached to the "choice" item. There was no way to display the help attached to individual config entries inside the choice group. Typically, the "choice" item has no help text, and all the useful help is attached to the individual entries, so this was a bit of a problem.
2004-02-03[PATCH] Kconfig: use select statementsAndrew Morton1-46/+80
From: Sam Ravnborg <sam@ravnborg.org> - Use keyword select in relevant warning - Include more information in warnings related to select - Move part of error-checking to a sepearate function - Added helpers used when issuing warnings - makes code simpler - Wrapped most edited lines at column 80
2004-02-03[PATCH] kbuild: Unmangle include options for gccAndrew Morton1-12/+15
From: Sam Ravnborg <sam@ravnborg.org> When utilising the make O=... option the include options for gcc were mangled even when absolute paths was used. Also remove duplication of CPPFLAGS. They were assigned twice. [It is still possible for architectures to modify CPPFLAGS]. This patch allows xconfig to be build with make O=... xconfig.It will also help development of external modules with absolute paths for their -I options. Note: As a side effect a full recompile of the kernel takes place due to changes in number of gcc options.
2004-01-19[PATCH] make gcc 3.4 compilation workAndrew Morton1-0/+1
From: David Mosberger <davidm@napali.hpl.hp.com> With gcc-3.4 we need "attribute((used))" declarations to get "make modules_install" to work. Otherwise these sections get dropped from the final image (I assume).
2004-01-19[PATCH] kconfig: fix menuconfig exit codeAndrew Morton1-1/+0
From: Sam Ravnborg <sam@ravnborg.org> If the user decides to not write the config file out, menuconfig exits with a non-zero code. This causes make to allege that there was an error.
2004-01-06[PATCH] qconf fixRoman Zippel1-1/+1
Sometimes a menuconfig item is shown twice, so hide the other item.
2004-01-06[PATCH] gconf startup fixesRoman Zippel1-7/+8
Let gconf find it's glade file, even it's started with an absolute path and check srcdir so it also works if it's compiled outside of the tree.
2004-01-06[PATCH] gconf compile warning fixesRoman Zippel1-4/+3
gconf compile warning fixes (by Buddy Lucas <b.lucas@ohra.nl>)
2004-01-06[PATCH] fix gconf segfault problemRoman Zippel1-2/+3
fix gconf segfault problem (by Romain Lievin <roms@tilp.info>)
2004-01-06[PATCH] generate an error if writing of kernel config failedRoman Zippel2-4/+15
generate an error if writing of kernel config failed
2003-12-29[PATCH] make gconfig warning removalAndrew Morton1-1/+1
From: "Maciej Soltysiak" <solt@dns.toxicfilms.tv> make gconfig causes this: scripts/kconfig/gconf.c: In function `on_treeview1_button_press_event': scripts/kconfig/gconf.c:1175: warning: passing arg 1 of `gtk_widget_grab_focus' from incompatible pointer type
2003-12-29[PATCH] fix non-ia32 `make rpm'Andrew Morton1-1/+1
From: "Zhu, Yi" <yi.zhu@intel.com> The "make rpm" rule in top Makefile isn't aware of the enviorment ARCH. For example, people issue "make ARCH=ia64" to compile the ia64 kernel on i386 platform for cross compilation. This works pretty well now. But if one uses "make rpm ARCH=ia64", it will fail. Because current rpm rule in Makefile and mkspec are not aware of ARCH.
2003-12-29[PATCH] fix make config helpMatthew Wilcox1-1/+1
fgets puts a \n in the buffer before the terminating \0.
2003-12-29[PATCH] Get modpost to work properly with vmlinux in a different directoryAndrew Morton1-7/+16
From: "Bryan O'Sullivan" <bos@pathscale.com> The current version of modpost breaks if invoked from outside the build tree. This patch fixes that, and simplifies the code a bit while it's at it.
2003-12-10[PATCH] USB: prevent catch-all USB aliases in modules.aliasAndrey Borzenkov1-0/+7
visor.c defines one empty slot in USB ids table that can be filled in at runtime using module parameters. file2alias generates catch-all alias for it: alias usb:v*p*dl*dh*dc*dsc*dp*ic*isc*ip* visor patch adds the same sanity check as in depmod to scripts/file2alias.
2003-10-15[PATCH] Correct case sensitivity in make mandocsAndrew Morton2-42/+68
From: Michael Still <mikal@stillhq.com> The attached patch corrects case sensitivity in the mandocs make target. XML is case insensitive, and a bunch of the kernel-doc assumes this. The makeman and splitman scripts incorrectly cared about case. This patch also updates the Docbook DTD version which the script generates.
2003-10-04[PATCH] Fix Linux 2.5 -> Linux 2.6Rusty Russell1-6/+6
From: Holger Schurig <h.schurig@mn-logistik.de>
2003-10-04[PATCH] Bugzilla bug # 267 - scripts_ver_linux fixRusty Russell1-1/+1
From: Jeff Sipek <jeffpc@optonline.net>
2003-10-01[PATCH] scripts/pnmtologo.c warning fixesAndrew Morton1-5/+6
From: Rolf Eike Beer <eike-kernel@sf-tec.de> this patch makes some ints to unsigned ints. They are only used as loop counters and compared to unsigned ints. GCC 3.3 doesn't like this. They will never be negative anyway, so we could easily shut him up.
2003-10-01[PATCH] Add bin2c copyrightsAndrew Morton1-0/+9
From: Oliver Xymoron <oxymoron@waste.org> I just noticed the ikconfig stuff made it into mainline via -mm. I also just noticed that it's based in part on a patch I posted almost 5 years ago: http://groups.google.com/groups?q=oliver+xymoron+config.gz&hl=en&lr=&ie=UTF-8&selm=fa.j8fsl5v.g08fjo%40ifi.uio.no&rnum=2 Sadly, after wandering aimlessly in the desert of unloved patches all those years, all attribution got lost. This adds a copyright + license to scripts/bin2c.c, which hasn't aged a day.
2003-09-28PPC32: Make scripts/mkuboot.sh executablePaul Mackerras1-0/+0
2003-09-23PPC32: Add a uImage boot target.Tom Rini1-0/+16
2003-09-21Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds7-24/+88
into home.osdl.org:/home/torvalds/v2.5/linux
2003-09-21[PATCH] Fix typo in scripts/postmod.cAndrew Morton1-1/+1
From: Kristian Hogsberg <krh@bitplanet.net> There's a small typo in scripts/postmod.c
2003-09-21[PATCH] remove /proc/config_build_infoAndrew Morton1-12/+0
From: Zwane Mwaikambo <zwane@linuxpower.ca> The same info is already available in /proc/version.
2003-09-21kbuild: modpost, corrected check of mmap()Sam Ravnborg1-1/+1
From: Kristian Høgsberg <krh@bitplanet.net> Corrected typo in modpost.c. Check the pointer returned, not the pointer to the mmap funtion
2003-09-21Merge mars.ravnborg.org:/home/sam/bk/kbuild-patchset-1Sam Ravnborg3-9/+26
into mars.ravnborg.org:/home/sam/bk/sepout
2003-09-21kbuild/rpm: Fix 'make rpm' and enable use of 'make O=dir rpm'Sam Ravnborg1-2/+2
Simplify 'make rpm' a bit, and enable use of rpm in combination with separate output directory. Also added kernel.spec to ignore list
2003-09-20kbuild: Escape "'" in cmd macroSam Ravnborg1-1/+1
Building drivers/eisa were broken in non-verbose mode. This has been fixed by escaping "'" for cmd. It was used in $(call cmd,eisaid). Escaping "'" is already done by if_changed, so this brings cmd in line with if_changed
2003-09-11kbuild: Separate output directorySam Ravnborg4-13/+60
Separate output directory support enables the following (at least): o Building several configurations from the same SRC base, and in parrallel o Building from a RO media o More efficient build if files are retreived via NFS (files stored locally) Usage is simple: cd /path/to/kernel/src mkdir ~/build/kernel make O=~/build/kernel [Make options] Please note: The O= syntax must be used for ALL invocations of make. As an alternative you may set KBUILD_OUTPUT to the directory where to put the output files. The patch works for me, and I have tried with various configurations, including allnoconfig and defconfig. How it works: If the O= option is used, or KBUILD_OUTPUT is set then a second invocation of make happens in the output directory. The second invocation of make uses VPATH to tell make where to locate the files. Furthermore include options for gcc is modifyied to point both in the directory where the kernel src is located, and in the directory where the output files are located. The latter is used for generated .h files. When building the kernel the asm symlink is created. To support this a new 'include2' directory is created. Within include2/ asm is a symlink to the asm-$(ARCH) directory in the kernel src. Also when building the kernel the asm-offset.h file is created, and located in the include/asm-$(ARCH) directory, but included via <asm/asm-offset.h>. Therefore within include/ another asm symlink is created pointing to the asm-$(ARCH) directory located in the output directory. In Makefile.build the output directory is created if not already present. This was needed to support xfs, and oprofile. The patch is loosly based on ideas from Kai G. Roman Zippel introduced support for this in kconfig long time ago
2003-09-11kconfig: Allow architectures to select board specific configsSam Ravnborg2-8/+25
This patch introduces the framework required for architectures to supply several independent configurations. Three architectures does this today: ppc, ppc64 and arm. The infrastructure provided here requires the files to be located in the following directory: arch/$(ARCH)/configs The file shall be named <board>_defconfig To select the configuration for ppc/gemini simply issue the following command: make gemini_defconfig This will generate a valid configuration. ppc and ppc64 already comply to the above requirements, arm needs some trivial updates.
2003-09-09[PATCH] really use english date in version stringAndrew Morton1-2/+2
From: Andrey Borzenkov <arvidjaar@mail.ru> LANG is not always enough to force date to english.
2003-09-09[PATCH] Move ikconfig to /proc/config.gzAndrew Morton3-7/+32
From: "Randy.Dunlap" <randy.dunlap@verizon.net> The SuSE kernels place their ikconfig info at /proc/config.gz: in a different place, and compressed. We thought it was a good idea to do it that way in 2.6 as well. - gzip the /proc config file, put it in /proc/config.gz; - Based on a SuSE patch by Oliver Xymoron <oxymoron@waste.org>, which was derived from a patch by Nicholas Leon <nicholas@binary9.net> - change /proc/ikconfig/built_with to /proc/config_build_info; - cleanup ikconfig init/exit entry points (static, __init, __exit); - Makefile help from Sam Ravnborg; DESC ikconfig cleanup EDESC From: Stephen Hemminger <shemminger@osdl.org> Simplify and cleanup the code: - use single interface to seq_file where possible - don't need to do as much of the /proc interface, only read - use copy_to_user to avoid char at a time copy - remove unneccesary globals - use const char[] rather than const char * where possible. Didn't change the version since interface doesn't change.
2003-09-07Fix various scripts to be marked executable.Linus Torvalds11-0/+0
From carbonated beverage <ramune@net-ronin.org>. [ "carbonated beverage"? WTF? I think I need a cool handle too ;]
2003-09-06Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds1-2/+4
into home.osdl.org:/home/torvalds/v2.5/linux
2003-09-07kbuild: genksyms, add explicit reference to include dirSam Ravnborg1-2/+4
genksyms references .h files in the genksyms directory from a generated .c file. Explicit tell kbuild to search the genksyms directory in the kernel src tree for .h files.
2003-09-06[PATCH] rename make check* targets, add versioncheckRandy Dunlap1-0/+72
rename make check* targets to make *check (per Sam) since 'make checkconfig' currently doesn't work; add versioncheck and scripts/checkversion.pl;
2003-08-31[PATCH] c99 struct initialiser conversionsAndrew Morton1-12/+12
From: CaT <cat@zip.com.au> Convert a whole bunch of struct initialisers into c99 format.
2003-08-31[PATCH] .config checks updatedAndrew Morton1-21/+24
From: Sam Ravnborg <sam@ravnborg.org> When building a kernel right after 'make mrproper' resulted in a very short run, and no sign that .config was missing. This has been fixed by adding a new rule for .config in the top-level Makefile, and a new target 'silentoldconfig' in scripts/kconfig/Makefile. Cleaned up a bit in scripts/kconfig/Makefile
2003-08-18[PATCH] fix make xconfigSam Ravnborg1-4/+12
When the *config targets were moved to scripts/kconfig/Makefile the graphical configurator support broke. The following patch is a minimal fix, required to restore support of 'make xconfig' and 'make gconfig'.
2003-08-18[PATCH] enable the ikconfig stuff in configAndrew Morton1-2/+2
From: Sean Estabrooks <seanlkml@rogers.com> - fix space at end of line in config files; - add error check on put_user(); (Daniele Bellucci <bellucda@tiscali.it>) - add missing Kconfig piece for ikconfig;
2003-08-17Fix "make clean" in scripts/genksymsLinus Torvalds1-1/+1
Don't prepend $(obj) to "targets", since the generic rules will do that for us, and doing it twice just makes things not work.
2003-08-17[PATCH] Move config tasks to kconfig/MakefileSam Ravnborg2-9/+55
This fixes a bug with multiple targets. Olaf Hering reported that the build failed for PowerPc if used like this: make oldconfig zImage The reason for this was that .config was not present for any targets specified in arch/$(ARCH)/Makefile and below. That's because .config would not be included when oldconfig is present in the list of targets. The fix is to move handling of *config task to the kconfig/Makefile. Furthermore the logic in top-level makefile has changed a bit, creating a more logial structure. When building a fresh kernel, the user is now told that .config is missing, not an anonymous report that .config did not exist. The error has survided this long because the targets used in i386/boot in general does not use CONFIG_ symbols. Olaf Hering has tested this patch with success.
2003-08-14[PATCH] Docbook: Make mandocs output more terseAndrew Morton2-16/+129
From: Michael Still <mikal@stillhq.com> This patch takes into account requests from various LKML members for the mandocs output to be more terse. Information about the copyright, and formatting of the man page is moved into a comment at the start of the groff output. Sample output can be found at: http://www.stillhq.com/linux/mandocs/2.6.0-test3-bk1/
2003-08-04[PATCH] __initdata must not be marked constAnton Blanchard1-3/+3
Fix up a few places where we marked __initdata as being const. This causes a section conflict (init section vs .rodata)
2003-08-01[PATCH] janitor: don't init statics to 0Randy Dunlap4-9/+9
From: Leann Ogasawara <ogasawara@osdl.org> Uninitialize static variables initialized to 0 so they are pushed to the .bss instead of .data.
2003-07-31Merge http://linux-isdn.bkbits.net/linux-2.5.makeLinus Torvalds6-1/+474
into home.osdl.org:/home/torvalds/v2.5/linux
2003-07-31Merge initializer conflict manuallyLinus Torvalds1-0/+161
2003-07-31[PATCH] ikconfigAlan Cox3-0/+310
(Randy Dunlap) Build the kernel config data into the kernel - either unloaded or accessible via /proc
2003-07-31[PATCH] allow 2.6 to build on old old setupsAlan Cox1-0/+2
(Mikael Pettersson)
2003-07-31[PATCH] fix posix compliance for mkcompile_h scriptAlan Cox1-1/+1
2003-07-28ALSA updateJaroslav Kysela1-0/+161
- removed empty hammerfall_mem.c file - added MAKEDEV.snd script
2003-07-27Merge germaschewski.name:/home/kai/kernel/v2.5/linux-2.5Kai Germaschewski5-98/+258
into germaschewski.name:/home/kai/kernel/v2.5/linux-2.5.make
2003-07-25[PATCH] Optional choice values get resetRoman Zippel1-20/+21
Patch by Herbert Xu <herbert@gondor.apana.org.au>: As of 2.5.74, make oldconfig always disables existing optional choices even if they were selected previously. For example, if all the EICON ISDN drivers were selected as modules, then make oldconfig will turn them off. Part of the problem is that the choice value itself is computed before the SYMBOL_NEW flag is turned off. This patch addresses that particular problem.
2003-07-25[PATCH] generate dependency againRoman Zippel1-1/+6
During an erlier update the call to generate the .config dependency got lost. Add a missing warning.
2003-07-25[PATCH] qconf menuconfig fixRoman Zippel1-1/+4
correctly select a nested menuconfig entry
2003-07-25[PATCH] gconf menuconfig fixesRoman Zippel1-27/+55
Patch by Romain Lievin <roms@tilp.info> various fixes to handle menuconfig options
2003-07-21kbuild: Add relocation information into .lst fileKai Germaschewski1-1/+1
A little known feature is "make some/file.lst" which will generate an assembler dump interspersed with the source code, and now with decoded relocation information as well.
2003-07-21Hand mergedKai Germaschewski5-97/+258
2003-07-17[PATCH] fix ver_linux for 2.6Alan Cox1-1/+4
(Steven Cole)
2003-07-09[PATCH] update Documentation/Changes, scripts/ver_linuxSteven Cole1-0/+3
Add a section about quota-tools in the Changes and version docs.
2003-06-25kbuild: Fix .config dependency generationKai Germaschewski1-0/+1
Patch from Roman Zippel, add a lost call to file_write_dep() back into the kconfig system, which creates the dependency list for .config.
2003-06-25kbuild: [PATCH] fix in-kernel genksyms for parisc symbolsKai Germaschewski2-97/+99
James Bottomley: > The problem is that the parisc libgcc.a library contains symbols that > look like $$mulI and the like, but genksyms doesn't think $ is legal for > a function symbol, so they all get dropped from the output. This means > that inserting almost any module on parisc taints the kernel because > these symbols have no version. > > The fix (attached below) was to allow $ in an identifier in lex.l (and > obviously to update the _shipped files as well, but my flex/bison seem > to be rather different from the one they were generated with, so I'll > leave that to whomever has the correct versions). [lex.c_shipped is updated within this cset, too]
2003-06-23Merge bk://linux-sam.bkbits.net/kbuildSam Ravnborg2-0/+158
into mars.ravnborg.org:/home/sam/src/linux/kernel/bk/v2.5
2003-06-21docbook: Added support for generating man filesSam Ravnborg2-0/+158
Originally by Michael Still <mikal@stillhq.com> This patch adds two new targets to the docbook makefile -- mandocs, and installmandocs. The targets require two new perl scripts in the scripts/ directory, but in return we get a series of man pages for kernel functions, which are installed in man section 9. This is a good thing, as many programmers expect documentation to be available with man, and hunting through various PS or PDF documents to find the documentation for the function you want can be quite frustrating. The man pages are just extracted from the various existing DocBook SGML documents, which are generated by kernel-doc. You also need to have docbook2man installed on your machine. Please note the formatting is not perfect, but I will tweak other stuff later with further patches -- this is just an initial implementation. Sample output (HTMLised) can be found at http://www.stillhq.com/linux/mandocs/2.5.68/ and http://www.stillhq.com/linux/mandocs/2.5.70/
2003-06-19[KCONFIG]: Fix pointer cast from int in mconf.cDavid S. Miller1-1/+1
2003-06-10Merge bk://linux-sam.bkbits.net/kbuildKai Germaschewski1-18/+0
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make
2003-06-09Merge mars.ravnborg.org:/home/sam/src/linux/kernel/bk/linux-2.5Sam Ravnborg1-18/+0
into mars.ravnborg.org:/home/sam/src/linux/kernel/bk/kbuild
2003-06-09kbuild: kill do_cmdSam Ravnborg1-18/+0
The lonely two users of do_cmd has gone. Therefore we can now kill it for good
2003-06-08Merge mars.ravnborg.org:/home/sam/src/linux/kernel/bk/linux-2.5Sam Ravnborg2-4/+13
into mars.ravnborg.org:/home/sam/src/linux/kernel/bk/docbook
2003-06-07docbook: Warn about missing parameter definitionsSam Ravnborg2-4/+13
Previously kernel-doc silently ignored missing parameter descriptions but sometimes 'make sgmldocs' failed with exit code > 0. When kernel-doc encounter parameters where the description is missing it now prints a warning. docproc corrected so previously exit code are recorded. docbook makefile cleaned up a bit
2003-06-07[PATCH] be more flexible about creating library archivesSam Ravnborg2-21/+25
New makefile variable introduced: lib-y The lib-y syntax allows you to do the usual tricks such as: lib-$(CONFIG_SMP) += percpu_counter.o A built-in.o is always present in a directory that list .o files in either obj-* or lib-*. In contrast, lib.a is made only when lib-y is defined. I also updated lib/Makefile, so that crc32.o is now always built-in if selected.
2003-06-05[PATCH] ignore attempts to change unchangable symbolsRoman Zippel1-6/+7
This fixes a problem which can show up with the new select facility, e.g. a symbol is forced to 'y', so we should never even try to change such symbols.
2003-06-05[PATCH] boolean symbol state fixRoman Zippel1-0/+2
This is an important fix to allow changing boolean symbols, whose dependency is 'm'. All internal symbol states must be converted from the tristate into boolean the state. I missed this change while adding expression support for defaults, please apply.
2003-06-04[PATCH] choice handling fixesRoman Zippel4-15/+22
A few choice handling fixes: - only visible choice values define the new state of the complete choice - improve handling of choices without visible value - two new warnings
2003-06-04kbuild: Silence kbuild with make V=0Sam Ravnborg1-63/+43
With make version 3.80 kbuild echo'ed the fixdep command executed each time a c file was compiled. This has been tracked down to a bug in version 3.80 of make. Avoiding newlines in canned command sequences avoid this problem. At the same time consolidated similar code in Makefile.build, and avoiding a few ifdef/endif pairs resulting in a more readable makefile.
2003-06-02[PATCH] create configuration in the destination directoryRoman Zippel1-33/+65
This creates the configuration in the destination directory instead of the current directory.
2003-06-02[PATCH] front end updatesRoman Zippel3-92/+146
conf: better choice interface don't ask for unchangable symbols mconf: mark unchangable symbols with '---' update exit text (from Sam Ravnborg <sam@ravnborg.org>) qconf: update debug output
2003-06-02[PATCH] add more warningsRoman Zippel5-1/+131
Add a number of warnings to avoid misuse of the previously added features (most important check for recursive dependencies).
2003-06-02[PATCH] support for 'range'Roman Zippel7-3/+83
The 'range' keyword allows to define a lower and upper limit for integer and hex symbols.
2003-06-02[PATCH] reverse dependency supportRoman Zippel6-68/+113
The 'select' keyword defines a lower limit for symbols and allows to select other symbols when a symbol is selected, e.g.: config JOLIET bool "Microsoft Joliet CDROM extensions" select NLS This means when JOLIET is selected, NLS will be selected as well.
2003-06-02[PATCH] expression supportRoman Zippel7-156/+198
"default" accepts now not only a single symbol but also an expression which can be assigned to boolean and tristate symbols.
2003-06-02[PATCH] add new keywords to parserRoman Zippel4-1427/+1886
Add the following new keywords: def_tristate, def_bool, def_boolean, select, enable and range. Add support for def_tristate and def_bool, which combines default and bool/tristate into a single statement and a allows simpler definition of derived symbols.
2003-06-02[PATCH] Change P_ROOTMENU into a MENU_ROOT flagRoman Zippel6-52/+72
This changes P_ROOTMENU into a MENU_ROOT flag and also fixes some qconf usability problems. Some gconf fixes by Romain Lievin <roms@tilp.info>.
2003-06-02[PATCH] Remove old code and macrosRoman Zippel10-246/+104
Remove old code and debugging macros which were used by the cml1->kconfig converter.
2003-05-26[PATCH] some typosAndries E. Brouwer1-2/+2
2003-05-25[PATCH] s390: module alias support.Martin Schwidefsky1-0/+25
Add module alias support for ccw devices.
2003-05-23[PATCH] kconfig check fixesRoman Zippel2-17/+4
- fix a problem with a unset menuconfig, during the config check it's possible conf selects the wrong parent menu and the result is an endless loop. - only changable config symbols are relevant during config check, otherwise we get another endless loop.
2003-05-14[PATCH] fix module-init-tools ver_linux problem.Dave Jones1-1/+1
Patch from Steven Cole to fix up ver_linux output on a system with no module-init-tools, just modutils. As noted in bugzilla #267 and at http://marc.theaimsgroup.com/?l=linux-kernel&m=104492524815220&w=2
2003-05-07Use the right CFLAGS for source checking. Fix grammar.Linus Torvalds1-2/+2
2003-05-07Support a "checking" mode for kernel builds, that runs aLinus Torvalds1-2/+19
user-supplied source checker on all C files before compiling them. I'll release the actual checker once I've cleaned it up a bit more (yay, all the copyright paperwork completed!)
2003-05-03[PATCH] add ieee1394 module dev tableBen Collins1-0/+26
This adds ieee1394 for module table registration.
2003-04-29[PATCH] complete modinfo sectionRusty Russell1-3/+1
Restores .modinfo section, and uses it to store license and vermagic.
2003-04-18[PATCH] gconfig: bug #540Romain Liévin1-4/+12
This replaces checkboxes by radiobuttons whereever necessary (menu choices). It partially fixes the #540 bug report.
2003-04-12[PATCH] Put all functions in kallsymsAndrew Morton1-5/+7
From: Rusty Russell <rusty@rustcorp.com.au> Introduce _sinittext and _einittext (cf. _stext and _etext), so kallsyms includes __init functions. TODO: Use huffman name compression and 16-bit offsets (see IDE oopser patch)
2003-04-08[PATCH] Enforce gcc-2.95 as the minimum compiler requirementAndrew Morton1-19/+0
Now that sparc64 is using gcc-3.x we can disallow gcc-2.91, etc. Documentation/Changes already says 2.95.3, which is working fine for me. With this change, we no longer require that per-cpu data definitions be initialised. That was a workaround for a bug in older gccs. So remove the build infrastructure which was checking for that. Also, mention that nfs-utils-1.0.3 is required. It isn't required yet, but will be once we enable larger dev_t: there is an interface for exportfs which passes dev_t's into the kernel which breaks with larger dev_t. That interface is old, deprecated and is not used in nfs-utils-1.0.3.
2003-04-04[PATCH] gconf updateRoman Zippel1-97/+129
A gconf update by Romain Liévin <roms@tilp.info> - fixed bug when double-clicking for changing value. - expand row when enabling a row with a submenu. - various bug fixes
2003-04-02Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5David S. Miller2-0/+8
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5
2003-04-02[MODULE]: On sparc, ignore undefined symbols of type STT_REGISTER.David S. Miller2-0/+8
2003-04-02kbuild: Fix dependencies for generated .mod.o filesKai Germaschewski1-2/+3
For some reason which I cannot remember, we didn't use the automatic dependency generation for the generated .mod.[co] files. However, we do of course need dependency information for those, too, they need to be updated when e.g. the kernel version number changes.
2003-04-01[PATCH] Subdivide PCI class for aliasesRusty Russell1-4/+21
The previous handling of PCI class masks was too primitive: the class field is not "all or nothing" but has base class, subclass and interface fields. This patch changes the alias form from: pci:vNdNsvNsdNcN to pci:vNdNsvNsdNbcNscNiN.
2003-03-17[FBDEV] Ug!!! For some reason BK keeps removing this change. I hope this is ↵James Simmons1-1/+1
the last time I have to add it.
2003-03-17MergeJames Simmons7-25/+32
2003-03-15Merge kozmo.(none):/usr/src/linus-2.5James Simmons14-1172/+3688
into kozmo.(none):/usr/src/fbdev-2.5
2003-03-15MergeKai Germaschewski7-25/+32
2003-03-15[PATCH] gtk front endRoman Zippel4-5/+2202
This adds the gtk front end by Romain Liévin <roms@tilp.info>
2003-03-15[PATCH] add menuconfig support to the front endsRoman Zippel3-137/+218
This adds the support for the menuconfig to the front ends. qconf also has now an ".." entry to make it more obvious how to get to a parent menu.
2003-03-15[PATCH] add menuconfig supportRoman Zippel6-1022/+1236
This adds the support for the menuconfig keyword, which allows to define a config symbol and a submenu with a single step, e.g. instead of menu "SCSI device support" config SCSI tristate "SCSI device support" this is now enough: menuconfig SCSI tristate "SCSI device support"
2003-03-15[PATCH] menu structure fixRoman Zippel1-2/+2
A menu entry was possibly inserted to high in the menu hierarchie if the previous entry was a derived config symbol.
2003-03-15[PATCH] restore old config behaviour for dependencies on 'm'Roman Zippel3-6/+30
This restores the old config behaviour for dependencies on 'm', such entries are only activ if CONFIG_MODULES is enabled as well.
2003-03-11kbuild: build-targets replaced with alwaysSam Ravnborg6-18/+18
The former name "kbuild-targets" did not give the user the intuitive feeling that this target will be build regards less of any dependencies no matter if we compile modules or not. The new name "always" imply that this will be build always, and tus is more informative. Fixed the few users of build-targets, and added a warning in Makefile.build
2003-03-10kbuild: Introduced extra-y, as replacement for EXTRA_TARGETSSam Ravnborg3-6/+12
EXTRA_TARGETS has been overloaded with functionality. This is now split in two: targets := list targets kbuild did not know of otherwise extra-y := list targets to be build when not building modules only. extra-y is mainly used to list .o files that is not to be included in the fnal built-in.o file for a directory.
2003-03-10kbuild: Use targets := to tell kbuild about additional targetsSam Ravnborg3-1/+3
EXTRA_TARGETS served several purposes before: 1) List targets to be build (built-in only) 2) Inform kbuild of targets within the makefile Mixing the above are causing confusion, so for now on targets := is used to inform kbuild about targets in a Makefile - that it otherwise did not know about. kbuild uses the "targets :=" information to: a) read the dependency file .target.cmd b) delete the target file during make clean
2003-03-07kbuild: Do not clutter output with make -jNSam Ravnborg1-4/+3
Added a new rule filechk used to check when a generated file actually is changed. If there is no actual changes the file is left without updating the timestamp. When building a kernel from scratch two printouts occurs: CHK file-to-generate UPD file-to-generate The first line tell that kbuild checks the file, second line tell that the file is being updated (or created). On successive runs only the first line is printed. Output is the same in verbose and non-verbose mode. This replaces the former update-if-changed which has been deleted. generate-asm-offsets.h has been renamed as well. All users are updated in next patch. Output when generating compile.h follow above style
2003-03-06Merge maxwell.earthlink.net:/usr/src/linus-2.5James Simmons4-6/+9
into maxwell.earthlink.net:/usr/src/fbdev-2.5
2003-03-05[PATCH] kbuild: touch-module after successfull creation onlySam Ravnborg1-2/+2
On Mon, Mar 03, 2003 at 05:11:10PM -0500, Bill Davidsen wrote: > scripts/Makefile.modinst:16: *** Uh-oh, you have stale module entries. You messed with SUBDIRS, do not complain if something goes wrong. This happens if you have encountered a compile error in a module. In this case you did not succeed the compilation of fs/binfmt_aout, and therefore no .o file can be located. kbuild assumes this is because you have messed with SUBDIRS, which is wrong.
2003-03-05[trivial] avoid a warning for each module on s390xArnd Bergmann1-0/+3
s390x has a reference to _GLOBAL_OFFSET_TABLE_ in each module that is resolved by the module loader. This patch prevents modpost from emitting a warning about that symbol.
2003-03-05kbuild: Make per-cpu-check ignore __crc_ symbols.Kai Germaschewski1-1/+1
We warn when symbols end in __per_cpu, but aren't in the per-cpu section. However, checksum symbols gave false positives.
2003-03-05kbuild: Add some missing FORCEKai Germaschewski1-3/+3
Those were missing, not particularly harmful, but still needed for correctness.
2003-03-02MergeJames Simmons1-4/+1
2003-03-02kbuild: remove dependency on compile.hKai Germaschewski1-4/+1
We had a dummy dependency on include/linux/compile.h, but it really caused more trouble than benefits. It's not actually needed for the module postprocessing, it was only put there to make sure we recognize when gcc changed under us. However, we really can only do so much, and the rest of kbuild won't notice a changed gcc either, so if the user replaces gcc during a build, he just can't rely on the build doing the right thing. The common cases are still covered, anyway. When the command to invoke gcc changes ("CC=gcc32") we notice, and when the path to /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h changes (which luckily contains the "2.96", we'll notice and handle that, too.
2003-03-02Merge maxwell.earthlink.net:/usr/src/linus-2.5James Simmons15-16/+5519
into maxwell.earthlink.net:/usr/src/fbdev-2.5
2003-03-01Hand mergedKai Germaschewski15-16/+5519
2003-02-26Merge maxwell.earthlink.net:/usr/src/linus-2.5James Simmons2-10/+4
into maxwell.earthlink.net:/usr/src/fbdev-2.5
2003-02-25[PATCH] replace it's with its where appropriate.Steven Cole1-1/+1
This patch replaces it's (it is) with its (possessive of it) in the following cases where the possessive of it is meant. to it's -> to its into it's -> into its from it's -> from its of it's -> of its with it's -> with its under it's -> under its about it's -> about its
2003-02-23[PATCH] fix make rpmSam Ravnborg1-9/+3
make rpm has been broken in several kernel versions, fix it. Solves http://bugme.osdl.org/show_bug.cgi?id=373 which Paolo Ciarrocchi pushed me to fix. 1) Moved make rpm to the noconfig section, thus allowing it to see the clean target. 2) Fixed the commandline for find 3) Use rpmbuild if present 4) In mkspec use the generic all target, and drop the dep target This made the build command arch independent
2003-02-23[FBDEV] Minor fixes for logo code.James Simmons1-8/+17
[FBCON] More optimizations for drawing a string of characters. [VGACON] Using more code from video/vga.h. [VGA] Changes membase to unsigned long to support 64 bit platforms.
2003-02-21Merge maxwell.earthlink.net:/usr/src/linus-2.5James Simmons2-657/+0
into maxwell.earthlink.net:/usr/src/fbdev-2.5
2003-02-21[PATCH] Remove checkhelp.pl and header.tkBrian Gerst2-657/+0
Changes in the config system have obsoleted these files.
2003-02-20Merge maxwell.earthlink.net:/usr/src/linus-2.5James Simmons1-0/+2
into maxwell.earthlink.net:/usr/src/fbdev-2.5
2003-02-20Fix "make clean" to remove scripts/elfconfig.hLinus Torvalds1-0/+2