summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Perrot <thomas.perrot@bootlin.com>2025-07-01 16:42:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-03 10:40:17 +0100
commit35c7f98770eebffc93145f10fce88b2b656e91d2 (patch)
tree871aa5020a95e3be7433e996b77b6a674914e962
parent42f689355ac3034d230535e488cadc9931169ad8 (diff)
downloadpoky-35c7f98770eebffc93145f10fce88b2b656e91d2.tar.gz
opensbi: bump to 1.7
This release has: - New parameter in top-level Makefile for reproducible builds - Added MIPS P8700 platform support - Allow arbitrary path in LLVM parameter of top-level Makefile - Improved SBI v3.0 extensions to match frozen specification - Emulate AMO instructions when Zaamo is not available - Stop the harts waiting for HSM start from supervisor software - Improved generic platform overrides to use common fdt_driver helpers - Improved SBI MPXY framework to use per-domain data - Added support for control transfer records (CTR) ISA extension - Use LR and SC when Zaamo ISA extension is not available - Added PXA UART support - Added support for double-trap ISA extensions - Optimized hartid and scratch lookup - Added unit tests for bitwise operations - Added unit tests for SBI ecall functionality - Constify various FDT driver definitions - Added MPXY RPMI mailbox driver for System MSI service group - Improved RPMI drivers to match frozen specifications - Initialize miscellaneous early drivers in one pass - Use fdt_driver helpers for irqchip driver framework - Allow adding SSE events dynamically at boot-time - Simple singly linked list implementation Overall, this release adds more ISA extensions and does many device driver improvements. (From OE-Core rev: 4278b9dde47957393fee46dfcc6620c3838cc73d) Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-bsp/opensbi/opensbi/0001-Makefile-Add-flag-for-reprodubility-compiler-flags.patch49
-rw-r--r--meta/recipes-bsp/opensbi/opensbi_1.7.bb (renamed from meta/recipes-bsp/opensbi/opensbi_1.6.bb)6
2 files changed, 2 insertions, 53 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi/0001-Makefile-Add-flag-for-reprodubility-compiler-flags.patch b/meta/recipes-bsp/opensbi/opensbi/0001-Makefile-Add-flag-for-reprodubility-compiler-flags.patch
deleted file mode 100644
index e650476f50..0000000000
--- a/meta/recipes-bsp/opensbi/opensbi/0001-Makefile-Add-flag-for-reprodubility-compiler-flags.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From f4c440219f42d74bd3d6688132ea876f3f51e601 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 May 2025 19:50:24 -0700
4Subject: [PATCH] Makefile: Add flag for reprodubility compiler flags
5
6Provides mechanism to remove absolute paths from binaries using
7-ffile-prefix-map
8
9It will help distros (e.g. yocto based ones ) which want to ship
10the .elf files but need to scrub absolute paths in objects
11
12Upstream-Status: Submitted [https://lists.infradead.org/pipermail/opensbi/2025-May/008458.html]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 Makefile | 7 +++++++
16 1 file changed, 7 insertions(+)
17
18diff --git a/Makefile b/Makefile
19index e90836c7..22d4ecff 100644
20--- a/Makefile
21+++ b/Makefile
22@@ -174,6 +174,11 @@ else
23 USE_LD_FLAG = -fuse-ld=bfd
24 endif
25
26+REPRODUCIBLE ?= n
27+ifeq ($(REPRODUCIBLE),y)
28+REPRODUCIBLE_FLAGS += -ffile-prefix-map=$(src_dir)=
29+endif
30+
31 # Check whether the linker supports creating PIEs
32 OPENSBI_LD_PIE := $(shell $(CC) $(CLANG_TARGET) $(RELAX_FLAG) $(USE_LD_FLAG) -fPIE -nostdlib -Wl,-pie -x c /dev/null -o /dev/null >/dev/null 2>&1 && echo y || echo n)
33
34@@ -362,6 +367,7 @@ GENFLAGS += $(firmware-genflags-y)
35
36 CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-stack-protector -fno-strict-aliasing -ffunction-sections -fdata-sections
37 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
38+CFLAGS += $(REPRODUCIBLE_FLAGS)
39 # Optionally supported flags
40 ifeq ($(CC_SUPPORT_VECTOR),y)
41 CFLAGS += -DOPENSBI_CC_SUPPORT_VECTOR
42@@ -387,6 +393,7 @@ CPPFLAGS += $(firmware-cppflags-y)
43 ASFLAGS = -g -Wall -nostdlib
44 ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
45 ASFLAGS += -fPIE
46+ASFLAGS += $(REPRODUCIBLE_FLAGS)
47 # Optionally supported flags
48 ifeq ($(CC_SUPPORT_SAVE_RESTORE),y)
49 ASFLAGS += -mno-save-restore
diff --git a/meta/recipes-bsp/opensbi/opensbi_1.6.bb b/meta/recipes-bsp/opensbi/opensbi_1.7.bb
index 308ac43ac8..a460062e93 100644
--- a/meta/recipes-bsp/opensbi/opensbi_1.6.bb
+++ b/meta/recipes-bsp/opensbi/opensbi_1.7.bb
@@ -8,10 +8,8 @@ require opensbi-payloads.inc
8 8
9inherit deploy 9inherit deploy
10 10
11SRCREV = "bd613dd92113f683052acfb23d9dc8ba60029e0a" 11SRCREV = "a32a91069119e7a5aa31e6bc51d5e00860be3d80"
12SRC_URI = "git://github.com/riscv/opensbi.git;branch=master;protocol=https \ 12SRC_URI = "git://github.com/riscv/opensbi.git;branch=master;protocol=https"
13 file://0001-Makefile-Add-flag-for-reprodubility-compiler-flags.patch \
14"
15 13
16TARGET_DBGSRC_DIR = "/share/opensbi/*/generic/firmware/" 14TARGET_DBGSRC_DIR = "/share/opensbi/*/generic/firmware/"
17 15