Re: make O=dir fails with current git



Sam Ravnborg schrieb:
On Sat, Mar 29, 2008 at 07:19:21PM +0100, Stefan Hellermann wrote:
Hi,

I'm using "make O=machinename" for building different kernels from one tree. About 15 days
ago it was okay, with current git it fails:
$ make O=client1
scripts/kconfig/conf -s arch/x86/Kconfig
Using /srv/devel/kernel as source for kernel
/srv/devel/kernel is not clean, please run 'make mrproper'
in the '/srv/devel/kernel' directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2

running "make mrproper" (without O=dir) doesn't help.
I've not changed anything, I only made a "git-pull".
Now I'm at home, tried "mkdir test; make O=test defconfig all" with current git-head, it
doesn't work too.

I tried to reproduce this here without luck.
The tests performed by kbuild to dertermine if the
source directory is clean are very basic.
If the file .config exist or the directory
include/config exists then the source tree is considered clean.
Otherwise you get the above message.

Hi, damn, it's that easy!
It was the .config file, I added (as root) a symlink to dir/.config to let some other
application check if some Kernel-options are set, then the permissions of this symlink
prevented make mrproper from removing it.

For what purpose is this check? I can't point the other application to kerneldir/dir
because it also greps in kerneldir/Makefile for the kernel-version.

Thanks
Stefan


Can you please try to run: make mrproper
and then manually check if the .config file
or the include/config directory exists.

If they exists after make mrproper then
check your permissions.

In any case let me know the result.

Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: make O=dir fails with current git
    ... I'm using "make O=machinename" for building different kernels from one tree. ... /srv/devel/kernel is not clean, please run 'make mrproper' ... source directory is clean are very basic. ...
    (Linux-Kernel)
  • Re: make O=dir fails with current git
    ... I'm using "make O=machinename" for building different kernels from one tree. ... /srv/devel/kernel is not clean, please run 'make mrproper' ... source directory is clean are very basic. ...
    (Linux-Kernel)
  • Re: make O=dir fails with current git
    ... I'm using "make O=machinename" for building different kernels from one tree. ... /srv/devel/kernel is not clean, please run 'make mrproper' ... source directory is clean are very basic. ...
    (Linux-Kernel)
  • make O=dir fails with current git
    ... I'm using "make O=machinename" for building different kernels from one tree. ... with current git it fails: ... /srv/devel/kernel is not clean, please run 'make mrproper' ...
    (Linux-Kernel)
  • Re: easy alsa patches for the stable kernel?
    ... I added it to ALSA HG tree now. ... one be send to the stable-kernel-maintainers in parallel to adding them ... afaics) earlier that way. ... are safe to apply for older kernels. ...
    (Linux-Kernel)