[RH76] fix for make rpm-pkg

Submitted by Vasily Averin on Jan. 11, 2019, 12:53 p.m.


Message ID 58818c13-e89b-1ad2-bdf6-587e419eb8a2@virtuozzo.com
State New
Series "fix for make rpm-pkg"
Headers show

Commit Message

Vasily Averin Jan. 11, 2019, 12:53 p.m.
Patch fixes 'make rpm-pkg' broken in rh76-based OpenVz kernels

+ cd kernel-3.10.0_957.1.3.ovz.83.4+
+ make clean
Makefile:914: Makefile.qlock: No such file or directory
make[2]: *** No rule to make target `Makefile.qlock'.  Stop.
+ exit 0

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>

Patch hide | download patch | download mbox

diff --git a/.scmversion b/.scmversion
deleted file mode 100644
index e69de29..0000000
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index c5d4733..46703e2 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -28,7 +28,7 @@  RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
 # Remove hyphens since they have special meaning in RPM filenames
 KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))
 # Include only those top-level files that are needed by make, plus the GPL copy
-TAR_CONTENT := $(KBUILD_ALLDIRS) kernel.spec .config .scmversion Makefile \
+TAR_CONTENT := $(KBUILD_ALLDIRS) kernel.spec .config .scmversion Makefile Makefile.qlock\
                Kbuild Kconfig COPYING $(wildcard localversion*)
 MKSPEC     := $(srctree)/scripts/package/mkspec