diff mbox

cannot create include/linux/version.h.tmp: Read-only file system

Message ID alpine.DEB.2.01.1103070149390.23816@trent.utfs.org (mailing list archive)
State New, archived
Headers show

Commit Message

Christian Kujau March 7, 2011, 10:45 a.m. UTC
None
diff mbox

Patch

--- linux-2.6-git/scripts/package/Makefile.patched	2011-03-07 00:21:44.000000000 -0800
+++ linux-2.6-git/scripts/package/Makefile	2011-03-07 02:18:02.000000000 -0800
@@ -45,7 +45,8 @@  rpm-pkg rpm: $(objtree)/kernel.spec FORC
 	$(MAKE) clean
 	$(PREV) ln -sf $(srctree) $(KERNELPATH)
 	$(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --save-scmversion
-	$(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/.
+	$(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz \
+	$(KERNELPATH)/. $(objtree)/kernel.spec
 	$(PREV) rm $(KERNELPATH)
 	rm -f $(objtree)/.scmversion
 	set -e; \
@@ -53,8 +54,8 @@  rpm-pkg rpm: $(objtree)/kernel.spec FORC
 	set -e; \
 	mv -f $(objtree)/.tmp_version $(objtree)/.version
 
-	$(RPM) $(RPMOPTS) --target $(UTS_MACHINE) -ta ../$(KERNELPATH).tar.gz
-	rm ../$(KERNELPATH).tar.gz
+	$(RPM) $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz
+	rm $(KERNELPATH).tar.gz
 
 clean-files := $(objtree)/kernel.spec