]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Add support for creating a complete kernel patch
authorwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 13 May 2007 19:47:23 +0000 (19:47 +0000)
committerwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 13 May 2007 19:47:23 +0000 (19:47 +0000)
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

Makefile
mkpatch

index 2096af4cf0639b18bc95f8385143f4a682d193f5..29648d4e26c0786c36b882de630f71f7da4182e1 100644 (file)
--- 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 475141c1edb9609af9a4a44c101b2919d57f1003..476db37ce3eeeac3007330553e19677b0df557bd 100755 (executable)
--- 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 (<>) {