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

« back to all changes in this revision

Viewing changes to kernel/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 ECHO_CAN_NAME
 
2
        ECHO_CAN_CFLAGS := -DECHO_CAN_FROMENV -DECHO_CAN_$(ECHO_CAN_NAME)
 
3
endif
 
4
 
 
5
obj-m   := $(KBUILD_OBJ_M)
 
6
 
 
7
EXTRA_CFLAGS := -I$(src) -DSTANDALONE_ZAPATA
 
8
EXTRA_CFLAGS += $(ECHO_CAN_CFLAGS)
 
9
 
 
10
# fix typo present in CentOS and RHEL 2.6.9 kernels
 
11
BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2
 
12
BAD_KERNELS := $(foreach ver,$(BAD_KERNELS_VERS),2.6.9-$(ver).EL 2.6.9-$(ver).ELsmp)
 
13
ifneq (,$(filter $(KVERS),$(BAD_KERNELS)))
 
14
EXTRA_CFLAGS+=-Drw_lock_t=rwlock_t
 
15
endif
 
16
 
 
17
zaptel-objs := zaptel-base.o
 
18
 
 
19
ifeq ($(ARCH),i386)
 
20
ifneq ($(wildcard $(src)/hpec/hpec_x86_32.o_shipped),)
 
21
HPEC_PRESENT=yes
 
22
zaptel-objs += hpec/hpec_x86_32.o
 
23
endif
 
24
endif
 
25
 
 
26
ifeq ($(ARCH),x86_64)
 
27
ifneq ($(wildcard $(src)/hpec/hpec_x86_64.o_shipped),)
 
28
HPEC_PRESENT=yes
 
29
zaptel-objs += hpec/hpec_x86_64.o
 
30
endif
 
31
endif
 
32
 
 
33
ifeq ($(HPEC_PRESENT),yes)
 
34
EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
 
35
$(obj)/zaptel-base.o: $(src)/hpec/hpec_zaptel.h $(src)/hpec/hpec_user.h
 
36
endif
 
37
 
 
38
$(obj)/pciradio.o: $(obj)/radfw.h
 
39
$(obj)/tor2.o: $(obj)/tor2fw.h
 
40
 
 
41
hostprogs-y := $(obj)/makefw
 
42
 
 
43
$(obj)/tor2fw.h: $(src)/tormenta2.rbt $(obj)/makefw 
 
44
        $(obj)/makefw $< tor2fw > $@
 
45
 
 
46
$(obj)/radfw.h: $(src)/pciradio.rbt $(obj)/makefw
 
47
        $(obj)/makefw $< radfw > $@
 
48
 
 
49
$(obj)/makefw: $(src)/makefw.c
 
50
        $(HOSTCC) -o $@ $^
 
51
 
 
52
 
 
53
# set CONFIG_ZAPTEL_MMX for a number of CPU types.
 
54
# Right now this part is not enabled, unless you build with
 
55
# ZAPTEL_MMX_AUTO=something .
 
56
ZAPMMX_WHITELIST_i386 = M586MMX M686 MPENTIUMII MPENTIUMIII MPENTIUMM \
 
57
                            MPENTIUM4 MVIAC3_2
 
58
 
 
59
ZAPMMX_WHITELIST_x86_64 = 
 
60
 
 
61
# A list of configuration variables to test: CONFIG_M686 , etc.
 
62
ZAPMMX_CONFIG_VARS := $(ZAPMMX_WHITELIST_$(ARCH):%=CONFIG_%)
 
63
 
 
64
# expand them:
 
65
ZAPMMX_CONFIG_VALS := $(strip  $(foreach var,$(ZAPMMX_CONFIG_VARS),$(var))  )
 
66
ifneq (,$(ZAPTEL_MMX_AUTO))
 
67
  ifneq (,$(ZAPMMX_CONFIG_VALS))
 
68
    # TODO: make that 
 
69
    CFLAGS_zaptel-base.o += -DCONFIG_ZAPTEL_MMX
 
70
  endif
 
71
endif