]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: mkimage: fix STM32 image format for big endian hosts
authorAntonio Borneo <antonio.borneo@st.com>
Tue, 28 Jan 2020 14:42:13 +0000 (15:42 +0100)
committerPatrick Delaunay <patrick.delaunay@st.com>
Thu, 13 Feb 2020 16:32:09 +0000 (17:32 +0100)
commit441749d9d14d3484da1f19a0e6d4118d9fde9175
tree77f8f7fb38b665dfd230d253a3e815764f79493a
parentcf0818b4772b02e63fb980d8c146ef5d780b7940
tools: mkimage: fix STM32 image format for big endian hosts

Two header fields are not properly converted to little endian
before assignment, resulting in incorrect header while executing
mkimage on big endian hosts.

Convert the value of the header fields image_checksum and
edcsa_algorithm to little endian before the assignment.

Signed-off-by: Antonio Borneo <antonio.borneo@st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
tools/stm32image.c