arm-trusted-firmware/tools
Sami Mujawar cb5c08b698 Fix fiptool packaging issue on windows
Windows does not have a standard getopt implementation. To address
this an equivalent implementation has been provided in win_posix.c
However, the implementation has an issue with option processing as
described below.

Long option names may be abbreviated if the abbreviation is unique
or an exact match for some defined option.
Since some options can be substring of other options e.g. "scp-fw"
option is a substring of "scp-fwu-cfg", we need to identify if an
option is abbreviated and also check for uniqueness. Otherwise if
a user passes --scp-fw as an option, the "scp-fwu-cfg" option may
get selected, resulting in an incorrectly packaged FIP.

This issue has been be fixed by:
  - First searching for an exact match.
  - If exact match was not found search for a abbreviated match.
By doing this an incorrect option selection can be avoided.

Change-Id: I22f4e7a683f3df857f5b6f0783bf9b03a64a0bcc
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
2020-09-14 15:06:56 +01:00
..
amlogic meson: Rename platform directory to amlogic 2019-09-05 10:39:25 +01:00
cert_create tools: Set the tool's default binary name 2020-09-07 12:58:24 +01:00
encrypt_fw tools: Set the tool's default binary name 2020-09-07 12:58:24 +01:00
fiptool Fix fiptool packaging issue on windows 2020-09-14 15:06:56 +01:00
marvell/doimage tools: doimage: change the binary image alignment to 16 2020-07-10 10:54:44 +00:00
memory tools: Small improvement to print_memory_map script 2020-02-14 16:31:19 +00:00
renesas/rcar_layout_create rcar_gen3: plat: Add initial D3 support 2019-04-02 03:40:51 +02:00
sptool tools: Set the tool's default binary name 2020-09-07 12:58:24 +01:00
stm32image stm32mp1: update platform files to use MMC devices 2018-10-15 09:36:58 +02:00