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-sysfs.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-sysfs.c')
-rw-r--r-- | drivers/dahdi/dahdi-sysfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dahdi/dahdi-sysfs.c b/drivers/dahdi/dahdi-sysfs.c index 0c7d0b6..5de4bcf 100644 --- a/drivers/dahdi/dahdi-sysfs.c +++ b/drivers/dahdi/dahdi-sysfs.c @@ -4,7 +4,6 @@ #include <dahdi/kernel.h> #include <linux/device.h> #include <linux/slab.h> -#include <dahdi/version.h> #include "dahdi.h" @@ -182,7 +181,7 @@ int __init dahdi_sysfs_init(const struct file_operations *dahdi_fops) } module_printk(KERN_INFO, "Telephony Interface Registered on major %d\n", DAHDI_MAJOR); - module_printk(KERN_INFO, "Version: %s\n", DAHDI_VERSION); + module_printk(KERN_INFO, "Version: %s\n", dahdi_version); dahdi_class = class_create(THIS_MODULE, "dahdi"); if (!dahdi_class) { |