]> rtime.felk.cvut.cz Git - socketcan-devel.git/blobdiff - Makefile
Add a quick'n'dirty script to generate a kernel patch file.
[socketcan-devel.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..94031e8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+#
+#  $Id$
+#
+
+VERSION       = $(shell awk '/^VERSION/     {print $$3}' $(KERNELDIR)/Makefile)
+PATCHLEVEL    = $(shell awk '/^PATCHLEVEL/  {print $$3}' $(KERNELDIR)/Makefile)
+SUBLEVEL      = $(shell awk '/^SUBLEVEL/    {print $$3}' $(KERNELDIR)/Makefile)
+EXTRAVERSION  = $(shell awk '/^EXTRAVERSION/{print $$3}' $(KERNELDIR)/Makefile)
+KERNELRELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+
+patch26:
+       ./mkpatch $(KERNELRELEASE) >patch-$(KERNELRELEASE)-socketcan < FILES-2.6