kbuild: Unnecessary recompiles on path change

From: Jan Engelhardt
Date: Wed Sep 10 2008 - 16:15:43 EST


I notice that my kernels get needlessy recompiled if I access the source
tree through a different directory. In other words, /lo/linux is the
kernel tree, and `mount --bind /lo /home/jengelh/lo` is in effect.

I see the absolute path being stored in .*.o.cmd files, which seems like
all the explanation I need. I do remember that I left a comment
when something like that was afloating:

As of v2.6.27-rc4-263-g5697a99, there's no gcov in (at least there is no
such thing in my .config when bulit with ARCH=um), but the issue with
absolute paths exists.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/