diff --git a/0001-Enable-build-id-for-elf-files.patch b/0001-Enable-build-id-for-elf-files.patch index e5842da178dee8902235684984b5b31706149ab7..19e41da57ec0ac97aab5c105d197d0275fbaad0f 100644 --- a/0001-Enable-build-id-for-elf-files.patch +++ b/0001-Enable-build-id-for-elf-files.patch @@ -1,17 +1,18 @@ -From 458c01801bb9f0084d47ef421809693517c48ccf Mon Sep 17 00:00:00 2001 -From: zhangxuzhou -Date: Mon, 3 Aug 2020 16:58:44 +0800 +From 48a7852db428cdac57948a0d6b5b040b7a081782 Mon Sep 17 00:00:00 2001 +From: Dong Du +Date: Mon, 24 May 2021 15:14:54 +0800 Subject: [PATCH] Enable build id for elf files +Signed-off-by: Dong Du --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index ccf8ea3..025ccf8 100644 +index d6f097d..347318b 100644 --- a/Makefile +++ b/Makefile -@@ -191,7 +191,7 @@ ASFLAGS += $(firmware-asflags-y) +@@ -228,7 +228,7 @@ ASFLAGS += $(firmware-asflags-y) ARFLAGS = rcs @@ -21,5 +22,5 @@ index ccf8ea3..025ccf8 100644 ELFFLAGS += $(firmware-ldflags-y) -- -2.26.2 +2.31.1 diff --git a/opensbi.spec b/opensbi.spec index 1b0f7eaaa31c56ed41be99c8225ed67eb60ce92d..73aec8dd0f64fbd5429d57824dd1fcd1b4c14dbf 100644 --- a/opensbi.spec +++ b/opensbi.spec @@ -4,13 +4,13 @@ %global debug_package %{nil} Name: opensbi -Version: 0.6 +Version: 0.9 Release: 1 Summary: RISC-V Open Source Supervisor Binary Interface URL: https://github.com/riscv/opensbi License: BSD -Source0: https://github.com/riscv/opensbi/archive/v0.6.zip +Source0: https://github.com/riscv/opensbi/archive/v0.9.zip Patch0: 0001-Enable-build-id-for-elf-files.patch @@ -49,15 +49,15 @@ The opensbi lib for developing applications of interaction with RISC-V firmware. mkdir -p build-oe/qemu-virt # QEMU/virt build: use flatten Linux kernel Image as QEMU virt payload -make O=build-oe/qemu-virt PLATFORM=qemu/virt FW_PAYLOAD=y FW_PAYLOAD_PATH=/boot/Image +make O=build-oe/qemu-virt PLATFORM=generic FW_PAYLOAD=y FW_PAYLOAD_PATH=/boot/Image # TODO: build opensbi Image for SiFive hardware %install # QEMU/virt Install -make I=%{buildroot} PLATFORM=qemu/virt O=build-oe/qemu-virt install +make I=%{buildroot} PLATFORM=generic O=build-oe/qemu-virt install mkdir -p %{buildroot}/boot -cp %{buildroot}/platform/qemu/virt/firmware/fw_payload.elf \ +cp %{buildroot}/share/opensbi/lp64/generic/firmware/fw_payload.elf \ %{buildroot}/boot/fw_payload_oe_qemuvirt.elf %files @@ -67,11 +67,13 @@ cp %{buildroot}/platform/qemu/virt/firmware/fw_payload.elf \ %files devel /include/* -/lib/* +/lib64/* %files devel-qemu -/platform/qemu/virt/* +/share/opensbi/lp64/generic/* %changelog +* Mon May 24 2021 Dong Du - 0.9-1-riscv64 +- Upgrade opensbi to v0.9 * Mon Aug 03 2020 whoisxxx - 0.6-1-riscv64 - Init version of QEMU/virt with flattened Image as payload diff --git a/v0.6.zip b/v0.6.zip deleted file mode 100644 index 5e1f54f7c4d9d1c70ae18b443a8fe3030d3c849e..0000000000000000000000000000000000000000 Binary files a/v0.6.zip and /dev/null differ diff --git a/v0.9.zip b/v0.9.zip new file mode 100644 index 0000000000000000000000000000000000000000..11e2b61d79dc7dd2d78760983833e03236ddfc6a Binary files /dev/null and b/v0.9.zip differ