Re: [kbuild-devel] Dynamically add objects to be built

2010-04-29 Thread Sam Ravnborg
First - posting to linux-kbuild will liekly get you more attention. The old list at sourceforge is no longer active. [From the bottom of your mail] If anyone can point me to the kbuild way of doing things, it would be greatly appreciated. Thanks! The kbuild philosofy is that you specify all .o

[kbuild-devel] kbuild mailing list has moved

2007-10-18 Thread Sam Ravnborg
: Sam Ravnborg M: [EMAIL PROTECTED] T: git kernel.org:/pub/scm/linux/kernel/git/sam/kbuild.git +L: [EMAIL PROTECTED] S: Maintained KERNEL JANITORS - This SF.net email is sponsored by: Splunk Inc. Still

Re: [kbuild-devel] kbuild mailing list has moved

2007-10-18 Thread Sam Ravnborg
On Thu, Oct 18, 2007 at 12:19:09PM +0200, Giacomo A. Catenazzi wrote: [added the owner of the old list] Thanks. I forgot initially and forwarded this message to mec. But the address I had were different. Sam - This

Re: [kbuild-devel] [patch] modpost problem when symbols move from one module to another

2007-10-18 Thread Sam Ravnborg
On Thu, Oct 11, 2007 at 04:40:10PM -0700, Trent Piepho wrote: The v4l-dvb tree recently renamed a module and this caused some problems with modpost creating incorrect module dependencies. This patch fixes that problem. It should be explained thoroughly in the patch description. modpost: Fix

[kbuild-devel] [RFT] kbuild: check asm symlink when building a kernel

2007-10-17 Thread Sam Ravnborg
We often hit the situation where the asm symlink in include/ points to the wrong architecture. In 9 out of 10 cases thats because we forgot to set ARCH but sometimes we just reused the same tree for another ARCH. For the merged x86 tree we need to create a new symlink but this is not obvious. So

Re: [kbuild-devel] [GIT PULL (updated)] kbuild updates

2007-10-16 Thread Sam Ravnborg
On Tue, Oct 16, 2007 at 11:11:01PM +0200, Markus Trippelsdorf wrote: Bisecting shows that: commit f77bf01425b11947eeb3b5b54685212c302741b8 Author: Sam Ravnborg [EMAIL PROTECTED](none) Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags

Re: [kbuild-devel] [PATCH v2] kbuild: save ARCH CROSS_COMPILE when building a kernel

2007-10-12 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 09:49:19PM +0200, Sam Ravnborg wrote: When building a kernel for a different architecture kbuild requires the user always to specify ARCH and CROSS_COMPILE on the command-line. Failing to do so can result in strange build errros especially when the asm symlink point

Re: [kbuild-devel] [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Mon, Oct 08, 2007 at 11:12:56PM +0200, Adrian Bunk wrote: On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: ... The settings are stored in the build directory in a file named Kbuild.config (should it be a .dot file?). ... A .dot file sounds better. I will make it .kbuild

Re: [kbuild-devel] [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 10:09:06AM -0400, Jeff Dike wrote: On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: If it is OK to drop the $(SUBARCH) assingment like this then yes. ARCH?= CROSS_COMPILE ?= Does the UML build still work when you do

[kbuild-devel] [PATCH v2] kbuild: save ARCH CROSS_COMPILE when building a kernel

2007-10-09 Thread Sam Ravnborg
if this is not the case. Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- This addressed the comments from Adrian and Andi. The file is now named .kbuild. And the dummy assignmnets are preserved (and commented). I plan to sneak this patch into the merge window if there are no complains - despite that I

[kbuild-devel] [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
One of the complaints that I continue to hear is that kbuild is lacking a way to 'remember' the ARCH and CROSS_COMPILE values originally used. Likewise we have people that change ARCH settings and get a lot of build errors due to asm symlink pointing at the wrong directory. This patch tries to

Re: [kbuild-devel] [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
What about, that this is the first ever prompt, that must be shown and written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more than one prompt 2) We need to share much more Kconfig* between the individual architectures First step is to let all

Re: [kbuild-devel] [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
2) We need to share much more Kconfig* between the individual architectures First step is to let all arch's use drivers/Kconfig 2) isn't terribly difficult, just takes some time and willingness of $arch maintainers to some changes, but please explain a bit more why it is needed...? A

[kbuild-devel] [PATCH] kbuild: move Kai Germaschewski to CREDITS

2007-10-06 Thread Sam Ravnborg
Kai Germaschewski to CREDITS Kai is not active in kernel development these days so give him credit for his major kbuild contribution and ISDN work. Acked-by: Kai Germaschewski [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- CREDITS |6 ++ MAINTAINERS |4 2

Re: [kbuild-devel] A bit of kconfig rewrite (Re: [PATCH] 9p: fix compile error if !CONFIG_SYSCTL)

2007-10-01 Thread Sam Ravnborg
Hi Oleg. Today's kconfig was proposed and accepted in a very unpleasant circumstances, has very poor design, development and no working alternative (for 5+ years now). I have read all your mails about this subject - but I still miss what is so bad about current design. Could you try to stay

Re: [kbuild-devel] [RFC] Extending kbuild syntax

2007-09-30 Thread Sam Ravnborg
On Sun, Sep 30, 2007 at 05:02:58AM +0200, Adrian Bunk wrote: On Sat, Sep 29, 2007 at 10:11:45PM +0200, Sam Ravnborg wrote: ... The second is the more controversial suggestion. In several Makefile we have simple if expression of the variants: if ($(CONFIG_FOO),y) obj-$(CONFIG_BAR

[kbuild-devel] kbuild update

2007-09-16 Thread Sam Ravnborg
' Giarrusso (1): kbuild: script to check for undefined Kconfig symbols Petr Stetiar (1): kbuild: fix segfault in modpost Ram Pai (1): kbuild: fix perl usage in export_report.pl Randy Dunlap (1): docproc: style typo cleanups Sam Ravnborg (10): kbuild: Use Elfnn_Half

Re: [kbuild-devel] Distributed configuration scheme by Linus at. al. (going back in time)

2007-09-16 Thread Sam Ravnborg
Hi Oleg. On Sun, Sep 16, 2007 at 03:12:48PM +0200, Oleg Verych wrote: Hallo, Sam. Can try to find exact wording/archives of the subject? http://www.uwsg.iu.edu/hypermail/linux/kernel/0202.1/2004.html Also, please describe what it was from your POV that time back. I'm not sure exactly what

Re: [kbuild-devel] Distributed configuration scheme by Linus at. al. (going back in time)

2007-09-16 Thread Sam Ravnborg
On Sun, Sep 16, 2007 at 05:40:00PM +0200, Oleg Verych wrote: On Sun, Sep 16, 2007 at 05:11:12PM +0200, Sam Ravnborg wrote: Hi Oleg. On Sun, Sep 16, 2007 at 03:12:48PM +0200, Oleg Verych wrote: Hallo, Sam. Can try to find exact wording/archives of the subject? http

Re: [kbuild-devel] [patch 01/03] kbuild, asm-values: infrastructure

2007-09-16 Thread Sam Ravnborg
Hi Oleg. On Wed, Jun 13, 2007 at 01:36:51AM +0200, Oleg Verych wrote: * header with widely used value definitions * handle all asm-related things in one file (Makefile.asm) * move some asm bits from Makefile.build there (rule %.s:%.c) * add script to generate

Re: [kbuild-devel] Rename asm-offsets tool or not? (Re: [patch 01/03] kbuild, asm-values: infrastructure)

2007-09-16 Thread Sam Ravnborg
On Sun, Sep 16, 2007 at 09:32:58PM +0200, Oleg Verych wrote: On Sun, Sep 16, 2007 at 08:29:12PM +0200, Sam Ravnborg wrote: Hi Oleg. Hallo. Nice, you are bringing it back. I'll try to have LKML-like output this time, not a makefile mess and stuff: [] I see no value in renaming from

Re: [kbuild-devel] [RFC] kbuild - introduce vdir to make life easier for x86_64

2007-09-11 Thread Sam Ravnborg
On Tue, Sep 11, 2007 at 12:40:41AM +0200, Andi Kleen wrote: The below are the minimal clean-up - a bit more could be done. Comments? Looks good in principle. My only suggestion would be to name it something differently than vdir. I know that's what GNU make calls it, but it's still

[kbuild-devel] [RFC] kbuild - introduce vdir to make life easier for x86_64

2007-09-10 Thread Sam Ravnborg
Hi Andi Thomas. One of the complaints raised about the current x86_64 Makfiles are the ugliness needed to reuse code from i386. Andi asked me if we could do something in kbuild to make this less ugly and below are the hack I could come up with. The trick is that in the Makefile we tell kbuild

[kbuild-devel] [PATCH 2/4] kbuild: enable 'make AFLAGS=...' to add additional options to AS

2007-09-09 Thread Sam Ravnborg
: make AFLAGS=... to specify additional gcc (as) commandline options. Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- Documentation/kbuild/makefiles.txt |5 +++-- Makefile |9 + arch/arm/Makefile |2 +- arch/arm/vfp/Makefile

[kbuild-devel] [PATCH 4/4] kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP

2007-09-09 Thread Sam Ravnborg
The variable CPPFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. This patch replace use of CPPFLAGS with KBUILD_AFLAGS all over the tree and enabling one to use: make CPPFLAGS=... to specify additional CPP commandline options. Signed-off-by: Sam Ravnborg

Re: [kbuild-devel] CONFIG_HOTPLUG_CPU: kconfig bug?

2007-08-27 Thread Sam Ravnborg
On Mon, Aug 27, 2007 at 03:54:49PM +0100, Hugh Dickins wrote: Hi Roman, I've noticed an oddity with CONFIG_HOTPLUG_CPU in 2.6.23-rc: make oldconfig seems to turn it on even when nothing wants it, increasing kernel size by about 10k; but if you then edit the line out of .config and make

Re: [kbuild-devel] [PATCH] kconfig: add *_silentdefconfig feature for config targets

2007-08-22 Thread Sam Ravnborg
- We seem to switch between using _() and not using it for strings; I'm assuming that we don't actually care about i18n in conf.c, and that the _() stuff was just copied from elsewhere. If that's not the case, I can update the patch to wrap strings properly. I try to

Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target

2007-07-21 Thread Sam Ravnborg
On Sat, Jul 21, 2007 at 06:03:00PM -0400, Mike Frysinger wrote: On 7/21/07, Sam Ravnborg [EMAIL PROTECTED] wrote: On Sat, Jul 21, 2007 at 03:21:43PM -0400, Mike Frysinger wrote: On 7/21/07, Oleg Verych [EMAIL PROTECTED] wrote: On Sat, Jul 21, 2007 at 04:27:31AM -0400, Mike Frysinger wrote

Re: [kbuild-devel] More effective processing (Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target)

2007-07-21 Thread Sam Ravnborg
On Sun, Jul 22, 2007 at 12:16:27AM +0200, Oleg Verych wrote: What do you think about this one? I want to propose to remove scripts/unifdef.c but to make clear policy about how to mark __KERNEL__ sections in header files. We know how obfuscated C can be, and this also applies to

Re: [kbuild-devel] Mucking with assembly files

2007-07-14 Thread Sam Ravnborg
On Tue, Jul 10, 2007 at 10:19:14AM -0700, H. Peter Anvin wrote: I seem to always be the one with the kbuild corner cases... As part of my x86 setup rewrite, there has been some concern that using asm(.code16gcc); isn't as safe as it should be (because of gcc reordering), and making it safe

Re: [kbuild-devel] help text on choices

2007-07-14 Thread Sam Ravnborg
On Tue, Jul 10, 2007 at 04:30:30PM -0500, Mike Frysinger wrote: ive always wondered about this but never got around to asking ;) is the help text on the top level choice supposed to be usable ? for example: choice prompt you [may] have a choice default YES help This

Re: [kbuild-devel] Mucking with assembly files

2007-07-14 Thread Sam Ravnborg
On Tue, Jul 10, 2007 at 09:46:25PM +0200, Oleg Verych wrote: On Tue, Jul 10, 2007 at 10:19:14AM -0700, H. Peter Anvin wrote: I seem to always be the one with the kbuild corner cases... As part of my x86 setup rewrite, there has been some concern that using asm(.code16gcc); isn't as safe

Re: [kbuild-devel] [patch 01/03] kbuild, asm-values: infrastructure

2007-06-14 Thread Sam Ravnborg
On Thu, Jun 14, 2007 at 09:41:43AM +0200, Oleg Verych wrote: Jun 13, 2007 at 01:36:51AM +0200, asm-values patch set: * header with widely used value definitions * handle all asm-related things in one file (Makefile.asm) * move some asm bits from Makefile.build there

Re: [kbuild-devel] Need opinions on asm-offsets cleanup (Re: [patch 01/03] kbuild, asm-values: infrastructure)

2007-06-14 Thread Sam Ravnborg
On Thu, Jun 14, 2007 at 01:16:21PM +0200, Oleg Verych wrote: On Thu, Jun 14, 2007 at 11:12:25AM +0200, Sam Ravnborg wrote: On Thu, Jun 14, 2007 at 09:41:43AM +0200, Oleg Verych wrote: Jun 13, 2007 at 01:36:51AM +0200, asm-values patch set: * header with widely used value

Re: [kbuild-devel] [patch] kbuild: remember ARCH in the object directory

2007-06-12 Thread Sam Ravnborg
On Tue, Jun 12, 2007 at 07:19:22PM +0200, Oleg Verych wrote: On Tue, Jun 12, 2007 at 09:12:09AM -0700, Randy Dunlap wrote: [] I did: # build a linux-2.6.22-rc4-git4 kernel source tree cd into it # mkdir BLD $ make ARCH=i386 O=BLD defconfig $ make -j4 O=BLD all BLD/bld.out 21

Re: [kbuild-devel] [patch] scripts: clean-whitespace.sh

2007-06-08 Thread Sam Ravnborg
On Thu, Jun 07, 2007 at 11:44:59PM -0700, Andrew Morton wrote: Then again, it's a better strategy than trying to read the code ;) Please, tell us what it does, so that we can decide whether we want it in Linux. It does the same as cleanfile.pl. I have seen no reason to replace cleanfile.pl

Re: [kbuild-devel] [patch] scripts: clean-whitespace.sh

2007-06-08 Thread Sam Ravnborg
On Fri, Jun 08, 2007 at 05:02:15PM +0200, Oleg Verych wrote: On Fri, Jun 08, 2007 at 04:28:49PM +0200, Sam Ravnborg wrote: On Thu, Jun 07, 2007 at 11:44:59PM -0700, Andrew Morton wrote: Then again, it's a better strategy than trying to read the code ;) Please, tell us what it does

Re: [kbuild-devel] Another version of cleanfile/cleanpatch (Re: [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines)

2007-06-06 Thread Sam Ravnborg
On Wed, Jun 06, 2007 at 07:45:56PM +0200, Oleg Verych wrote: While i'm against whitespace damaged files or patches since my very first patch, and don't like brain damaged programmer's tools called text editors, i also want to encourage UNIX-way of using userspace. Of course, i might be wrong

Re: [kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines

2007-06-05 Thread Sam Ravnborg
On Tue, Jun 05, 2007 at 09:33:35AM +0200, Oleg Verych wrote: Hallo. On Sun, Jun 03, 2007 at 10:47:00PM +0200, Sam Ravnborg wrote: Subject: [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines From: H. Peter Anvin [EMAIL PROTECTED] Date: Fri, 25 May 2007 17:58:26

[kbuild-devel] kbuild update

2007-06-03 Thread Sam Ravnborg
Short intro to content of kbuild.git at the moment. See http://git.kernel.org/?p=linux/kernel/git/sam/kbuild.git;a=summary Everything are targeted for next merge window. section mismatch kbuild: make better section mismatch reports on i386, arm and mips kbuild: The .paravirtprobe

[kbuild-devel] [PATCH 01/19] kbuild: asm-offsets.h is now cleaned with O=.. builds

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 01/19] kbuild: asm-offsets.h is now cleaned with O=.. builds From: Sam Ravnborg [EMAIL PROTECTED] Date: Mon, 28 May 2007 22:14:37 +0200 Reported by: Robert P. J. Day [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] Cc: Robert P. J. Day [EMAIL PROTECTED] --- Kbuild

[kbuild-devel] [PATCH 02/19] kbuild: make better section mismatch reports on i386, arm and mips

2007-06-03 Thread Sam Ravnborg
r_addend value. This patch is to adjust r_addend value, consulting with apply_relocate() routine in kernel code. Signed-off-by: Atsushi Nemoto [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts/mod/modpost.c | 85

[kbuild-devel] [PATCH 03/19] kbuild: New 'cc-fullversion' macro

2007-06-03 Thread Sam Ravnborg
] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts/Kbuild.include |7 ++- scripts/gcc-version.sh | 15 --- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 06c1a37..677bc6c 100644 --- a/scripts

[kbuild-devel] [PATCH 04/19] powerpc: Refuse to build 64-bit with GCC-4.2.0 and CONFIG_MODULES

2007-06-03 Thread Sam Ravnborg
] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- arch/powerpc/Makefile |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 6238b58..1447c83 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -202,6

[kbuild-devel] [PATCH 05/19] kbuild: document cc-fullversion

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 05/19] kbuild: document cc-fullversion From: Sam Ravnborg [EMAIL PROTECTED] Date: Mon, 28 May 2007 22:26:55 +0200 Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- Documentation/kbuild/makefiles.txt | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff

[kbuild-devel] [PATCH 06/19] kbuild: suppress modpost warnings for references from the .toc section as used by powerpc

2007-06-03 Thread Sam Ravnborg
, but that is much harder. Signed-off-by: Stephen Rothwell [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts/mod/modpost.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 760b2b3..f6bae03 100644

[kbuild-devel] [PATCH 07/19] kbuild: avoid environment to set variables used by kbuild

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 07/19] kbuild: avoid environment to set variables used by kbuild From: Sam Ravnborg [EMAIL PROTECTED] Date: Mon, 28 May 2007 22:47:48 +0200 A few of the variables used by kbuild has fixed naming. Make sure we do not pick up random values from the environment. Signed-off-by: Sam

[kbuild-devel] [PATCH 08/19] scripts: Make cleanfile/cleanpatch warn about long lines

2007-06-03 Thread Sam Ravnborg
from Auke Kok. Signed-off-by: H. Peter Anvin [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts/cleanfile | 54 ++- scripts/cleanpatch | 58 +-- 2 files changed, 107 insertions

[kbuild-devel] [PATCH 09/19] kconfig: use POSIX equality test in check-lxdialog.sh

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 09/19] kconfig: use POSIX equality test in check-lxdialog.sh From: Mike Frysinger [EMAIL PROTECTED] Date: Wed, 23 May 2007 21:37:45 -0400 The == operator is not in POSIX, so use -eq instead. Signed-off-by: Mike Frysinger [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL

[kbuild-devel] [PATCH 10/19] kbuild: add support for reading stdin with gen_init_cpio

2007-06-03 Thread Sam Ravnborg
PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- usr/gen_init_cpio.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index 8365db6..7abc07f 100644 --- a/usr/gen_init_cpio.c

[kbuild-devel] [PATCH 10/19] kbuild: add support for reading stdin with gen_init_cpio

2007-06-03 Thread Sam Ravnborg
PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- usr/gen_init_cpio.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index 8365db6..7abc07f 100644 --- a/usr/gen_init_cpio.c

[kbuild-devel] [PATCH 11/19] kbuild: add support for squashing uid/gid in gen_initramfs_list.sh

2007-06-03 Thread Sam Ravnborg
as arbitrary users (uClinux-dist). This adds a special squash keyword so you can do '-g squash -u squash' and have ownership squashed to root. Signed-off-by: Mike Frysinger [EMAIL PROTECTED] Cc: Sam Ravnborg [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] --- scripts

[kbuild-devel] [PATCH 12/19] kbuild: The .paravirtprobe section is obsolete, so modpost doesn't need to handle it

2007-06-03 Thread Sam Ravnborg
Fitzhardinge [EMAIL PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts/mod/modpost.c | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f6bae03..662deba 100644

[kbuild-devel] [PATCH 13/19] kbuild: ignore section mismatch warnings originating from .note section

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 13/19] kbuild: ignore section mismatch warnings originating from .note section From: Sam Ravnborg [EMAIL PROTECTED] Date: Tue, 29 May 2007 23:09:35 +0200 .note* sections are ELF notes, which are typically used by external tools to examine the kernel image. Since this is removed

[kbuild-devel] [PATCH 14/19] kbuild: refactor code in modpost to improve maintainability

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 14/19] kbuild: refactor code in modpost to improve maintainability From: Sam Ravnborg [EMAIL PROTECTED] Date: Sat, 2 Jun 2007 21:18:51 +0200 There were a great deal of overlap between the two functions that check which sections may reference .init.text and .exit.text. Factor out

[kbuild-devel] [PATCH 15/19] kbuild: warn about references from .init.text to .exit.text

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 15/19] kbuild: warn about references from .init.text to .exit.text From: Sam Ravnborg [EMAIL PROTECTED] Date: Sat, 2 Jun 2007 21:29:20 +0200 The .exit.text section may be discarded either at build or at runtime. So let modpost warn if this situation is detected. Signed-off

[kbuild-devel] [PATCH 16/19] kbuild: remove hardcoded apic_es7000 from modpost

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 16/19] kbuild: remove hardcoded apic_es7000 from modpost From: Sam Ravnborg [EMAIL PROTECTED] Date: Sun, 3 Jun 2007 00:05:10 +0200 Replace the hardcoded variable name apic_es7000 in modpost with a __initdata_refok marker. Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- arch

[kbuild-devel] [PATCH 17/19] kbuild: refactor code in modpost

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 17/19] kbuild: refactor code in modpost From: Sam Ravnborg [EMAIL PROTECTED] Date: Sun, 3 Jun 2007 00:41:22 +0200 Move more checks from whitelist to the section check functions Renumber the patterns. No functional changes. Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- scripts

[kbuild-devel] [PATCH 18/19] kbuild: remove hardcoded _logo names from modpost

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 18/19] kbuild: remove hardcoded _logo names from modpost From: Sam Ravnborg [EMAIL PROTECTED] Date: Sun, 3 Jun 2007 00:47:53 +0200 Replaced this with a __init_refok marker in front of fb_find_logo(). I think that the __initdata marker for the logo's are wrong but I have

[kbuild-devel] [PATCH 19/19] kbuild: whitelist references from variables named _timer to .init.text

2007-06-03 Thread Sam Ravnborg
Subject: [PATCH 19/19] kbuild: whitelist references from variables named _timer to .init.text From: Sam Ravnborg [EMAIL PROTECTED] Date: Sun, 3 Jun 2007 22:19:24 +0200 arm uses a lot of ops structures named *_timer that has legitimite references to .init.text. So let's add this variable

Re: [kbuild-devel] kbuild update

2007-06-03 Thread Sam Ravnborg
Hmm, the patch serie should have been chained. Sam - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to

Re: [kbuild-devel] [rfe] easier customization of kconfig for non-Linux projects

2007-05-24 Thread Sam Ravnborg
Hi Mike. Forwarding this to Roman Zippel which is the kconfig maintainer. The intent with this is clear but the solution you suggest albeit simple does not really match where we could end up with kconfig. Recently Roman added support for options in the kconfig language and I would assume we

Re: [kbuild-devel] [rfe] easier customization of kconfig for non-Linux projects

2007-05-24 Thread Sam Ravnborg
On Thu, May 24, 2007 at 09:23:40AM -0400, Mike Frysinger wrote: On Thursday 24 May 2007, Sam Ravnborg wrote: The intent with this is clear but the solution you suggest albeit simple does not really match where we could end up with kconfig. Recently Roman added support for options

Re: [kbuild-devel] vmlinux.lds not marked for update when building on OS X and changing config options

2007-05-22 Thread Sam Ravnborg
On Mon, May 21, 2007 at 05:08:23PM -0400, Mike Frysinger wrote: i'm not terribly familiar with the kconfig/kbuild system so i'm looking for some pointers so i can track down the root cause here ... some people like to cross-compile the Blackfin kernel on OS X hosts and we noticed that in

Re: [kbuild-devel] [PATCH] Fix mconf segmentation fault

2007-05-06 Thread Sam Ravnborg
On Sat, May 05, 2007 at 10:49:00PM +0200, Marcin Garski wrote: Hi, I have found small bug in mconf, when you run it without any argument it will sigsegv. Without patch: $ scripts/kconfig/mconf Segmentation fault With patch: $ scripts/kconfig/mconf can't find file (null)

Re: [kbuild-devel] [PATCH 1/2] kbuild: prepare for using code from different dir

2007-05-06 Thread Sam Ravnborg
On Sat, May 05, 2007 at 01:43:22PM -0700, H. Peter Anvin wrote: Sam Ravnborg wrote: This will likely appear in my kbuild.git tree but only when next mergewindow opens I think. My current batch (35 commits) has not yet been pulled and this would no see exposure in -mm first. Cool

[kbuild-devel] [PATCH 1/2] kbuild: prepare for using code from different dir

2007-05-05 Thread Sam Ravnborg
To introduce support for source in one directory but output files in another directory during a non O= build prefix all paths with $(src) repsectively $(obj). Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- This will likely appear in my kbuild.git tree but only when next mergewindow opens I

[kbuild-devel] [PATCH 2/2] newsetup: let x86_64 and i386 share same Makefile

2007-05-05 Thread Sam Ravnborg
Using the possibility to assing src to another dir we can now share the same code for i386 and x86_64 with output files located in the dir of the architecture. Signed-off-by: Sam Ravnborg [EMAIL PROTECTED] --- We could have avoided the arch/x86_64/boot/Makefile by changes all $(MAKE) invocations

Re: [kbuild-devel] Building out of a different source branch

2007-05-03 Thread Sam Ravnborg
On Thu, May 03, 2007 at 10:47:48AM -0700, H. Peter Anvin wrote: Hello, I would like to get rid of arch/x86_64/boot, which *should* be binary identical with arch/i386/boot (it's not right now, but I'm fixing that.) Is there a way to make Kbuild decend so that src=arch/i386/boot but

Re: [kbuild-devel] Override autoconf.h fixdep intelligence

2007-04-24 Thread Sam Ravnborg
On Tue, Apr 24, 2007 at 04:15:54PM +1000, John Williams wrote: Hello, Is there a sensible way of forcing a .c file to be explicitly dependent on autoconf.h, thus bypassing the CONFIG_ dependency intelligence built into fixdep? The easy trick is to add an explicit dependency on .config

Re: [kbuild-devel] make install with nfs root_squash

2007-04-19 Thread Sam Ravnborg
On Thu, Apr 19, 2007 at 10:59:23AM -0400, Frank Mori Hess wrote: On Wednesday 18 April 2007 16:39 pm, you wrote: Is there any reason that a make modules_install has to modify files in the source tree? This should not happen. (I do not know the root_squash option but that should not

Re: [kbuild-devel] make install with nfs root_squash

2007-04-18 Thread Sam Ravnborg
On Wed, Apr 18, 2007 at 03:27:53PM -0400, Frank Mori Hess wrote: Hi, I'm encountering some annoyances building (out-of-tree) modules on an NFS filesystem. The NFS filesystem is exported with the default root_squash option. When I build as a normal user, then su to root to do the final

Re: [kbuild-devel] thoughts on an official Kconfig maturity option

2007-04-12 Thread Sam Ravnborg
On Thu, Apr 12, 2007 at 11:35:21AM -0400, Robert P. J. Day wrote: rather than post to the LKML, is this the right forum to ask about implementing an actual maturity directive in the build infrastructure? thanks. Hi rday. No this is not the right forum for this question - lkml is a much

Re: [kbuild-devel] [PATCH] kbuild: move tags from ARCH and include/ ahead of drivers

2007-03-17 Thread Sam Ravnborg
On Thu, Jan 04, 2007 at 10:14:52AM -0800, Don Mullis wrote: Move tags extracted from the ARCH and include/ sub-trees ahead of those from device drivers, so that the former will appear first during searches. Saves user time during interactive searches for certain patterns that happen to

Re: [kbuild-devel] [PATCH 1/4] kconfig: implement setter/getter functions and change callback for sym_change_count

2006-10-06 Thread Sam Ravnborg
On Fri, Oct 06, 2006 at 08:44:29PM +0200, Karsten Wiese wrote: Just gave it a try and stumbled over already existing sym_set_changed(). find output (see below) shows the most hits for sym_change_count in confdata.c. So how about replacing sym_change_count by bool conf_dirty and

Re: [kbuild-devel] Problems with Kconfig

2006-09-13 Thread Sam Ravnborg
On Wed, Sep 13, 2006 at 03:57:11PM +0100, [EMAIL PROTECTED] wrote: Hello, I'm using gcc-2.95.3, libc2.2. I've using kernel 2.6.10 for quite a long time now, though it may have been after some upgrading that I cannot compile it anylonger. I have my own built linux system, and almost last

Re: [kbuild-devel] Converter from Config.in to Kconfig

2006-08-01 Thread Sam Ravnborg
On Mon, Apr 10, 2006 at 03:33:16PM -0500, Karicheri, Muralidharan wrote: Is there a generic script to convert from Config.in format to Kconfig format? I have a build system which was based on old Config.in and needs a converter badly. If you search this list or linux-kernel you will find

Re: [kbuild-devel] Kconfig source syntax - how to add a prefix variable to the Kconfig source path ?

2006-08-01 Thread Sam Ravnborg
I am working to build a Kconfig based configuration menu and I need to include a prefix variable to source command. How do I do this? Kconfig-language.txt doesn't explain this. Your response will be highly appreciated... Not supported today. I recall I did this some time ago but that

Re: [kbuild-devel] RFC - kconfig date must die

2006-07-01 Thread Sam Ravnborg
On Mon, Jun 26, 2006 at 04:04:24PM -0600, Jim Cromie wrote: IOW: can we switch the default of CONFIG_NODATESTAMP ? Clearly, somebody has already thought about stripping the date from .configs, but it seems to me that this has been forgotten, and warrants a fresh look. - I searched

Re: [kbuild-devel] [PATCH 1/1] Minor changes to allow static analysis checkers besides sparse

2006-07-01 Thread Sam Ravnborg
On Tue, May 23, 2006 at 03:57:23PM -0500, Dustin Kirkland wrote: On Tue, 2006-05-23 at 22:17 +0200, Sam Ravnborg wrote: On Tue, May 23, 2006 at 12:20:46PM -0500, Dustin Kirkland wrote: Minor changes to allow static analysis checkers besides sparse This patch allows CHECK

Re: [kbuild-devel] [PATCH 1/1] Minor changes to allow static analysis checkers besides sparse

2006-05-23 Thread Sam Ravnborg
On Tue, May 23, 2006 at 12:20:46PM -0500, Dustin Kirkland wrote: Minor changes to allow static analysis checkers besides sparse This patch allows CHECK and CHECKFLAGS to be passed in on the make invocation, such that one could specify a checker other than sparse, and/or different flags.

[kbuild-devel] Re: [PATCH] make: add modules_update target

2006-04-16 Thread Sam Ravnborg
On Sat, Apr 15, 2006 at 11:02:08AM -0400, Theodore Ts'o wrote: On Sat, Apr 15, 2006 at 10:40:58AM +0200, Sam Ravnborg wrote: The problem to be solved is the long time it takes to do make modules_install when working on a single module. Instead of bringing in more or less complex solutions

[kbuild-devel] Re: [PATCH] make: add modules_update target

2006-04-15 Thread Sam Ravnborg
On Fri, Apr 14, 2006 at 07:33:39PM -0500, Dustin Kirkland wrote: It looks like it may not be easy to drop in modules_update as a more efficient alternative to modules_install, but note that is not the patch that Kylie submitted... The problem to be solved is the long time it takes to do make

Re: [kbuild-devel] RE: Kconfig source syntax - how to add a prefix variable to the Kconfig source path ?

2006-04-10 Thread Sam Ravnborg
On Mon, Apr 10, 2006 at 03:30:26PM -0500, Karicheri, Muralidharan wrote: Hi, I am working to build a Kconfig based configuration menu and I need to include a prefix variable to source command. How do I do this? Kconfig-language.txt doesn't explain this. Your response will be highly

[kbuild-devel] Re: kbuild: Problem with latest GNU make rc

2006-03-05 Thread Sam Ravnborg
[linux-kernel added. Please keep both bug-make and linux-kernel] On Wed, Mar 01, 2006 at 10:46:25AM -0500, [EMAIL PROTECTED] wrote: Content-Description: message body text Hi all. I've set Reply-To: to the bug-make@gnu.org list; I'm hoping we can keep the discussion there since I don't

[kbuild-devel] Re: kbuild: Problem with latest GNU make rc

2006-03-05 Thread Sam Ravnborg
On Sun, Mar 05, 2006 at 05:21:08PM -0500, Paul D. Smith wrote: %% Sam Ravnborg [EMAIL PROTECTED] writes: sr I foresee a lot of mails to lkml the next year or more with this sr issue if kept. People do build older kernels and continue to do so sr the next long time. Especially

[kbuild-devel] Re: Does git belong in root's $PATH?

2006-01-07 Thread Sam Ravnborg
On Sat, Jan 07, 2006 at 10:31:52AM -0800, Linus Torvalds wrote: On Sat, 7 Jan 2006, walt wrote: When updated my kernel this morning, the same way I've been doing it for many months, I noticed that the -gxxx localversion string was missing from the new kernel's name. I finally

[kbuild-devel] Re: [PATCH 0/3] Link lxdialog with mconf directly

2005-12-16 Thread Sam Ravnborg
On Mon, Dec 12, 2005 at 09:08:17PM +0100, Petr Baudis wrote: Ok. I didn't want to pollute scripts/kconfig/ too much, but if it's ok by you, I can do it that way. I will submit another series later in the evening. I've just done the renaming and relevant updates. So you will deal with much

[kbuild-devel] Re: [PATCH 0/3] Link lxdialog with mconf directly

2005-12-12 Thread Sam Ravnborg
On Mon, Dec 12, 2005 at 01:41:59AM +0100, Petr Baudis wrote: The following series revives one three years old patch, turning lxdialog to a library and linking it directly to mconf, making menuconfig nicer and things in general quite simpler and cleaner. The first two patches make slight

[kbuild-devel] Re: [PATCH 0/3] Link lxdialog with mconf directly

2005-12-12 Thread Sam Ravnborg
On Mon, Dec 12, 2005 at 09:08:17PM +0100, Petr Baudis wrote: It is only 8 files and prefixing them with lx* would make them stand out compared to the rest. It is not like there is any user planned for the lxdialog functionality in the kernel, and kconfig users outside the kernel I beleive

[kbuild-devel] error about rp_filter

2005-08-05 Thread Sam Ravnborg
Hi Adrian. This is better suited for netdev, so I've forwarded your mail there. [It was originally sent to kbuild-devel] Sam On Fri, Aug 05, 2005 at 06:44:59PM +0300, Adrian Buciuman wrote: Hello, rp-filter is default off (see ip-sysctl.txt and proc.txt or test it), but comments in

[kbuild-devel] Re: [RFD] kconfig - introduce cond-source

2005-07-31 Thread Sam Ravnborg
On Sun, Jul 31, 2005 at 02:50:03AM +0200, Roman Zippel wrote: Hi, On Sun, 31 Jul 2005, Sam Ravnborg wrote: In a couple of cases I have had the need to include a Kconfig file only if present. The current 'source' directive works as one would expect. It bails out if the file is missing

[kbuild-devel] Re: kconfig: trivial cleanup

2005-07-28 Thread Sam Ravnborg
On Thu, Jul 28, 2005 at 05:56:25PM +0200, [EMAIL PROTECTED] wrote: Replace all menu_add_prop mimicking menu_add_prompt with the latter func. I've had to add a return value to menu_add_prompt for one usage. I've rebuilt scripts/kconfig/zconf.tab.c_shipped by hand to reflect changes in the

Re: [kbuild-devel] Doubt what is the difference of compiling module in SuSE and Redhad , Mandrake

2005-05-08 Thread Sam Ravnborg
On Fri, May 06, 2005 at 12:27:12PM -0700, karthik wrote: Hi , Can anybody tell me what is the difference in compiling a module in SuSE distribution and other LInux distribution like Redhad or Mandrake. In 2.6 kernel a module compiled in one version(say 2.6.4) of SuSE is

Re: [kbuild-devel] RE: kbuild-devel digest, Vol 1 #594 - 4 msgs

2005-05-08 Thread Sam Ravnborg
On Mon, May 09, 2005 at 10:03:21AM -0700, karthik r wrote: Hi , But the problem with me is that we cannot release the source code. That does not in any way prevent you from creating a Makefile according to text in modules.txt? Or is it so that you only have access to the .o file and no

Re: [kbuild-devel] Help in Makefile for Kernel module

2005-04-19 Thread Sam Ravnborg
Hi Suzzane However I would like to know if it is possible to have a Makefile inside the foobard directory that will link foobar1.o and foobar2.o into one say foobar.o and have the below line as: The lowest granularity the kbuild system works with is a module. So what you can do is to

Re: [kbuild-devel] How to convert a .o file to .ko module for 2.6 kernel

2005-03-14 Thread Sam Ravnborg
Hi, In Documentation/kbuild/ its only written how to make a .ko file from Source file.But i need to know to make a .ko file from a .o file not from source file. In modules.txt there is a section about including a .o file in a module. This is what you need. You cannot just randomly

Re: [kbuild-devel] Cannot compile linux-2.4.29

2005-02-06 Thread Sam Ravnborg
On Sun, Feb 06, 2005 at 02:56:55PM -0800, David Butcher wrote: Hello, I am able to compile (and run) linux-2.4.27 successfully. I downloaded the soruce for linux-2.4.29 from www.kernel.org on Feb 6 2005 and unpacked it in a directory adjacent to the built\d directory for 2.4.27 All

Re: [kbuild-devel] sorting out the kerntypes mess

2005-01-30 Thread Sam Ravnborg
Hi Christoph The various dumping projects like lkcd and the s390 VM dump require debug information for the kernel, and they're using a mechanism that compiles a small file containing nothing but includes for interesting types into a Kerntypes file for the debugger. Unfortunately the

[kbuild-devel] Re: [PATCH] make 'make help' show all *config targets and update descriptions slightly.

2005-01-30 Thread Sam Ravnborg
On Mon, Jan 24, 2005 at 10:05:48PM +0100, Jesper Juhl wrote: 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. Applied - the

  1   2   >