packaging: tizen: arm: install device trees
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 6 Aug 2014 08:36:53 +0000 (10:36 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Thu, 18 Sep 2014 11:02:46 +0000 (13:02 +0200)
Change-Id: Ie18356c51da5681ae760d33dbbc7b4f4342f38d8
Bug-Tizen: TC-1464
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/kernel-common.spec

index 2037ba5..220f45c 100644 (file)
@@ -201,6 +201,11 @@ make -s ARCH=%{kernel_arch} INSTALL_MOD_PATH=%{buildroot} modules_install KERNEL
 make -s ARCH=%{kernel_arch} INSTALL_MOD_PATH=%{buildroot} vdso_install KERNELRELEASE=%{kernel_full_version}
 %endif
 
+%if %dtbs_supported
+install -d "%{buildroot}/boot/"
+find "arch/%{kernel_arch}/" -iname "*.dtb" -exec install "{}" "%{buildroot}/boot/" \;
+%endif
+
 rm -rf %{buildroot}/lib/firmware
 
 # And save the headers/makefiles etc for building modules against
@@ -334,6 +339,9 @@ fi
 %if %vdso_supported
 /lib/modules/%{kernel_full_version}/vdso
 %endif
+%if %dtbs_supported
+/boot/*.dtb
+%endif
 %ghost /boot/initrd-%{kernel_full_version}.img