Re: CVS commit: src/sys/arch

Jason Thorpe <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>

> On Aug 7, 2026, at 8:27 AM, Jason Thorpe <[email protected]> wrote:
> 
> I think I’d like to make config(1) handle this case so that the implied FPSP / M060SP options work, but folks like yourself who want to elide it can do so.
> 
> Looks like the changes to config(1) will be small.  Because option dependencies are done as a separate pass after parsing the config file, what I’ll need to do is keep track of every option explicitly de-selected in the config file with a “no option” statement, and then consult that table when processing the depended-options.

Ok, that was pretty straightforward:

    https://www.netbsd.org/~thorpej/config-desel-depopt-diff.txt

<snip>
# CPU support.  At least one is REQUIRED.
options         M68060
options         M68040
options         M68030
options         M68020          # Note:  must have 68851 PMMU

# CPU-related options.
options         FPU_EMULATE
no options      FPSP
no options      M060SP
<snip>

.
.
.
GENERIC:41: debug: deselecting opt `FPSP'
GENERIC:42: debug: deselecting opt `M060SP’
.
.
.
dependopts:357: debug: depend attr `M060SP' 
dependopts:357: debug: depended option `M060SP' explcitly de-selected
.
.
.
dependopts:357: debug: depend attr `FPSP'
dependopts:357: debug: depended option `FPSP' explcitly de-selected
.
.
.

Jasons-MacBook-Air-2:thorpej$ head -1 ../compile/GENERIC/opt_fpsp.h
/* option `FPSP' not defined */
Jasons-MacBook-Air-2:thorpej$ head -1 ../compile/GENERIC/opt_m060sp.h
/* option `M060SP' not defined */
Jasons-MacBook-Air-2:thorpej$ 

-- thorpej
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.