mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* separate object directories: trap for user
@ 2008-02-21 13:16 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2008-02-21 13:16 UTC (permalink / raw)
  To: kernel list, sam, linux-kbuild

Hi!

I'm using separate object directories, but there's trap there which
catches me every now and then: 

(/data/l/linux are my sources, objects are in /data/l/b-linux)

Every now and then, I make a mistake and try to make kernel in source
directories... that does not work as expected:

pavel@amd:/data/l/linux$ time make
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by
`include/config/kernel.release'.  Stop.
0.55user 0.44system 8.15 (0m8.157s) elapsed 12.30%CPU
pavel@amd:/data/l/linux$

...but it has unexpected side effect of breaking build in object
directories:

pavel@amd:/data/l/b-linux$ time make
make -C /data/l/linux O=/data/l/b-linux/.
  Using /data/l/linux as source for kernel
  /data/l/linux is not clean, please run 'make mrproper'
  in the '/data/l/linux' directory.
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
0.24user 0.18system 5.03 (0m5.032s) elapsed 8.42%CPU
pavel@amd:/data/l/b-linux$

This is needed to fix the situation:

pavel@amd:/data/l/linux$ rmdir include/config/

Would it be possible to stop the oldconfig before it creates
include/config?

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-21 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 13:16 separate object directories: trap for user Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®