uboot-sunxi: add missing type __u64
authorGeorgi Valkov <gvalkov@abv.bg>
Sat, 20 Feb 2021 13:49:51 +0000 (15:49 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Feb 2021 23:34:23 +0000 (00:34 +0100)
commit3cc57ba4627c9c7555f8ad86e4f78d86d8f9ddf0
treecce68d3e1b60272fd8f0cd15bea036b41b89e2b1
parent92409dda8326601dd9e73502404913580834bf4e
uboot-sunxi: add missing type __u64

Non Linux systems e.g. macOS lack the __u64 type and produce build errors:
In file included from tools/aisimage.c:9:
In file included from include/image.h:19:
In file included from ./arch/arm/include/asm/byteorder.h:29:
In file included from include/linux/byteorder/little_endian.h:13:
include/linux/types.h:146:9: error: unknown type name '__u64'; did you mean '__s64'?
typedef __u64 __bitwise __le64;

Resolved by declaring __u64 in include/linux/types.h
Build tested on macOS and Ubuntu.

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
package/boot/uboot-sunxi/patches/260-add-missing-type-u64.patch [new file with mode: 0644]