Stop limiting freeipmi to i386 and amd64.

sthen@ points out that low-level io (inb/outb) isn't needed any more on
those archs, now that we have an ipmi driver.  ok sthen@
This commit is contained in:
jca 2016-12-30 17:39:22 +00:00
parent eac496bbf1
commit 0d8cf857ae
2 changed files with 26 additions and 4 deletions

View File

@ -1,11 +1,9 @@
# $OpenBSD: Makefile,v 1.30 2016/12/29 18:26:47 jca Exp $
# needs machine/sysarch.h & machine/pio.h
ONLY_FOR_ARCHS= amd64 i386
# $OpenBSD: Makefile,v 1.31 2016/12/30 17:39:22 jca Exp $
COMMENT= IPMI library and tools (in- and out-of-band)
V= 1.5.5
REVISION= 0
DISTNAME= freeipmi-${V}
SHARED_LIBS += freeipmi 6.3 # 18.3

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-libfreeipmi_driver_ipmi-kcs-driver_c,v 1.3 2016/12/30 17:39:22 jca Exp $
Disable low-level IO code.
--- libfreeipmi/driver/ipmi-kcs-driver.c.orig Wed Nov 2 23:50:21 2016
+++ libfreeipmi/driver/ipmi-kcs-driver.c Thu Dec 29 22:55:58 2016
@@ -148,7 +148,7 @@
#if defined(__FreeBSD__)
# include <machine/cpufunc.h>
# include <machine/sysarch.h>
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__NetBSD__)
# include <machine/pio.h> /* inb/outb */
# include <machine/sysarch.h> /* sysarch call */
#elif defined(HAVE_SYS_IO_H)
@@ -159,7 +159,7 @@
# include <asm/io.h>
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
# define _INB(port) inb (port)
# define _OUTB(data, port) outb (port, data)
#elif defined(HAVE_IOPL)