diff options
author | Leah Rowe <info@minifree.org> | 2017-01-22 05:04:49 +0100 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2017-01-22 05:04:49 +0100 |
commit | 76b7edb769fb14c2fa74cef619c9b67850a6d0b8 (patch) | |
tree | efb4742b2739682aa5cacf385d23111dd33187d4 /projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff | |
parent | c365a3d9a7139b44415b9c7aa5487e6a84f29b1f (diff) | |
parent | 676dd2287a00314f466c6a401fe2310238de8f2b (diff) | |
download | librebootfr-76b7edb769fb14c2fa74cef619c9b67850a6d0b8.tar.gz librebootfr-76b7edb769fb14c2fa74cef619c9b67850a6d0b8.zip |
Merge branch 'master' of seokj/libreboot into master
Diffstat (limited to 'projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff')
-rw-r--r-- | projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff b/projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff new file mode 100644 index 00000000..013efa17 --- /dev/null +++ b/projects/flashrom-cros/patches/flashrom-arm-20170120-f5c27c4.diff @@ -0,0 +1,33 @@ +diff --git a/hwaccess.h b/hwaccess.h +index 0299ecb..a6732c2 100644 +--- a/hwaccess.h ++++ b/hwaccess.h +@@ -24,11 +24,9 @@ + #ifndef __HWACCESS_H__ + #define __HWACCESS_H__ 1 + +-#if defined (__i386__) || defined (__x86_64__) +-#if defined(__GLIBC__) ++#if defined (__i386__) || defined (__x86_64__) || defined(__arm__) + #include <sys/io.h> + #endif +-#endif + + #if NEED_PCI == 1 + /* +@@ -72,7 +70,6 @@ + + #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__) + /* Nonstandard libc-specific macros for determining endianness. */ +-#if defined(__GLIBC__) + #include <endian.h> + #if BYTE_ORDER == LITTLE_ENDIAN + #define __FLASHROM_LITTLE_ENDIAN__ 1 +@@ -80,7 +77,6 @@ + #define __FLASHROM_BIG_ENDIAN__ 1 + #endif + #endif +-#endif + + #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__) + #error Unable to determine endianness. Please add support for your arch or libc. |