summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* Don't free fnamebuf before we calling cfgfile_add(). This changes atruckman2016-05-161-2/+3
| | | | | | | use-after-free error into a minor memory leak. Reported by: Coverity CID: 1006084
* For pointers use NULL instead of 0.araujo2016-04-272-24/+24
| | | | | | Reviewed by: rpaulo MFC after: 2 weeks. Differential Revision: https://reviews.freebsd.org/D5946
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-16/+0
| | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* Document the ability to override compiled-in env and hints using variablesian2016-02-211-3/+6
| | | | in the bootloader-provided env.
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* Fix two memory leaks in config(8).rpaulo2015-10-131-0/+2
| | | | | PR: 202145 Submitted by: Kurt Lidl <lidl pix.net>
* Make it clear that we're ignoring the return value fread(3). Allimp2015-08-241-1/+1
| | | | | | errors that might happen here will be reported a few lines down. CID: 1295248
* Add META_MODE support.sjg2015-06-131-0/+37
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-277-21/+57
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-1/+1
| |\
| * \ Merge head from 7/28sjg2014-08-191-2/+0
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge headsjg2014-04-286-194/+192
| |\ \ \
| * \ \ \ Merge from headsjg2013-09-053-13/+11
| |\ \ \ \
| * \ \ \ \ sync from headsjg2013-04-121-2/+10
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-111-0/+2
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | |
| | | | | | |
| | \ \ \ \ \
| *-. \ \ \ \ \ Sync from headsjg2012-11-041-2/+2
| |\ \ \ \ \ \ \
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+36
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | config: remove set but unchecked variableeadler2015-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reported by: gcc5.1
* | | | | | | | Add -s option to config.rodrigc2015-01-292-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option allows for specifying the directory to use as the location for kernel source files. This option was ported from NetBSD. GitHub Pull Request: https://github.com/freebsd/freebsd/pull/18 Submitted by: Steve Kiernan <stevek@juniper.net>, Simon Gerraty <sjg@juniper.net> Obtained from: Juniper Networks, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D1722 Relnotes: yes
* | | | | | | | Bump config(8) minor version for r277567.will2015-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Config files built using this version that take advantage of the bugfix won't be buildable using older config(8). Submitted by: imp MFC after: 1 week MFC with: 277567
* | | | | | | | Allow lists for "nooption" and "nooptions" keywords.will2015-01-231-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usr.sbin/config/config.y According to config(5), the "device", "devices", "nodevice", "nodevices", "option", "options", "nooption", and "nooptions" keywords can all take a comma-separated list of values. However, the yacc code did not allow lists for "nooption" and "nooptions", only single values. This commit fixes the yacc code to allow comma separated values for all the above keywords. Submitted by: asomers MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1095296 on 2014/10/07
* | | | | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | Fix the negation (!) operator so that it binds only to the word thatian2014-11-231-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately follows it, which means 'not' has to be reset every time an option word or device name is processed.
* | | | | | | | Consider the negation operator (!) to be a word even if it is not followedian2014-11-231-0/+5
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | by whitespace. This allows "optional !foo" which is what most programmers are naturally going to tend to do as opposed to "optional ! foo".
* | | | | | | mdoc: kill EOL whitespace.joel2014-07-291-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | Remove ia64.marcel2014-07-071-2/+0
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* | | | | Fix kern/187712: config(8) does not respect KERNCONFDIR.asomers2014-03-204-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The impact of this bug is that you cannot build a kernel if both of the following are true: 1) The kernel config file is in a non-default location 2) The kernel config file uses the "include" statement from config(5). usr.sbin/config/main.c usr.sbin/config/config.8 usr.sbin/config/config.h usr.sbin/config/lang.l Added a "-I path" option to config(8). By analogy to cc(1), it adds an extra path in which the "include" statement will search for files. Makefile.inc1 Pass "-I ${KERNCONFDIR}" to config(8). PR: kern/187712 Reviewed by: will, imp (previous version) MFC after: 3 weeks Sponsored by: Spectra Logic Corporation
* | | | | Fix ! by not clearing not at the bottom of the loop.imp2014-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a blank line Submitted by: bde (blank line)
* | | | | Implement the '!' operator for files* files. It means 'include thisimp2014-02-042-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only if the specified option is NOT specified.' Bump version because old config won't be able to cope with files* files that have this construct in them.
* | | | | Convert the loop by gotos into a for loop to improve readability. Iimp2014-02-031-124/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | did this only with the inner loop for the token parsing, and not the outer loop which was understandable enough when the extra layers of looping went away...
* | | | | Fix a bug introduced in r261437 that failed to honor "optionalimp2014-02-031-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | profiling-routine" to work, since profiling-routine is not really an option or a device, but a special case elsewhere in the code.
* | | | | Slight cleanup to the error messaging to compress code vertically...imp2014-02-031-57/+38
| | | | |
* | | | | Better error messages when EOF is hit in the middle of a phrase.imp2014-02-031-18/+6
| | | | |
* | | | | Move the check for standard keyword + optional inclusion specifier toimp2014-02-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | its proper location. Otherwise you could have 'file.c standard pci' without an error. This construct isn't in our tree, and has no well defined meaning.
* | | | | Don't believe we have a requirement until after we've checked all theimp2014-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | known key words. This will make error messages slightly better in weird corner cases, but should otherwise be a nop.
* | | | | In the 17 years since r30796, the mandatory keyword has never been usedimp2014-02-031-16/+4
| | | | | | | | | | | | | | | | | | | | in any files as far as I can tell, and is currently unused. Retire it.
* | | | | Slightly deobfuscate read_file() and likely pessimize the runtimeimp2014-02-031-57/+49
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | performance by epsilon. (Translation: elminate bogus macros that hid 'returns' making it hard to read and moved a block of code inline rather than at the end of the fuction where it was effectively a 'gosub' kind of goto).
* | | | Work around build breakages with GCC 4.2.jkim2013-05-231-0/+1
| | | | | | | | | | | | | | | | Reported by: tinderbox
* | | | Improve compatibility with recent flex from flex.sourceforge.net.jkim2013-05-031-3/+4
| | | |
* | | | Make the internal assertion correct--only fail when '\0' is found inwkoszek2013-05-011-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | places other than the end of the test section. Otherwise, with kernel compiled with Clang which happens to be setting ELF section alignment differently config(8) was throwing assert() failure unnecessarily Reported by: Kimmo Paasiala <kpaasial (at) gmail.com> Tested by: Kimmo Paasiala <kpaasial (at) gmail.com> MFC after: 10 days
* | | | Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-191-0/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* | | Loosen restrictions for quoted strings. Now we can use more complex stringsjkim2013-03-261-2/+10
| |/ |/| | | | | | | | | and "escaped" quote characters. MFC after: 1 month
* | - Fix the error message when a dependency string is not provided tojhb2012-10-101-2/+2
|/ | | | | | | | | reference a missing dependency rather than a missing compile command. - Don't append a newline to the auto-generated compile command. The compile command has a newline appended when it is later output to the Makefile. MFC after: 2 weeks
* Fix world after byacc import:bapt2012-05-222-1/+1
| | | | | | | | - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor)
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-3/+3
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Fix copyright yearkevlo2012-01-131-1/+1
| | | | Spotted by: pluknet
OpenPOWER on IntegriCloud