diff options
-rw-r--r-- | scripts/kconfig/Makefile | 1 | ||||
-rwxr-xr-x | scripts/kconfig/merge_config.sh | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index fc34f46cb025..be0fad44ddd8 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -107,7 +107,6 @@ endif | |||
107 | configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config) | 107 | configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config) |
108 | 108 | ||
109 | define mergeconfig | 109 | define mergeconfig |
110 | $(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target)) | ||
111 | $(if $(call configfiles,$(1)),, $(error No configuration exists for this target on this architecture)) | 110 | $(if $(call configfiles,$(1)),, $(error No configuration exists for this target on this architecture)) |
112 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config $(call configfiles,$(1)) | 111 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config $(call configfiles,$(1)) |
113 | +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig | 112 | +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig |
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 2118af84e661..88d89b2986db 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh | |||
@@ -85,6 +85,11 @@ fi | |||
85 | INITFILE=$1 | 85 | INITFILE=$1 |
86 | shift; | 86 | shift; |
87 | 87 | ||
88 | if [ ! -r "$INITFILE" ]; then | ||
89 | echo "The base file '$INITFILE' does not exist. Exit." >&2 | ||
90 | exit 1 | ||
91 | fi | ||
92 | |||
88 | MERGE_LIST=$* | 93 | MERGE_LIST=$* |
89 | SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p" | 94 | SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p" |
90 | TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) | 95 | TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) |