kumquat-buildroot/support/kconfig
Nasser Afshin 7b87c2ae81 support/kconfig/merge_config.sh: avoid false positive matches from comment lines
We are using empty CONFIG_PREFIX_. This results in false positive match
for comment lines when merging config fragments.

To avoid false positive reports, we use separate sed expressions and
address comment lines explicitly.

This is actually is in the Linux kernel mainline (v4.20-rc2):
6bbe4385d035c6fac56f840a59861a0310ce137b
("kconfig: merge_config: avoid false positive matches from comment lines")

Signed-off-by: Nasser Afshin <Afshin.Nasser@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-24 10:11:15 +01:00
..
lxdialog support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
patches support/kconfig/merge_config.sh: avoid false positive matches from comment lines 2018-11-24 10:11:15 +01:00
.gitignore
check.sh support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
conf.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
confdata.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
expr.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
expr.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
foo.h
gconf.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
gconf.glade
images.c
kconf_id.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
kxgettext.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
list.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
lkc_proto.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
lkc.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
Makefile support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
Makefile.br
mconf.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
menu.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
merge_config.sh support/kconfig/merge_config.sh: avoid false positive matches from comment lines 2018-11-24 10:11:15 +01:00
nconf.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
nconf.gui.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
nconf.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
POTFILES.in
qconf.cc support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
qconf.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
README.buildroot support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
streamline_config.pl support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
symbol.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
util.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
zconf.l support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
zconf.lex.c_shipped support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
zconf.tab.c_shipped support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
zconf.y support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00

This is a copy of the kconfig code in the kernel (currently 4.17-rc2) tweaked
to suit Buildroot.

To update:
	cp -r /usr/src/linux/scripts/kconfig support/kconfig.new
	cd support/kconfig.new
	# zconf.lex.c and zconf.tab.c needs to be generated by 'make menuconfig'
	mv zconf.lex.c zconf.lex.c_shipped
	mv zconf.tab.c zconf.tab.c_shipped
	rm -rf tests/
	cp -a ../kconfig/patches ../kconfig/README.buildroot ../kconfig/.gitignore .
	quilt push -a
	# Fix any conflict
	cd ..
	rm -rf kconfig
	mv kconfig.new kconfig

Then verify the toplevel targets work:
	config
	defconfig
	menuconfig
	nconfig
	xconfig
	gconfig
	oldconfig