From 7dbb4324735b34af2552dc07ea7226c2396702f0 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 6 Jan 2021 18:00:29 +0200 Subject: [PATCH] Use INSTALL_FIRMWARE_PATH Signed-off-by: David Abdurachmanov --- opensbi-unstable.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/opensbi-unstable.spec b/opensbi-unstable.spec index d57ad85..d909d53 100644 --- a/opensbi-unstable.spec +++ b/opensbi-unstable.spec @@ -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