]> git.sur5r.net Git - u-boot/commitdiff
x86: ifdtool: Allow creation of an empty ROM
authorSimon Glass <sjg@chromium.org>
Thu, 13 Nov 2014 05:42:06 +0000 (22:42 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 06:34:05 +0000 (07:34 +0100)
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>
tools/ifdtool.c

index 2c9bbdaa6feec4c0e3f02c2e2ac275954f50580e..a4b481fb60b45d7769fb48d5098a889d68d09f57 100644 (file)
@@ -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);