packaging: opensbi: Add opensbi spec file to build
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 May 2023 04:59:12 +0000 (13:59 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 27 Dec 2023 23:59:13 +0000 (08:59 +0900)
Add opensbi spec file to build on gbs system.

Change-Id: I905a75b0ea419c14fcc1fd36d093b6e927913907
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
packaging/opensbi.spec [new file with mode: 0644]

diff --git a/packaging/opensbi.spec b/packaging/opensbi.spec
new file mode 100644 (file)
index 0000000..7f833c9
--- /dev/null
@@ -0,0 +1,32 @@
+Name: opensbi
+Version: 1.4
+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