systemd-02-efi-fix-Undefined-reference-efi_loader_get_boot_usec.patch 923 B

1234567891011121314151617181920212223242526272829
  1. From 70d9b9fc0a4fa1698ff00e364c61bb875244efa1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@opensuse.org>
  3. Date: Tue, 11 Feb 2014 09:54:49 -0300
  4. Subject: [PATCH] efi: fix Undefined reference efi_loader_get_boot_usec when
  5. EFI support is disabled
  6. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  7. ---
  8. src/shared/boot-timestamps.c | 2 ++
  9. 1 file changed, 2 insertions(+)
  10. diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c
  11. index 9449965..d656685 100644
  12. --- a/src/shared/boot-timestamps.c
  13. +++ b/src/shared/boot-timestamps.c
  14. @@ -40,8 +40,10 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time
  15. r = acpi_get_boot_usec(&x, &y);
  16. if (r < 0) {
  17. +#ifdef ENABLE_EFI
  18. r = efi_loader_get_boot_usec(&x, &y);
  19. if (r < 0)
  20. +#endif
  21. return r;
  22. }
  23. --
  24. 1.7.9.5