scrips/merge_config.sh: fix corner case \n-less last line
When a configuration file fragment ends in a line that is not terminated by a \n, it will mange the pasting of the following fragment. For example, in file1.prj: CONFIG_SETTING_A=34 CONFIG_SETTING_B=12 and file2.prj: CONFIG_SETTING_C=56 would become: CONFIG_SETTING_A=34 CONFIG_SETTING_B=12CONFIG_SETTING_C=56 because there was no \n at the end of CONFIG_SETTING_B=12. This makes the kconfig parser to reject CONFIG_SETTING_B and to loose CONFIG_SETTING_C, which then has random consequences. So, to avoid that problem, always add a newline after a config fragment. Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
parent
b4fc0738a4
commit
b37bcf2fc0
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ for MERGE_FILE in $MERGE_LIST ; do
|
|||
done
|
||||
chmod u+w $TMP_FILE
|
||||
cat $MERGE_FILE >> $TMP_FILE
|
||||
echo >> $TMP_FILE
|
||||
done
|
||||
|
||||
if [ "$RUNMAKE" = "false" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue