[Bug 269994] build options have different kernel and userland defaults

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Mar 2023 14:12:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269994

            Bug ID: 269994
           Summary: build options have different kernel and userland
                    defaults
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

Options EFI and FDT have different defaults in src.opts.mk and kern.conf.mk,
prompting warnings from makeman:

amd64/amd64: ignoring duplicate option FDT
arm/armv6: ignoring duplicate option FDT
arm/armv7: ignoring duplicate option FDT
arm64/aarch64: ignoring duplicate option FDT
i386/i386: ignoring duplicate option FDT
powerpc/powerpc: ignoring duplicate option EFI
powerpc/powerpc: ignoring duplicate option FDT
powerpc/powerpc64: ignoring duplicate option EFI
powerpc/powerpc64: ignoring duplicate option FDT
powerpc/powerpc64le: ignoring duplicate option EFI
powerpc/powerpc64le: ignoring duplicate option FDT
riscv/riscv64: ignoring duplicate option FDT
riscv/riscv64sf: ignoring duplicate option FDT

Both are in src.conf.mk __DEFAULT_YES_OPTIONS, but EFI also has:

# EFI doesn't exist on powerpc (well, officially)
.if ${__T:Mpowerpc*}
BROKEN_OPTIONS+=EFI
.endif

kern.opts.mk has EFI in __DEFAULT_YES_OPTIONS, but:

# EFI doesn't exist on powerpc, or riscv
.if ${MACHINE:Mpowerpc} || ${MACHINE:Mriscv}
BROKEN_OPTIONS+=EFI
.endif

while for FDT it has:

.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
__DEFAULT_NO_OPTIONS += FDT
.else
__DEFAULT_YES_OPTIONS += FDT
.endif

-- 
You are receiving this mail because:
You are the assignee for the bug.