diff options
author | Piotr Kubaj <pkubaj@anongoth.pl> | 2017-05-17 20:33:47 +0200 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-04-16 22:18:26 +0000 |
commit | 1b36c9de66eb91981983df21e7f3c05c19a15709 (patch) | |
tree | b8ea23f7336e2e493d018c0377d0a3dcd9550902 /util/nvramtool/Makefile | |
parent | a4bf0b7cd18595d1ff37ccaa53112cb3b94dc512 (diff) |
nvramtool: Fix build with OpenBSD
OpenBSD needs the same includes as NetBSD. It also doesn't have x86_64_iopl
function, but amd64_iopl.
Change-Id: I28273d4d87a3a77cf35412a0695325c0535e42e5
Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl>
Reviewed-on: https://review.coreboot.org/19741
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'util/nvramtool/Makefile')
-rw-r--r-- | util/nvramtool/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile index bb623bbe1a..8da7c76c8c 100644 --- a/util/nvramtool/Makefile +++ b/util/nvramtool/Makefile @@ -34,7 +34,7 @@ OS_ARCH = $(shell uname) ifeq ($(OS_ARCH), Darwin) LDFLAGS = -framework DirectHW endif -ifeq ($(OS_ARCH), NetBSD) +ifeq ($(OS_ARCH),$(filter $(OS_ARCH),NetBSD OpenBSD)) LDFLAGS = -l$(shell uname -p) endif ifeq ($(shell uname -o 2>/dev/null), Cygwin) |