kbuild updates
PATCH 1/1 kbuild updates
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
[email protected], 2004-11-06 21:18:02+01:00, [email protected]
kconfig: fix xconfig and gconfig
Patch that disabled use of loadable modules broke qconf and gconf. Fixed by disabling this also for these targets.
scripts/kconfig/Makefile | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-)
[email protected], 2004-11-06 00:14:15+01:00, [email protected]
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
scripts/kernel-doc | 40 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 37 insertions(+), 3 deletions(-)
[email protected], 2004-11-06 00:07:44+01:00, [email protected]
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.,
Makefile | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
[email protected], 2004-11-06 00:05:44+01:00, [email protected]
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 Sam Ravnborg <[email protected]>
sound/core/info.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
[email protected], 2004-11-03 23:40:52+01:00, [email protected]
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(+)
[email protected], 2004-11-03 21:52:01+01:00, [email protected]
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).
scripts/gen_initramfs_list.sh | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-)
[email protected], 2004-11-03 21:51:06+01:00, [email protected]
kernel-doc: don't print ... twice in variadic functions
scripts/kernel-doc | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
[email protected], 2004-11-03 21:50:05+01:00, [email protected]
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".
scripts/kernel-doc | 100 ++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 73 insertions(+), 27 deletions(-)
[email protected], 2004-11-03 21:49:24+01:00, [email protected]
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.
scripts/kernel-doc | 46 ++++++++++++++++++++++++++++++---------------- 1 files changed, 30 insertions(+), 16 deletions(-)
[email protected], 2004-11-03 21:48:44+01:00, [email protected]
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.
arch/ppc/boot/lib/Makefile | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-)
[email protected], 2004-11-03 21:47:44+01:00, [email protected]
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.
scripts/kconfig/Makefile | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
[email protected], 2004-11-03 21:40:43+01:00, [email protected]
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.
Documentation/kbuild/makefiles.txt | 7 +++++-- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-)
[email protected], 2004-10-31 02:49:03+02:00, [email protected]
Re: More patches to arch/sparc/Kconfig [2 of 5]
Fixes typo in help in openpromfs.
From: Jim Nelson <[email protected]>
arch/sparc/Kconfig | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
[email protected], 2004-10-31 02:46:14+02:00, [email protected]
More patches to arch/sparc/Kconfig [4 of 5]
Makes sun4 default to "N" - most SPARC32 systems did not use these.
From: Jim Nelson <[email protected]>
arch/sparc/Kconfig | 1 + 1 files changed, 1 insertion(+)
[email protected], 2004-10-31 02:45:50+02:00, [email protected]
More patches to arch/sparc/Kconfig [5 of 5]
Fixes x86-specific bootloader help in printer config.
From: Jim Nelson <[email protected]>
arch/sparc/Kconfig | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
[email protected], 2004-10-31 02:45:26+02:00, [email protected]
More patches to arch/sparc/Kconfig [3 of 5]
Fixes x86-specific bootloader help in serial console.
From: Jim Nelson <[email protected]>
arch/sparc/Kconfig | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
[email protected], 2004-10-31 02:45:02+02:00, [email protected]
Patch to arch/sparc/Kconfig [1 of 5]
Fixes x86-specific help in SPARC32 SMP support help.
From: Jim Nelson <[email protected]>
arch/sparc/Kconfig | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-)
[email protected], 2004-10-31 02:23:45+02:00, [email protected]
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.
arch/i386/kernel/process.c | 5 +++-- arch/i386/kernel/traps.c | 4 ++-- sound/core/info.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-)
[email protected], 2004-10-31 02:05:58+02:00, [email protected]
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.
arch/arm/defconfig | 510 ----------------------------------------------- Makefile | 6 arch/arm/Makefile | 4 scripts/kconfig/Makefile | 5 4 files changed, 15 insertions(+), 510 deletions(-)
[email protected], 2004-10-31 01:38:28+02:00, [email protected]
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.
scripts/basic/fixdep.c | 8 ++++---- scripts/mod/modpost.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
[email protected], 2004-10-31 01:28:31+02:00, [email protected]
m32r: misc kbuild cleanups
o Remove unused LDFLAGS_BLOB assignement (from Brian Gerst)
o Use implicit rule for vmlinux.lds (from Al viro)
arch/m32r/Makefile | 1 - arch/m32r/boot/compressed/Makefile | 3 --- 2 files changed, 4 deletions(-)
[email protected], 2004-10-31 01:14:43+02:00, [email protected]
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.
scripts/kallsyms.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletion(-)
[email protected], 2004-10-31 00:18:21+02:00, [email protected]
kbuild: Documentation/kbuild/makefiles.txt: check_gcc -> cc-option
It's not good to show the obsolete check_gcc in an example.
Documentation/kbuild/makefiles.txt | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)
[email protected], 2004-10-31 00:16:03+02:00, [email protected]
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.
scripts/lxdialog/Makefile | 4 ++++ scripts/lxdialog/dialog.h | 3 +++ 2 files changed, 7 insertions(+)
[email protected], 2004-10-31 00:12:39+02:00, [email protected]
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
arch/ppc64/boot/Makefile | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)