summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-version.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-02-28 14:19:09 +0000
committerShaun Ruffell <sruffell@digium.com>2011-02-28 14:19:09 +0000
commit028fe8d33ab127f6bbc612607d34f842c294690f (patch)
treefcf8a04024756ff020877cbeb63f0dc14ac0752b /drivers/dahdi/dahdi-version.c
parentb6ffea3f3fd5449f9adfa4bdf05fc407bf77c6d4 (diff)
dahdi: Do not rebuild dahdi-base.c when only updating the version.
This moves the version string into dahdi-version.c that is then linked into dahdi-base.c and dahdi-sysfs.c. This speeds builds on slow computers since dahdi-base.c and dahdi-sysfs.c does not need to be rebuilt if only the version string is changing. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Oron Peled <oron.peled@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9777 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-version.c')
-rw-r--r--drivers/dahdi/dahdi-version.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-version.c b/drivers/dahdi/dahdi-version.c
new file mode 100644
index 0000000..c360a9d
--- /dev/null
+++ b/drivers/dahdi/dahdi-version.c
@@ -0,0 +1,33 @@
+/*
+ * Dahdi Version
+ *
+ * Copyright (C) 2001 Jim Dixon / Zapata Telephony.
+ * Copyright (C) 2011 Digium, Inc.
+ *
+ * All rights reserved.
+ *
+ */
+
+/*
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2 as published by the
+ * Free Software Foundation. See the LICENSE file included with
+ * this program for more details.
+ */
+
+#include <linux/module.h>
+
+#include <dahdi/version.h>
+#include <dahdi/kernel.h>
+
+#include "dahdi.h"
+
+const char *const dahdi_version = DAHDI_VERSION;
+
+MODULE_VERSION(DAHDI_VERSION);