summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-01-06 00:43:33 +0200
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-01-06 00:43:33 +0200
commit363ae0d3647133e7db41e8b17af2cf4b8f10ee52 (patch)
tree37419db08194359c17463c2584e1d8b1781f4821
parent57f0282ca6b76513204710b68a4cfba333b3324f (diff)
Generate a standard header for the patch.
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 834048b..bc1af35 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ DAHDI_LINUX_BRANCH =trunk
DAHDI_LINUX_URL = http://svn.asterisk.org/svn/dahdi/linux/$(DAHDI_LINUX_BRANCH)
SVN_DIR_SRC = dahdi-svn-orig
SVN_DIR_DST = dahdi-svn-new
+ORIGIN = http://git.tzafrir.org.il/?p=dahdi-extra.git
BASE_DIR = drivers/dahdi
MODULE_DIRS = $(BASE_DIR) $(BASE_DIR)/zaphfc drivers/staging/echo
@@ -86,6 +87,21 @@ else
HAS_KSRC:=no
endif
+PATCH_HEADER = \
+ Subject: dahdi-extra: out-of-tree DAHDI drivers \
+ \nOrigin: $(ORIGIN) \
+ \nForwarded: No \
+ \nLast-Update: `date -I` \
+ \n \
+ \nThis patch includes a number of out-of-tree DAHDI drivers from the \
+ \ndahdi-extra repository. They are all out-of-tree and are highly likely \
+ \n not to be included in DAHDI-linux in the forseeable future. \
+ \n \
+ \nGit-Commit: `git show-ref -s -h HEAD` \
+ \n--- \
+ \n \
+
+
CHECKSTACK=$(KSRC)/scripts/checkstack.pl
DAHDI_BUILD_ALL:=m
@@ -153,7 +169,8 @@ gen-patch:
cat drivers/dahdi/Kconfig >>$(SVN_DIR_DST)/drivers/dahdi/Kconfig
sed -e '/^####### END OF DATA ########/,$$d' drivers/dahdi/Kbuild \
| sed -i -e R/dev/stdin $(SVN_DIR_DST)/drivers/dahdi/Kbuild
- diff -urN $(SVN_DIR_SRC) $(SVN_DIR_DST) >$(DAHDI_LINUX_DIFF) \
+ echo -e "$(PATCH_HEADER)" >$(DAHDI_LINUX_DIFF)
+ diff -urN $(SVN_DIR_SRC) $(SVN_DIR_DST) >>$(DAHDI_LINUX_DIFF) \
|| [ $$? -eq 1 ]