aboutsummaryrefslogtreecommitdiff
path: root/tools/gen_ethaddr_crc.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-06 15:18:59 +0200
committerStefan Roese <sr@denx.de>2022-04-21 12:31:36 +0200
commita339d6c464dd9e2c952bbdc5baa450149da9d6a3 (patch)
treeb4e2f9f48953490264cb5c32a92dd7eda2b89918 /tools/gen_ethaddr_crc.c
parent8b3d7ecdfec30d63684d86bd76632929b72d8a84 (diff)
downloadu-boot-a339d6c464dd9e2c952bbdc5baa450149da9d6a3.zip
u-boot-a339d6c464dd9e2c952bbdc5baa450149da9d6a3.tar.gz
u-boot-a339d6c464dd9e2c952bbdc5baa450149da9d6a3.tar.bz2
tools: kwboot: Replace fstat()+st_size by lseek()+SEEK_END
fstat()'s st_size works only for regular files. lseek() with SEEK_END works also for block or MTD devices. This replacement allows kwboot to load kwbimage from /dev/mtd0 for booting another device over /dev/ttyS0. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz>
Diffstat (limited to 'tools/gen_ethaddr_crc.c')
0 files changed, 0 insertions, 0 deletions