Use INSTALL_FIRMWARE_PATH

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2021-01-06 18:00:29 +02:00
parent c68ea61e82
commit 7dbb432473
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 9 additions and 3 deletions

View File

@ -35,12 +35,18 @@ This is only for QEMU RISC-V virt machine.
%build
make PLATFORM=generic
make \
PLATFORM=generic
%install
make PLATFORM=generic I=%{buildroot} INSTALL_LIB_PATH=lib64 install
make \
PLATFORM=generic \
I=%{buildroot} \
INSTALL_LIB_PATH=lib64 \
INSTALL_FIRMWARE_PATH=%{_datadir}/%{name} \
install
mv %{buildroot}%{_datadir}/opensbi %{buildroot}%{_datadir}/%{name}
rm -rfv %{buildroot}/lib64
rm -rfv %{buildroot}/include