]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: fix argument parsing on BSD systems
authorAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 1 May 2016 01:01:27 +0000 (03:01 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 2 May 2016 22:37:09 +0000 (18:37 -0400)
commit7a439cadcf3192eb012a2432ca34670b676c74d2
tree5b726a6a6b43de47e079ae2c9f56422795a86e62
parentf1ab00fb537251b782147830dd6019087fc75fdc
mkimage: fix argument parsing on BSD systems

The getopt(3) optstring '-' is a GNU extension which is not available on BSD
systems like OS X.

Remove this dependency by implementing argument parsing in another way. This
will also change the lately introduced '-b' switch behaviour.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile
doc/mkimage.1
tools/mkimage.c