flashrom: fix build on Little Endian MIPS and add license.
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 13 Jun 2014 14:49:44 +0000 (16:49 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 13 Jun 2014 14:49:44 +0000 (16:49 +0200)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
utils/flashrom/patches/100-mipsel_fix.patch [new file with mode: 0755]

diff --git a/utils/flashrom/patches/100-mipsel_fix.patch b/utils/flashrom/patches/100-mipsel_fix.patch
new file mode 100755 (executable)
index 0000000..3e34aee
--- /dev/null
@@ -0,0 +1,16 @@
+diff -uprN a/internal.c b/internal.c
+--- a/internal.c       2014-06-13 16:44:14.263689579 +0200
++++ b/internal.c       2014-06-13 16:46:04.229020785 +0200
+@@ -337,10 +337,12 @@ int internal_init(void)
+       init_superio_ite();
+ #endif
++#if defined(__i386__) || defined(__x86_64__) || defined (__arm__)
+       if (board_flash_enable(board_vendor, board_model, cb_vendor, cb_model)) {
+               msg_perr("Aborting to be safe.\n");
+               return 1;
+       }
++#endif
+ #if defined(__i386__) || defined(__x86_64__) || defined (__mips)
+       register_par_programmer(&par_programmer_internal, internal_buses_supported);