aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorconsts <grudnevkv@gmail.com>2017-06-17 23:51:50 +0300
committerconsts <grudnevkv@gmail.com>2017-06-17 23:51:50 +0300
commit7d727de8c330eab5a7ae725c65b7878685447070 (patch)
tree61d2079db76504be5ce2a17faa9232e3dcd86c57 /projects
parent34656085387c5a8d649011bc43c260651d9d8ba9 (diff)
downloadlibrebootfr-7d727de8c330eab5a7ae725c65b7878685447070.tar.gz
librebootfr-7d727de8c330eab5a7ae725c65b7878685447070.zip
Fixed compile error
Diffstat (limited to 'projects')
-rw-r--r--projects/flashrom/patches/0005-Workaround-MX25-reliable-operation.patch22
1 files changed, 7 insertions, 15 deletions
diff --git a/projects/flashrom/patches/0005-Workaround-MX25-reliable-operation.patch b/projects/flashrom/patches/0005-Workaround-MX25-reliable-operation.patch
index f46db48e..b071e6b6 100644
--- a/projects/flashrom/patches/0005-Workaround-MX25-reliable-operation.patch
+++ b/projects/flashrom/patches/0005-Workaround-MX25-reliable-operation.patch
@@ -1,5 +1,5 @@
diff --git a/cli_classic.c b/cli_classic.c
-index 0a09cfd..bba601d 100644
+index 0a09cfd..7bc8ea1 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -61,6 +61,7 @@ static void cli_classic_usage(const char *name)
@@ -10,29 +10,21 @@ index 0a09cfd..bba601d 100644
#if CONFIG_PRINT_WIKI == 1
" -z | --list-supported-wiki print supported devices in wiki syntax\n"
#endif
-@@ -109,6 +110,7 @@ int main(int argc, char *argv[])
- struct flashrom_layout *layout = NULL;
- enum programmer prog = PROGRAMMER_INVALID;
- int ret = 0;
-+ const int WORKAROUND_MX = 0x101;
-
- static const char optstring[] = "r:Rw:v:nNVEfc:l:i:p:Lzho:";
- static const struct option long_options[] = {
-@@ -130,6 +132,7 @@ int main(int argc, char *argv[])
+@@ -130,6 +131,7 @@ int main(int argc, char *argv[])
{"help", 0, NULL, 'h'},
{"version", 0, NULL, 'R'},
{"output", 1, NULL, 'o'},
-+ {"workaround-mx", 0, NULL, WORKAROUND_MX},
++ {"workaround-mx", 0, NULL, 0x0101},
{NULL, 0, NULL, 0},
};
-@@ -337,6 +340,9 @@ int main(int argc, char *argv[])
+@@ -337,6 +339,9 @@ int main(int argc, char *argv[])
}
#endif /* STANDALONE */
break;
-+ case WORKAROUND_MX:
-+ workaround_mx = 1;
-+ break;
++ case 0x0101: /* --workaround-mx */
++ workaround_mx = 1;
++ break;
default:
cli_classic_abort_usage();
break;