From: wolf Date: Sun, 13 May 2007 19:47:23 +0000 (+0000) Subject: Add support for creating a complete kernel patch X-Git-Url: http://rtime.felk.cvut.cz/gitweb/socketcan-devel.git/commitdiff_plain/7a671405adeaa91a2ddfc25a8c13c1730a0b1cbd Add support for creating a complete kernel patch This patch permits to make a "full" Socket-CAN patch including all drivers with "make patch26all". Furthermore, an error message is printed by mkpatch, when the general diff file for the detected kernel version does not exist. git-svn-id: svn://svn.berlios.de//socketcan/trunk@304 030b6a49-0b11-0410-94ab-b0dab22257f2 --- diff --git a/Makefile b/Makefile index 2096af4..29648d4 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,6 @@ KERNELRELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) patch26: ./mkpatch $(KERNELRELEASE) >patch-$(KERNELRELEASE)-socketcan < FILES-2.6 + +patch26all: + ./mkpatch $(KERNELRELEASE) >patch-$(KERNELRELEASE)-socketcan-all < FILES-2.6-ALL diff --git a/mkpatch b/mkpatch index 475141c..476db37 100755 --- a/mkpatch +++ b/mkpatch @@ -11,6 +11,8 @@ $version = shift; if (-r "patches/$version.diff") { copy_file("patches/$version.diff"); +} else { + die "Patch patches/$version.diff not found"; } while (<>) {