[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using automake in conjunction with kbuild Makefile

From: Steve Kreyer
Subject: Re: Using automake in conjunction with kbuild Makefile
Date: Mon, 13 Nov 2006 21:15:03 +0100
User-agent: Icedove (X11/20061013)

Hi Stepan,

first of all thanks for the fast answer.

Stepan Kasal wrote:
Hello Steve,
  I do not have any experience with kbuilt, but I'll try to generate
some hins anyway:

On Mon, Nov 13, 2006 at 11:48:29AM +0100, Steve Kreyer wrote:
DEFAULT_INCLUDES = address@hidden@

two nits about this line: No need to use @..@, use $(abs_top_srcdir)
I have tried this but it didn't work...
Why do you re-define DEFAULT_INCLUDES?
Wouldn't it be more appropriate to use AM_CPPFLAGS?
(But maybe I'm missing something.)
It is needed because the module is buildet by kbuild outside
the source tree, so I need absolute path names, but $(DEFAULT_INCLUDES)
only provides the default include directories with relative paths...
example a make distcheck will fail because the module sources
will not be copied into the build environment of the distcheck...

Thank you for the description of the situation, but I think your
description of the actual problem could be more exact.

`make distcheck' is just an automated way to check for features which
should every package support.  The feature you are speaking about is
so called ``vpath build'', when srcdir != builddir.

So you can do the same manually:
        make dist-bzip2
        mkdir _check
        (cd _check ; tar xjf ../*.bz2)
        #chmod -R -w _check
        mkdir _build; cd _build

Does this work?  Does it work if you add the chmod command in the
middle, to make the source tree read-only?
No, it also don't work, with the same result that the needed source
file is missing...
But your example cleared my brain:

Iam also no kbuild expert, but as described above
kbuild compiles the kernel modules outside the source tree (vpath build), so
it can't locate the sources in _build while running the distcheck and it fails...

If not, what is the error message?  Fix it or post it to this list to
get some help.

Or perhaps you are not willing to support vpath builds.  (Does kbuild
usually support them?)  If that is the case, you do not want to use
`make distcheck', at least not the complete version brought to you by

Have a nice day,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]