diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-09-27 10:02:43 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-27 10:02:43 +0200 |
commit | b6367a7f695476ec64dcad2b56c1596a22d39786 (patch) | |
tree | 8985c9484d89b001dfe94fad0c30a4679f3c5e11 /Makefile | |
parent | ccf1cb638d9b07311368ab555e97fd6da2161bd7 (diff) |
kbuild: tell user how to make mrproper if ARCH has changed
Andrew reported that the following was broken:
make ARCH=alpha defconfig
setenv ARCH sparc
make mrproper
It would fail with:
Makefile:213: *** ARCH changed from "alpha" to "sparc". Use "make mrproper" to fix it up. Stop.
But running "make mrproper" resulted in exact same error message...
Teach kbuild to tell user how to run "make mrproper" to make it succeed.
The message generated by kbuild now looks like this:
ARCH changed from "alpha" to "sparc"
Makefile:210: *** Use "make mrproper ARCH=alpha" to fix it up ***. Stop.
So user now knows what to do to run "make mrproper"
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc:Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -194,10 +194,9 @@ saved_cross := $(shell cat include/generated/kernel.cross 2> /dev/null) ifneq ($(CROSS_COMPILE),) ifneq ($(saved_cross),) ifneq ($(CROSS_COMPILE),$(saved_cross)) - $(error CROSS_COMPILE changed from \ - "$(saved_cross)" to \ - to "$(CROSS_COMPILE)". \ - Use "make mrproper" to fix it up) + $(info CROSS_COMPILE changed from "$(saved_cross)" \ + to "$(CROSS_COMPILE)") + $(error Use "make mrproper" to fix it up ***) endif endif else @@ -207,9 +206,9 @@ endif ifneq ($(ARCH),) ifneq ($(saved_arch),) ifneq ($(saved_arch),$(ARCH)) - $(error ARCH changed from \ - "$(saved_arch)" to "$(ARCH)". \ - Use "make mrproper" to fix it up) + $(info ARCH changed from "$(saved_arch)" to "$(ARCH)") + $(error Use "make mrproper ARCH=$(saved_arch)" \ + to fix it up ***) endif endif else |