Skip to contentSkip to conversation

Unfortunate infinite make recursion

DISCUSSION Bodo Eggert 1 participant 1 message Sep 22, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Jan Engelhardt

You can cause a recursion in kbuild/make with the following:

make O=$PWD kernel/time.o
make mrproper

Of course no one would use O=$PWD (that's just the testcase), but this happened too often:

Quoted 6 lines

/ws/linux/linux-2.6.23$ make O=/ws/linux/linux-2.6.23 kernel/time.o (Oops - should have been O=/ws/linux/obj-2.6.23!)

The make O=$PWD truncates the Makefile, making it necessary to run git checkout Makefile - should you have git; or reextract the tarball (should you /still/ have it). Well, can we catch this case somehow?

You can test for the existence of MAINTAINERS in the build dir and abort if it's there.

Signature · 4 lines
My computer isn't that nervous...it's just a bit ANSI. 

Friß, Spammer: [email protected] [email protected]
 [email protected] [email protected]