History log of /freebsd-current/share/mk/bsd.mkopt.mk
Revision Date Author Comments
# ce5fa47c 01-Sep-2023 Brooks Davis <brooks@FreeBSD.org>

share/mk: support for "single" group options

Support group options where 1 of n values will be selected (or a default
value will be used). After processing, an OPT_FOO will be set to one
value from __FOO_OPTIONS for each FOO in __SINGLE_OPTIONS. If the user
sets FOO that value will be used, otherwise __FOO_DEFAULT will be used.

Options that don't work an a particular system can be remapped to an
alternative using BROKEN_SINGLE_OPTIONS which can be set to a list of
3-tuples of the form:
OPTION broken_value replacement_value

This is somewhat inspired by OPTIONS_SINGLE from ports, but the
structure is quite different with a per-option variable in the style of
MK_FOO={yes,no}.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41659


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 824b64a2 19-Jun-2023 Colin Percival <cperciva@FreeBSD.org>

Warn about nonfunctional WITHOUT options

Print a warning if we try to WITHOUT_ an option which is marked as
"required" (and forced on).

Suggested by: emaste, imp
Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D40613


# b908f6c4 17-Jun-2023 Colin Percival <cperciva@FreeBSD.org>

bsd.mkopt.mk: Add REQUIRED_OPTIONS list

Options on this list will be forced to 'yes'. This is intended for use
as a transitional measure when an option is ceasing to be optional,
before all of the associated make logic is removed.

Differential Revision: https://reviews.freebsd.org/D40590


# bca92be6 04-Feb-2022 John Baldwin <jhb@FreeBSD.org>

Remove more quotes around Makefile .error/.warn/.info strings.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D34175


# 36435ca5 09-Jun-2021 Warner Losh <imp@FreeBSD.org>

insetad -> instead


# f4d987cd 09-Jun-2021 Warner Losh <imp@FreeBSD.org>

mk: WITH_FOO=no now generates a warning

Many people are used to gnu configure's behavior of changing
--with-foo=no to --without-foo. At the same time, several folks have
WITH_FOO=no in their config files to enable this ironic form of the
option because of an old meme from IRC, a mailing list or the forums (I
forget which). Add a warning to allow to alert people w/o breaking POLA.

Reviewed by: allanjude, bdrewery, manu
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30684


# 84bfb424 15-Sep-2019 Simon J. Gerraty <sjg@FreeBSD.org>

Document logic for __DEFAULT_DEPENDENT_OPTIONS

Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D21640


# 7090067b 22-Jun-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Appy := to dependent opts once value determined.

This is needed to fix output from 'make showconfig'


# d800e677 05-Jun-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Add support for dependent options

Reviewed by: imp


# 3b33c213 26-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Add support for __DEFAULT_DEPENDENT_OPTIONS


# 8465cb40 27-Mar-2015 Warner Losh <imp@FreeBSD.org>

Revert the __ALWAYS_NO stuff. It had already been committed as BROKEN.


# 3fe1e58d 26-Mar-2015 Warner Losh <imp@FreeBSD.org>

Add support for specifying unsupported / broken options that override
any defaults or user specified actions on the command line. This would
be useful for specifying features that are always broken or that
cannot make sense on a specific architecture, like ACPI on pc98 or
EISA on !i386 (!x86 usage of EISA is broken and there's no supported
hardware that could have it in any event). Any items in
__ALWAYS_NO_OPTIONS are forced to "no" regardless of other settings.

Differential Revision: https://reviews.freebsd.org/D2011


# 06d4e2ab 11-Mar-2015 Warner Losh <imp@FreeBSD.org>

Add support for specifying unsupported / broken options that override
any defaults or user specified actions on the command line. This would
be useful for specifying features that are always broken or that
cannot make sense on a specific architecture, like ACPI on pc98 or
EISA on !i386 (!x86 usage of EISA is broken and there's no supported
hardware that could have it in any event). Any items in
BROKEN_OPTIONS are forced to "no" regardless of other settings.
Clients are expected change BROKEN_OPTIONS with +=. It will not
be unset, so other parts of the build system can have visibility
into the options that are broken on this platform, though this
should be very rare.

Differential Revision: https://reviews.freebsd.org/D2009


# a469e551 09-Feb-2015 Warner Losh <imp@FreeBSD.org>

Enforce that MK_foo options shall be either "yes" or "no" and nothing
else.


# 14cac2a6 22-Oct-2014 John-Mark Gurney <jmg@FreeBSD.org>

fix spelling of DEFAULT in comments...


# 3ceb1e53 08-May-2014 Warner Losh <imp@FreeBSD.org>

Spell always the more traditional way.


# 09df65e4 07-May-2014 Warner Losh <imp@FreeBSD.org>

Put bsd.own.mk back in the list, and take src.opts.mk out.
Fix a silly typo.


# 8a863ef3 07-May-2014 Warner Losh <imp@FreeBSD.org>

Fix a typo make should have complained about.

Submitted by: Mark Johnston


# 9b01449f 05-May-2014 Warner Losh <imp@FreeBSD.org>

[1] Make WITHOUT_FOO alway trump WITH_FOO, regardless of the system
default. This restores more of the historical expectations that
were broken when we started disallowing both WITH_FOO and
WITHOUT_FOO to be defined.
[2] Document this new behavior, and improve the documentation in
general here.

Submitted by: sjg@ [1].


# 541f25d3 05-May-2014 Simon J. Gerraty <sjg@FreeBSD.org>

WITHOUT always wins

Reviewed by: imp


# 5144b2be 18-Apr-2014 Warner Losh <imp@FreeBSD.org>

Move the generic part of bsd.opts.mk into bsd.mkopts.mk to allow for
the WITH/WITHOUT_FOO -> MK_FOO={yes,no} stuff to be used elsewhere.