El 11/02/14 09:12, Allmeroth, Robert escribió:
Hi,

While crosscompiling to an embedded system I got the following error:
systemd-208/.libs/libudev.so: undefined reference to `efi_loader_get_boot_usec'



Ok, I think the attached patch should be applied to current HEAD.

>From 1b4c055d2ba9fbf71550bde2fd3781dc0ba145ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodrig...@opensuse.org>
Date: Tue, 11 Feb 2014 09:54:49 -0300
Subject: [PATCH] fix Undefined reference efi_loader_get_boot_usec when EFI
 support is disabled

---
 src/shared/boot-timestamps.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c
index 9449965..7e0c288 100644
--- a/src/shared/boot-timestamps.c
+++ b/src/shared/boot-timestamps.c
@@ -40,9 +40,11 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time
 
         r = acpi_get_boot_usec(&x, &y);
         if (r < 0) {
+#ifdef ENABLE_EFI
                 r = efi_loader_get_boot_usec(&x, &y);
                 if (r < 0)
-                        return r;
+#endif
+                    return r;
         }
 
         /* Let's convert this to timestamps where the firmware
-- 
1.8.4.5

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to