[kbuild-devel] kbuild 2.5 menuconfig

2001-12-02 Thread Sam Ravnborg
I have started using of kbuild recently, latest on top of vanilla 2.4.16. Executing make -f Makefile-2.5 menuconfig gave me a few suprises. 1) The 'old-style' way to call GCC and friends was used, displaying a verbose list of options. 2) When menuconfig completed I was asked next to run make

Re: [kbuild-devel] Your opinion on CML2 and kbuild-2.5

2002-02-15 Thread Sam Ravnborg
On Fri, Feb 15, 2002 at 11:22:00AM +0100, Giacomo Catenazzi wrote: [Not a single word about the battle ongoing at LKLM...] kbuild-2.5: It does the right things! And this should be enought to tell you that it should be included in the next kernels. When Keith brought up the inclusion of

[kbuild-devel] [PATCH] kbuild: Remove 2048 symbol limit in tkparse

2002-05-31 Thread Sam Ravnborg
tkparse limit the number of symbols to 2048. This patch makes the array dynamic avoiding this problem in the future. The problem showed up in one of the powerpc tree's. Credit for this patch goes to Keith Owens, I just extracted it from kbuild-2.5. Sam --- tkparse.h.orig Fri May

[kbuild-devel] [PATCH] kbuild: Allow strings with special characters in config file

2002-05-31 Thread Sam Ravnborg
Escape double quotes on eval so the quotes are still there on the second evaluation. This is required to handle strings with special characters. Credit for this patch goes to Keith Owens, I simply extracted it from kbuild-2.5. Sam --- Menuconfig.orig Fri May 31 21:55:40 2002 +++

Re: [kbuild-devel] Some feedback on using kbuild

2002-06-23 Thread Sam Ravnborg
On Mon, Jun 24, 2002 at 12:41:28AM +0200, Arnd Bergmann wrote: Why do you see so much added value in kbuild support for shadow trees compared to what a proper SCM tool give you? For my (linux on s390) purpose, shadow trees are the most important feature of kb25, because they allow us to

[kbuild-devel] Re: [PATCH] kconfig: menuconfig and config uses $objtree

2002-06-29 Thread Sam Ravnborg
On Sat, Jun 29, 2002 at 11:50:41AM +1000, Keith Owens wrote: What happens when you want to support multiple source trees? Nothing! Your approach prevents the use of multiple source trees, either shadow or separate (add on) code and breaks kbuild 2.5. My approach puts all the complexity

[kbuild-devel] Re: [patch] config language dep_* enhancements

2002-08-13 Thread Sam Ravnborg
On Tue, Aug 13, 2002 at 01:23:19PM +1000, Greg Banks wrote: 977missing-experimental-tag 113spurious-experimental-tag 145variant-experimental-tag 30 inconsistent-experimental-tag 13 missing-obsolete-tag 41 spurious-obsolete-tag 25 variant-obsolete-tag How about

[kbuild-devel] Get rid of shell based Config.in parsers?

2002-08-14 Thread Sam Ravnborg
On Wed, Aug 14, 2002 at 10:22:55AM +1000, Greg Banks wrote: The trouble is actually achieving that in shell-based parsers where shell code cannot tell whether $CONFIG_EXPERIMENTAL has been used in a condition. Where comes the requirement that we shall keep the existing shell based config

Re: [kbuild-devel] Re: [patch] config language dep_* enhancements

2002-08-19 Thread Sam Ravnborg
On Mon, Aug 19, 2002 at 07:27:50PM +1000, Greg Banks wrote: I'm not optimistic that a switch to a new language or even a new parser for the old language will ever happen. I asked Linus specifically about the replacement of the shell based parsers. The answer were quite simple: - It should be

Re: [kbuild-devel] linux kernel conf 0.3

2002-09-04 Thread Sam Ravnborg
On Tue, Aug 27, 2002 at 02:24:40AM +0200, Roman Zippel wrote: To install simply run 'make install KERNELSRC=..' and to uninstall 'make uninstall KERNELSRC=..', only 'make [oldconfig|config|menuconfig| xconfig]' is implemented right now, but the rest is easy to do. I tested it only against

Re: [kbuild-devel] linux kernel conf 0.3

2002-09-06 Thread Sam Ravnborg
On Fri, Sep 06, 2002 at 03:45:45PM +1000, Greg Banks wrote: It seemed easy to add a check to gcml2 for if statements beginning and ending in the same file, so last night I did it. The result is... zero such cases in 2.5.33. The idea popped up when I noticed the missing endmenu in the

[kbuild-devel] Re: linux kernel conf 0.7

2002-09-28 Thread Sam Ravnborg
On Sat, Sep 28, 2002 at 04:25:43PM +0200, Roman Zippel wrote: Hi, At http://www.xs4all.nl/~zippel/lc/ you can find the latest version of the new config system. Played with 0.7.1 just a little. Looks good so far. 1) Old tools zapped file: tags around filenames. An issue (which was also

[kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-03 Thread Sam Ravnborg
On Wed, Oct 02, 2002 at 09:59:00PM -0500, Kai Germaschewski wrote: Hi, I'd appreciate to get comments on the appended patch. It's mostly cleanups and the like, but the interesting part is the last cset, which is actually fairly small: Tried out what I pulled from linux-2.5.make 1)

Re: [kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-03 Thread Sam Ravnborg
On Thu, Oct 03, 2002 at 09:26:18PM +0200, Sam Ravnborg wrote: Hmmm, was the stuff present at bkbits incomplete? Just checked, yes the attached patch was never. And fixes I think all the above. A new round of testing needed Sam

[kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-03 Thread Sam Ravnborg
On Wed, Oct 02, 2002 at 09:59:00PM -0500, Kai Germaschewski wrote: Hi, I'd appreciate to get comments on the appended patch. -obj-$(CONFIG_ACPI_INTERPRETER) := $(patsubst %.c,%.o,$(wildcard *.c)) +obj-y := dsfield.o dsmthdat.o dsopcode.o dswexec.o dswscope.o \ + dsmethod.o

[kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-03 Thread Sam Ravnborg
On Thu, Oct 03, 2002 at 10:01:20PM +0200, Sam Ravnborg wrote: Now it's testing time.. 1) In order to make it link I had to change the following in rules.make: # If the list of objects to link is empty, just create an empty O_TARGET cmd_link_o_target = $(if $(strip $(obj-y

[kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-03 Thread Sam Ravnborg
On Thu, Oct 03, 2002 at 03:38:22PM -0500, Kai Germaschewski wrote: On Thu, 3 Oct 2002, Sam Ravnborg wrote: On Thu, Oct 03, 2002 at 10:01:20PM +0200, Sam Ravnborg wrote: Now it's testing time.. [...] You must be missing some of the changes (My first push to bkbits was incomplete

[kbuild-devel] Re: RfC: Don't cd into subdirs during kbuild

2002-10-04 Thread Sam Ravnborg
On Thu, Oct 03, 2002 at 03:38:22PM -0500, Kai Germaschewski wrote: You must be missing some of the changes (My first push to bkbits was incomplete, since I did inadvertently edit Makefile without checking it out, I do that mistake all the time...). It's fixed in the current repo. Did a pull

[kbuild-devel] Re: linux kernel conf 0.8

2002-10-09 Thread Sam Ravnborg
On Wed, Oct 09, 2002 at 02:01:50PM +0200, Roman Zippel wrote: On Tue, 8 Oct 2002, Linus Torvalds wrote: Some things made me go eww (but on the whole details): - I'd prefer the Config.in name, since this has nothing to do with building, and everything to do with configuration.

[kbuild-devel] Re: linux kernel conf 0.8

2002-10-09 Thread Sam Ravnborg
On Wed, Oct 09, 2002 at 11:47:16AM -0700, Linus Torvalds wrote: On Wed, 9 Oct 2002, Sam Ravnborg wrote: ls rrunner* should show me not only the implementation [.c + .h] but also the configuration. I agree with you, but only if we _always_ have one config file per driver. Which

[kbuild-devel] Re: linux kernel conf 0.8

2002-10-09 Thread Sam Ravnborg
On Wed, Oct 09, 2002 at 12:28:44PM -0700, Randy.Dunlap wrote: The kernel would still have the text-mode configurator. The way I read the original post by Christoph Hellwig - nope. If the kernel config library is outside the kernel then the text-mode versions will fail as well. Recall that the

[kbuild-devel] Re: linux kernel conf 0.8

2002-10-10 Thread Sam Ravnborg
[cc: trimmed] On Thu, Oct 10, 2002 at 10:18:06AM -0400, Jeff Garzik wrote: Personally I don't care about Config dependency checking... they are not modified often enough to affect me, and even if they did, dependency checking based on changes to Config files can get ugly, AFAICS. I just

[kbuild-devel] Re: linux kernel conf 0.8

2002-10-10 Thread Sam Ravnborg
On Thu, Oct 10, 2002 at 01:32:11PM -0400, Jeff Garzik wrote: The kernel is written for people with a clue. For people without a clue, they should use a vendor kernel or ESR's Aunt-Tillie-friendly system. Dumbing-down the kernel is never the right answer. Well I'm not talking about

Re: [kbuild-devel] [upatch] tweak for !KBUILD_VERBOSE output

2002-11-03 Thread Sam Ravnborg
On Sun, Nov 03, 2002 at 10:58:26AM -0600, Peter Samuelson wrote: With !KBUILD_VERBOSE output, you can't tell whether a CC or LD line is for a module or for the kernel proper. Sure, most people probably don't care, but *I* do. Hence this patch. Output: CC vmlinux-object.o CC

[kbuild-devel] Re: [PATCH] [kbuild] Possibility to sanely link against off-directory .so

2002-11-06 Thread Sam Ravnborg
On Wed, Nov 06, 2002 at 07:52:30PM +0100, Petr Baudis wrote: Hello, this patch (against 2.5.46) introduces two special variables which make it actually possible to have .so as the only product of build in some directory and to link something against .so being built in another directory.

[kbuild-devel] [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
Based on some initial work by Kai Germaschewski I have made a working prototype of separate obj/src tree. Usage example: #src located in ~/bk/linux-2.5.sepobj mkdir ~/compile/v2.5 cd ~/compile/v2.5 sh ../../kb/v2.5/kbuild Prints out: SRCTREE=/home/sam/bk/linux-2.5.sepobj

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: I have a question; What problem is this supposed to solve? Two problems (at least): 1) You want to compile your kernel based on two different configurations, but sharing the same src. No need to have a duplicate of all src. -

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 12:31:15PM -0800, Larry McVoy wrote: It can be really nice to maintain a bunch of different architectures at the same time from the same tree. It also makes it really easy to clean a tree. On the other hand, I do wonder whether ccache could be used to get the same

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 03:46:28PM -0500, Richard B. Johnson wrote: Different configurations are handled with different .config files. And different .config files results in different kernels. Please note that .config files are also located in OBJTREE. Cosider something like the following:

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 02:48:09PM -0600, Kai Germaschewski wrote: Wrt the original patch, I like it, one preliminary comment is that I think symlinks are nicer than copying. They are faster, shouldn't cause any trouble on NFS, make uses stat and not lstat, so it gets the timestamps right,

[kbuild-devel] Re: Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 02:51:54PM -0600, Brian Jackson wrote: Sam Ravnborg writes: I wonder how hard it would be to do this for other files types. It would be sort of handy to be able to copy a single file out of the source tree into the build tree, and have the build use the copy

Re: [kbuild-devel] Need General Information

2003-01-10 Thread Sam Ravnborg
On Tue, Jan 07, 2003 at 02:07:21PM -0800, John van V. wrote: Hi, I have been compiling kernels for a branch of a security project called Devil-Linux, also on sourceforge. It has been a hit or miss process for me. Unlike GNU compliant software compiles, I have been unable to standardize

Re: [kbuild-devel] Converter cml1-kconfig?

2003-01-12 Thread Sam Ravnborg
On Sun, Jan 12, 2003 at 10:31:05AM -0800, John van V. wrote: Hello, could you please give me an over view of what this all does... Could you please be a bit more specific in your questions. Do you request info about hte cml1 - Kconfig converter, or just Kconfig itself? Kconfig is a simple

Re: [kbuild-devel] Converter cml1-kconfig?

2003-01-13 Thread Sam Ravnborg
On Sun, Jan 12, 2003 at 05:47:53PM +0100, Robert Schwebel wrote: Hi, is a standalone converter script from cml1 to kconfig still available somewhere? I remember having read that there was one during the 2.5 inclusion. Digged up this URL: http://www.xs4all.nl/~zippel/lc/ Sam

[kbuild-devel] kbuild-devel is dead? [Was: Suggestion for addition to the root Makefile]

2003-03-01 Thread Sam Ravnborg
On Sat, Mar 01, 2003 at 02:59:06PM -0600, Michael Elizabeth Chastain wrote: BTW I think this list is nearly dead. Agree. One reason for this is that a couple of times when new stuff has been ready for inclusion, Linus complained that it was developed in a 'closed forum' - and he wants public

Re: [kbuild-devel] Problems with make menuconfig of linux2.6.0-test5

2003-09-17 Thread Sam Ravnborg
On Sat, Sep 13, 2003 at 08:56:36PM +0200, Martin Schaffner wrote: 4) I can't invoke make menuconfig if I don't have write access to the linux kernel directory (useful to just look at a configuration of a write-protected source tree) When the patch to enable separate output directory is

Re: [kbuild-devel] make -j2 doesn't work anymore

2003-10-12 Thread Sam Ravnborg
On Thu, Oct 09, 2003 at 11:33:39AM -0400, Burton Windle wrote: Hello. It seems that if you build your kernel with simply 'make -j 2' instead of 'make -j 2 bzImage', the make system only uses one process instead of the number specified (I only see one cpp process, and the build takes twice as

Re: [kbuild-devel] Compile line output

2003-10-23 Thread Sam Ravnborg
On Thu, Oct 23, 2003 at 01:39:46PM -0400, Aamir Rashid wrote: Hi Folks, A couple of basic question(s) regarding kbuild-2.5: 1) With the default kbuild-2.5, my kernel compile line is something like: CC drivers/block/loop.o CC drivers/block/nbd.o CC drivers/net/tulip/eeprom.o CC

Re: [kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-24 Thread Sam Ravnborg
On Mon, Oct 20, 2003 at 11:44:28AM -0700, Adam Litke wrote: I am working on a patch which requires all .c files to be compiled with the -pg option. However, there are two specific files for which -pg must not be used. Below is the current way I am accomplishing this. Hi Adam. I have tried to

Re: [kbuild-devel] missing features in 2.6 arch/ppc64/boot/Makefile

2003-10-24 Thread Sam Ravnborg
On Thu, Oct 16, 2003 at 05:07:54PM +0200, Olaf Hering wrote: Hello, the 2.6 arch/ppc64/boot/Makefile misses 2 features from 2.4. Unfortunately, they are not yet part of the main 2.4 tree. I attach the Makefile for reference. I cant figure out how to add these 2 things to 2.6. Which of the

Re: [kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-24 Thread Sam Ravnborg
On Fri, Oct 24, 2003 at 12:56:55PM -0700, Adam Litke wrote: On Fri, 2003-10-24 at 11:39, Sam Ravnborg wrote: Any chance the last two files can be compiled with -pg also with a few changes? I do not see why debugging info can harm here. Functions inside files compiled with -pg get

Re: [kbuild-devel] Makefile INSTALL_MOD_PATH

2003-10-31 Thread Sam Ravnborg
On Fri, Oct 31, 2003 at 10:12:42AM -0500, PDock wrote: Not being a rpm user I have been using the command line O= option. Please give consideration to the following modification to the linux-2.6 makefile: # OK, Make called in directory where kernel src resides # Do we want to locate output

Re: [kbuild-devel] using source files from other directories

2003-11-09 Thread Sam Ravnborg
On Sun, Nov 09, 2003 at 06:45:28PM +0100, Andi Kleen wrote: Hallo, The x86-64 port is reusing several source files from the i386 port. Originally in 2.4 this was done using symlinks created in the Makefile; but that was changed in 2.6 when the separate obj directory support was added.

Re: [kbuild-devel] Kernel 2.6 small typo in top level README

2004-01-18 Thread Sam Ravnborg
On Fri, Jan 16, 2004 at 04:20:36PM -0500, ezra peisach wrote: If this is the incorrect place, I am sorry - but this is the closest I could find make modules_install not install_modules.. Thanks for the reminder, I will push a patch when Linus returns. Sam

Re: [kbuild-devel] UML make -j problem

2004-01-19 Thread Sam Ravnborg
On Mon, Jan 19, 2004 at 11:00:15AM +0100, Ingo Molnar wrote: one problem the UML build has in 2.6 is that 'make -j' does not work after a 'make clean'. The problem is the building of two binaries in arch/um/util/, which needs the kbuild infrastructure but which tools are also used for the

Re: [kbuild-devel] linux 2.6.1 - ide.ko has unresolved symbols if compiled as module

2004-01-21 Thread Sam Ravnborg
On Mon, Jan 19, 2004 at 09:34:09AM +0100, Stefan Bergler wrote: I tried to selelct / compile the ide part as module within the kernel, with only CD-Rom support. 'make all' worked fine. Building IDE as a module has been known broken for some time now. It should be OK in 2.6.2-rc1, Bartomlej (the

Re: [kbuild-devel] Query regarding extra-y targets

2004-01-21 Thread Sam Ravnborg
On Wed, Jan 21, 2004 at 12:13:06PM +0530, Hariprasad Nellitheertha wrote: The problem with this is that the target is not built when we build LKCD as a module, as CONFIG_CRASH_DUMP is set to m. I read the kbuild documentation and there does not seem to be anything equivalent to extra-y when

Re: [kbuild-devel] linux 2.6.1 - ide.ko has unresolved symbols if compiled as module

2004-01-21 Thread Sam Ravnborg
On Wed, Jan 21, 2004 at 05:44:26PM -0500, Michael Elizabeth Chastain wrote: Sam Ravnborg writes: Today Kai Germaschewski and I are kbuild maintainers, which is also listed in 2.6.2-rc1 MAINTAINERS. Right. I still spam-filter the kbuild-devel mailing list, but that's the extent of my

Re: [kbuild-devel] linux 2.6.1 - ide.ko has unresolved symbols if compiled as module

2004-01-27 Thread Sam Ravnborg
On Tue, Jan 27, 2004 at 01:24:19AM -0500, Michael Elizabeth Chastain wrote: Maybe you should request Marcelo to remove your mail address from Configure? That may help long-term. You're right, I'll go do that. What is Marcelo's address? You can reach him at: Marcelo Tosatti [EMAIL

[kbuild-devel] Re: [RFC] External kernel modules

2004-02-02 Thread Sam Ravnborg
On Mon, Feb 02, 2004 at 07:01:21AM +0100, Andreas Gruenbacher wrote: I propose the attached patch: It adds symbol version dump/load functionality to modpost: When compiling the kernel, the module versions are dumped to a file. When compiling external modules, the dumped symbols are first

[kbuild-devel] Re: External kernel modules, second try

2004-03-07 Thread Sam Ravnborg
On Sun, Mar 07, 2004 at 01:44:58AM +0100, Andreas Gruenbacher wrote: Hello, here is the patch I posted previously that adds support for modversions in external kernel modules that are built outside the main kernel tree (first posting archived here: http://lwn.net/Articles/69148/). Relative

[kbuild-devel] Re: External kernel modules, second try

2004-03-07 Thread Sam Ravnborg
On Sun, Mar 07, 2004 at 03:01:31PM +0100, Arjan van de Ven wrote: and it's missing the symbols from module files. sure but the module files are generally installed... I'm aiming for a situation where I can build external modules, using an almost clean kernel src tree. Which means that my

[kbuild-devel] Re: External kernel modules, second try

2004-03-07 Thread Sam Ravnborg
On Sun, Mar 07, 2004 at 02:32:14PM +0100, Andreas Gruenbacher wrote: What I have in mind is something like this: - Get rid of current use of SUBDIRS. It is no longer used in any arch Makefiles. - Introduce a KBUILD_EXTMOD variable that is only set when building external modules -

[kbuild-devel] Re: External kernel modules, second try

2004-03-07 Thread Sam Ravnborg
On Sun, Mar 07, 2004 at 05:45:22PM +0100, Andreas Gruenbacher wrote: All in all, in the end I changed my mind. I now think that it's better to build modules against a clean kernel source tree that additionally has the modversions file copied in. This already works when using O=. With the

Re: [kbuild-devel] Re: [RFC] External kernel modules

2004-03-10 Thread Sam Ravnborg
On Tue, Mar 09, 2004 at 12:22:04PM +0300, Sergey V. Udaltsov wrote: Hi all At some point, Andreas offered some patch to fix the broken build process for external modules (http://www.mail-archive.com/[EMAIL PROTECTED]/msg02079.html). What is the current status of this issue? We (Andreas and

Re: [kbuild-devel] possible? building only one module

2004-03-21 Thread Sam Ravnborg
On Sun, Mar 21, 2004 at 09:44:50AM -0500, Joachim Förster wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! I am just a beginner with kbuild and I've got one question: I know that it is possible to make fs/fat/ to get the objects which are in this directory. But now I selected

[kbuild-devel] Re: architectures with their own config PCMCIA

2004-08-12 Thread Sam Ravnborg
On Wed, Aug 11, 2004 at 10:17:25PM +0200, Adrian Bunk wrote: On Sat, Aug 07, 2004 at 08:12:56PM +0200, Arnd Bergmann wrote: ... On Samstag, 7. August 2004 19:25, Adrian Bunk wrote: Is there eny reason for such options that are never visible nor enabled, or could they be removed?

Re: [kbuild-devel] Linking an external module with a pre-built external library

2004-10-01 Thread Sam Ravnborg
On Wed, Sep 29, 2004 at 04:17:17PM +, Harshad Toke wrote: Hi, I have a kernel module foo.o that needs to be linked with an existing lib.a. This library has been already built and should be used only at the link step of the external module. I could not find a way to achive this. If

Re: [kbuild-devel] Trivial patch to kernel/power/Kconfig

2004-10-17 Thread Sam Ravnborg
On Sat, Oct 16, 2004 at 09:25:48AM -0400, Jim Nelson wrote: Fixes misspelling in kernel/power/Kconfig in 2.6.9-rc4 diff -u kernel/power/Kconfig.orig kernel/power/Kconfig Hi Jim. Can you please resend everything to linux-kernel. There they will get proper peer-review - the audience here is

Re: [kbuild-devel] Can't get make O= with external module to work

2004-11-13 Thread Sam Ravnborg
On Fri, Nov 05, 2004 at 10:04:15AM -0600, Timur Tabi wrote: I'm trying to compile an external module and use the O= kbuild option, but it's not working for me: make -C /usr/ammasso/src/sles9/2.6.5-32smp SUBDIRS=/home/ttabi/sb/starcore/software/host/linux/sys/devccil

Re: [kbuild-devel] same name of a source file and kernel object

2004-11-13 Thread Sam Ravnborg
On Thu, Nov 04, 2004 at 04:54:54PM +0530, Anupam Kapoor wrote: hi all, we have bunch of source files making up linux-26 driver and we are using kbuild for creating the final kernel module. the problem is that the name for our kernel object (foo.ko) clashes with one of the sources (foo.c).

Re: [kbuild-devel] Can't get make O= with external module to work

2004-11-13 Thread Sam Ravnborg
On Sat, Nov 13, 2004 at 07:55:54PM -0600, Timur Tabi wrote: Sam Ravnborg wrote: Today it is not possible to tell kbuild to store output files in a different directory when building external modules. So for an external module located in .../external/foo output files for the module

Re: [kbuild-devel] using $(src) in EXTRA_CFLAGS

2004-11-16 Thread Sam Ravnborg
On Tue, Nov 16, 2004 at 10:47:57PM -0600, Eric Sandeen wrote: I'm trying to make the XFS makefile work either embedded in the kernel tree at fs/xfs/Makefile, or as an out of tree makefile (make -C /path/to/kernel M=), and keep O= working properly as well. We currently have EXTRA_CFLAGS

Re: [kbuild-devel] using $(src) in EXTRA_CFLAGS

2004-11-17 Thread Sam Ravnborg
On Wed, Nov 17, 2004 at 07:54:47AM -0600, Eric Sandeen wrote: Sam Ravnborg wrote: There is no need to specify full path. The kernel is always build with top of output tree as current directory so a much simpler version is enough: EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 But what about

Re: [kbuild-devel] using if_changed with implicit rules

2004-11-29 Thread Sam Ravnborg
On Mon, Nov 29, 2004 at 03:36:52PM -0600, Eric Sandeen wrote: if I have something like: quiet_cmd_systune = SYSTUNE $ cmd_systune = $(dir $)/gen_systune.pl \ $ \ $(obj)/$(*F)_systunes.c

Re: [kbuild-devel] Compile external module with seperate source and object directories

2005-01-13 Thread Sam Ravnborg
On Wed, Jan 12, 2005 at 10:39:56PM -, Ross C Mcilroy wrote: The dependancies between these files and the created object files were handled using the VPATH variable in the previous makefile, however this doesn't seem to work with the 2.6 kernel (I assume because VPATH is already

[kbuild-devel] Re: changing local version requires full rebuild

2005-01-16 Thread Sam Ravnborg
Do you use echo -mylocalver localversion to change the local version? Sam No, I do makemenuconfig to edit the version. Is that right? That is fine too. When building - do you use separate output dir? Sam --- The

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

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] 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] 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] 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

[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

[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] 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: [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] 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: 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: 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

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: [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

[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

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.

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] 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] 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] [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] [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] 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] 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] 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] 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] 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

[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

  1   2   >