diff --git a/tools/Unix.mk b/tools/Unix.mk index 36f8f073fc..e72ecc7743 100644 --- a/tools/Unix.mk +++ b/tools/Unix.mk @@ -799,6 +799,7 @@ endif $(call DELFILE, .config) $(call DELFILE, .config.old) $(call DELFILE, .config.orig) + $(call DELFILE, .config.backup) $(call DELFILE, .gdbinit) # Application housekeeping targets. The APPDIR variable refers to the user diff --git a/tools/process_config.sh b/tools/process_config.sh index 6d1be7e55a..067e65f104 100755 --- a/tools/process_config.sh +++ b/tools/process_config.sh @@ -57,7 +57,7 @@ process_file() { fi else local key_config="$(echo "$line" | cut -d= -f1)=" - sed -i "/$key_config/d" $output_file + sed -i.backup "/$key_config/d" $output_file echo "$line" >> $output_file fi done < "$input_file"