summaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2016-02-16 23:29:30 +0100
committerTom Rini <trini@konsulko.com>2016-02-24 18:43:59 -0500
commit2e33df807c4177c2674bc79e95a3678e5fa0dc78 (patch)
tree982268988999fd2f6626834818c1c39c0c503a9f /board/samsung
parentc6e3e8213aa715160067a9c9964a756d382a6314 (diff)
downloadu-boot-imx-2e33df807c4177c2674bc79e95a3678e5fa0dc78.zip
u-boot-imx-2e33df807c4177c2674bc79e95a3678e5fa0dc78.tar.gz
u-boot-imx-2e33df807c4177c2674bc79e95a3678e5fa0dc78.tar.bz2
samsung: fix mkorigenspl for darwin
Compiling the mkorigenspl tool on darwin complains about undefined ulong. Fix this by using the unified way. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/origen/tools/mkorigenspl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/origen/tools/mkorigenspl.c b/board/samsung/origen/tools/mkorigenspl.c
index 8b0c3ac..7b5d93b 100644
--- a/board/samsung/origen/tools/mkorigenspl.c
+++ b/board/samsung/origen/tools/mkorigenspl.c
@@ -83,8 +83,8 @@ int main(int argc, char **argv)
for (i = 0; i < IMG_SIZE - SPL_HEADER_SIZE; i++)
checksum += buffer[i+16];
- *(ulong *)buffer ^= 0x1f;
- *(ulong *)(buffer+4) ^= checksum;
+ *(unsigned long *)buffer ^= 0x1f;
+ *(unsigned long *)(buffer+4) ^= checksum;
for (i = 1; i < SPL_HEADER_SIZE; i++)
buffer[i] ^= buffer[i-1];