]> git.ipfire.org Git - people/ms/u-boot.git/commit
mkimage: Convert to use getopt()
authorSimon Glass <sjg@chromium.org>
Tue, 23 Feb 2016 05:55:34 +0000 (22:55 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 14 Mar 2016 18:19:07 +0000 (14:19 -0400)
commita02221f29deb88145f6a1494450a8b9d20c9d596
treeb347a99aa30d92597ec19d9b412f44ff2a10993c
parent0b443dee6b0a74ac59fdbeda7b5a667c209a5948
mkimage: Convert to use getopt()

The current way of parsing arguments is a bit clumsy. It seems better to
use getopt() which is commonly used for this purpose.

Convert the code to use getopt() and make a few minor adjustments as needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/mkimage.c