aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-20 16:33:03 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-20 16:33:03 -0500
commit787140ad6bb49422e2f114e9b8df18b242df00db (patch)
tree19daf5851400f0542cfd087ce6029640c5799a2e /scripts
parentd08372ca2800e23c51e76dea5fc516781e82722e (diff)
parentb9a544240d265ec83241dcfaf0da0d6adead599b (diff)
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull misc kbuild changes from Michal Marek: "There are only a few things in the misc branch: - Fix for bugon.cocci semantic patch - Kdevelop4 files are .gitignored - Put make binrpm-pkg on diet" * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: scripts/package: binrpm-pkg do not create source and devel package .gitignore: Add Kdevelop4 project files bugon.cocci: fix Options at the macro
Diffstat (limited to 'scripts')
-rw-r--r--scripts/coccinelle/misc/bugon.cocci2
-rwxr-xr-xscripts/package/mkspec4
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/coccinelle/misc/bugon.cocci b/scripts/coccinelle/misc/bugon.cocci
index 556456ca761c..3b7eec24fb5a 100644
--- a/scripts/coccinelle/misc/bugon.cocci
+++ b/scripts/coccinelle/misc/bugon.cocci
@@ -8,7 +8,7 @@
8// Confidence: High 8// Confidence: High
9// Copyright: (C) 2014 Himangi Saraogi. GPLv2. 9// Copyright: (C) 2014 Himangi Saraogi. GPLv2.
10// Comments: 10// Comments:
11// Options: --no-includes, --include-headers 11// Options: --no-includes --include-headers
12 12
13virtual patch 13virtual patch
14virtual context 14virtual context
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index 13957602f7ca..d9ab94b17de0 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -117,6 +117,7 @@ echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2"
117echo 'mv vmlinux.orig vmlinux' 117echo 'mv vmlinux.orig vmlinux'
118echo "%endif" 118echo "%endif"
119 119
120if ! $PREBUILT; then
120echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}" 121echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}"
121echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE" 122echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE"
122echo "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\"" 123echo "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\""
@@ -124,6 +125,7 @@ echo "tar "'$EXCLUDES'" -cf- . | (cd "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNEL
124echo 'cd $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE" 125echo 'cd $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE"
125echo "ln -sf /usr/src/kernels/$KERNELRELEASE build" 126echo "ln -sf /usr/src/kernels/$KERNELRELEASE build"
126echo "ln -sf /usr/src/kernels/$KERNELRELEASE source" 127echo "ln -sf /usr/src/kernels/$KERNELRELEASE source"
128fi
127 129
128echo "" 130echo ""
129echo "%clean" 131echo "%clean"
@@ -151,9 +153,11 @@ echo "%files headers"
151echo '%defattr (-, root, root)' 153echo '%defattr (-, root, root)'
152echo "/usr/include" 154echo "/usr/include"
153echo "" 155echo ""
156if ! $PREBUILT; then
154echo "%files devel" 157echo "%files devel"
155echo '%defattr (-, root, root)' 158echo '%defattr (-, root, root)'
156echo "/usr/src/kernels/$KERNELRELEASE" 159echo "/usr/src/kernels/$KERNELRELEASE"
157echo "/lib/modules/$KERNELRELEASE/build" 160echo "/lib/modules/$KERNELRELEASE/build"
158echo "/lib/modules/$KERNELRELEASE/source" 161echo "/lib/modules/$KERNELRELEASE/source"
159echo "" 162echo ""
163fi