summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-12 22:42:06 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:34:05 +0100
commitc03c951b065f2b9f98caf913192a41a8f8200fd4 (patch)
tree1efe5c2ecdf83de3d92bb0b78759d29f9bee6b0b
parent5c1b685e46756dc9504b919336321dad27dbcd9e (diff)
downloadu-boot-imx-c03c951b065f2b9f98caf913192a41a8f8200fd4.zip
u-boot-imx-c03c951b065f2b9f98caf913192a41a8f8200fd4.tar.gz
u-boot-imx-c03c951b065f2b9f98caf913192a41a8f8200fd4.tar.bz2
x86: ifdtool: Allow creation of an empty ROM
Allow an empty ROM to be created, without needing to provide a descriptor. The descriptor is not needed on some x86 boards. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/ifdtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ifdtool.c b/tools/ifdtool.c
index 2c9bbda..a4b481f 100644
--- a/tools/ifdtool.c
+++ b/tools/ifdtool.c
@@ -924,7 +924,7 @@ int main(int argc, char *argv[])
if ((mode_dump + mode_extract + mode_inject + mode_spifreq +
mode_em100 + mode_locked + mode_unlocked + mode_write +
- mode_write_descriptor) == 0) {
+ mode_write_descriptor) == 0 && !create) {
fprintf(stderr, "You need to specify a mode.\n\n");
print_usage(argv[0]);
exit(EXIT_FAILURE);