[coreboot] r3497 - in trunk/payloads/libpayload: crypto curses i386 include

svn at coreboot.org svn at coreboot.org
Mon Aug 11 19:10:59 CEST 2008


Author: jcrouse
Date: 2008-08-11 19:10:58 +0200 (Mon, 11 Aug 2008)
New Revision: 3497

Modified:
   trunk/payloads/libpayload/crypto/sha1.c
   trunk/payloads/libpayload/curses/local.h
   trunk/payloads/libpayload/i386/coreboot.c
   trunk/payloads/libpayload/i386/sysinfo.c
   trunk/payloads/libpayload/include/libpayload.h
Log:
No really, _these_ should be the last occurences of CONFIG_ without
config.h in libpayload - also removed CONFIG_ instance in libpayload
which would have been dangerous.

Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
Acked-by: Jordan Crouse <jordan.crouse at amd.com>


Modified: trunk/payloads/libpayload/crypto/sha1.c
===================================================================
--- trunk/payloads/libpayload/crypto/sha1.c	2008-08-11 16:58:23 UTC (rev 3496)
+++ trunk/payloads/libpayload/crypto/sha1.c	2008-08-11 17:10:58 UTC (rev 3497)
@@ -20,6 +20,7 @@
  *   34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
  */
 
+#include <config.h>
 #include <libpayload.h>
 
 typedef u8 u_int8_t;
@@ -27,6 +28,14 @@
 typedef u64 u_int64_t;
 typedef unsigned int u_int;
 
+/* Moved from libpayload.h */
+
+#ifdef CONFIG_TARGET_I386
+#define BYTE_ORDER      LITTLE_ENDIAN
+#else
+#define BYTE_ORDER      BIG_ENDIAN
+#endif
+
 #if 0
 #include <sys/param.h>
 #include <string.h>

Modified: trunk/payloads/libpayload/curses/local.h
===================================================================
--- trunk/payloads/libpayload/curses/local.h	2008-08-11 16:58:23 UTC (rev 3496)
+++ trunk/payloads/libpayload/curses/local.h	2008-08-11 17:10:58 UTC (rev 3497)
@@ -58,6 +58,7 @@
 
 #undef USE_TERMLIB
 
+#include <config.h>
 #include <libpayload.h>
 #include <curses.h>
 #include <curses.priv.h>

Modified: trunk/payloads/libpayload/i386/coreboot.c
===================================================================
--- trunk/payloads/libpayload/i386/coreboot.c	2008-08-11 16:58:23 UTC (rev 3496)
+++ trunk/payloads/libpayload/i386/coreboot.c	2008-08-11 17:10:58 UTC (rev 3497)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#include <config.h>
 #include <libpayload.h>
 #include <coreboot_tables.h>
 

Modified: trunk/payloads/libpayload/i386/sysinfo.c
===================================================================
--- trunk/payloads/libpayload/i386/sysinfo.c	2008-08-11 16:58:23 UTC (rev 3496)
+++ trunk/payloads/libpayload/i386/sysinfo.c	2008-08-11 17:10:58 UTC (rev 3497)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#include <config.h>
 #include <libpayload.h>
 
 /**

Modified: trunk/payloads/libpayload/include/libpayload.h
===================================================================
--- trunk/payloads/libpayload/include/libpayload.h	2008-08-11 16:58:23 UTC (rev 3496)
+++ trunk/payloads/libpayload/include/libpayload.h	2008-08-11 17:10:58 UTC (rev 3497)
@@ -44,11 +44,6 @@
 
 #define LITTLE_ENDIAN	1234
 #define BIG_ENDIAN	4321
-#ifdef CONFIG_TARGET_I386
-#define BYTE_ORDER	LITTLE_ENDIAN
-#else
-#define BYTE_ORDER	BIG_ENDIAN
-#endif
 
 #define EXIT_SUCCESS 0
 #define EXIT_FAILURE 1





More information about the coreboot mailing list