[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1414782331-7987-1-git-send-email-j.glisse@gmail.com>
Date: Fri, 31 Oct 2014 15:05:31 -0400
From: j.glisse@...il.com
To: linux-kernel@...r.kernel.org
Cc: Jérôme Glisse <jglisse@...hat.com>,
linux-kbuild@...r.kernel.org, Michal Marek <mmarek@...e.cz>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [PATCH] scripts/package: binrpm-pkg do not build source tar file
From: Jérôme Glisse <jglisse@...hat.com>
When doing make binrpm-pkg we do not want to build the source tar
file. This patch avoid doing the gigantic tar file.
Signed-off-by: Jérôme Glisse <jglisse@...hat.com>
Cc: linux-kbuild@...r.kernel.org
Cc: Michal Marek <mmarek@...e.cz>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
---
scripts/package/mkspec | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index 1395760..b6f5e31 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -119,8 +119,10 @@ echo "%endif"
echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}"
echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE"
+if ! $PREBUILT; then
echo "EXCLUDES=\"$RCS_TAR_IGNORE --exclude .tmp_versions --exclude=*vmlinux* --exclude=*.o --exclude=*.ko --exclude=*.cmd --exclude=Documentation --exclude=firmware --exclude .config.old --exclude .missing-syscalls.d\""
echo "tar "'$EXCLUDES'" -cf- . | (cd "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE;tar xvf -)"
+fi
echo 'cd $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE"
echo "ln -sf /usr/src/kernels/$KERNELRELEASE build"
echo "ln -sf /usr/src/kernels/$KERNELRELEASE source"
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists