freebsd-nq/sys/modules/ipmi/Makefile
Mitchell Horne 40d0971bbe 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
2021-01-07 15:45:25 -04:00

31 lines
681 B
Makefile

# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/ipmi
# XXX - ipmi_smbus and ipmi_ssif depend on smbus
# XXX - ipmi_acpi depends on acpi
KMOD= ipmi
SRCS= ipmi.c
SRCS+= bus_if.h device_if.h
.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
.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
.elif ${MACHINE_ARCH:Mpowerpc64*} != ""
SRCS+= ipmi_opal.c ofw_bus_if.h
.endif
.include <bsd.kmod.mk>