]> git.ipfire.org Git - people/ms/u-boot.git/commit
tools: mkimage: Check if file is regular file
authorMichal Simek <michal.simek@xilinx.com>
Fri, 21 Oct 2016 11:16:13 +0000 (13:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 14:27:45 +0000 (15:27 +0100)
commit56c7e8015509312240b1ee15f2ff74510939a45d
tree2b4d4de21c60962685979f1da246be1ab0eb439b
parent3b6460809c2a28360029c1c48247648fac4455c9
tools: mkimage: Check if file is regular file

Current Makefile.spl passes -R parameter which is not empty
and pointing to ./ folder.
"./tools/mkimage -T zynqmpimage -R ./"" -d spl/u-boot-spl.bin
spl/boot.bin"
That's why mkimage is trying to parse ./ file and generate
register init which is wrong.
Check that passed filename is regular file. If not do not work with it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tools/zynqmpimage.c