* [BK patches] kbuild updates
@ 2004-11-07 19:37 Sam Ravnborg
0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2004-11-07 19:37 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel
Hi Linus.
A number of patches has accumulated in the kbuild tree.
This tree have no sign of the offsetts.h related patches - I did
a new clone to linux-sam.bkbits.net/kbuild to get rid of them.
It has been tested in latest -mm except for a few fixes
Plase pull:
bk pull bk://linux-sam.bkbits.net/kbuild
A quick summary is:
o fix xconfig and gconfig so they work againg
o Kbuild is now preferred name for kbuild files - but no global renaming.
o Allow architectures to set KBUILD_DEFCONFIG so arch/xxx/defconfig
can be dropped. USed for arm only for now
o Updates to kernel-doc
o updates to sparc/Kconfig (acked by wli)
o ppc, make O= fix
o initramfs improvements (timestamp check)
o localversion improvements (ignore backup copies, do not rebuild so much)
o fixes for Solaris builds
o ppc64 install fix
Diffstat:
arch/arm/defconfig | 510 -----------------------------------
b/Documentation/kbuild/makefiles.txt | 23 -
b/Makefile | 8
b/arch/arm/Makefile | 4
b/arch/i386/kernel/process.c | 5
b/arch/i386/kernel/traps.c | 4
b/arch/m32r/Makefile | 1
b/arch/m32r/boot/compressed/Makefile | 3
b/arch/ppc/boot/lib/Makefile | 21 +
b/arch/ppc64/boot/Makefile | 2
b/arch/sparc/Kconfig | 28 -
b/scripts/Makefile.build | 2
b/scripts/Makefile.clean | 2
b/scripts/basic/fixdep.c | 8
b/scripts/gen_initramfs_list.sh | 23 +
b/scripts/kallsyms.c | 12
b/scripts/kconfig/Makefile | 22 -
b/scripts/kernel-doc | 186 +++++++++---
b/scripts/lxdialog/Makefile | 4
b/scripts/lxdialog/dialog.h | 3
b/scripts/mod/modpost.c | 2
b/sound/core/info.c | 7
22 files changed, 263 insertions(+), 617 deletions(-)
Sam
ChangeSet@1.2454, 2004-11-06 21:18:02+01:00, sam@mars.ravnborg.org
kconfig: fix xconfig and gconfig
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>
scripts/kconfig/Makefile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
ChangeSet@1.2453, 2004-11-06 00:14:15+01:00, adobriyan@mail.ru
kernel-doc: Print preprocessor directives correctly.
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>
scripts/kernel-doc | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 deletions(-)
ChangeSet@1.2452, 2004-11-06 00:07:44+01:00, blaisorblade_spam@yahoo.it
Kbuild: avoid backup localversion files
Avoid including as localversion-files the *~ files, i.e. backup files. If I
have localversion-a and localversion-a~, I don't want both to be used. Nor I
want to use localversion*~ anyway.
Don't code that as $(wildcard localversion*[^~]) as that would exclude
"localversion" from the wildcard expansion result, because it requires at
least one character after localversion to exist in the name file. I.e.,
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Makefile | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
ChangeSet@1.2451, 2004-11-06 00:05:44+01:00, akpm@osdl.org
bk-kbuild utsname fix
sound/core/info.c:31: sound/utsname.h: No such file or directory
sound/core/info.c: In function `snd_info_version_read':
sound/core/info.c:965: parse error before `CONFIG_SND_VERSION'
sound/core/info.c:962: warning: unused variable `kernel_version'
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by Sam Ravnborg <sam@ravnborg.org>
sound/core/info.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
ChangeSet@1.2450, 2004-11-03 23:40:52+01:00, sam@mars.ravnborg.org
Merge mars.ravnborg.org:/home/sam/bk/linux-2.6
into mars.ravnborg.org:/home/sam/bk/to-akpm
scripts/Makefile.build | 1 +
1 files changed, 1 insertion(+)
ChangeSet@1.2346.2.20, 2004-11-03 21:52:01+01:00, azarah@nosferatu.za.org
kbuild: check timestamps on files for initramfs
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>
scripts/gen_initramfs_list.sh | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
ChangeSet@1.2346.2.19, 2004-11-03 21:51:06+01:00, adobriyan@mail.ru
kernel-doc: don't print ... twice in variadic functions
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kernel-doc | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
ChangeSet@1.2346.2.18, 2004-11-03 21:50:05+01:00, adobriyan@mail.ru
kernel-doc: print arrays in declarations correctly
Do not convert arrays into pointers while generating documentation for them.
I.e, print
struct sk_buff {
char cb[40];
};
as "char cb[40]", not "char * cb".
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kernel-doc | 100 ++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 73 insertions(+), 27 deletions(-)
ChangeSet@1.2346.2.17, 2004-11-03 21:49:24+01:00, adobriyan@mail.ru
kernel-doc: support for comma-separated members in structs and unions
Fix the following warnings
$ make sgmldocs
...
Warning(include/linux/skbuff.h:283): No description found for parameter 'len,data_len,mac_len,csum'
Warning(include/linux/skbuff.h:283): No description found for parameter 'local_df,cloned,pkt_type,ip_summed'
Warning(include/linux/skbuff.h:283): No description found for parameter 'protocol,security'
...
Warning(include/linux/skbuff.h:283): No description found for
parameter 'head,*data,*tail,*end'
...
by adding support for comma-separated members in structs and unions.
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kernel-doc | 46 ++++++++++++++++++++++++++++++----------------
1 files changed, 30 insertions(+), 16 deletions(-)
ChangeSet@1.2346.2.16, 2004-11-03 21:48:44+01:00, sam@mars.ravnborg.org
ppc: fix building arch/ppc/boot/lib/ with make O=
arch/ppc/boot/lib/ reuses zlib_inflate from lib/zlib_inflate but kbuild
does not support two different places utilising the same .o file. It results
in recompile for each build because options to compiler changes etc.
So the trick used here is to make a copy of the required .c files.
Acked-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/ppc/boot/lib/Makefile | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
ChangeSet@1.2346.2.15, 2004-11-03 21:47:44+01:00, sam@mars.ravnborg.org
kconfig: drop usage of shared libraries
Drop usage of shared libraries.
It breaks on several non-i386 build environemnts - especially the ones popular for embedded development.
This is a minimal version.
Based on idea from Bertrand Marquis and patch from Dan Kegel.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/Makefile | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
ChangeSet@1.2346.2.14, 2004-11-03 21:40:43+01:00, sam@mars.ravnborg.org
kbuild: Prefer Kbuild as name of the kbuild files
The kbuild syntax is unique and does only have very few things in common with
usual Makefile syntax. So to avoid confusion make the filename 'Kbuild' be
the preferred name as replacement for 'Makefile'.
No global renaming planned to take place for now, but new stuff expected to use
the new 'Kbuild' filename.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Documentation/kbuild/makefiles.txt | 7 +++++--
scripts/Makefile.build | 2 +-
scripts/Makefile.clean | 2 +-
3 files changed, 7 insertions(+), 4 deletions(-)
ChangeSet@1.2346.2.13, 2004-10-31 02:49:03+02:00, james4765@verizon.net
Re: More patches to arch/sparc/Kconfig [2 of 5]
Fixes typo in help in openpromfs.
From: Jim Nelson <james4765@verizon.net>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
ChangeSet@1.2346.2.12, 2004-10-31 02:46:14+02:00, james4765@verizon.net
More patches to arch/sparc/Kconfig [4 of 5]
Makes sun4 default to "N" - most SPARC32 systems did not use these.
From: Jim Nelson <james4765@verizon.net>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig | 1 +
1 files changed, 1 insertion(+)
ChangeSet@1.2346.2.11, 2004-10-31 02:45:50+02:00, james4765@verizon.net
More patches to arch/sparc/Kconfig [5 of 5]
Fixes x86-specific bootloader help in printer config.
From: Jim Nelson <james4765@verizon.net>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
ChangeSet@1.2346.2.10, 2004-10-31 02:45:26+02:00, james4765@verizon.net
More patches to arch/sparc/Kconfig [3 of 5]
Fixes x86-specific bootloader help in serial console.
From: Jim Nelson <james4765@verizon.net>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
ChangeSet@1.2346.2.9, 2004-10-31 02:45:02+02:00, james4765@verizon.net
Patch to arch/sparc/Kconfig [1 of 5]
Fixes x86-specific help in SPARC32 SMP support help.
From: Jim Nelson <james4765@verizon.net>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
ChangeSet@1.2346.2.8, 2004-10-31 02:23:45+02:00, sam@mars.ravnborg.org
Do not recompile if localversion changes
Changing localversion causes a few files to be recompiled, namely those who
include <version.h>. Replace <version.h> with <utsname.h> in a few places.
Long term solution is to split up <version.h> in two files.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/i386/kernel/process.c | 5 +++--
arch/i386/kernel/traps.c | 4 ++--
sound/core/info.c | 4 ++--
3 files changed, 7 insertions(+), 6 deletions(-)
ChangeSet@1.2346.2.7, 2004-10-31 02:05:58+02:00, sam@mars.ravnborg.org
kbuild: allow architectures to specify defconfig file with KBUILD_DEFCONFIG
For some architectures is does not make sense to maintain a single default
configuration - arm is a good example here.
KBUILD_DEFCONFIG is introduced allowing relevant architectures to point out
a configuration kept in arch/$(ARCH)/configs as the configuration
to be used when executing 'make defconfig'.
This patch selects versatile_defconfig as the default configuration for arm.
The reason to keep defconfig is that is has proved valuable in many testing
scenarios when one are doing a cross architecture build of the kernel to
do a simple compile-time check of some changes.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/arm/defconfig | 510 -----------------------------------------------
Makefile | 6
arch/arm/Makefile | 4
scripts/kconfig/Makefile | 5
4 files changed, 15 insertions(+), 510 deletions(-)
ChangeSet@1.2346.2.6, 2004-10-31 01:38:28+02:00, trini@kernel.crashing.org
kbuild: additional warning fixes on Solaris 9
A coworker of mine give them a look-over and spotted a few
places where I missed changing some casts.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/basic/fixdep.c | 8 ++++----
scripts/mod/modpost.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
ChangeSet@1.2346.2.5, 2004-10-31 01:28:31+02:00, sam@mars.ravnborg.org
m32r: misc kbuild cleanups
o Remove unused LDFLAGS_BLOB assignement (from Brian Gerst)
o Use implicit rule for vmlinux.lds (from Al viro)
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/m32r/Makefile | 1 -
arch/m32r/boot/compressed/Makefile | 3 ---
2 files changed, 4 deletions(-)
ChangeSet@1.2346.2.4, 2004-10-31 01:14:43+02:00, kaos@sgi.com
kbuild: Include useful absolute symbols in kallsyms
Some absolute symbols are useful, they can even appear in back traces.
Tweak kallsyms to retain the useful absolute symbols.
This list is from ia64, add absolute symbols from other architectures
as required.
Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kallsyms.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletion(-)
ChangeSet@1.2346.2.3, 2004-10-31 00:18:21+02:00, bunk@stusta.de
kbuild: Documentation/kbuild/makefiles.txt: check_gcc -> cc-option
It's not good to show the obsolete check_gcc in an example.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Documentation/kbuild/makefiles.txt | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
ChangeSet@1.2346.2.2, 2004-10-31 00:16:03+02:00, trini@kernel.crashing.org
kconfig: Fix menuconfig on Solaris
The following two bits are needed to get it working (not as colorful as on
Linux, but it functions) for me. First, unless CURS_MACROS is defined,
scroll(x) doesn't get expanded to wscrl(x, 1). I did some quick
grepping on Cygwin and Linux (debian/unstable) and didn't see
CURS_MACROS show up anywhere else, but to be safe I put it inside of
__sun__. Next this uses libcurses instead of libncurses otherwise we
get a bunch of undefined refs to w32attrset, w32addch, acs32map and few
more.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/lxdialog/Makefile | 4 ++++
scripts/lxdialog/dialog.h | 3 +++
2 files changed, 7 insertions(+)
ChangeSet@1.2346.2.1, 2004-10-31 00:12:39+02:00, dwm@austin.ibm.com
ppc64: install outside of source tree
Rationale:
When building outside source tree, install.sh is looked for in the
obj side.
Status: tested on ppc64 builds
Signed-off-by: Doug Maxey <dwm@austin.ibm.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/ppc64/boot/Makefile | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [BK PATCHES] kbuild updates
@ 2005-03-10 21:58 Sam Ravnborg
2005-03-10 22:32 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2005-03-10 21:58 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel, Sam Ravnborg
Hi Linus.
Please pull latest kbuild patches.
Full list below - the most important stuff:
o default value for INSTALL_PATH set to /boot
o Use -Wno-pointer-sign for gcc 4.0
o arch/i386: make install no longer check vmlinux
o Introdude KBUILD_NOCMDDEP
Except a few trivial things it has been in -mm for a while
with no comments.
Sam
Please do a
bk pull bk://linux-sam.bkbits.net/kbuild
This will update the following files:
Makefile | 47 +++++++++++++++++++++++-----------
arch/i386/Makefile | 5 ++-
arch/i386/kernel/Makefile | 2 -
drivers/net/wireless/prism54/Makefile | 2 -
drivers/video/console/Makefile | 4 +-
include/linux/module.h | 13 +--------
include/linux/moduleparam.h | 19 +++++++++++--
kernel/Makefile | 2 -
kernel/kallsyms.c | 4 +-
scripts/Makefile.lib | 28 ++++++++++++--------
scripts/Makefile.modinst | 5 ++-
scripts/genksyms/genksyms.h | 16 ++++++++---
scripts/kconfig/Makefile | 8 +++++
scripts/mod/modpost.c | 5 +--
scripts/mod/modpost.h | 4 +-
scripts/namespace.pl | 5 +++
16 files changed, 109 insertions(+), 60 deletions(-)
through these ChangeSets:
<sam@mars.ravnborg.org> (05/03/10 1.2007)
kconfig: Add explicit depedencies
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>
<sam@mars.ravnborg.org> (05/03/10 1.2006)
kbuild: Install external modules in a path relative to their own path
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>
<sam@mars.ravnborg.org> (05/03/10 1.2005)
video/console: fix spurious rebuild
kbuild does have troubles with assignmnets including '#'.
The '#' is seen as a comment marker and this will in the end cause
kbuild to think the commandline to build promcon_tbl.c has changed.
This happens because the commandline is stored in the file: .promcon_tbl.c.cmd
Although a bit complex the command to build promcon_tbl.c is unlikely
to change so the workaround is to skip the check for a changed commandline.
Now promcon_tbl.c is only rebuilt if the .uni file is newer than the .c file.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/02/02 1.2004)
prismtech: Avoid recompile when changing compile dir
-I$(PWD) is superflous - and caused absolute path to be stored in build command - this
casuses recompile when using symlink to kernel.
Also deleted commented out -DCONFIG_PRISM_WDS. CONFIG_PRISM_WDS are not present in
any of the source files.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/02/02 1.2003)
kbuild: Fix debugging leftover
So now check for commandline options actually works again.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<tero_niemela@yahoo.com> (05/01/31 1.2002)
[PATCH] kbuild: skip depmod if not executable
I've cross-compiled Linux on i386-netbsdelf2.0 for
arm-linux for quite some time now and everything seems
to be working perfectly except for one minor glitch in
the build process that halts module installation
(needlessly, IMHO). Specifically, if System.map exists
$(DEPMOD) is run ("for convenience" as the comment
says in the Makefile). However, on NetBSD I don't have
$(DEPMOD) available so the command fails and make
exits with non-zero exit status. Please consider the
attached patch to add a check for $(DEPMOD) so that
missing $(DEPMOD) won't halt the whole build process.
From: Tero Niemela <tero_niemela@yahoo.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<tony@atomide.com> (05/01/31 1.2001)
[PATCH] kbuild: fix for i386 cross compile
I used to be be able to cross compile for i386 on my x86_64 machine,
but recently something (gcc/binutils?) changed, and it stopped working.
Following patch makes cross compile work with:
make ARCH=i386 CFLAGS_KERNEL="-m32" AFLAGS_KERNEL="-m32" bzImage
Without the patch I'm getting the following error:
SYSCALL arch/i386/kernel/vsyscall-syms.o
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
Relocatable linking with relocations from format elf32-i386
(arch/i386/kernel/vsyscall-sysenter.o) to format elf64-x86-64
(arch/i386/kernel/vsyscall-syms.o) is not supported
collect2: ld returned 1 exit status
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<blaisorblade@yahoo.it> (05/01/31 1.2000)
[PATCH] kbuild: no redundant srctree in tags file
Avoid cluttering the tags/TAGS generated file with $(srctree) in the paths
if this is not needed.
This has two advantages:
- Saving about 20M on the size of the resulting tags file (which are used
currently to store the absolute path of the file names rather than the
relative one) when KBUILD_OUTPUT is not set.
- Keeping the tags file valid when the directory is renamed.
No change is done for who does make tags O=..., if this is wanted (I would
find that incommodous and non-typical for a developer, but anyway I've not
ruined functionality in that case).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<ak@muc.de> (05/01/31 1.1999)
[PATCH] kbuild: Use -Wno-pointer-sign for gcc 4.0
Compiling an allyesconfig kernel straight with a gcc 4.0 snapshot
gives nearly 10k new warnings like:
warning: pointer targets in passing argument 5 of `cpuid' differ in signedness
Since the sheer number of these warnings was too much even for the
most determined kernel janitors (I actually asked ;-) and I don't
think it's a very serious issue to have these mismatches I submitted
an new option to gcc to disable it. It was incorporated in gcc mainline
now.
This patch makes the kernel compilation use it. There are still
quite a lot of new warnings with 4.0 (mostly about uninitialized variables),
but the compile log looks much nicer nnow.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<agruen@suse.de> (05/01/30 1.1998)
The wrong version of the parmtype patch was merged, incompletely, and
the part that got merged got broken on the way. Here are the fixes:
Move __MODULE_INFO to modparam.h: This macro is used in modparam.h;
there are users who include this header but not module.h. The latter
includes modparam.h already.
__MODULE_INFO(parmtype, name##type, #name ":" #type) does not evaluate
to __MODULE_INFO(parmtype, footype, "foo:int") as was the idea, but to
__MODULE_INFO(parmtype, fooint, "foo:int") when type is bound to int.
In more complicated cases, we get syntax erros. Re-introduce the
__MODULE_PARM_TYPE macro; this is cleaner than renaming the type parameter.
Add the parmtype definition which was dropped during the merge to to the
obsolete but still heavily used MODULE_PARM macro.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Sam Ravnborf <sam@ravnbrg.org>
<juhl-lkml@dif.dk> (05/01/30 1.1997)
kbuild: make 'make help' show all *config targets and update descriptions 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>
<bunk@stusta.de> (05/01/30 1.1996)
kbuild: update scripts/namespace.pl
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>
<bunk@stusta.de> (05/01/30 1.1995)
kallsyms: kallsyms.c - make some code static
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<bunk@stusta.de> (05/01/30 1.1994)
kernel/configs.c: make a variable static
This patch makes a needlessly global variable static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<agruen@suse.de> (05/01/30 1.1993)
kbuild: Dont include absolute filenames in binaries
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>
<sam@mars.ravnborg.org> (05/01/30 1.1992)
kbuild: Nicer printout when Module.symvers is missing
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<agruen@suse.de> (05/01/30 1.1991)
kbuild: Warn when building external modules without modversions
This adds a warning when building external modules (M= or SUBDIRS=
syntax) and there is no Module.symvers in the object tree. A missing
Module.symvers is a clear sign that the kernel tree itself was never
compiled. The resulting modules will work, but no symbol version
information will be attached to kernel symbols the module uses (because
that information comes from Module.symvers), and so the module will be
more unsafe.
Futhermore the external module will not record what other modules it is
depended on.
The test works with CONFIG_MODVERSIONS enabled or disabled.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/01/30 1.1990)
kbuild: add '--extra=+f' to ctags in Makefile in order to search for file names
From: John Kacur <jkacur@rogers.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<jkacur@rogers.com> (05/01/30 1.1989)
kbuild: (trivial) spelling fix in comment in Makefile
From: John Kacur <jkacur@rogers.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/01/29 1.1987)
kbuild: default value for INSTALL_PATH set to /boot
Most architectures uses /boot for there kernel image, so let this be reflected
by the kernel.
If INSTALL_PATH shell variable is set then this will have effect.
If INSTALL_PATH is set one the commanline to make like this:
make INSTALL_PATH=/nfs/boot install
then this will override both kbuild and shell variable.
If an arch prefer another default this must be set in the arch Makefile
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/01/29 1.1986)
kbuild arch/i386: make install no longer check vmlinux
make install is often executed as root or on a different mechine via NFS
To avoid updating vmlinux due to directory changes or similar the install target
for i386 no longer has vmlinux as a prerequisite.
Now modules_install and install are aligned in this respect.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
<sam@mars.ravnborg.org> (05/01/29 1.1985)
kbuild: Introdude KBUILD_NOCMDDEP
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>
<sam@mars.ravnborg.org> (05/01/29 1.1984)
kbuild: Makefile.lib - small cleanup
Combine duplicate code in two smaller 'functions'
Signed-off-by: Sam Ravnborg
<kaos@ocs.com.au> (05/01/10 1.1966.36.1)
kallsyms: gate page patch breaks module lookups
>Your recent patch looks to break module kallsyms lookups....
>It looks like if CONFIG_KALLSYMS_ALL is set then we never look up module
>addresses.
Separate lookups for kernel and modules when CONFIG_KALLSYMS_ALL=y.
Signed-off-by: Keith Owens <kaos@ocs.com.au>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BK PATCHES] kbuild updates
2005-03-10 21:58 [BK PATCHES] kbuild updates Sam Ravnborg
@ 2005-03-10 22:32 ` Adrian Bunk
2005-03-11 5:40 ` Sam Ravnborg
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2005-03-10 22:32 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton, linux-kernel
On Thu, Mar 10, 2005 at 10:58:04PM +0100, Sam Ravnborg wrote:
>...
> Full list below - the most important stuff:
>...
> o Use -Wno-pointer-sign for gcc 4.0
>...
> Except a few trivial things it has been in -mm for a while
> with no comments.
If this is the same version as in 2.6.11-mm2 (you didn't offer a GNU
patch so that I could check it), the following is still present:
http://www.ussg.iu.edu/hypermail/linux/kernel/0502.2/1507.html
> Sam
>...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BK PATCHES] kbuild updates
2005-03-10 22:32 ` Adrian Bunk
@ 2005-03-11 5:40 ` Sam Ravnborg
0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2005-03-11 5:40 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Linus Torvalds, Andrew Morton, linux-kernel
> If this is the same version as in 2.6.11-mm2 (you didn't offer a GNU
> patch so that I could check it), the following is still present:
>
> http://www.ussg.iu.edu/hypermail/linux/kernel/0502.2/1507.html
Thanks Adrian, I forgot about that one.
It is now fixed and pushed to bk://linux-sam.bkbits.net/kbuild
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-11 5:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 21:58 [BK PATCHES] kbuild updates Sam Ravnborg
2005-03-10 22:32 ` Adrian Bunk
2005-03-11 5:40 ` Sam Ravnborg
-- strict thread matches above, loose matches on Subject: below --
2004-11-07 19:37 [BK patches] " Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox