1 // SPDX-License-Identifier: GPL-2.0+
3 * Image code used by host tools (and not boards)
5 * (C) Copyright 2008 Semihalf
7 * (C) Copyright 2000-2006
8 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
13 void memmove_wd(void *to, void *from, size_t len, ulong chunksz)
15 memmove(to, from, len);
18 void genimg_print_size(uint32_t size)
20 printf("%d Bytes = %.2f KiB = %.2f MiB\n", size, (double)size / 1.024e3,
21 (double)size / 1.048576e6);
24 void genimg_print_time(time_t timestamp)
26 printf("%s", ctime(×tamp));