From: Simon Glass Date: Wed, 12 Nov 2014 22:42:06 -0700 Subject: [U-Boot] [PATCH v3 03/26] x96: ifdtool: Allow creation of an empty ROM In-Reply-To: <1415857349-14653-1-git-send-email-sjg@chromium.org> References: <1415857349-14653-1-git-send-email-sjg@chromium.org> Message-ID: <1415857349-14653-4-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v3: - Add new patch to allow ifdtool to create an empty ROM Changes in v2: None tools/ifdtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.1.0.rc2.206.gedb03e5