summaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2003-08-17 02:29:08 -0700
committerSam Ravnborg <sam@ravnborg.org>2003-08-17 02:29:08 -0700
commit088205b5aef9f9eee6c442e6e1ecc3d4ad149786 (patch)
tree1fffda5eeba7280911f0b6cf55b5dcec15446afe /scripts/Makefile.build
parent300846139ec46b7f4dce64815b7940f181c0345e (diff)
[PATCH] Move config tasks to kconfig/Makefile
This fixes a bug with multiple targets. Olaf Hering reported that the build failed for PowerPc if used like this: make oldconfig zImage The reason for this was that .config was not present for any targets specified in arch/$(ARCH)/Makefile and below. That's because .config would not be included when oldconfig is present in the list of targets. The fix is to move handling of *config task to the kconfig/Makefile. Furthermore the logic in top-level makefile has changed a bit, creating a more logial structure. When building a fresh kernel, the user is now told that .config is missing, not an anonymous report that .config did not exist. The error has survided this long because the targets used in i386/boot in general does not use CONFIG_ symbols. Olaf Hering has tested this patch with success.
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 206af58fd7da..6cbff76b23ef 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -7,9 +7,8 @@ src := $(obj)
.PHONY: __build
__build:
-ifdef include_config
-include .config
-endif
+# Read .config if it exist, otherwise ignore
+-include .config
include $(obj)/Makefile