Stop building FDT-only modules in an ACPI only kernel
When building a kernel without FDT these modules don't build. As they depend on FDT and don't work with ACPI disable them. Reviewed by: imp, kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37178
This commit is contained in:
parent
02dba4f75f
commit
701ab6dba4
@ -611,8 +611,10 @@ _irdma= irdma
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
|
||||
${MACHINE_CPUARCH} == "riscv"
|
||||
.if !empty(OPT_FDT)
|
||||
_if_cgem= if_cgem
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# These rely on 64bit atomics
|
||||
.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
|
||||
@ -638,18 +640,23 @@ _cxgb= cxgb
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64"
|
||||
_allwinner= allwinner
|
||||
_armv8crypto= armv8crypto
|
||||
_dpaa2= dpaa2
|
||||
_dwwdt= dwwdt
|
||||
_em= em
|
||||
|
||||
.if !empty(OPT_FDT)
|
||||
_allwinner= allwinner
|
||||
_dwwdt= dwwdt
|
||||
_enetc= enetc
|
||||
_felix= felix
|
||||
_rockchip= rockchip
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
|
||||
.if !empty(OPT_FDT)
|
||||
_sdhci_fdt= sdhci_fdt
|
||||
.endif
|
||||
_e6000sw= e6000sw
|
||||
_neta= neta
|
||||
_hyperv= hyperv
|
||||
|
@ -24,8 +24,10 @@ uart_cpu_machine= ${_uart_cpu}
|
||||
|
||||
.if ${MACHINE} == "arm64"
|
||||
uart_dev_mvebu=uart_dev_mvebu.c
|
||||
.if !empty(OPT_FDT)
|
||||
uart_dev_mu=uart_dev_mu.c
|
||||
.endif
|
||||
.endif
|
||||
|
||||
KMOD= uart
|
||||
SRCS= ${uart_bus_acpi} uart_bus_isa.c \
|
||||
|
Loading…
Reference in New Issue
Block a user