From: Álvaro Fernández Rojas Date: Fri, 13 Jun 2014 14:49:44 +0000 (+0200) Subject: flashrom: fix build on Little Endian MIPS and add license. X-Git-Tag: v14.07~317 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0bc41a09ae0e9c9957223f139e46514e7ccd642b;p=feed%2Fpackages.git flashrom: fix build on Little Endian MIPS and add license. Signed-off-by: Álvaro Fernández Rojas --- diff --git a/utils/flashrom/patches/100-mipsel_fix.patch b/utils/flashrom/patches/100-mipsel_fix.patch new file mode 100755 index 0000000000..3e34aeec44 --- /dev/null +++ b/utils/flashrom/patches/100-mipsel_fix.patch @@ -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);