kumquat-buildroot/support/kconfig
Bjørn Forsman 8868051262 kconfig/lxdialog: get ncurses CFLAGS with pkg-config
This makes "make menuconfig" also work on systems where ncurses is not
installed in a standard location (such as on NixOS).

This patch changes ccflags() so that it tries pkg-config first, and only
if pkg-config fails does it go back to the fallback/manual checks. This
is the same algorithm that ldflags() already uses.

[This patch is already applied upstream (is part of linux v3.18):
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=be8af2d54a66911693eddc556e4f7a866670082b

I'm adding this instead of doing a full upstream kconfig sync because
there was a conflict in one of the Buildroot kconfig patches (against
linux 3.18-rc1), which I was unable to resolve. Just drop this patch next time
Buildroot kconfig is synced against upstream.
]

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-07 22:26:53 +01:00
..
lxdialog kconfig/lxdialog: get ncurses CFLAGS with pkg-config 2015-01-07 22:26:53 +01:00
patches kconfig/lxdialog: get ncurses CFLAGS with pkg-config 2015-01-07 22:26:53 +01:00
.gitignore
check.sh support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
conf.c support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
confdata.c infra: replace BUILDROOT_CONFIG with BR2_CONFIG 2014-02-09 17:00:13 +01:00
expr.c support/kconfig: remove useless patch 2013-11-14 12:29:49 +01:00
expr.h support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
foo.h
gconf.c support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
gconf.glade
images.c
kxgettext.c support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
list.h support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
lkc_proto.h support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
lkc.h support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
Makefile support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
Makefile.br support/kconfig: use kconfig-provided way of setting the CONFIG_ prefix 2013-04-21 23:33:11 +02:00
mconf.c support/kconfig: Fix remaining 'kernel' mention 2013-12-28 16:05:25 +01:00
menu.c support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
merge_config.sh support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
nconf.c support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
nconf.gui.c support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
nconf.h support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
POTFILES.in
qconf.cc support/kconfig: Fix remaining 'kernel' mention 2013-12-28 16:05:25 +01:00
qconf.h support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
README.buildroot support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
streamline_config.pl support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
symbol.c support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
util.c support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
zconf.gperf support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
zconf.hash.c_shipped support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
zconf.l support/kconfig: Update kconfig to 3.13-rc5 2013-12-28 16:02:11 +01:00
zconf.lex.c_shipped support/kconfig: upgrade to 3.9-rc2 2013-04-11 09:30:39 +02:00
zconf.tab.c_shipped support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00
zconf.y support/kconfig: bump to kconfig from linux-3.12 2013-11-14 12:34:49 +01:00

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

To update:
	cp -r /usr/src/linux/scripts/kconfig support/kconfig.new
	cd support/kconfig.new
	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
	xconfig
	gconfig
	oldconfig