atj: provide default output prefix/filenames on unpacking
commit283277e5ab95b3c74a9bee0bef25cb55d55e016b
authorAmaury Pouly <amaury.pouly@gmail.com>
Thu, 4 Oct 2012 10:25:22 +0000 (4 12:25 +0200)
committerAmaury Pouly <amaury.pouly@gmail.com>
Thu, 4 Oct 2012 10:27:17 +0000 (4 12:27 +0200)
treead8931fe5b318b3dafea300c184554383ab0673b
parent0a334e2669f6b59dbbd22624984f3d005ef73634
atj: provide default output prefix/filenames on unpacking

If no output prefix is specified, a default is picked:
- filename with extension replaced by .afi for FWU files
- filename with extension replaced by .fw/ for AFI files
- filename without extension and with / for FW files

Change-Id: I6497b8f4a49f1238e5db738429f687cad3ae8a5a
utils/atj2137/atjboottool/atjboottool.c