summaryrefslogtreecommitdiff
path: root/doc/driver-model
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-24 19:38:32 -0800
committerStefano Babic <sbabic@denx.de>2016-02-02 21:01:17 +0100
commit276d3ebb883024d753cd9c69ab2fd243ffa1262e (patch)
treec92e17d6819c7704a4a6568555d68a2a108f387c /doc/driver-model
parentd3b78e1891367f219e78a18622e4d02c6ed8a04d (diff)
downloadu-boot-imx-276d3ebb883024d753cd9c69ab2fd243ffa1262e.zip
u-boot-imx-276d3ebb883024d753cd9c69ab2fd243ffa1262e.tar.gz
u-boot-imx-276d3ebb883024d753cd9c69ab2fd243ffa1262e.tar.bz2
tools: mxsboot: Use more portable cpu_to_le32()
Currently when building mxsboot on certain machines it reports: HOSTCC tools/mxsboot tools/mxsboot.c: In function 'mx28_create_sd_image': tools/mxsboot.c:560: warning: implicit declaration of function 'htole32' /tmp/cchLIV6q.o: In function 'main': mxsboot.c:(.text+0x6d8): undefined reference to 'htole32' mxsboot.c:(.text+0x6e7): undefined reference to 'htole32' mxsboot.c:(.text+0x6f6): undefined reference to 'htole32' mxsboot.c:(.text+0x705): undefined reference to 'htole32' mxsboot.c:(.text+0x711): undefined reference to 'htole32' /tmp/cchLIV6q.o:mxsboot.c:(.text+0x71d): more undefined references to 'htole32' follow collect2: ld returned 1 exit status make[1]: *** [tools/mxsboot] Error 1 make: *** [tools] Error 2 The solution is to use cpu_to_le32() instead which is more portable, just like other U-Boot tools [1] do. [1] http://lists.denx.de/pipermail/u-boot/2014-October/192919.html Suggested-by: Marek Vasut <marex@denx.de> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'doc/driver-model')
0 files changed, 0 insertions, 0 deletions