diff options
| author | Warner Losh <imp@FreeBSD.org> | 2016-10-13 06:56:23 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2016-10-13 06:56:23 +0000 |
| commit | b2a7ac4802a9305b991da287f334dae481cd80e3 (patch) | |
| tree | 8fc801507eff6e060fa4e7f062800e8742ca1f80 /lib | |
| parent | ebd3b79f20c4bcf6d01943c31528e8f5620cce5d (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile | 2 | ||||
| -rw-r--r-- | lib/libefivar/efivar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index 5d45734f8039..a1051fa7ba03 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -241,7 +241,7 @@ _libcxxrt= libcxxrt _libcplusplus= libc++ .endif -.if ${MACHINE_ARCH} == "amd64" +.if ${MK_EFI} != "no" _libefivar= libefivar .endif diff --git a/lib/libefivar/efivar.c b/lib/libefivar/efivar.c index fabdec3fcc77..4d485287a6d1 100644 --- a/lib/libefivar/efivar.c +++ b/lib/libefivar/efivar.c @@ -108,7 +108,7 @@ efi_open_dev(void) { if (efi_fd == -2) - efi_fd = open("/dev/efidev", O_RDWR); + efi_fd = open("/dev/efi", O_RDWR); if (efi_fd < 0) efi_fd = -1; else |
