From 4a92399a73daeb4f5fadba1072ede83cb0d6ec73 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Tue, 2 May 2023 13:59:12 +0900 Subject: [PATCH] packaging: opensbi: Add opensbi spec file to build Add opensbi spec file to build on gbs system. Change-Id: I905a75b0ea419c14fcc1fd36d093b6e927913907 Signed-off-by: Jaehoon Chung --- packaging/opensbi.spec | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 packaging/opensbi.spec diff --git a/packaging/opensbi.spec b/packaging/opensbi.spec new file mode 100644 index 0000000..c9522f7 --- /dev/null +++ b/packaging/opensbi.spec @@ -0,0 +1,32 @@ +Name: opensbi +Version: 1.5 +Release: 0 +Summary: RISC-V Open Source Supervisor Binary Interface (OpenSBI) +Group: System/Kernel +License: BSD +ExclusiveArch: riscv64 +URL: https://github.com/riscv/opensbi +Source0: opensbi-%{version}.tar.bz2 + +BuildRequires: python3 + +%description +The RISC-V Supervisor Binary Interface (SBI) is the firmware +used to boot RISC-V in Tizen. + +%prep +%setup -q -n opensbi-%{version} + + +%build +make PLATFORM=generic FW_TEXT_START=0x40000000 FW_OPTIONS=0 %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}/platform/generic/firmware/ +install build/platform/generic/firmware/fw_dynamic.bin %{buildroot}/platform/generic/firmware/ + +%files +/platform/generic/firmware/fw_dynamic.bin +%license COPYING.BSD -- 2.34.1