[coreboot-gerrit] New patch to review for coreboot: libpayload: Fix compile error in time.c if nvram support is disabled

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Sat Aug 8 21:37:10 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11137

-gerrit

commit 8b69bf09691a889418bacd1c932fc8e910504bd6
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sat Aug 8 11:52:06 2015 +0200

    libpayload: Fix compile error in time.c if nvram support is disabled
    
    rdtsc() is only used for nvram access.
    
    Change-Id: I896116d6a5782e5e50aa3acfbe1831b080f55d34
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 payloads/libpayload/libc/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c
index 4109eab..4ed788f 100644
--- a/payloads/libpayload/libc/time.c
+++ b/payloads/libpayload/libc/time.c
@@ -34,7 +34,7 @@
 
 #include <libpayload-config.h>
 #include <libpayload.h>
-#if IS_ENABLED(CONFIG_LP_ARCH_X86)
+#if IS_ENABLED(CONFIG_LP_ARCH_X86) && IS_ENABLED(CONFIG_LP_NVRAM)
 #include <arch/rdtsc.h>
 #endif
 



More information about the coreboot-gerrit mailing list