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

2007-10-09 Thread Oleg Verych
On Tue, Oct 09, 2007 at 06:17:43AM +0200, Sam Ravnborg wrote: 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 what occupying all my time now is to try

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

2007-10-08 Thread Oleg Verych
On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: 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. Yea, finally. What about, that this is the first ever prompt, that must be shown and

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

2007-10-06 Thread Oleg Verych
On Fri, Oct 05, 2007 at 04:35:41AM +0200, Roman Zippel wrote: Hi, On Mon, 1 Oct 2007, Oleg Verych wrote: 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). If you want to make

Re: [kbuild-devel] several small things (Re: [PATCH 0/4] Compile kernel with -fwhole-program --combine)

2007-09-20 Thread Oleg Verych
On Thu, Sep 20, 2007 at 06:51:45AM +0200, Sam Ravnborg wrote: [] There are several small things that are not addressed in todays implementation and that will be fixed one way or the other. Did they get addressed year later or not? What they were (are)? Nope. I have not visited the

[kbuild-devel] several small things (Re: [PATCH 0/4] Compile kernel with -fwhole-program --combine)

2007-09-19 Thread Oleg Verych
* Fri, 25 Aug 2006 09:26:54 +0200 read.o - read.c It will only do this if you ask for it. The question was what happened when you did make read.o foo.o - foo.c bar.o - bar.c built-in.o - read.c foo.c bar.c (cf. default current: built-in.o - read.o foo.o bar.o) And this

[kbuild-devel] spelld: several small things

2007-09-19 Thread Oleg Verych
On Thu, Sep 20, 2007 at 02:15:57AM +0200, Oleg Verych wrote: * Fri, 25 Aug 2006 09:26:54 +0200 read.o - read.c It will only do this if you ask for it. The question was what happened when you did make read.o foo.o - foo.c bar.o - bar.c built-in.o - read.c foo.c bar.c

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

2007-09-16 Thread Oleg Verych
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 doing library/history paper work now, before progressing in my design, you know. Happened to see

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

2007-09-16 Thread Oleg Verych
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://www.uwsg.iu.edu/hypermail/linux/kernel/0202.1/2004.html Also, please

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

2007-09-16 Thread Oleg Verych
On Sun, Sep 16, 2007 at 07:02:27PM +0200, Sam Ravnborg wrote: [] CML2 had all config in a single file IIRC. Kconfig has it distributed all over the tree. If you need more please elaborate a bit more. Ahh, i thought about another kind of distribution of configuration. Namely items, not files,

[kbuild-devel] moving to vger (Re: CPP includes ([PATCH 3/4] ia64: fix sn to add include files using EXTRA_CFLAGS))

2007-09-09 Thread Oleg Verych
On Mon, Sep 10, 2007 at 12:45:52AM +0200, Oleg Verych wrote: [] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

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

2007-08-29 Thread Oleg Verych
It's somewhat a side effect of using select and defaults, the order of the config symbols becomes significant for oldconfig, And the patch have a side effect or just buggy `diff -p` output :) [] -static void conf_askvalue(struct symbol *sym, const char *def) +static int conf_askvalue(struct

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

2007-07-21 Thread Oleg Verych
* Date: Tue, 17 Jul 2007 16:08:54 +0200 From: Mike Frysinger [EMAIL PROTECTED] The sed expression used at the moment in scripts/Makefile.headersinst relies on the (handy) GNU extension where you can escape ERE's in an otherwise BRE without using the GNU -r option. The following patch

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

2007-07-21 Thread Oleg Verych
On Sat, Jul 21, 2007 at 10:23:44AM +0200, Andreas Schwab wrote: Oleg Verych [EMAIL PROTECTED] writes: + -e s/[[:space:]]__user[[:space:]]\{1,\} substitute one or more ' __user ' Substitute ' __user' followed by one or more ' '. \{\} applies only to the last RE atom

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

2007-07-21 Thread Oleg Verych
On Sun, Jul 22, 2007 at 12:13:26AM +0200, Sam Ravnborg wrote: 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

Re: [kbuild-devel] arch/i386/boot rebuilt on every compile...

2007-07-17 Thread Oleg Verych
On Tue, Jul 17, 2007 at 10:27:22PM +0200, Sam Ravnborg wrote: On Tue, Jul 17, 2007 at 11:49:42AM -0700, H. Peter Anvin wrote: For some reason, everything in arch/i386/boot is rebuilt on every compile. It's not a huge time waster, but it has annoyed people enough that they ask me about it.

Re: [kbuild-devel] Mucking with assembly files

2007-07-10 Thread Oleg Verych
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] [patch 01/03] kbuild, asm-values: infrastructure

2007-06-14 Thread Oleg Verych
assembles output (hopefully better output, MIPS testing/joining to all arch probably needed) rfc-by: Oleg Verych --- So, is it another not so juicy lets-break-it-all stuff from me, or it just doesn't apply for you? I thought update all that asm-offsets stuff just like that. I

[kbuild-devel] Removing of dummy asm-offset files (Re: [patch 02/03] kbuild, asm-values: successor of asm-offsets)

2007-06-13 Thread Oleg Verych
[] +# legacy asm-offsets support (FIXME: convert all archs and remove this) +old = $(shell test -e $(srctree)/arch/$(ARCH)/kernel/asm-offsets.c echo yes) +ifeq ($(old),yes) +asm-values =asm-offsets +else +asm-values =asm-values One more test here, and files like |-*-

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

2007-06-12 Thread Oleg Verych
of the Makefile generating. Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- -o--=O`C /. .\ #oo'L O o ___=E M^-- Just lazy typing `make ARCH=i386` every time i want to check lguest. Makefile | 17 - scripts/mkmakefile | 42

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

2007-06-12 Thread Oleg Verych
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 and it cried to me: GEN

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

2007-06-12 Thread Oleg Verych
On Tue, Jun 12, 2007 at 08:09:57PM +0200, Sam Ravnborg wrote: [] If we go the save important parts of the config I prefer something along the suggestion by hpa with a config file. The config file should though be named along the lines of Kbuild.config and the syntax should be future proof. I

[kbuild-devel] [patch 02/03] kbuild, asm-values: successor of asm-offsets

2007-06-12 Thread Oleg Verych
Some asm-offsets files define not only offsets, thus make it clear. Legacy files are supported, but may be freely changed to new scheme. rfc-by: Oleg Verych --- If somebody agrees, of course. Kbuild | 68 --- 1 file

[kbuild-devel] [patch 00/03] kbuild, asm-values: not only offsets, not only for $ARCH

2007-06-12 Thread Oleg Verych
Version number zer0. -- -o--=O`C #oo'L O ___=E M - 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 get it

[kbuild-devel] [patch 03/03] kbuild, asm-values: private for lguest

2007-06-12 Thread Oleg Verych
A small example of how it can be used privately. rfc-by: Oleg Verych --- TODO: change lguest files to use it. drivers/lguest/Makefile |4 drivers/lguest/asm-values.c | 24 2 files changed, 28 insertions(+) Index: linux-2.6.22-rc4-mm2/drivers

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

2007-06-08 Thread Oleg Verych
After running this script with filename as parameter, look (with diff) for, what can be corrected. Only *.diff and *.patch files are handled as patches. Signed-off-by: Oleg Verych [EMAIL PROTECTED] -- Two clean rules added, that can change look of damaged lines. Yet script still fits one

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

2007-06-08 Thread Oleg Verych
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, so that we can decide whether we want it in Linux. It does

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

2007-06-08 Thread Oleg Verych
On Fri, Jun 08, 2007 at 09:05:54PM +0200, Sam Ravnborg wrote: [] It does better whitespace cleanup, than scripts/{cleanfile *and* cleanpatch} Made a short test here. Added the following to a file: static sam = ; clean-whitespace replaced spaces within with

Re: [kbuild-devel] Another version of cleanfile/cleanpatch

2007-06-07 Thread Oleg Verych
On Thu, Jun 07, 2007 at 04:19:56PM -0700, H. Peter Anvin wrote: Oleg Verych wrote: Because of that, i think, following is redundant: - to check for binary files find . -type f | xargs cleanfile What about patches? Anyway, by agreement (with myself), i've stopped on having per-file

Re: [kbuild-devel] Sunifdef

2007-06-07 Thread Oleg Verych
* From: David Woodhouse * Date: Thu, 24 May 2007 11:32:45 -0400 On Wed, 2007-05-23 at 13:29 +0100, Jonathan Underwood wrote: Dear Kernel list, I've noticed in the past that unifdef is used in kernel package building. I wonder if you're aware of a maintained and more featureful program,

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

2007-06-06 Thread Oleg Verych
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 and foolish. Anyway, what i'm trying to do is not to become new

Re: [kbuild-devel] Another version of cleanfile/cleanpatch

2007-06-06 Thread Oleg Verych
On Wed, Jun 06, 2007 at 07:50:26PM +0200, Sam Ravnborg wrote: [] Many things in XXI century still can be done by tools founded 20-30 years ago. Why not try to? Because your shell script is unreadable by normal human beings[*] while the perl script for people with a bit of perl fu can read

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

2007-06-05 Thread Oleg Verych
On Tue, Jun 05, 2007 at 10:19:59AM +0200, Sam Ravnborg wrote: [] So, there are some new scripts. What if my proposition will be better, so to speak? Any problems i'm willing to fix/enhance. Note: only one copy of the file required. Sym-linked name *diff* or *patch* will process patches.

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

2007-06-05 Thread Oleg Verych
On Tue, Jun 05, 2007 at 04:12:54PM +0200, Sam Ravnborg wrote: On Tue, Jun 05, 2007 at 03:38:34PM +0200, Oleg Verych wrote: On Tue, Jun 05, 2007 at 10:19:59AM +0200, Sam Ravnborg wrote: [] If on the other hand you are proposing a script to clean whitespace damage in the code then git

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

2007-06-05 Thread Oleg Verych
On Tue, Jun 05, 2007 at 04:57:59PM +0200, Oleg Verych wrote: [] expand | while read line do case $line in ++*) echo $line;; $p*) [ ${#line} -gt $w79 ] : ${long:=line} echo $line | sed /^$p/{s_ *\$__;s_^$p$s7${s}_$p${t}_;s_$s7 _${t}_g} ;; *) echo $line

[kbuild-devel] [request for testing] kbuild: improving option checking

2007-01-24 Thread Oleg Verych
. Feature: file $(objtree)/null isn't in any clear target (yet). Cc: Roman Zippel [EMAIL PROTECTED] Cc: Sam Ravnborg [EMAIL PROTECTED] Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- -o--=O`C #oo'L O ___=E M --- linux~2.6.20-rc5/scripts/Kbuild.include~blackhole-4-tmpfiles 2007-01-12 19:54

[kbuild-devel] spelling of Kbuild.include (Re: [request for testing] kbuild: improving option checking)

2007-01-24 Thread Oleg Verych
On Wed, Jan 24, 2007 at 05:37:00AM -0500, Robert P. J. Day wrote: On Wed, 24 Jan 2007, Oleg Verych wrote: kbuild: improving option checking ... --- linux~2.6.20-rc5/scripts/Kbuild.include~blackhole-4-tmpfiles 2007-01-12 19:54:26.0 +0100 +++ linux~2.6.20-rc5/scripts

Re: [kbuild-devel] spelling of Kbuild.include (Re: [request for testing] kbuild: improving option checking)

2007-01-24 Thread Oleg Verych
24-01-2007, Robert P. J. Day: On Wed, 24 Jan 2007, Oleg Verych wrote: [] -# Convinient variables +# Convinient constants ^^ Convenient Kind of testing i never expected. um ... it wasn't testing, just a trivial observation. happens on the LKML all the time

[kbuild-devel] [patch] kbuild: create KBUILD_OUTPUT

2007-01-23 Thread Oleg Verych
kbuild: create KBUILD_OUTPUT When requesting build to another directory, try to create it first. Cc: Sam Ravnborg [EMAIL PROTECTED] Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- ,-*- bash -*- |[EMAIL PROTECTED]:~/kernel.org/_work/src/linux-2.6.20-rc5$ |[EMAIL PROTECTED]:~/kernel.org/_work

[kbuild-devel] [patch] kbuild: fix tilded non backup files in localversion files

2007-01-23 Thread Oleg Verych
Blank [EMAIL PROTECTED] Cc: Sam Ravnborg [EMAIL PROTECTED] Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- Original report and fix by Bastian Blank: The following patch fixes the problem that localversion files where ignored if the tree lives in a path which contains a ~. It changes the test

[kbuild-devel] [patch] Makefile: cancel implicit rules on included and top makefiles.

2006-11-12 Thread Oleg Verych
`make -d help | grep Makefile` shows patterns, where make tries to rebuild included and top makefiles. Do not let make to do so, by canceling implicit rules on this files. This must apply for all kinds of top makefiles's targets: *config, *build. Signed-off-by: Oleg Verych [EMAIL PROTECTED

[kbuild-devel] [patch 03/04, rfc] cancel implicit rules on included and top makefiles.

2006-11-12 Thread Oleg Verych
`make -d help | grep Makefile` shows patterns, where make tries to rebuild included and top makefiles. Do not let make to do so, by canceling implicit rules on this files. This must apply for all kinds of top makefiles's targets: *config, *build. Signed-off-by: Oleg Verych [EMAIL PROTECTED

[kbuild-devel] [patch 01/02] kbuild: tabify and strip trailing whitespaces

2006-11-12 Thread Oleg Verych
Tabify and strip trailing whitespaces. Cc: Sam Ravnborg [EMAIL PROTECTED] Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- (... or open/save/close in GNU Emacs. Linus and all friends, editing this file, doesn't seem to use decent editor, he-he; khm, sorry ;) As i was beginner, i wanted

[kbuild-devel] [patch 00/02] kbuild: fix-make-rR-is-now-default-commit

2006-11-12 Thread Oleg Verych
-- This is replacement for + makefile-cancel-implicit-rules-on-included-and-top-makefiles.patch +added to -mm tree -o--=O`C #oo'L O ___=E M - Using Tomcat but need to do more? Need to support web services, security?

[kbuild-devel] [patch 02/02] kbuild: fix-rR-is-now-default

2006-11-12 Thread Oleg Verych
PROTECTED] Signed-off-by: Oleg Verych [EMAIL PROTECTED] --- This one was submitted in hope, that it can be small and useful for .19. It was quied in -mm, this is update. Makefile | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) Index: linux-2.6.19-rc3/Makefile

Re: [kbuild-devel] Link lib to a kernel module

2006-10-25 Thread Oleg Verych
On 2006-10-25, Matthias Fechner wrote: [] Makefile: KDIR:= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) there's $(CURDIR), just in case... - Using Tomcat but need to do more? Need to support web

Re: [kbuild-devel] Link lib to a kernel module

2006-10-24 Thread Oleg Verych
Hallo, Matthias. On 2006-10-24, Matthias Fechner wrote: I tried today to link a lib (.a) to my kernel module but I could not found howto do it. `Documentation/kbuild' directory in your linux sources. `makefiles.txt' about `lib-y', `modules.txt' about modules. Good luck.

[kbuild-devel] [patch, rfc] kbuild: implement checksrc without building Cources (was Re: CHECK without C compile?)

2006-10-24 Thread Oleg Verych
with the C compiler? As far as i can see, no, there isn't. I have thing to propose, but something with generated header files will not work yet (e.g kernel/config_data.h). Patch is rfc, of course. --- From: Oleg Verych [EMAIL PROTECTED] Subject: [patch, rfc] kbuild: implement checksrc without building

Re: [kbuild-devel] [patch, rfc] kbuild: implement checksrc without building Cources (was Re: CHECK without C compile?)

2006-10-24 Thread Oleg Verych
On 2006-10-24, Oleg Verych wrote: On 2006-10-23, Randy Dunlap wrote: Hi Sam, * It seems* + $(call if_changed_rule,cc_o_c) || \ + { echo $(@:.o=.ko); echo $@; } $(MODVERDIR)/$(@F:.o=.mod) This doesn't work, use ifs instead. Updated. I have no idea what to do with generated sources