Build error with O= option

Alex Arvelaez ealejandro at outlook.com
Mon Mar 5 07:57:28 EST 2018


On Mar 5, 2018 7:04 AM, Gioh Kim <gurugio at gmail.com> wrote:
>
> Hi,
>
> I am trying to use O=<dir> option when building kernel.
> It failed with missing .config file error.
> I checked out the message and found out it tried to read .config in
> the output directory.
>
> It's strange because there is no command to copy .config to the output
> directory.
> I tested v4.14 and v4.15, and both failed.

Depending on your distro they may provide you with their config file. You can create a default configuration by doing:

make defconfig O=$dir
cd $dir
make

Where $dir is wherever you want the output to be.

Regards,

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180305/9afb8305/attachment.html>


More information about the Kernelnewbies mailing list