mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
kbuild: move ".config not found!" message from Kconfig to Makefile
If you run "make" in a pristine source tree, currently Kbuild will start to build Kconfig to let it show the error message. It would be more straightforward to check it in Makefile and let it fail immediately. Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
parent
9390dff66a
commit
058507195b
2 changed files with 8 additions and 15 deletions
10
Makefile
10
Makefile
|
|
@ -628,8 +628,14 @@ ifeq ($(may-sync-config),1)
|
|||
# because some architectures define CROSS_COMPILE there.
|
||||
-include include/config/auto.conf.cmd
|
||||
|
||||
# To avoid any implicit rule to kick in, define an empty command
|
||||
$(KCONFIG_CONFIG): ;
|
||||
$(KCONFIG_CONFIG):
|
||||
@echo >&2 '***'
|
||||
@echo >&2 '*** Configuration file "$@" not found!'
|
||||
@echo >&2 '***'
|
||||
@echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
|
||||
@echo >&2 '*** "make menuconfig" or "make xconfig").'
|
||||
@echo >&2 '***'
|
||||
@/bin/false
|
||||
|
||||
# The actual configuration files used during the build are stored in
|
||||
# include/generated/ and include/config/. Update them if .config is newer than
|
||||
|
|
|
|||
Loading…
Reference in a new issue