mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Support building IPMI as a module on powerpc64
This still only supports IPMI via OPAL on powerpc64, but now it can be tested with a GENERIC kernel.
This commit is contained in:
parent
513fdd50ee
commit
0bf0bb832f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336724
@ -43,6 +43,7 @@ dev/iicbus/ds1775.c optional ds1775 powermac
|
||||
dev/iicbus/max6690.c optional max6690 powermac
|
||||
dev/iicbus/ofw_iicbus.c optional iicbus aim
|
||||
dev/ipmi/ipmi.c optional ipmi
|
||||
dev/ipmi/ipmi_opal.c optional powernv ipmi
|
||||
dev/nand/nfc_fsl.c optional nand mpc85xx
|
||||
dev/nand/nfc_rb.c optional nand mpc85xx
|
||||
# Most ofw stuff below is brought in by conf/files for options FDT, but
|
||||
@ -192,7 +193,6 @@ powerpc/powernv/opal_console.c optional powernv
|
||||
powerpc/powernv/opal_dev.c optional powernv
|
||||
powerpc/powernv/opal_i2c.c optional iicbus fdt powernv
|
||||
powerpc/powernv/opal_i2cm.c optional iicbus fdt powernv
|
||||
powerpc/powernv/opal_ipmi.c optional powernv ipmi
|
||||
powerpc/powernv/opal_pci.c optional powernv pci
|
||||
powerpc/powernv/opal_sensor.c optional powernv
|
||||
powerpc/powernv/opalcall.S optional powernv
|
||||
|
@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/ipmi.h>
|
||||
#include <dev/ipmi/ipmivars.h>
|
||||
|
||||
#include "opal.h"
|
||||
#include <powerpc/powernv/opal.h>
|
||||
|
||||
struct opal_ipmi_softc {
|
||||
struct ipmi_softc ipmi;
|
@ -794,6 +794,7 @@ _wi= wi
|
||||
|
||||
.if ${MACHINE_ARCH} == "powerpc64"
|
||||
_drm2= drm2
|
||||
_ipmi= ipmi
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"
|
||||
# Don't build powermac_nvram for powerpcspe, it's never supported.
|
||||
|
@ -7,9 +7,15 @@ SUBDIR+= ipmi_linux
|
||||
# XXX - ipmi_smbus and ipmi_ssif depend on smbus
|
||||
# XXX - ipmi_acpi depends on acpi
|
||||
KMOD= ipmi
|
||||
SRCS= ipmi.c ipmi_kcs.c ipmi_smic.c ipmi_smbios.c ipmi_ssif.c
|
||||
SRCS= ipmi.c
|
||||
SRCS+= bus_if.h device_if.h
|
||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "i386"
|
||||
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
|
||||
SRCS+= opt_acpi.h
|
||||
SRCS+= acpi_if.h bus_if.h device_if.h isa_if.h pci_if.h smbus_if.h
|
||||
SRCS+= acpi_if.h isa_if.h pci_if.h smbus_if.h
|
||||
.elif ${MACHINE_ARCH} == "powerpc64"
|
||||
SRCS+= ipmi_opal.c
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user