Skip to content

Commit 787140a

Browse files
committed
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
2 parents d08372c + b9a5442 commit 787140a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,6 @@ x509.genkey
9696

9797
# Kconfig presets
9898
all.config
99+
100+
# Kdevelop4
101+
*.kdev4

scripts/coccinelle/misc/bugon.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Confidence: High
99
// Copyright: (C) 2014 Himangi Saraogi. GPLv2.
1010
// Comments:
11-
// Options: --no-includes, --include-headers
11+
// Options: --no-includes --include-headers
1212

1313
virtual patch
1414
virtual context

scripts/package/mkspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2"
117117
echo 'mv vmlinux.orig vmlinux'
118118
echo "%endif"
119119

120+
if ! $PREBUILT; then
120121
echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}"
121122
echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE"
122123
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\""
123124
echo "tar "'$EXCLUDES'" -cf- . | (cd "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE;tar xvf -)"
124125
echo 'cd $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE"
125126
echo "ln -sf /usr/src/kernels/$KERNELRELEASE build"
126127
echo "ln -sf /usr/src/kernels/$KERNELRELEASE source"
128+
fi
127129

128130
echo ""
129131
echo "%clean"
@@ -151,9 +153,11 @@ echo "%files headers"
151153
echo '%defattr (-, root, root)'
152154
echo "/usr/include"
153155
echo ""
156+
if ! $PREBUILT; then
154157
echo "%files devel"
155158
echo '%defattr (-, root, root)'
156159
echo "/usr/src/kernels/$KERNELRELEASE"
157160
echo "/lib/modules/$KERNELRELEASE/build"
158161
echo "/lib/modules/$KERNELRELEASE/source"
159162
echo ""
163+
fi

0 commit comments

Comments
 (0)