arm64: enable build of the ipmi module

Only ACPI attachment is supported for now, some others depend on the
presence of smbios(4) support, which we lack on arm64.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D28009
This commit is contained in:
Mitchell Horne 2021-01-06 16:27:40 -04:00
parent d68cf57b7f
commit 40d0971bbe
3 changed files with 17 additions and 5 deletions

View File

@ -361,6 +361,10 @@ dev/iicbus/twsi/a10_twsi.c optional twsi fdt
dev/iicbus/twsi/twsi.c optional twsi fdt
dev/iommu/busdma_iommu.c optional iommu
dev/iommu/iommu_gas.c optional iommu
dev/ipmi/ipmi.c optional ipmi
dev/ipmi/ipmi_acpi.c optional ipmi acpi
dev/ipmi/ipmi_kcs.c optional ipmi
dev/ipmi/ipmi_smic.c optional ipmi
dev/mbox/mbox_if.m optional soc_brcm_bcm2837
dev/mmc/host/dwmmc.c optional dwmmc fdt
dev/mmc/host/dwmmc_altera.c optional dwmmc dwmmc_altera fdt

View File

@ -505,6 +505,7 @@ _ibcore= ibcore
_ipoib= ipoib
_iser= iser
.endif
_ipmi= ipmi
_mlx4= mlx4
_mlx5= mlx5
.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
@ -682,7 +683,6 @@ _ichwd= ichwd
_ida= ida
_iir= iir
_intelspi= intelspi
_ipmi= ipmi
_ips= ips
_isci= isci
_ipw= ipw

View File

@ -7,11 +7,19 @@
KMOD= ipmi
SRCS= ipmi.c
SRCS+= bus_if.h device_if.h
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
SRCS+= ipmi_kcs.c ipmi_smic.c ipmi_smbios.c ipmi_ssif.c
SRCS+= ipmi_acpi.c ipmi_isa.c ipmi_pci.c ipmi_smbus.c
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "aarch64"
SRCS+= ipmi_kcs.c ipmi_smic.c
SRCS+= ipmi_acpi.c
SRCS+= opt_acpi.h
SRCS+= acpi_if.h isa_if.h pci_if.h smbus_if.h
SRCS+= acpi_if.h
.endif
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
SRCS+= ipmi_smbios.c ipmi_ssif.c
SRCS+= ipmi_isa.c ipmi_pci.c ipmi_smbus.c
SRCS+= isa_if.h pci_if.h smbus_if.h
SUBDIR+= ipmi_linux