summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2020-12-15 19:03:02 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2020-12-15 19:03:04 +0900
commitf8e4d2a2b7a5d29dbc40b6b14b2ae3e9d3e457b3 (patch)
tree4263c5c2c3f38fafa8dabc2bb63a5876e048071a
parent80761e2fd2942452381bcd9528d98097b7669c80 (diff)
downloadlinux-artik7-f8e4d2a2b7a5d29dbc40b6b14b2ae3e9d3e457b3.tar.gz
linux-artik7-f8e4d2a2b7a5d29dbc40b6b14b2ae3e9d3e457b3.tar.bz2
linux-artik7-f8e4d2a2b7a5d29dbc40b6b14b2ae3e9d3e457b3.zip
packaging: do not remove c file in script for devel package
For out-of-tree kernel module build, it requires script c file. Do not remove the c file in script. Change-Id: I3c164980b7a375b2c3be092f45f27b363f04fda4 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--packaging/linux-artik530.spec2
-rw-r--r--packaging/linux-artik7.spec2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/linux-artik530.spec b/packaging/linux-artik530.spec
index d280dd97acc2..3fd8433b7bb8 100644
--- a/packaging/linux-artik530.spec
+++ b/packaging/linux-artik530.spec
@@ -142,7 +142,7 @@ find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.ko" -exec rm -f
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.o" -exec rm -f {} \;
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.S" -exec rm -f {} \;
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.s" -exec rm -f {} \;
-find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.c" -exec rm -f {} \;
+find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*\.c" -not -path "%{buildroot}/usr/src/linux-kernel-build-%{variant}/scripts/*" -delete
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -size 0c -exec rm -f {} \;
find %{buildroot}/usr/include -name "\.install" -exec rm -f {} \;
find %{buildroot}/usr -name "..install.cmd" -exec rm -f {} \;
diff --git a/packaging/linux-artik7.spec b/packaging/linux-artik7.spec
index 45f848034afa..0e5b097b7a9c 100644
--- a/packaging/linux-artik7.spec
+++ b/packaging/linux-artik7.spec
@@ -142,7 +142,7 @@ find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.ko" -exec rm -f
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.o" -exec rm -f {} \;
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.S" -exec rm -f {} \;
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.s" -exec rm -f {} \;
-find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*.c" -exec rm -f {} \;
+find %{buildroot}/usr/src/linux-kernel-build-%{variant} -name "*\.c" -not -path "%{buildroot}/usr/src/linux-kernel-build-%{variant}/scripts/*" -delete
find %{buildroot}/usr/src/linux-kernel-build-%{variant} -size 0c -exec rm -f {} \;
find %{buildroot}/usr/include -name "\.install" -exec rm -f {} \;
find %{buildroot}/usr -name "..install.cmd" -exec rm -f {} \;