diff options
Diffstat (limited to 'script/handle/make/config')
-rwxr-xr-x | script/handle/make/config | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/handle/make/config b/script/handle/make/config index d976e529..1b395600 100755 --- a/script/handle/make/config +++ b/script/handle/make/config @@ -240,6 +240,10 @@ run_make_command() fi make -C "${codedir}" -j$(nproc) ${mode} || \ fail "run_make_command: make-all: ${codedir} (${project}/${target})" + if [ "${mode}" = "oldconfig" ] || [ "${mode}" = "menuconfig" ]; then + cp "${codedir}/.config" "${config}" || \ + fail "run_make: can't edit config: ${project}/${target}" + fi } copy_elf() |