zephyr/scripts/kconfig
Inaky Perez-Gonzalez b37bcf2fc0 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>
2017-09-30 22:42:08 -04:00
..
lxdialog
check.sh
checkconfig.py scripts: move kconfig related scripts to scripts/kconfig 2017-09-11 08:53:56 -07:00
conf.c scrips/kconfig: reduce impact of getenv() buffer overflow 2016-12-02 04:16:53 +00:00
confdata.c win-build: Fixes a kconfig incompatibility for Windows 2016-11-18 23:22:21 +00:00
config scripts: move kconfig related scripts to scripts/kconfig 2017-09-11 08:53:56 -07:00
diffconfig scripts: move kconfig related scripts to scripts/kconfig 2017-09-11 08:53:56 -07:00
expr.c
expr.h
gconf.c
gconf.glade
images.c
kxgettext.c
list.h
lkc_proto.h
lkc.h kconfig: support wildcards 2016-02-05 20:24:52 -05:00
Makefile build: support building host tools 2017-04-25 22:48:23 +00:00
mconf.c
menu.c kconfig: add a debug option to print defaults in menuconfig 2016-03-26 20:36:32 -04:00
merge_config.sh scrips/merge_config.sh: fix corner case \n-less last line 2017-09-30 22:42:08 -04:00
nconf.c
nconf.gui.c
nconf.h
POTFILES.in
qconf.cc
qconf.h
streamline_config.pl
symbol.c kconfig: untangle ordering and dependencies 2016-03-26 20:36:32 -04:00
util.c win-build: Fixes a kconfig incompatibility for Windows 2016-11-18 23:22:21 +00:00
zconf.gperf
zconf.hash.c_shipped
zconf.l scrips/kconfig: use snprintf() vs sprintf() 2016-11-18 23:04:32 +00:00
zconf.lex.c_shipped build: fixes issue in windows Kconfig support 2016-04-23 11:27:11 +00:00
zconf.tab.c_shipped kconfig: support wildcards 2016-02-05 20:24:52 -05:00
zconf.y kconfig: support wildcards 2016-02-05 20:24:52 -05:00