Commit 61c0628d authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: check for updated [Cc]onfig.in files

When any [Cc]onfig.in file changes, the user should rerun "make oldconfig",
so tell him to do so

(Sam Ravnborg)
parent b55c6d42
......@@ -199,11 +199,17 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
# If .config doesn't exist - tough luck
.config:
.config: arch/$(ARCH)/config.in $(shell find . -name Config.in)
@echo '***'
@echo '*** You have not yet configured your kernel!'
@echo '*** Please run some configurator (do "make xconfig" or'
@echo '*** "make menuconfig" or "make oldconfig" or "make config").'
@if [ -f $@ ]; then \
echo '*** The tree was updated, so your .config may be'; \
echo '*** out of date!'; \
else \
echo '*** You have not yet configured your kernel!'; \
fi
@echo '***'
@echo '*** Please run some configurator (e.g. "make oldconfig" or'
@echo '*** "make menuconfig" or "make xconfig").'
@echo '***'
@exit 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment