summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2020-01-13 07:01:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:08 +0000
commit369e217c2f4b7036a29317b700dbbd433e9cdda3 (patch)
tree2fc4f7e6e1028e25cb382f72e4f49c673b375056 /meta/recipes-bsp
parent05bab648064d014966b4d74f5326f1f68c925a35 (diff)
downloadpoky-369e217c2f4b7036a29317b700dbbd433e9cdda3.tar.gz
u-boot: Upgrade 2020.01-rc5 -> 2020.01
Also drop unreferenced (already merged) patches. (From OE-Core rev: 7b1440dff8129a997400cd7d4b5372455ddd1fe4) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/files/0001-include-env.h-Ensure-ulong-is-defined.patch31
-rw-r--r--meta/recipes-bsp/u-boot/files/0002-include-fix-ulong-definition-on-musl-targets.patch83
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-common.inc5
3 files changed, 1 insertions, 118 deletions
diff --git a/meta/recipes-bsp/u-boot/files/0001-include-env.h-Ensure-ulong-is-defined.patch b/meta/recipes-bsp/u-boot/files/0001-include-env.h-Ensure-ulong-is-defined.patch
deleted file mode 100644
index 4d623c1f34..0000000000
--- a/meta/recipes-bsp/u-boot/files/0001-include-env.h-Ensure-ulong-is-defined.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 718170ff3a5e677db7212a86b129dacb28b1cac2 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com>
3Date: Mon, 14 Oct 2019 17:37:30 -0700
4Subject: [PATCH] include/env.h: Ensure ulong is defined
5
6To fix these failures when building with musl:
7 include/env.h:166:1: error: unknown type name 'ulong'; did you mean 'long'?
8ensure that ulong is defined.
9
10Upstream-Status: Pending
11Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
12---
13 include/env.h | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/include/env.h b/include/env.h
17index d6c2d751d6..6cf5053431 100644
18--- a/include/env.h
19+++ b/include/env.h
20@@ -13,6 +13,8 @@
21 #include <stdbool.h>
22 #include <linux/types.h>
23
24+typedef unsigned long ulong;
25+
26 struct environment_s;
27
28 /* Value for environment validity */
29--
302.24.1
31
diff --git a/meta/recipes-bsp/u-boot/files/0002-include-fix-ulong-definition-on-musl-targets.patch b/meta/recipes-bsp/u-boot/files/0002-include-fix-ulong-definition-on-musl-targets.patch
deleted file mode 100644
index 0d965813b0..0000000000
--- a/meta/recipes-bsp/u-boot/files/0002-include-fix-ulong-definition-on-musl-targets.patch
+++ /dev/null
@@ -1,83 +0,0 @@
1From dccfea2e95cd3f26d1295e02d41012d014827dd9 Mon Sep 17 00:00:00 2001
2From: Sergei Trofimovich <slyfox@gentoo.org>
3Date: Mon, 16 Dec 2019 23:36:40 +0000
4Subject: [PATCH 2/2] include: fix 'ulong' definition on musl targets
5
6The build failure was originally reported on arm64-musl
7target at https://bugs.gentoo.org/703132. Here is the amd64-musl
8variant:
9
10```
11$ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc)
12$ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all -j$(nproc)
13...
14In file included from tools/env/../../env/flags.c:7,
15 from tools/env/env_flags.c:1:
16include/env.h:159:1: error: unknown type name 'ulong'; did you mean 'long'?
17 159 | ulong env_get_ulong(const char *name, int base, ulong default_val);
18 | ^~~~~
19 | long
20```
21
22Note: 'ulong' is not defined there.
23
24On glibc 'ulong' comes from <sys/types.h>:
25
26```c
27/* Old compatibility names for C types. */
28typedef unsigned long int ulong;
29```
30
31On musl it comes from <sys/types.h> as well but from under different guards:
32
33```c
34typedef unsigned long u_long, ulong;
35```
36
37The change inlines 'ulong' define similar to 'uint' define.
38
39Upstream-Status: Pending
40Bug: https://bugs.gentoo.org/703132
41Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
42Message-Id: <20191216233640.518168-1-slyfox@gentoo.org>
43---
44 include/compiler.h | 2 +-
45 include/u-boot/crc.h | 2 ++
46 2 files changed, 3 insertions(+), 1 deletion(-)
47
48diff --git a/include/compiler.h b/include/compiler.h
49index 29507f9840..90372f239c 100644
50--- a/include/compiler.h
51+++ b/include/compiler.h
52@@ -46,7 +46,6 @@
53 # include <byteswap.h>
54 #elif defined(__MACH__) || defined(__FreeBSD__)
55 # include <machine/endian.h>
56-typedef unsigned long ulong;
57 #endif
58 #ifdef __FreeBSD__
59 # include <sys/endian.h> /* htole32 and friends */
60@@ -66,6 +65,7 @@ typedef uint8_t __u8;
61 typedef uint16_t __u16;
62 typedef uint32_t __u32;
63 typedef unsigned int uint;
64+typedef unsigned long ulong;
65
66 #define uswap_16(x) \
67 ((((x) & 0xff00) >> 8) | \
68diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h
69index 1086d2168c..b96b50d98b 100644
70--- a/include/u-boot/crc.h
71+++ b/include/u-boot/crc.h
72@@ -8,6 +8,8 @@
73 #ifndef _UBOOT_CRC_H
74 #define _UBOOT_CRC_H
75
76+#include <compiler.h> /* unit definition */
77+
78 /**
79 * crc8() - Calculate and return CRC-8 of the data
80 *
81--
822.24.1
83
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 4799948bb1..ce07055f87 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -10,12 +10,9 @@ LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e" 10LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
11PE = "1" 11PE = "1"
12 12
13# Drop this line when updating to 2020.01 final
14PV = "2020.01~rc5"
15
16# We use the revision in order to avoid having to fetch it from the 13# We use the revision in order to avoid having to fetch it from the
17# repo during parse 14# repo during parse
18SRCREV = "ef7c2af65966a57c98d3c47e6c2fe1ce2103b7f6" 15SRCREV = "303f8fed261020c1cb7da32dad63b610bf6873dd"
19 16
20SRC_URI = "git://git.denx.de/u-boot.git \ 17SRC_URI = "git://git.denx.de/u-boot.git \
21 " 18 "