[PATCH] Fix building in a separate directory

From: Matthew Wilcox
Date: Tue Jan 17 2006 - 10:23:10 EST



Without this,
make O=../b180 oldconfig ends:

CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C)
[N/m/y/?] n
make -C /home/willy/linux-2.6 O=/home/willy/b180 .kernelrelease
Makefile:477: .config: No such file or directory

With it, make[2]: `/home/willy/linux-2.6/.kernelrelease' is up to date.
is the end.

Index: Makefile
===================================================================
RCS file: /var/cvs/linux-2.6/Makefile,v
retrieving revision 1.437
diff -u -p -r1.437 Makefile
--- a/Makefile 17 Jan 2006 14:49:47 -0000 1.437
+++ b/Makefile 17 Jan 2006 15:20:55 -0000
@@ -474,7 +474,7 @@ ifeq ($(dot-config),1)
# oldconfig if changes are detected.
-include .kconfig.d

-include .config
+include $(KBUILD_OUTPUT)/.config

# If .config needs to be updated, it will be done via the dependency
# that autoconf has on .config.
-
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/