mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.44: what's .tmp_export-objs for?
@ 2002-10-28 16:54 Rob Landley
  2002-10-28 22:32 ` Kai Germaschewski
  2002-10-28 22:54 ` Olaf Dietsche
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Landley @ 2002-10-28 16:54 UTC (permalink / raw)
  To: linux-kernel

I accidentally did a 2.5.44 kernel build as root rather than my normal user, 
so I'm trying to see what clean steps I need to so (as root) to be able to 
build the tree again.  A normal make clean failed (permission denied deleting 
files), so I did an su and a make clean.  Exit back to normal user, make 
clean, life is good, do a make dep, and it complains about the directory 
.tmp_export-objs.

1) Why does the build process use a hidden directory?

2) Why isn't make clean removing something with "tmp" in the name?

Just curious,

Rob

-- 
http://penguicon.sf.net - Terry Pratchett, Eric Raymond, Pete Abrams, Illiad, 
CmdrTaco, liquid nitrogen ice cream, and caffienated jello.  Well why not?

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

* Re: 2.5.44: what's .tmp_export-objs for?
  2002-10-28 22:54 ` Olaf Dietsche
@ 2002-10-28 19:07   ` Rob Landley
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Landley @ 2002-10-28 19:07 UTC (permalink / raw)
  To: Olaf Dietsche; +Cc: linux-kernel

On Monday 28 October 2002 16:54, Olaf Dietsche wrote:
> Rob Landley <landley@trommello.org> writes:
> > I accidentally did a 2.5.44 kernel build as root rather than my normal
> > user, so I'm trying to see what clean steps I need to so (as root) to be
> > able to build the tree again.  A normal make clean failed (permission
> > denied deleting files), so I did an su and a make clean.  Exit back to
> > normal user, make clean, life is good, do a make dep, and it complains
> > about the directory .tmp_export-objs.
> >
> > 1) Why does the build process use a hidden directory?
> >
> > 2) Why isn't make clean removing something with "tmp" in the name?
>
> "make help" lists a bunch of options. I guess, what you're searching
> for is "make mrproper" or even "make distclean".

Except that make mrproper deletes the .config file so I'd have to spend 
fifteen minutes with menuconfig again unless I know (and remember) to back it 
up. :)

I guess make clean is trying to avoid damaging the "make dep" output.  I 
thought that a big part of Keith Owens' new build system was to get rid of 
the horror that is "make dep", but I remember now that Linus rejected it for 
some reason.  Oh well.  Just curious...

Rob

-- 
http://penguicon.sf.net - Terry Pratchett, Eric Raymond, Pete Abrams, Illiad, 
CmdrTaco, liquid nitrogen ice cream, and caffienated jello.  Well why not?

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

* Re: 2.5.44: what's .tmp_export-objs for?
  2002-10-28 16:54 2.5.44: what's .tmp_export-objs for? Rob Landley
@ 2002-10-28 22:32 ` Kai Germaschewski
  2002-10-28 22:54 ` Olaf Dietsche
  1 sibling, 0 replies; 4+ messages in thread
From: Kai Germaschewski @ 2002-10-28 22:32 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel

On Mon, 28 Oct 2002, Rob Landley wrote:

> I accidentally did a 2.5.44 kernel build as root rather than my normal user, 
> so I'm trying to see what clean steps I need to so (as root) to be able to 
> build the tree again.  A normal make clean failed (permission denied deleting 
> files), so I did an su and a make clean.  Exit back to normal user, make 
> clean, life is good, do a make dep, and it complains about the directory 
> .tmp_export-objs.
> 
> 1) Why does the build process use a hidden directory?

The "make dep" stage generates .ver files for all files listed in 
*/Makefile:export-objs. At the same time, it creates a zero-length file
corresponding to each .ver file in .tmp_export-objs, which are needed to 
afterwards construct include/linux/modversions.h, which is basically

	#include <linux/module/path/obj.ver>

for all objects we created the .ver files for earlier. Basically,
.tmp_export-objs is a complicated way to create a list of filenames,
the reason we cannot just append names to one file is that multiple
'make's may run in parallel (make -j), so that appending to a single file
would be racy.

> 2) Why isn't make clean removing something with "tmp" in the name?

Well, for some traditional reasons, there is a distinction between
"make clean" and "make mrproper", where only the latter really removes 
everything.

--Kai


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

* Re: 2.5.44: what's .tmp_export-objs for?
  2002-10-28 16:54 2.5.44: what's .tmp_export-objs for? Rob Landley
  2002-10-28 22:32 ` Kai Germaschewski
@ 2002-10-28 22:54 ` Olaf Dietsche
  2002-10-28 19:07   ` Rob Landley
  1 sibling, 1 reply; 4+ messages in thread
From: Olaf Dietsche @ 2002-10-28 22:54 UTC (permalink / raw)
  To: landley; +Cc: linux-kernel

Rob Landley <landley@trommello.org> writes:

> I accidentally did a 2.5.44 kernel build as root rather than my normal user, 
> so I'm trying to see what clean steps I need to so (as root) to be able to 
> build the tree again.  A normal make clean failed (permission denied deleting 
> files), so I did an su and a make clean.  Exit back to normal user, make 
> clean, life is good, do a make dep, and it complains about the directory 
> .tmp_export-objs.
>
> 1) Why does the build process use a hidden directory?
>
> 2) Why isn't make clean removing something with "tmp" in the name?

"make help" lists a bunch of options. I guess, what you're searching
for is "make mrproper" or even "make distclean".

Regards, Olaf.

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

end of thread, other threads:[~2002-10-29  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-28 16:54 2.5.44: what's .tmp_export-objs for? Rob Landley
2002-10-28 22:32 ` Kai Germaschewski
2002-10-28 22:54 ` Olaf Dietsche
2002-10-28 19:07   ` Rob Landley

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®