Re: Problem building 3.16 with make O=...

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

 



On Tue, Aug 12, 2014 at 05:22:46PM -0700, Jim Davis wrote:
> I'm trying to build 3.16 on my Ubuntu 14.04 system, starting with the
> stock kernel config file.  This works just fine:
> 
> make distclean && git clean -fdx
> git describe (and check that it is indeed v3.16)
> make mrproper (just in case)
> cp /boot/config*24-generic .config
> yes "" | make oldconfig >/dev/null
> make
> 
> But changing that recipe to
> 
> yes "" | make O=/tmp/$$ oldconfig >/dev/null
> make O=/tmp/$$
> 
> fails with
> 
> make[1]: Entering directory `/tmp/29520'
>   GEN     ./Makefile
> scripts/kconfig/conf --silentoldconfig Kconfig
>   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
>   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
>   HOSTCC  arch/x86/tools/relocs_32.o
>   HOSTCC  arch/x86/tools/relocs_64.o
>   HOSTCC  arch/x86/tools/relocs_common.o
>   HOSTLD  arch/x86/tools/relocs
>   CHK     include/config/kernel.release
>   UPD     include/config/kernel.release
>   Using /home/jim/linux-rc as source for kernel
>   /home/jim/linux-rc is not clean, please run 'make mrproper'
>   in the '/home/jim/linux-rc' directory.
> make[1]: *** [prepare3] Error 1
> make: *** [sub-make] Error 2
> 
> What am I missing?
You need to copy the config to the output directory - not the source directory.
Change this line:
    cp /boot/config*24-generic .config
to something like this:
    cp /boot/config*24-generic /tmp/$$/.config

Should do the trick.
Make sure the dir exist before you copy.

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




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux