[openwrt/openwrt] uboot-sunxi: add missing type __u64

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 1 20:50:33 GMT 2021


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/e9e2310c6a5ea1c82208fc5ff770377d33fbd1f7

commit e9e2310c6a5ea1c82208fc5ff770377d33fbd1f7
Author: Georgi Valkov <gvalkov at abv.bg>
AuthorDate: Sat Feb 20 15:49:51 2021 +0200

    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 at abv.bg>
    (cherry picked from commit 3cc57ba4627c9c7555f8ad86e4f78d86d8f9ddf0)
---
 .../boot/uboot-sunxi/patches/260-add-missing-type-u64.patch    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/boot/uboot-sunxi/patches/260-add-missing-type-u64.patch b/package/boot/uboot-sunxi/patches/260-add-missing-type-u64.patch
new file mode 100644
index 0000000000..a6204c7b69
--- /dev/null
+++ b/package/boot/uboot-sunxi/patches/260-add-missing-type-u64.patch
@@ -0,0 +1,10 @@
+--- a/include/linux/types.h
++++ b/include/linux/types.h
+@@ -1,6 +1,7 @@
+ #ifndef _LINUX_TYPES_H
+ #define _LINUX_TYPES_H
+ 
++typedef unsigned long long __u64;
+ #include <linux/posix_types.h>
+ #include <asm/types.h>
+ #include <stdbool.h>



More information about the lede-commits mailing list