packaging: remove unnecessary symlinks from modules 06/269606/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 19 Jan 2022 03:54:26 +0000 (12:54 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 19 Jan 2022 03:56:04 +0000 (12:56 +0900)
The symbolic links, build and source, are unnecessary because
source build path is not packaged in modules packages. Remove
the unnecessary symlinks from modules package.

Change-Id: Ia2dea44064d6747e89db571fa36d9ee7b695814c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
packaging/linux-amlogic.spec

index 2aef3dc..9d9c529 100644 (file)
@@ -225,6 +225,11 @@ mv %{_builddir}/uapi-headers/usr %{buildroot}
 #  2-2. Install files for arm64
 %ifarch aarch64
 mv %{_builddir}/boot/* %{buildroot}/boot
+
+rm -f %{_builddir}/lib/modules/*%{TARGET_ODROIDS}*/build
+rm -f %{_builddir}/lib/modules/*%{TARGET_ODROIDS}*/source
+rm -f %{_builddir}/lib/modules/*%{TARGET_VIMS}*/build
+rm -f %{_builddir}/lib/modules/*%{TARGET_VIMS}*/source
 mv %{_builddir}/lib %{buildroot}
 %endif