[lkml]   [2003]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Documentation/kbuild/makefiles.txt
On Mon, Jan 06, 2003 at 09:04:14AM -0800, Randy.Dunlap wrote:
> Can you add a section about building non-kernel-tree drivers etc.?
> I.e., building from source files that are not resident in the
> kernel tree?
> And do you have a section on building in $objtree with
> $srctree != $objtree? I didn't see it. Or is this not the right
> document for that topic?

I plan to write a small kernel compile HOWTO. There I will cover
both usage scenarios.
It is supposed to obsolete commands.txt as of today.

makefiles.txt will cover only how to write Makefiles and what they
can be used to do. I kept chapter two because it was a good
definition of the target group.
But I agree with you that the information you requests are missing.

Btw. my patch to build the kernel in a separate directory is
not yet ready for inclusion. oprofile and xfs causes me trouble,
they refuse to do things in the normal way.
Also the lack of consistency when including files annoy me.
I hope to get some feedback from Kai on this soon.

> | Rules.make compiles all the $(obj-y) files. It then calls
> Where is Rules.make nowadays?

[Above is a left-over from the old document, will be updated].

Rules.make vanished when Kai did the spilt into scripts/,
scripts/Makefile.lib, scripts/Makefile.clean etc.
It started with me submitting a patch that made "make clean" descend
down in all directories. That was way too slow, and Kai made the split
speeding up "make clean" a lot.

The concept is that make is called with:
make -f scripts/ obj=path/to/makefile
Then includes $(obj)/Makefile.
Therefore the individual Makefiles no longer need to include any
file, and Rules.make became obsolete.

IIRC this concept was originally described some time ago at

> | arch/$(ARCH)/Makefile.
> Example? arch/i386/Makefile in 2.5.54 doesn't contain "head-y".

I have a pending patch introducing head-y for all architectures.
If it is rejected I will update the text.

> | Append or modify as required pr. architecture.
> per (?)
Abbrevation came form the wrong language ;-)

> | will be displayed with "make KBUILD_VERBOSE=0".
> It would be nice to have a shorthand notation for this, like -s
> means "silent".
I have KBUILD_VERBOSE=0 in my .bashrc, but I see your point.

> HTH.

Helps a lot, thanks indeed!
All corrections applied.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.062 / U:7.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site