~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to kernel/xpp/Kbuild

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ifdef SUBDIRS
 
2
  ZAP_KERNEL    = $(SUBDIRS)
 
3
else
 
4
  ZAP_KERNEL    = $(M)
 
5
endif
 
6
 
 
7
EXTRA_CFLAGS    =       $(XPP_LOCAL_CFLAGS)     \
 
8
                        -I$(ZAP_KERNEL) \
 
9
                        -DDEBUG                 \
 
10
                        -DPOLL_DIGITAL_INPUTS   \
 
11
                        -DWITH_ECHO_SUPPRESSION \
 
12
                        -DDEBUG_PCMTX           \
 
13
                        -DPROTOCOL_DEBUG        \
 
14
                        -g
 
15
                        #
 
16
 
 
17
ifneq   (,$(shell grep -w echo_can_state_t $(ZAP_KERNEL)/zaptel.h))
 
18
EXTRA_CFLAGS    += -DZAPTEL_EC_TYPEDEF
 
19
endif
 
20
 
 
21
obj-m           += xpp.o xpd_fxs.o xpd_fxo.o xpd_pri.o
 
22
 
 
23
HAS_BRISTUFF    := $(shell grep '^[[:space:]]*\#[[:space:]]*define[[:space:]]\+CONFIG_ZAPATA_BRI_DCHANS\>' $(ZAP_KERNEL)/zconfig.h)
 
24
 
 
25
# Build only supported modules
 
26
ifneq   (,$(filter y m,$(CONFIG_USB)))
 
27
obj-m           += xpp_usb.o
 
28
endif
 
29
ifneq   (,$(HAS_BRISTUFF))
 
30
obj-m           += xpd_bri.o
 
31
endif
 
32
 
 
33
xpp-y           += xbus-core.o xbus-sysfs.o xbus-pcm.o xframe_queue.o xpp_zap.o xproto.o card_global.o zap_debug.o
 
34
xpd_fxs-y       += card_fxs.o
 
35
xpd_fxo-y       += card_fxo.o
 
36
xpd_bri-y       += card_bri.o
 
37
xpd_pri-y       += card_pri.o
 
38
 
 
39
ifeq    (y,$(PARPORT_DEBUG))
 
40
EXTRA_CFLAGS    += -DDEBUG_SYNC_PARPORT
 
41
obj-m           += parport_debug.o
 
42
endif
 
43
 
 
44
# Handle versioning
 
45
XPP_VERSION_STR ?= $(shell if [ -r $(obj)/.version ]; then echo "\"`cat $(obj)/.version`\""; else echo '"Unknown"'; fi)
 
46
clean-files     := xpp_version.h
 
47
 
 
48
$(obj)/card_fxs.o $(obj)/card_fxo.o $(obj)/card_bri.o $(obj)/card_pri.o $(obj)/xpp_usb.o $(obj)/xpp.o: $(obj)/xpp_version.h
 
49
 
 
50
$(obj)/xpp_version.h: FORCE
 
51
        $(Q)echo '#define       XPP_VERSION     $(XPP_VERSION_STR)' > $@.tmp
 
52
        $(Q)if cmp -s $@.tmp $@ ; then echo; else \
 
53
                mv $@.tmp $@ ; \
 
54
        fi
 
55
        $(Q)rm -f $@.tmp
 
56
 
 
57
.PHONY: FORCE
 
58
FORCE: