Add opensbi spec file to build on gbs system.
Change-Id: I905a75b0ea419c14fcc1fd36d093b6e927913907
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
--- /dev/null
+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