Build DTB for RISC-V (riscv64)
We need these for FSBL (SiFive Unleashed board) and OpenSBI. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
parent
0ebe98255d
commit
e765a7ca2e
@ -1230,7 +1230,7 @@ BuildKernel() {
|
||||
mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
|
||||
%endif
|
||||
|
||||
%ifarch %{arm} aarch64
|
||||
%ifarch %{arm} aarch64 riscv64
|
||||
%{make} %{?make_opts} ARCH=$Arch dtbs dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
|
||||
cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb
|
||||
find arch/$Arch/boot/dts -name '*.dtb' -type f -delete
|
||||
@ -1786,7 +1786,7 @@ fi
|
||||
%ghost /%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?3:+%{3}}\
|
||||
/lib/modules/%{KVERREL}%{?3:+%{3}}/.vmlinuz.hmac \
|
||||
%ghost /%{image_install_path}/.vmlinuz-%{KVERREL}%{?3:+%{3}}.hmac \
|
||||
%ifarch %{arm} aarch64\
|
||||
%ifarch %{arm} aarch64 riscv64\
|
||||
/lib/modules/%{KVERREL}%{?3:+%{3}}/dtb \
|
||||
%ghost /%{image_install_path}/dtb-%{KVERREL}%{?3:+%{3}} \
|
||||
%endif\
|
||||
|
Loading…
x
Reference in New Issue
Block a user