Skip to content

Commit e7eafab

Browse files
author
Eric Saint-Etienne
committed
aarch64: remove duplicate dtb in kernel rpm
Two copies of devicetree blob are included in the kernel rpm under /boot and /lib/modules. This unnecessarily increases the kernel rpm size and disk space after Installation. Devicetree under /boot should be kept because not only it is available after the kernel has booted but is also available to loaders. Orabug: 28216582 Signed-off-by: Eric Saint Etienne <[email protected]> Reviewed-by: Allen Pais <[email protected]>
1 parent 9b08ab6 commit e7eafab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

uek-rpm/ol7/kernel-uek.spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,6 @@ BuildKernel() {
12141214
mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
12151215
mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
12161216
make -s ARCH=$Arch V=1 dtbs dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
1217-
cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb
12181217
find arch/$Arch/boot/dts -name '*.dtb' -type f | xargs rm -f
12191218
%endif
12201219

0 commit comments

Comments
 (0)