openwrt/scripts/config
Petr Štetiar f2c321fc07 build: fix host menu config targets using ncurses
On a recent Gentoo Linux installation, invoking `make menuconfig`, `make
kernel_menuconfig` or `make kernel_nconfig` in the build system fails,
whereas for example `make menuconfig` in the kernel tree alone works as
expected.

This is happening because STAGING_PREFIX is not defined when kernel's
{menu,n}config target calls pkg-config from the toolchain/host and thus
pkg-config returns an empty value, and the fallback values in the kernel
config script are applied but those are off and the linking fails.

Solution is to use system's pkg-config for all ncurses based menu config
targets in order to provide proper compiler/linker flags.

Ref: FS#2423
Cc: Thomas Albers <thomas.gameiro@gmail.com>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Tested-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 965f341aa9)
2019-10-09 21:07:13 +02:00
..
lxdialog scripts/config: sync with linux upstream 2015-01-08 14:33:53 +00:00
.gitignore scripts/config: add qconf files to .gitignore 2017-11-02 15:58:45 +01:00
conf.c config: Change conf.c remove compiler warnings 2018-07-30 10:43:36 +02:00
confdata.c scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
expr.c config: fix relational operators for bool and tristate symbols 2019-09-04 13:15:26 +02:00
expr.h scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
images.c scripts/config: import qconf 2017-11-02 15:58:45 +01:00
list.h scripts/config: sync with linux upstream 2015-01-08 14:33:53 +00:00
lkc_proto.h scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
lkc.h scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
Makefile build: fix host menu config targets using ncurses 2019-10-09 21:07:13 +02:00
mconf.c merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
menu.c scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
qconf.cc scripts/config: import qconf 2017-11-02 15:58:45 +01:00
qconf.h scripts/config: import qconf 2017-11-02 15:58:45 +01:00
README build: add new menuconfig code based on linux 3.9 2013-04-18 12:05:16 +00:00
symbol.c scripts/config: properly handle select on symbols with unmet direct dependencies 2016-08-03 20:03:36 +02:00
util.c scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
zconf.gperf scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
zconf.hash.c_shipped config: regenerate *_shipped sources 2019-09-04 13:15:26 +02:00
zconf.l scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
zconf.lex.c_shipped config: regenerate *_shipped sources 2019-09-04 13:15:26 +02:00
zconf.tab.c_shipped scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00
zconf.y scripts/config: sync with latest linux upstream 2016-08-03 20:03:35 +02:00

These files were taken from the Linux 3.9 Kernel
Configuration System and modified for the OpenWrt Buildroot.