summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/Kbuild
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 14:12:15 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 14:12:15 +0000
commit3b56ce027dad06dea737a31e9db2c1b3e136b0c6 (patch)
treef00263e7d2cf1c49066443480a4a1b6af3589844 /drivers/dahdi/xpp/Kbuild
parentcb219c9d09f19869bb384303cd214234fb58364e (diff)
Replaece member bus_id with dev_name() and set_dev_name()
As of 2.6.26 the macros dev_name() and set_dev_name() are used to read and set (respectively) the bus_id member in sysfs. As of 2.6.30 bus_id is gone. This patch provides comaptiobility macros for older kernel versions and removes direct usage of bus_id. (closes issue #14965) Patches: xpp_2630_dev_name.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6637 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/Kbuild')
-rw-r--r--drivers/dahdi/xpp/Kbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/Kbuild b/drivers/dahdi/xpp/Kbuild
index 973ef57..3b87bf6 100644
--- a/drivers/dahdi/xpp/Kbuild
+++ b/drivers/dahdi/xpp/Kbuild
@@ -6,6 +6,8 @@ EXTRA_CFLAGS = $(XPP_LOCAL_CFLAGS) \
-g # -DOLD_PROC
#
+WITH_BRISTUFF := $(shell grep -c '^[[:space:]]*\#[[:space:]]*define[[:space:]]\+CONFIG_DAHDI_BRI_DCHANS\>' $(src)/../../../include/dahdi/dahdi_config.h)
+
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_XPP) += xpp.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_XPD_FXS) += xpd_fxs.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_XPD_FXO) += xpd_fxo.o