[packages/kernel] install and package device tree blobs

atler atler at pld-linux.org
Mon May 18 01:04:20 CEST 2020


commit e4e33c3ce56cb78a9bdedb071217b393b9a0e18b
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon May 18 01:01:21 2020 +0200

    install and package device tree blobs

 kernel.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/kernel.spec b/kernel.spec
index 55db1e33..57d4b4e4 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -963,6 +963,13 @@ rm -rf $RPM_BUILD_ROOT
 	INSTALL_MOD_PATH=$RPM_BUILD_ROOT \
 	KERNELRELEASE=%{kernel_release}
 
+%ifarch %{arm} aarch64
+%{__make} %{MakeOpts} %{!?with_verbose:-s} dtbs_install \
+	-C %{objdir} \
+	%{?with_verbose:V=1} \
+	INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/boot/dtb-%{kernel_release}
+%endif
+
 install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/misc
 
 # create directories which may be missing, to simplyfy %files
@@ -1019,7 +1026,6 @@ cp -aL %{objdir}/.config $RPM_BUILD_ROOT/boot/config-%{kernel_release}
 %endif
 %ifarch aarch64
 	cp -a %{objdir}/arch/%{target_arch_dir}/boot/Image.gz $RPM_BUILD_ROOT/boot/vmlinuz-%{kernel_release}
-	cp -a %{objdir}/arch/%{target_arch_dir}/boot/dts $RPM_BUILD_ROOT/boot/
 %endif
 
 # ghosted initrd
@@ -1250,6 +1256,9 @@ fi
 %ifarch ia64
 /boot/efi/vmlinuz-%{kernel_release}
 %endif
+%ifarch %{arm} aarch64
+/boot/dtb-%{kernel_release}
+%endif
 /boot/vmlinuz-%{kernel_release}
 /boot/System.map-%{kernel_release}
 /boot/config-%{kernel_release}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/e4e33c3ce56cb78a9bdedb071217b393b9a0e18b



More information about the pld-cvs-commit mailing list