[PATCH] ikconfig - resolve rebuild permissions

From: Stephen Hemminger
Date: Thu Sep 04 2003 - 13:33:11 EST


If ikconfig is enabled then the following annoying permission
problem happens.
$ make
$ su
# make install
$ make

make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
CC kernel/configs.o
mv: overwrite `kernel/configs.o', overriding mode 0644?

This patch fixes it by removing the configs.o file when
needed.

It applies against 2.6.0-test4 but is also needed even with the
ikconfig patch already in -mm5

diff -Nru a/kernel/Makefile b/kernel/Makefile
--- a/kernel/Makefile Thu Sep 4 10:33:49 2003
+++ b/kernel/Makefile Thu Sep 4 10:33:49 2003
@@ -36,5 +36,6 @@

$(obj)/ikconfig.h: scripts/mkconfigs .config Makefile FORCE
$(call if_changed,ikconfig)
+ @rm -f $(obj)/configs.o

$(obj)/configs.o: $(obj)/ikconfig.h

-
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/