diff options
author | Andy Walsh <andy.walsh44+github@gmail.com> | 2018-08-14 14:27:47 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-01-22 13:29:46 +0100 |
commit | 45a2771953fb351879c332105c8d270c6daed0a7 (patch) | |
tree | 07de55f45909c21808a345f6933840d82fdba4e2 /package/boot/uboot-ar71xx | |
parent | 94f6030170d3c80f064ea3ed5445217cd479e044 (diff) | |
download | upstream-45a2771953fb351879c332105c8d270c6daed0a7.tar.gz upstream-45a2771953fb351879c332105c8d270c6daed0a7.tar.bz2 upstream-45a2771953fb351879c332105c8d270c6daed0a7.zip |
uboot-ar71xx: fix musl host build
On musl based distributions, u-boot 2010.03 fails to build with:
u-boot-2010.03/include/u-boot/crc.h:29:50: error: unknown type name 'uint'
uint32_t crc32 (uint32_t, const unsigned char *, uint);
The issue was fixed in the newer u-boot-2018.03 version, this commit
backports the change to the older version used by ar71xx/ath79.
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
[add commit message from PR description]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/boot/uboot-ar71xx')
-rw-r--r-- | package/boot/uboot-ar71xx/patches/023-musl-compat.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/boot/uboot-ar71xx/patches/023-musl-compat.patch b/package/boot/uboot-ar71xx/patches/023-musl-compat.patch new file mode 100644 index 0000000000..1dacc993e7 --- /dev/null +++ b/package/boot/uboot-ar71xx/patches/023-musl-compat.patch @@ -0,0 +1,13 @@ +--- a/include/compiler.h 2018-08-29 ++++ b/include/compiler.h 2018-08-29 +@@ -46,6 +46,10 @@ extern int errno; + #ifdef __linux__ + # include <endian.h> + # include <byteswap.h> ++#ifndef __GLIBC__ ++typedef unsigned long ulong; ++typedef unsigned int uint; ++#endif + #elif defined(__MACH__) || defined(__FreeBSD__) + # include <machine/endian.h> + typedef unsigned long ulong; |