diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-02-13 23:07:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-02-13 23:08:25 +0100 |
commit | b872e9a05939bc3e0ac95a042592506a7488dd6f (patch) | |
tree | 53a2f851a45ab77af7c1893f50a1d706f37584f5 /src/shared | |
parent | 46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e (diff) |
build-sys: make EFI support build-time optional
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/efivars.c | 4 |
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 |