[coreboot-gerrit] New patch to review for coreboot: 84a7b03 mips: fix API expectations that break builds

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Sat Mar 28 16:36:56 CET 2015


Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9150

-gerrit

commit 84a7b03ddefa8ae4ce8df25880a8d3d7757ddd85
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Sat Mar 28 10:35:29 2015 -0500

    mips: fix API expectations that break builds
    
    Add the approrpiate car* empty implementations as well as types
    included within the rest of coreboot to start building correctly.
    
    Change-Id: Ifaf10281f9a9e28f518f4694630cbffa3f8d187d
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/arch/mips/include/arch/early_variables.h | 3 ++-
 src/arch/mips/include/stdint.h               | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/arch/mips/include/arch/early_variables.h b/src/arch/mips/include/arch/early_variables.h
index a81a6b4..f16a0e8 100644
--- a/src/arch/mips/include/arch/early_variables.h
+++ b/src/arch/mips/include/arch/early_variables.h
@@ -23,8 +23,9 @@
 #define CAR_GLOBAL
 #define CAR_MIGRATE(migrate_fn_)
 
-static inline void car_migrate_variables(void) {}
+static inline void *car_get_var_ptr(void *var) { return var; }
 #define car_get_var(var) (var)
+#define car_sync_var(var) (var)
 #define car_set_var(var, val) { (var) = (val); }
 
 #endif /* __MIPS_ARCH_EARLY_VARIABLES_H */
diff --git a/src/arch/mips/include/stdint.h b/src/arch/mips/include/stdint.h
index 5c21fe6..5095fa8 100644
--- a/src/arch/mips/include/stdint.h
+++ b/src/arch/mips/include/stdint.h
@@ -94,6 +94,11 @@ typedef int8_t s8;
 typedef int16_t s16;
 typedef int32_t s32;
 
+typedef uint8_t bool;
+#define true	1
+#define false	0
+
+
 #undef __HAVE_LONG_LONG__
 
 #endif /* __MIPS_STDINT_H */



More information about the coreboot-gerrit mailing list