summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-02-14 15:37:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-16 09:46:29 +0000
commitf23738b9fbf69c8e06fa4fb0d3e7dd80a89fe841 (patch)
tree81d58a629ffd87fa2a30d785eba49608a0172bcf
parentf77735ffae39af139bb57cddc3b16984078f34fe (diff)
downloadpoky-f23738b9fbf69c8e06fa4fb0d3e7dd80a89fe841.tar.gz
opensbi: Upgrade to 1.0
Drop OE specific patch to shunt march/mabi this seems to work fine now. unset CLANG_TARGET so it can compile with OE produced clang toolchain which provides --target itself (From OE-Core rev: c48b57aa68149f5bdca80cadbf5b426c209ca94e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch36
-rw-r--r--meta/recipes-bsp/opensbi/opensbi_1.0.bb (renamed from meta/recipes-bsp/opensbi/opensbi_0.9.bb)5
2 files changed, 2 insertions, 39 deletions
diff --git a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch b/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch
deleted file mode 100644
index d2a8048e87..0000000000
--- a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From fe9860fd85e49a75bef545e5d9914070491e8002 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com>
3Date: Fri, 15 Feb 2019 14:57:41 -0800
4Subject: [PATCH] Makefile: Don't specify mabi or march
5
6To avoid
7 can't link double-float modules with soft-float modules
8errors when building 32-bit openSBI don't specify mabi or march.
9
10Upstream-Status: Inappropriate [Fixes a 32-bit OE flow bug]
11Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
12
13---
14 Makefile | 2 --
15 1 file changed, 2 deletions(-)
16
17diff --git a/Makefile b/Makefile
18index ccf8ea3..69e5b38 100644
19--- a/Makefile
20+++ b/Makefile
21@@ -169,7 +169,6 @@ GENFLAGS += $(firmware-genflags-y)
22 CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-strict-aliasing -O2
23 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
24 CFLAGS += -mno-save-restore -mstrict-align
25-CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
26 CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
27 CFLAGS += $(GENFLAGS)
28 CFLAGS += $(platform-cflags-y)
29@@ -183,7 +182,6 @@ CPPFLAGS += $(firmware-cppflags-y)
30 ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__
31 ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
32 ASFLAGS += -mno-save-restore -mstrict-align
33-ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
34 ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
35 ASFLAGS += $(GENFLAGS)
36 ASFLAGS += $(platform-asflags-y)
diff --git a/meta/recipes-bsp/opensbi/opensbi_0.9.bb b/meta/recipes-bsp/opensbi/opensbi_1.0.bb
index 1956fbf9ff..8430f62543 100644
--- a/meta/recipes-bsp/opensbi/opensbi_0.9.bb
+++ b/meta/recipes-bsp/opensbi/opensbi_1.0.bb
@@ -8,14 +8,13 @@ require opensbi-payloads.inc
8 8
9inherit autotools-brokensep deploy 9inherit autotools-brokensep deploy
10 10
11SRCREV = "234ed8e427f4d92903123199f6590d144e0d9351" 11SRCREV = "ce4c0188d96b2c20c2e08d24646a5e517fe15a4b"
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-Don-t-specify-mabi-or-march.patch \
14 " 13 "
15 14
16S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
17 16
18EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n" 17EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n CLANG_TARGET= "
19# If RISCV_SBI_PAYLOAD is set then include it as a payload 18# If RISCV_SBI_PAYLOAD is set then include it as a payload
20EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_image(d)}" 19EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_image(d)}"
21EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_fdt(d)}" 20EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_fdt(d)}"