aboutsummaryrefslogtreecommitdiff
path: root/external/ffspart
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@linux.vnet.ibm.com>2017-12-12 13:37:03 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-13 22:05:06 -0600
commit0bd6a8c9a4bcefe3c687c5aabfa5cae7234c376c (patch)
treeff8d77434563f225cd56c94a18409760bc754374 /external/ffspart
parent45a961515be6ef5c58985ac7f2e66b1e8c26016a (diff)
downloadskiboot-0bd6a8c9a4bcefe3c687c5aabfa5cae7234c376c.zip
skiboot-0bd6a8c9a4bcefe3c687c5aabfa5cae7234c376c.tar.gz
skiboot-0bd6a8c9a4bcefe3c687c5aabfa5cae7234c376c.tar.bz2
pflash: Support for clean_on_ecc_error flag
Add the misc flag clear_on_ecc_error to libflash/pflash. This was the only missing flag. The generator of the virtual pnor image relies on libflash/pflash to provide the partition information, so all flags are needed to build an accurate virtual pnor partition table. Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com> Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/ffspart')
-rw-r--r--external/ffspart/ffspart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/external/ffspart/ffspart.c b/external/ffspart/ffspart.c
index a477018..0fe5840 100644
--- a/external/ffspart/ffspart.c
+++ b/external/ffspart/ffspart.c
@@ -298,6 +298,9 @@ int main(int argc, char *argv[])
case 'L':
user.miscflags |= FFS_MISCFLAGS_VOLATILE;
break;
+ case 'C':
+ user.miscflags |= FFS_MISCFLAGS_CLEARECC;
+ break;
/* Not sure these are valid */
case 'B':
user.miscflags |= FFS_MISCFLAGS_BACKUP;