summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2023-01-19 16:26:59 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-25 14:32:03 +0000
commit383e97f8967ffc00352f1fb3c4381cae02eca8ba (patch)
tree85f8b4e0af794c3eee517fe31b2b796096e472a1
parent4022115a7124d3da6245f19d512ff3abe80ddd1e (diff)
downloadpoky-383e97f8967ffc00352f1fb3c4381cae02eca8ba.tar.gz
u-boot: Upgrade to 2023.01
Upgrade to U-Boot 2023.01. Remove the two patches that are now upstream: e67f34f778ba ("riscv: support building double-float modules") 1dde977518f1 ("riscv: Fix build against binutils 2.38") And add a patch that fixes u-boot-tools build. (From OE-Core rev: ec69f295552d6dd4de755bb4562a007158cf660e) Signed-off-by: Fabio Estevam <festevam@denx.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-bsp/u-boot/files/0001-Revert-config-tools-only-add-VIDEO-to-build-bmp_logo.patch39
-rw-r--r--meta/recipes-bsp/u-boot/files/0001-riscv-fix-build-with-binutils-2.38.patch40
-rw-r--r--meta/recipes-bsp/u-boot/files/0001-riscv32-Use-double-float-ABI-for-rv32.patch44
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-common.inc4
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-tools_2022.10.bb3
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-tools_2023.01.bb4
-rw-r--r--meta/recipes-bsp/u-boot/u-boot_2022.10.bb9
-rw-r--r--meta/recipes-bsp/u-boot/u-boot_2023.01.bb5
8 files changed, 50 insertions, 98 deletions
diff --git a/meta/recipes-bsp/u-boot/files/0001-Revert-config-tools-only-add-VIDEO-to-build-bmp_logo.patch b/meta/recipes-bsp/u-boot/files/0001-Revert-config-tools-only-add-VIDEO-to-build-bmp_logo.patch
new file mode 100644
index 0000000000..1339092358
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/0001-Revert-config-tools-only-add-VIDEO-to-build-bmp_logo.patch
@@ -0,0 +1,39 @@
1From 5d663e105f5affbe1ba771a1124855bff748b829 Mon Sep 17 00:00:00 2001
2From: Fabio Estevam <festevam@denx.de>
3Date: Wed, 18 Jan 2023 22:15:04 -0300
4Subject: [PATCH] Revert "config: tools only: add VIDEO to build bmp_logo"
5
6This reverts commit 1cfba53ca46cade2dbf4e067afc8c19e72909a4b.
7
8Since commit 1cfba53ca46c ("config: tools only: add VIDEO to build
9bmp_logo") the build of tools-only_defconfig fails:
10
11| /bin/sh: line 1: tools/bmp_logo: No such file or directory
12
13This has been noticed in OpenEmbedded and Debian [1].
14
15Revert it for now.
16
17[1] https://lists.denx.de/pipermail/u-boot/2023-January/504758.html
18
19Upstream-Status: Submitted [https://lore.kernel.org/u-boot/20230119012321.1103067-1-festevam@denx.de/]
20Signed-off-by: Fabio Estevam <festevam@denx.de>
21---
22 configs/tools-only_defconfig | 1 -
23 1 file changed, 1 deletion(-)
24
25diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig
26index 2197063112..fb75235e3d 100644
27--- a/configs/tools-only_defconfig
28+++ b/configs/tools-only_defconfig
29@@ -29,7 +29,6 @@ CONFIG_DM_RTC=y
30 CONFIG_SOUND=y
31 CONFIG_SYSRESET=y
32 CONFIG_TIMER=y
33-CONFIG_VIDEO=y
34 # CONFIG_VIRTIO_MMIO is not set
35 # CONFIG_VIRTIO_PCI is not set
36 # CONFIG_VIRTIO_SANDBOX is not set
37--
382.25.1
39
diff --git a/meta/recipes-bsp/u-boot/files/0001-riscv-fix-build-with-binutils-2.38.patch b/meta/recipes-bsp/u-boot/files/0001-riscv-fix-build-with-binutils-2.38.patch
deleted file mode 100644
index 3598329b99..0000000000
--- a/meta/recipes-bsp/u-boot/files/0001-riscv-fix-build-with-binutils-2.38.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 26a7f6b1e4c5f715c03e59a623f0d620498b92cf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 13 Feb 2022 21:11:31 -0800
4Subject: [PATCH] riscv: fix build with binutils 2.38
5
6From version 2.38, binutils default to ISA spec version 20191213. This
7means that the csr read/write (csrr*/csrw*) instructions and fence.i
8instruction has separated from the `I` extension, become two standalone
9extensions: Zicsr and Zifencei.
10
11The fix is to specify those extensions explicitely in -march. However as
12older binutils version do not support this, we first need to detect
13that.
14
15Fixes
16arch/riscv/lib/cache.c: Assembler messages:
17arch/riscv/lib/cache.c:12: Error: unrecognized opcode `fence.i'
18
19Upstream-Status: Submitted []
20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21---
22 arch/riscv/Makefile | 7 ++++++-
23 1 file changed, 6 insertions(+), 1 deletion(-)
24
25--- a/arch/riscv/Makefile
26+++ b/arch/riscv/Makefile
27@@ -28,7 +28,12 @@ ifeq ($(CONFIG_CMODEL_MEDANY),y)
28 CMODEL = medany
29 endif
30
31-ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_F)$(ARCH_D)$(ARCH_C) -mabi=$(ABI) \
32+# Newer binutils versions default to ISA spec version 20191213 which moves some
33+# instructions from the I extension to the Zicsr and Zifencei extensions.
34+toolchain-need-zicsr-zifencei := $(call cc-option-yn, -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_F)$(ARCH_D)$(ARCH_C)_zicsr_zifencei)
35+zicsr_zifencei-$(toolchain-need-zicsr-zifencei) := _zicsr_zifencei
36+
37+ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_F)$(ARCH_D)$(ARCH_C)$(zicsr_zifencei-y) -mabi=$(ABI) \
38 -mcmodel=$(CMODEL)
39
40 PLATFORM_CPPFLAGS += $(ARCH_FLAGS)
diff --git a/meta/recipes-bsp/u-boot/files/0001-riscv32-Use-double-float-ABI-for-rv32.patch b/meta/recipes-bsp/u-boot/files/0001-riscv32-Use-double-float-ABI-for-rv32.patch
deleted file mode 100644
index 0bf1bef2c9..0000000000
--- a/meta/recipes-bsp/u-boot/files/0001-riscv32-Use-double-float-ABI-for-rv32.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 66dfe0fa886f6289add06d1af8642ce2b5302852 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 Feb 2021 16:40:12 -0800
4Subject: [PATCH] riscv32: Use double-float ABI for rv32
5
6So it can use libgcc built with OE toolchain
7Fixes
8error: "can't link hard-float modules with soft-float modules"
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Upstream-Status: Inappropriate [embedded specific]
12---
13 arch/riscv/Makefile | 6 ++++--
14 1 file changed, 4 insertions(+), 2 deletions(-)
15
16--- a/arch/riscv/Makefile
17+++ b/arch/riscv/Makefile
18@@ -5,11 +5,15 @@
19
20 ifeq ($(CONFIG_ARCH_RV64I),y)
21 ARCH_BASE = rv64im
22- ABI = lp64
23+ ABI = lp64d
24+ ARCH_D = d
25+ ARCH_F = f
26 endif
27 ifeq ($(CONFIG_ARCH_RV32I),y)
28 ARCH_BASE = rv32im
29- ABI = ilp32
30+ ABI = ilp32d
31+ ARCH_D = d
32+ ARCH_F = f
33 endif
34 ifeq ($(CONFIG_RISCV_ISA_A),y)
35 ARCH_A = a
36@@ -24,7 +28,7 @@ ifeq ($(CONFIG_CMODEL_MEDANY),y)
37 CMODEL = medany
38 endif
39
40-ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_C) -mabi=$(ABI) \
41+ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_F)$(ARCH_D)$(ARCH_C) -mabi=$(ABI) \
42 -mcmodel=$(CMODEL)
43
44 PLATFORM_CPPFLAGS += $(ARCH_FLAGS)
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 60c77cbec4..d72f6d3ba2 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -4,7 +4,7 @@ ARM, MIPS and several other processors, which can be installed in a boot \
4ROM and used to initialize and test the hardware or to download and run \ 4ROM and used to initialize and test the hardware or to download and run \
5application code." 5application code."
6SECTION = "bootloaders" 6SECTION = "bootloaders"
7DEPENDS += "flex-native bison-native" 7DEPENDS += "flex-native bison-native python3-setuptools-native"
8 8
9LICENSE = "GPL-2.0-or-later" 9LICENSE = "GPL-2.0-or-later"
10LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1" 10LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
@@ -12,7 +12,7 @@ PE = "1"
12 12
13# 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
14# repo during parse 14# repo during parse
15SRCREV = "4debc57a3da6c3f4d3f89a637e99206f4cea0a96" 15SRCREV = "62e2ad1ceafbfdf2c44d3dc1b6efc81e768a96b9"
16 16
17SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master" 17SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
18 18
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2022.10.bb b/meta/recipes-bsp/u-boot/u-boot-tools_2022.10.bb
deleted file mode 100644
index ef386f76e6..0000000000
--- a/meta/recipes-bsp/u-boot/u-boot-tools_2022.10.bb
+++ /dev/null
@@ -1,3 +0,0 @@
1require u-boot-common.inc
2require u-boot-tools.inc
3
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2023.01.bb b/meta/recipes-bsp/u-boot/u-boot-tools_2023.01.bb
new file mode 100644
index 0000000000..3484b359ad
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-tools_2023.01.bb
@@ -0,0 +1,4 @@
1require u-boot-common.inc
2require u-boot-tools.inc
3
4SRC_URI += "file://0001-Revert-config-tools-only-add-VIDEO-to-build-bmp_logo.patch"
diff --git a/meta/recipes-bsp/u-boot/u-boot_2022.10.bb b/meta/recipes-bsp/u-boot/u-boot_2022.10.bb
deleted file mode 100644
index 1ae575790c..0000000000
--- a/meta/recipes-bsp/u-boot/u-boot_2022.10.bb
+++ /dev/null
@@ -1,9 +0,0 @@
1require u-boot-common.inc
2require u-boot.inc
3
4SRC_URI += " file://0001-riscv32-Use-double-float-ABI-for-rv32.patch \
5 file://0001-riscv-fix-build-with-binutils-2.38.patch \
6 "
7
8DEPENDS += "bc-native dtc-native python3-setuptools-native"
9
diff --git a/meta/recipes-bsp/u-boot/u-boot_2023.01.bb b/meta/recipes-bsp/u-boot/u-boot_2023.01.bb
new file mode 100644
index 0000000000..4f5b3e5dfd
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot_2023.01.bb
@@ -0,0 +1,5 @@
1require u-boot-common.inc
2require u-boot.inc
3
4DEPENDS += "bc-native dtc-native"
5