summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2004-09-13Update shipped version of zconfig.tab.c to match bison/yacc file.Linus Torvalds
2004-09-13[PATCH] properly fix double current_menuRoman Zippel
The two current_menu variables are really two separate variables, so keep them separate. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-13[PATCH] searching for parameters in 'make menuconfig'Yuval Turgeman
I added the ability to search for parameters in make menuconfig (find a given parameter's location in the tree). You use '/' to invoke the feature. Regular expression searches are supported. Signed-off-by: Yuval Turgeman <yuvalt@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-10Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-09-09scripts: pass %{_smp_mflags} to make(1) in scripts/package/mkspecSam Ravnborg
This patch passes %{_smp_mflags} to various build phases in scripts/package/mkspec so that -j$N is honored by make rpm. From: William Lee Irwin III <wli@holomorphy.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-09-07[PATCH] Remove in-kernel init_module/cleanup_module stubsBrian Gerst
This patch removes the default stubs for init_module and cleanup_module, and checks for NULL instead. It changes modpost to only create references to those functions if they actually exist. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-06scripts: Update ver_linux for recent reiserfsprogsSteven Cole
The ver_linux script is fixed to report recent versions of reiserfsprogs. (Older versions had "reiserfsprogs" in the line containing the version number, while recent versions report "reiserfsck" followed by version number). The ver_linux script is updated to report the reiser4progs version number. This was tested with reiserfsprogs 3.6.11, 3.6.18 and reiser4progs 1.0.0. Signed-off-by: Steven Cole <elenstev@mesatop.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-09-06kbuild: use KERNELRELEASEBrian Gerst
This patch changes several places where the kernel version string is put together from it's components with $KERNELRELEASE. From: Brian Gerst <bgerst@quark.didntduck.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-09-01kbuild: Fix modules_installSam Ravnborg
modules_install failed for modules with 'ko' in their name. Fixes this. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-31kbuild: Updates to namespacecheck.plSam Ravnborg
From: Keith Owens <kaos@ocs.com.au> This now supports the absolute symbols from modversions, handles recent binutils changes and supports O=. Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-31kbuild: fix stage 2 of module buildSam Ravnborg
When building allmodconfig the following error were seen: scripts/Makefile.modpost:86: target `fs/nls/nls_koi8-ru.ko' given more than once in the same rule. This happened for all modules with 'ko' inside their name. This bug were introduced when head ... were replaced by grep. Signed off by: Sam Ravnborg <sam@ravnborg.org>
2004-08-29kbuild: Add 'make namespacecheck'Keith Owens
make namespacecheck lists globally visible symbols that are not used outside the file that defines them. These symbols are candidates for static declarations. It also lists multiply defined symbols. namespace.pl knows about lots of special cases in the kernel code, including exported symbols and conglomerate objects. The patch also corrects the usage of scripts/reference*.pl, they need $(src). Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Index: 2.6.9-rc1/Makefile ===================================================================
2004-08-29kbuild: Solaris fixes in various kbuild Makfiles'sTom Rini
Additional Makefile fixes for Solaris 2.8 On Solaris, 'head' doesn't take a -q argument. But we can use 'grep -h' instead, so do that in Makefile.mod{inst,post}. The built-in test to /bin/sh doesn't like 'if ! cmd' syntax, so when determining if we need to do modversion stuff, invert the if/else cases. The built-in test also doesn't understand -ef, so invoke a real version of test which does. Signed-off-by: Tom Rini <trini@kernel.crashing.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-29kbuild: Use getopt_long in genksyms only when availableTom Rini
Use getopt_long() or getopt(), depending on the host From: Jean-Christophe Dubois <jdubois@mc.com>. We do not always have GNU getopt_long(), so when we don't, just use getopt() and the short options. We do this based on __GNU_LIBRARY__ being set, or not. Originally from Jean-Christophe Dubois <jdubois@mc.com>. Signed-off-by: Tom Rini <trini@kernel.crashing.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-29kbuild: Use inttypes.h when stdint.h are not availableTom Rini
The following is from Jean-Christophe Dubois <jdubois@mc.com>. On Solaris 2.8, <stdint.h> does not exist, but <inttypes.h> does. However, on Cygwin (the other odd place that the kernel is compiled on) <inttypes.h> doesn't exist. So we end up testing for __sun__ and using <inttypes.h> there, and <stdint.h> everywhere else. Signed-off-by: Tom Rini <trini@kernel.crashing.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-27kbuild: Fix make O=Sam Ravnborg
A bug that slipped through when introducing Makefile.host. A good way to check if people actually uses make O= ;-) Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-23[PATCH] Use posix headers in sumversion.cBen Leslie
When compiling Linux on Mac OSX I had trouble with scripts/sumversion.c. It includes <netinet/in.h> to obtain to definitions of htonl and ntohl. On Mac OSX these are found in <arpa/inet.h>. After checking the POSIX specification it appears that this is the correct place to get the definitons for these functions. (http://www.opengroup.org/onlinepubs/009695399/functions/htonl.html) Using this header also appears to work on Linux (at least with Glibc-2.3.2). It seems clearer to me to go with the POSIX standard than implementing #if __APPLE__ style macros, but if such an approach is preferred I can supply patches for that instead. A patch against 2.6.7 which change <netinet/in.h> -> <arpa/inet.h> is attached. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-23[PATCH] uml: Fixes "fixdep.c" to support arch/um/include/uml-config.h.Paolo \'Blaisorblade\' Giarrusso
You probably saw that if you change one config option, even if linux/autoconf.h (which is included by everything) changes, the kernel is smart enough not to recompile everything. But with UML this no more holds. Why? Because, as you see in this patch, fixdep avoids making anything depend onto linux/autoconf.h *explicitly*, but nobody taught him to do the same for arch/um/include/uml-config.h. So apply this patch. Do not say "I don't want to change the generic Kbuild for one arch": this cannot hurt. It's a bugfix for us, a no-op for others. Note: with this patch, fixdep will still add a dependency from a file containing UML_CONFIG_BYE onto CONFIG_BYE. Since someone could think that fixdep should grep for [^A-Z_]CONFIG_ rather than simply for CONFIG_, I've added a comment that ask *not to fix* this "bug". Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22Merge bk://linux-sam.bkbits.net/kbuildLinus Torvalds
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22[PATCH] fix compiling oldconfig with gcc-3.5Thierry Vignaud
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-23scripts/patch-kernel: use EXTRAVERSIONRandy Dunlap
Update 'scripts/patch-kernel' to support EXTRAVERSION. Update usage message text. Fix some whitespace. Handle command line arg3 (stop-version) more carefully. No changes to -ac patch updates. EXTRAVERSION handling: any leading '.' and any trailing modifier (beginning with any punctuation, like "-ac" or "_kexec" or "+mm") are stripped, trying to get down to just a number. Then 'patch-kernel' increments EXTRAVERSION as long as it can apply "patch-V.P.S.X*". When that file isn't found, it resets EXTRAVERSION to "" and increments SUBLEVEL (as before this patch). Works for me. Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-19kbuild/all archs: added CHECKFLAGSSam Ravnborg
Using separate assignment for CHECKFLAGS allows convenient redefinition of CHECK on the command line: make CHECK=~/bin64/sparse C=2 to use a special 64 bit version. Introduced usage in all archs that assined values to CHECK. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-19kbuild: add comments to Makefile.cleanSam Ravnborg
Chris Wedgwood <cw@f00f.org> wrote: > P.S. I'd love to see the rules in scripts/Makefile.* documented. I > would offer a patch for this but I don't understand the rules > myself... And provided the following patch, slightly modified by me. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-19kbuild: Remove check for undefined symbols in vmlinuxSam Ravnborg
Russell King reported that some gcc / bin-utils combination may result in undefined symbols in vmlinux and implemented a check for that. Though the cause is very valid this check has proved to be a real pain for other users, especially sparc and um. Short term a similar check is asked to be implemented in arch/arm*/Makefile and long-term to bail out if too old gcc / bin-utils is used. Long term plan awaits a new gcc / bin-utils release. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-18fix warnings in scripts/binoffset.cRandy Dunlap
Correct gcc warnings for function return type, printf argument types, and signed/unsigned compare. Cross-compiled with no warnings/errors for alpha, ia64, ppc32, ppc64, sparc32, sparc64, x86_64, and native on i386. (-W -Wall) [pre-built tool chains are available from: http://developer.osdl.org/dev/plm/cross_compile/ ] Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-18kbuild: make C=2 now force sparse to be run for all .c filesSam Ravnborg
With make C=2 sparse ($(CHECK)) will be run on all .c files also if they do not need to be compiled. Usefull to run sparse on a fully compiled kernel tree. Implemented on request from Al Viro (although he liked to be able to run sparse without building any source). Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-16kbuild: Allow external modules to use host-progs with no warningSam Ravnborg
Only warn if $(host-progs) and $(hostptogs-y) are not equal. This allows external modules to use: hostprogs-y := file ... host-progs := $(hostprogs-y) This is backwards compatible and will not warn. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-16Cset exclude: adobriyan@mail.ru|ChangeSet|20040815084554|35832Sam Ravnborg
2004-08-15kbuild: Generate *.lds instead of *.lds.sSam Ravnborg
When building a kernel on platforms where the filesytem do not distingush between upper and lower case the rule: .S -> .s did not work. In a normal build this is only used for linker scripts. So create a separate rule for .lds files, and use generic cpp flags. Patch from: Dan Aloni <da-x@colinux.org> Modified to use cpp flags + added documentation. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-15kbuild: Bogus "has no CRC" in external module buildsSam Ravnborg
From: Pavel Roskin <proski@gnu.org> The recent fixes for the external module build have fixed the major breakage, but they left one annoyance unfixed. If CONFIG_MODVERSIONS is disabled, a warning is printed for every exported symbol that is has no CRC. For instance, I see this when compiling the standalone Orinoco driver on Linux 2.6.6-rc3: *** Warning: "__orinoco_down" [/usr/local/src/orinoco/spectrum_cs.ko] has no CRC! *** Warning: "hermes_struct_init" [/usr/local/src/orinoco/spectrum_cs.ko] has no CRC! *** Warning: "free_orinocodev" [/usr/local/src/orinoco/spectrum_cs.ko] has no CRC! [further warnings skipped] I have found that the "-i" option for modpost is used for external builds, whereas the internal modules use "-o". The "-i" option causes read_dump() in modpost.c to be called. This function sets "modversions" variable under some conditions that I don't understand. The comment before the modversions declarations says: "Are we using CONFIG_MODVERSIONS?" Apparently modpost fails to answer this question. I think it's better to use an explicit option rather than a kludge. The attached patch adds a new option "-m" that is specified if and only if CONFIG_MODVERSIONS is enabled. The patch has been successfully tested both with and without CONFIG_MODVERSIONS. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-15kerneldoc: Fix comma separated members.Alexey Dobriyan
This patch teaches scripts/kernel-doc to print descriptions of comma separated variables correctly instead of ignoring them. Tested on 'make pdfdocs' and 'scripts/kernel-doc -text test.c'. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-14kbuild: __crc_* symbols in System.mapSam Ravnborg
David S. Miller <davem@redhat.com> wrote: Shouldn't we be grepping __crc_ symbols out of the System.map file? For one thing, these can confuse readprofile. It's algorithm is to start at _stext, then stop when it sees a line in the System.map which is not text (mode is one of 'T' 't' 'W' or 'w') It will exit early if there are some intermixed __crc_* things in there (since they are are mode 'A'). For example, in my current sparc64 kernel I have this: 00000000004cef80 t do_split 00000000004cf2a0 t add_dirent_to_buf 00000000004cf5a7 A __crc_init_special_inode 00000000004cf640 t make_indexed_dir 00000000004cf900 t ext3_add_entry So no symbols after add_dirent_to_buf will be shown in the profiling output of readprofile. Implementation ported to mksysmap by Sam. Included two System.map related fixes: - Print "SYSMAP System.map" during build - Sort symbols in System.map Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-11kbuild: Use POSIX headers for ntoh functionsSam Ravnborg
From: Benno <benjl@cse.unsw.edu.au> When compiling Linux on Mac OSX I had trouble with scripts/sumversion.c. It includes <netinet/in.h> to obtain to definitions of htonl and ntohl. On Mac OSX these are found in <arpa/inet.h>. After checking the POSIX specification it appears that this is the correct place to get the definitons for these functions. (http://www.opengroup.org/onlinepubs/009695399/functions/htonl.html) Using this header also appears to work on Linux (at least with Glibc-2.3.2). It seems clearer to me to go with the POSIX standard than implementing #if __APPLE__ style macros, but if such an approach is preferred I can supply patches for that instead. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-11kbuild: Fix hostprogs-ySam Ravnborg
Allow the same target to be specified more than once without causing a warnign from make. The same target may be specified twice when using the following pattern: hostprogs-$(CONFIG_FOO) += program hostprogs-$(CONFIG_BAR) += program Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-11kbuild: Replace host-progs with hostprogs-ySam Ravnborg
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-11kbuild: Introduce hostprogs-y, deprecate host-progsSam Ravnborg
Introducing hostprogs-y allows a user to use the typical Kbuild pattern in a Kbuild file: hostprogs-$(CONFIG_KALLSYMS) += ... And then during cleaning the referenced file are still deleted. Deprecate the old host-progs assignment but kept the functionlity. External modules will continue to use host-progs for a while - drawback is that they now see a warning. Workaround - just assign both variables: hostprogs-y := foo host-progs := $(hostprogs-y) All in-kernel users will be converted in next patch. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-11kbuild: Separate out host-progs handlingSam Ravnborg
Concentrating all host-progs functionality in one file made a more readable Makefile.lib - and allow for potential reuse of host-progs functionality. Processing of host-progs related stuff are avoided when no host-progs are specified. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-10kbuild: Accept absolute paths in clean-files and introduce clean-dirsSam Ravnborg
Teach kbuild to accept absolute paths in clean-files. This avoids using clean-rules in several places. Introduced clean-dirs to delete complete directories. Kept clean-rule - but do not print anything when used. Cleaned up a few places now the infrastructure are improved. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-09kbuild: Selective compile of targets in scripts/Sam Ravnborg
Do not build executables unless needed. Same goes for scripts/mod/, descend only when CONFIG_MODULES are enabled. With inputs form: Russell King <rmk+lkml@arm.linux.org.uk> and Brian Gerst <bgerst@quark.didntduck.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-08kconfig: save kernel version in .config fileRandy Dunlap
Save kernel version info and date when writing .config file. Tested with 'make {menuconfig|xconfig|gconfig}'. Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-08kbuild/sparc: Use new generic mksysmap script to generate System.mapSam Ravnborg
o Introduced usage of the mksysmap script. o Improved the non-verbose output to look like this: BTFIX arch/sparc/boot/btfix.S AS arch/sparc/boot/btfix.o LD arch/sparc/boot/image SYSMAP arch/sparc/boot/System.map o No longer generate System.map for each build o Use normal AS rule to compile btfix.S Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-08kbuild: Check for undefined symbols in vmlinuxSam Ravnborg
At least one bin-utils version for ARM is know to ignore undefined symbols when performing the final link of vmlinux. Add an explicit check for undefined symbols to catch this. The check is made in combination with generating the System.map file and the actual algorithm is moved to a small shell script - mksysmap. External symbols with three leading underscores are ignored - sparc uses them for the BTFIXUP logic. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2004-08-01[PATCH] Fix menuconfig partial inability to show help texts.Alexey Dobriyan
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 Torvalds
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-07-28[PATCH] remove scripts/mkconfigsBrian Gerst
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 Ravnborg
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 Ravnborg
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 Gerst
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 Schwab
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 Ravnborg
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>