kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Build using O=path
@ 2018-09-10  6:33 Tobin C. Harding
  2018-09-10  6:37 ` Dhiraj Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tobin C. Harding @ 2018-09-10  6:33 UTC (permalink / raw)
  To: kernelnewbies

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-10 22:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-10  6:33 Build using O=path Tobin C. Harding
2018-09-10  6:37 ` Dhiraj Kumar
2018-09-10  6:46 ` Joey Pabalinas
2018-09-10  6:52   ` Joey Pabalinas
2018-09-10  9:37 ` Luca Ceresoli
2018-09-10 22:46   ` Tobin C. Harding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).