summaryrefslogtreecommitdiff
path: root/src/shared/efivars.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-02-13 23:07:59 +0100
committerLennart Poettering <lennart@poettering.net>2013-02-13 23:08:25 +0100
commitb872e9a05939bc3e0ac95a042592506a7488dd6f (patch)
tree53a2f851a45ab77af7c1893f50a1d706f37584f5 /src/shared/efivars.c
parent46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e (diff)
build-sys: make EFI support build-time optional
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r--src/shared/efivars.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index 840e4e0c35..8494f37729 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -28,6 +28,8 @@
#include "utf8.h"
#include "efivars.h"
+#ifdef ENABLE_EFI
+
bool is_efi_boot(void) {
return access("/sys/firmware/efi", F_OK) >= 0;
}
@@ -469,3 +471,5 @@ int efi_get_loader_device_part_uuid(sd_id128_t *u) {
return 0;
}
+
+#endif