Build using O=path
Dhiraj Kumar
dhiraj.2k7 at gmail.com
Mon Sep 10 02:37:57 EDT 2018
Hi,
Please try below steps,
$ cd $KERNEL
$ make mrproper
$ cp path/to/valid/config/file .config
$ make menuconfig
$ make O=/abs/path/to/output
Thanks!
On Mon, Sep 10, 2018 at 12:04 PM Tobin C. Harding <me at tobin.cc> wrote:
> Hi,
>
> I'm unable to build the kernel using the O=path/to/out option. Am I
> doing something brain dead?
>
> $ cd $KERNEL
> $ make mrproper
> $ cp path/to/valid/config/file .config
> $ make O=/abs/path/to/output
> ...
> scripts/kconfig/conf --syncconfig Kconfig
> ***
> *** Configuration file ".config" not found!
> ***
> *** Please run some configurator (e.g. "make oldconfig" or
> *** "make menuconfig" or "make xconfig").
> ...
>
> So I tried copying the .config file to the output directory
>
> $ cp .config /abs/path/to/output
> $ make O=/abs/path/to/output
> ...
> Using /home/tobin/build/kernel/linux as source for kernel
> /home/tobin/build/kernel/linux is not clean, please run 'make mrproper'
> in the '/home/tobin/build/kernel/linux' directory.
> /home/tobin/build/kernel/linux/Makefile:1091: recipe for target 'prepare3'
> failed
> make[1]: *** [prepare3] Error 1
> make[1]: Leaving directory '/home/tobin/build/kernel/output/master'
> Makefile:146: recipe for target 'sub-make' failed
> make: *** [sub-make] Error 2
>
>
> Same thing if I use KBUILD_OUTPUT instead of passing O=
>
>
> thanks,
> Tobin.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180910/3f93354c/attachment.html>
More information about the Kernelnewbies
mailing list