switch-coreboot/util/ectool
Steven Dee 3f05b0ec99 UPSTREAM: ectool: Support OpenBSD
Adds checks for OpenBSD in all the places that were already checking for
NetBSD. This fixes e.g.:

    ec.c:21:20: error: sys/io.h: No such file or directory

which was caused by defaulting to Linux.

Also, OpenBSD calls its amd64 iopl amd64_iopl instead of x86_64_iopl.
This change just defines iopl appropriately depending on the
OS and architecture.

TEST=Build on OpenBSD 6.0 or -current from 2017-01-25.

Change-Id: I71f8793f5145bd8b8f58c765e91a31913ee143ac
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 3236f7be09
Original-Change-Id: If6d92a9850c15cd9f8e287cc4f963d3ff881f72c
Original-Signed-off-by: Steven Dee <i@wholezero.org>
Original-Reviewed-on: https://review.coreboot.org/18260
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://chromium-review.googlesource.com/435812
2017-02-03 09:08:55 -08:00
..
ec.c UPSTREAM: ectool: Support OpenBSD 2017-02-03 09:08:55 -08:00
ec.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ectool.c UPSTREAM: ectool: Support OpenBSD 2017-02-03 09:08:55 -08:00
Makefile UPSTREAM: ectool: Support OpenBSD 2017-02-03 09:08:55 -08:00