diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-02-28 14:19:09 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-02-28 14:19:09 +0000 |
commit | fa17ec0a03fffe6e8a3699485306d9c3ea61a5a5 (patch) | |
tree | fcf8a04024756ff020877cbeb63f0dc14ac0752b /drivers/dahdi/dahdi-base.c | |
parent | 3ccb4aeee7852c9bf85bebf355419cb51abc36ad (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-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index e7951c0..8a634d3 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -62,7 +62,6 @@ #define DAHDI_PRINK_MACROS_USE_debug #define module_printk(level, fmt, args...) printk(level "%s: " fmt, THIS_MODULE->name, ## args) -#include <dahdi/version.h> /* Grab fasthdlc with tables */ #define FAST_HDLC_NEED_TABLES #include <dahdi/kernel.h> @@ -4799,7 +4798,7 @@ static int dahdi_ioctl_get_version(unsigned long data) size_t space = sizeof(vi.echo_canceller) - 1; memset(&vi, 0, sizeof(vi)); - strlcpy(vi.version, DAHDI_VERSION, sizeof(vi.version)); + strlcpy(vi.version, dahdi_version, sizeof(vi.version)); spin_lock(&ecfactory_list_lock); list_for_each_entry(cur, &ecfactory_list, list) { strncat(vi.echo_canceller + strlen(vi.echo_canceller), @@ -9148,7 +9147,6 @@ MODULE_LICENSE("GPL v2"); * for that. So make dahdi provide it for now. This alias may be removed * in the future, and users are encouraged not to rely on it. */ MODULE_ALIAS("dahdi_dummy"); -MODULE_VERSION(DAHDI_VERSION); module_param(debug, int, 0644); MODULE_PARM_DESC(debug, "Sets debugging verbosity as a bitfield, to see"\ |