aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config
Commit message (Collapse)AuthorAgeFilesLines
* build: fix xconfig targetleo chung2019-10-091-1/+1
| | | | | | | | | | | | | | | | | `make xconfig` fails with following linking error of qconf binary: g++ -lQt5Widgets -lQt5Gui -lQt5Core -o qconf qconf.o zconf.tab.o /usr/bin/ld: qconf.o: in function ConfigList::metaObject() const': qconf.cc:(.text+0x3eb): undefined reference to QObjectData::dynamicMetaObject() const' /usr/bin/ld: qconf.o: in function `ConfigList::qt_metacast(char const*)': link error. which is caused by the wrong order of the linked objects/libraries so this patch reorders the linker's arguments which makes the qconf compile again. Signed-off-by: leo chung <gewalalb@gmail.com> [commit subject and message tweaks, whitespace fix] Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit b2c55d50f8aeb21ef4cd3948034a158f7dd743c2)
* build: fix host menu config targets using ncursesPetr Štetiar2019-10-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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 965f341aa9fdb6e07d509d02a6ca188af050292a)
* scripts/config: fix *c_shipped build depency trackingJonas Gorski2019-09-041-4/+4
| | | | | | | | | | | | | | The Makefile was missing dependencies on *c_shipped, so changes never triggered a rebuild. Add these as optional dependencies so their absence isn't treated as an error. In addition, fix a typo preventing the zconf.lex.o from being removed on clean. Fixes: 9d5510a500a1 ("build: add new menuconfig code based on linux 3.9") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 0096a1cf0015e483b99e51c74f2f0bbae7247342)
* config: fix relational operators for bool and tristate symbolsNicolas Pitre2019-09-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 31847b67bec0 ("kconfig: allow use of relations other than (in)equality") it is possible to use relational operators in Kconfig statements. However, those operators give unexpected results when applied to bool/tristate values: (n < y) = y (correct) (m < y) = y (correct) (n < m) = n (wrong) This happens because relational operators process bool and tristate symbols as strings and m sorts before n. It makes little sense to do a lexicographical compare on bool and tristate values though. Documentation/kbuild/kconfig-language.txt states that expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2 respectively for calculations). Let's make it so for relational comparisons with bool/tristate expressions as well and document them. If at least one symbol is an actual string then the lexicographical compare works just as before. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [rebased against OpenWrt kconfig, slightly reword commit message] (backported from upstream 9059a3493efea6492451430c7e2fa0af799a2abb) Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 75dcaf3d23301da35eb4a6d0efc5ba5a0ed09850)
* config: regenerate *_shipped sourcesJonas Gorski2019-09-042-243/+302
| | | | | | | | | | | | | | The pregenerated `zconf.hash.c` and `zconf.lex.c` files have not been kept in sync with their respective `*.y` and `*.l` sources in the past causing our kconfig implementation to not recognize important kconfig grammer elements such as relational `<`, `<=`, `>` and `>=` operators. Fixes: 2d7e602381f3 ("scripts/config: sync with latest linux upstream") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 972123f1e056e6d443be1e4a11db09b5d2ef53da)
* config: Change conf.c remove compiler warningsPaul Schulz2018-07-301-6/+6
| | | | | | | | | | | | Compiler is producing the warning: warning: format not a string literal and no format arguments [-Wformat-security] This patch makes the format a literal string in printf statements. This with: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) in Ubuntu 18.04 Signed-off-by: Paul Schulz <paul@mawsonlakes.org>
* build: cleanup leftover qconf filesAlif M. Ahmad2018-02-131-1/+1
| | | | | | | | | | ``make xconfig`` toplevel target will invoke ``make qconf`` inside ./scripts/config directory, which results a ``qconf`` executable. This commit removes leftover ``qconf`` executable during ``make config-clean``. Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* merge: base: update base-files and basic configZoltan HERPAI2017-12-081-1/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* scripts/config: add qconf files to .gitignoreAlif M. Ahmad2017-11-021-0/+6
| | | | | | | | | This commit adds qconf related files to .gitignore. The files to be tracked are qconf.cc, qconf.h, and images.c. The files to be ignored are qconf*.o, qconf*, qconf.moc, and .tmp_qtcheck. Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* scripts/config: Add qconf target to MakefileAlif M. Ahmad2017-11-021-0/+56
| | | | | | | | | | qconf is kconfig UI utilizing QT toolkit. This makes it possible to use graphical interface interaction to configure LEDE build target. This commit adds qconf target to ./script/config/Makefile to be used by toplevel ``make xconfig`` later. Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* scripts/config: add -DKBUILD_NO_NLS to CXXFLAGSFelix Fietkau2017-11-021-0/+1
| | | | | | Preparation for adding C++ code which needs the same flag Signed-off-by: Felix Fietkau <nbd@nbd.name>
* scripts/config: import qconfAlif M. Ahmad2017-11-023-0/+2526
| | | | | | Import qconf.cc, qconf.h, and images.c from linux kernel 4.9.13 archive. Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* scripts/config: properly handle select on symbols with unmet direct dependenciesFelix Fietkau2016-08-031-11/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* scripts/config: sync with latest linux upstreamFelix Fietkau2016-08-0315-1394/+1398
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* branding: add LEDE brandingJohn Crispin2016-03-241-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* scripts/config: fix handling of CONFDEFAULT on oldconfigFelix Fietkau2015-11-031-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47372
* scripts/config: sync with linux upstreamFelix Fietkau2015-01-0824-239/+627
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43873
* scripts/config: fix segfault introduced in r43652Felix Fietkau2014-12-132-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43695
* scripts/config: remove debug statementJo-Philipp Wich2014-12-121-1/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43655
* scripts/config: support includes relative to the currently processed fileJo-Philipp Wich2014-12-122-0/+21
| | | | | | | | | | | | | When the initial glob() attempt on a path specified with "source" statement yields no result, then retry the globbing on the same path with the directory part of the currently processed file prepended. This allows us to reference Config.in files relative to their parent instead of relative to the top dir. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43652
* scripts/config: make wildcard include with no results non-fatalFelix Fietkau2014-03-102-0/+14
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39862
* scripts/config: fix an option processing error that caused duplication in ↵Felix Fietkau2013-05-021-3/+3
| | | | | | | | diffconfig.sh output (#13384) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36522
* scripts/config: warn on deprected "depends" syntax instead of throwing a ↵Felix Fietkau2013-04-222-143/+158
| | | | | | | | syntax error Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36375
* build: add new menuconfig code based on linux 3.9Felix Fietkau2013-04-1833-3795/+5720
| | | | SVN-Revision: 36361
* scripts/config: fix menuconfig segfault in text inputs when format patterns ↵Jo-Philipp Wich2012-10-141-1/+1
| | | | | | are entered by the user SVN-Revision: 33773
* mconf: Fix compile warning: "warning: conflicting types for ↵Michael Büsch2011-11-161-20/+20
| | | | | | ‘sym_set_all_changed’" SVN-Revision: 29190
* scripts/config: merge fixes for various issues, including recursive ↵Felix Fietkau2011-10-287-40/+82
| | | | | | dependency detection/handling (patch by mbm) SVN-Revision: 28658
* scripts/config/.gitignore omits source files scripts/config/.gitignore aims ↵Jo-Philipp Wich2011-06-202-1/+6
| | | | | | | | to avoid checking binaries in to git. Unfortunately it also omits conf.c, confdata.c, and all source files in lxdialog. An OpenWRT tree pulled from a git repository will not build, and I suspect this was not the intention. Signed-off-by: Denton Gentry <denny@geekhold.com> SVN-Revision: 27244
* scripts/config: add an option for making the conf tool write to a different fileFelix Fietkau2011-01-291-2/+6
| | | | SVN-Revision: 25230
* adjust svn:ignore for cygwin buildsFlorian Fainelli2010-01-051-2/+2
| | | | SVN-Revision: 19040
* menuconfig: allow wildcard includes to return no match (#6339)Felix Fietkau2009-12-112-2/+8
| | | | SVN-Revision: 18743
* fix breakage introduced with [17394]Imre Kaloz2009-08-251-0/+1
| | | | SVN-Revision: 17395
* do not check for a specific Cygwin version, rather check the operating ↵Florian Fainelli2009-08-251-2/+1
| | | | | | system name directly, thanks AndyI SVN-Revision: 17394
* cygwin also needs to be passed LIBS=-lncurses to link lxdialog successfullyFlorian Fainelli2009-04-101-2/+3
| | | | SVN-Revision: 15183
* menuconfig: don't generate inconsistencies when ~/.openwrt/defconfig ↵Felix Fietkau2008-10-181-5/+1
| | | | | | specifies a default target SVN-Revision: 13008
* ignore mconf_checkFelix Fietkau2007-10-201-0/+1
| | | | SVN-Revision: 9379
* add possibility to set default .config valuesJohn Crispin2007-10-143-58/+88
| | | | SVN-Revision: 9300
* add initial version of a package feeds management scriptFelix Fietkau2007-09-231-18/+1
| | | | SVN-Revision: 8973
* color change to make menuconfig easier to read (patch from #1730)Felix Fietkau2007-07-111-5/+5
| | | | SVN-Revision: 7909
* remove a useless warningFelix Fietkau2007-06-121-3/+0
| | | | SVN-Revision: 7588
* Add gitignore filesFelix Fietkau2007-05-291-0/+5
| | | | SVN-Revision: 7385
* fix menuconfig 'deselect' statementFelix Fietkau2007-03-291-4/+7
| | | | SVN-Revision: 6753
* add 'deselect' property for menuconfigFelix Fietkau2007-03-239-442/+483
| | | | SVN-Revision: 6647
* disable the automatic config reset if 'Advanced configuration options' is ↵Felix Fietkau2007-03-044-104/+108
| | | | | | selected SVN-Revision: 6506
* force a config reset when the user changes the target platform in menuconfigFelix Fietkau2007-03-046-290/+317
| | | | SVN-Revision: 6503
* add openbsd compatibility patch (thanks, wbx)Felix Fietkau2006-12-102-2/+9
| | | | SVN-Revision: 5749
* *sigh* increase size of the static buffer allocated in menuconfig againFelix Fietkau2006-10-171-1/+1
| | | | SVN-Revision: 5198
* don't generate .tmpconfig.h and .kconfig.dFelix Fietkau2006-10-142-70/+1
| | | | SVN-Revision: 5071
* improve ncurses checkFelix Fietkau2006-10-131-1/+1
| | | | SVN-Revision: 5064
* fix lxdialog build targetFelix Fietkau2006-10-131-3/+2
| | | | SVN-Revision: 5063