diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-08-11 17:10:58 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-08-11 17:10:58 +0000 |
commit | 12e27266c3cb9bd1499731a5c52da7ce565d7912 (patch) | |
tree | 82faa71bf727440fa3a5146861594a088a7b14a0 /payloads/libpayload/crypto | |
parent | 5e354b7a43df8626216a5dc3b94d65a590a25349 (diff) | |
download | coreboot-12e27266c3cb9bd1499731a5c52da7ce565d7912.tar.xz |
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@amd.com>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3497 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/crypto')
-rw-r--r-- | payloads/libpayload/crypto/sha1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/crypto/sha1.c b/payloads/libpayload/crypto/sha1.c index 1c68a8019c..292561913d 100644 --- a/payloads/libpayload/crypto/sha1.c +++ b/payloads/libpayload/crypto/sha1.c @@ -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 u32 u_int32_t; 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> |