File tree 11 files changed +19
-25
lines changed
11 files changed +19
-25
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src) -Wno-format-truncation
83
83
BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2
84
84
BAD_KERNELS := $(foreach ver,$(BAD_KERNELS_VERS ) ,2.6.9-$(ver ) .EL 2.6.9-$(ver ) .ELsmp)
85
85
ifneq (,$(filter $(KVERS ) ,$(BAD_KERNELS ) ) )
86
- EXTRA_CFLAGS +=-Drw_lock_t =rwlock_t
86
+ ccflags-y +=-Drw_lock_t =rwlock_t
87
87
endif
88
88
89
89
# A number of Fedora 10 (9 also?) kernels backported hrtimer to 2.6.27
90
90
# as part of an ALSA backport. TODO: Any better way to detect that?
91
91
ifeq (1,$(shell fgrep -q ' hrtimer_set_expires' include/linux/hrtimer.h 2>/dev/null && echo 1) )
92
- EXTRA_CFLAGS +=-DHAVE_HRTIMER_ACCESSORS =1
92
+ ccflags-y +=-DHAVE_HRTIMER_ACCESSORS =1
93
93
endif
94
94
95
95
ifeq (1,$(shell fgrep -q 'wait_for_completion_timeout' include/linux/completion.h 2>/dev/null && echo 1) )
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ octapi_files = octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o \
24
24
apilib/llman/octapi_llman.o \
25
25
oct612x-user.o
26
26
27
- # TODO: ccflags was added in 2.6.24 in commit f77bf01425b11947eeb3b5b54. This
28
- # should be changed to a conditional compilation based on the Kernel Version.
29
- # ccflags-y := -I$(src)/.. -Wno-undef -I$(src)/include -I$(src)/octdeviceapi -I$(src)/octdeviceapi/oct6100api
30
- EXTRA_CFLAGS = -I$(src ) /.. -Wno-undef -I$(src ) /include -I$(src ) /octdeviceapi -I$(src ) /octdeviceapi/oct6100api
27
+ ccflags-y := -I$(src ) /.. -Wno-undef -I$(src ) /include -I$(src ) /octdeviceapi -I$(src ) /octdeviceapi/oct6100api
31
28
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_OCT612X) := oct612x.o
32
29
oct612x-objs := $(octapi_files )
Original file line number Diff line number Diff line change @@ -23,8 +23,5 @@ octapi_files = octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o \
23
23
apilib/largmath/octapi_largmath.o \
24
24
apilib/llman/octapi_llman.o
25
25
26
- # TODO: ccflags was added in 2.6.24 in commit f77bf01425b11947eeb3b5b54. This
27
- # should be changed to a conditional compilation based on the Kernel Version.
28
- # ccflags-y := -I$(src)/.. -Wno-undef -I$(src)/include -I$(src)/octdeviceapi -I$(src)/octdeviceapi/oct6100api
29
- EXTRA_CFLAGS = -I$(src ) /.. -Wno-undef -I$(src ) /include -I$(src ) /octdeviceapi -I$(src ) /octdeviceapi/oct6100api
26
+ ccflags-y := -I$(src ) /.. -Wno-undef -I$(src ) /include -I$(src ) /octdeviceapi -I$(src ) /octdeviceapi/oct6100api
30
27
lib-y := $(octapi_files )
Original file line number Diff line number Diff line change 1
1
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_OPVXA1200) += opvxa1200.o
2
2
3
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
3
+ ccflags-y += -I$(src ) /.. -Wno-undef
4
4
5
5
opvxa1200-objs := base.o
6
6
@@ -10,10 +10,10 @@ ifneq ($(DAHDI_KERNEL_H_PATH),)
10
10
DAHDI_SPAN_MODULE: =$(shell if grep -C 5 "struct dahdi_span {" $(DAHDI_KERNEL_H_PATH ) | grep -q "struct module \* owner"; then echo "yes"; else echo "no"; fi)
11
11
DAHDI_SPAN_OPS: =$(shell if grep -q "struct dahdi_span_ops {" $(DAHDI_KERNEL_H_PATH ) ; then echo "yes"; else echo "no"; fi)
12
12
ifeq ($(DAHDI_SPAN_MODULE),yes)
13
- EXTRA_CFLAGS + =-DDAHDI_SPAN_MODULE
13
+ ccflags-y + =-DDAHDI_SPAN_MODULE
14
14
else
15
15
ifeq ($(DAHDI_SPAN_OPS),yes)
16
- EXTRA_CFLAGS + =-DDAHDI_SPAN_OPS
16
+ ccflags-y + =-DDAHDI_SPAN_OPS
17
17
endif
18
18
endif
19
19
endif
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ ifneq ($(HOTPLUG_FIRMWARE),yes)
8
8
dahdi_voicebus-objs += $(FIRM_DIR ) /dahdi-fw-vpmoct032.o
9
9
$(warning WARNING : You are compiling firmware into voicebus.ko which is not available under the terms of the GPL. It may be a violation of the GPL to distribute the resulting image since it combines both GPL and non-GPL work. You should consult a lawyer of your own before distributing such an image.)
10
10
else
11
- EXTRA_CFLAGS + =-DHOTPLUG_FIRMWARE
11
+ ccflags-y + =-DHOTPLUG_FIRMWARE
12
12
endif
13
13
14
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
14
+ ccflags-y += -I$(src ) /.. -Wno-undef
15
15
16
16
$(obj ) /$(FIRM_DIR ) /dahdi-fw-vpmoct032.o : $(obj ) /voicebus.o
17
17
$(MAKE ) -C $(obj ) /$(FIRM_DIR ) dahdi-fw-vpmoct032.o
Original file line number Diff line number Diff line change 1
1
obj-m += wcb4xxp.o
2
2
3
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
3
+ ccflags-y += -I$(src ) /.. -Wno-undef
4
4
5
5
wcb4xxp-objs := base.o
6
6
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP) += wct4xxp.o
2
2
3
3
FIRM_DIR := ../firmware
4
4
5
- EXTRA_CFLAGS += -I$(src ) /.. -I$(src ) /../oct612x/ $(shell $(src ) /../oct612x/octasic-helper cflags $(src ) /../oct612x) -Wno-undef
5
+ ccflags-y += -I$(src ) /.. -I$(src ) /../oct612x/ $(shell $(src ) /../oct612x/octasic-helper cflags $(src ) /../oct612x) -Wno-undef
6
6
7
7
# The OCT612X source files are from a vendor drop and we do not want to edit
8
8
# them to make this warning go away. Therefore, turn off the
9
9
# unused-but-set-variable warning for this driver.
10
10
11
- EXTRA_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
11
+ ccflags-y += $(call cc-option, -Wno-unused-but-set-variable)
12
12
13
13
ifeq ($(HOTPLUG_FIRMWARE ) ,yes)
14
- EXTRA_CFLAGS + =-DHOTPLUG_FIRMWARE
14
+ ccflags-y + =-DHOTPLUG_FIRMWARE
15
15
endif
16
16
17
17
wct4xxp-objs := base.o vpm450m.o
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp.o
2
2
3
3
FIRM_DIR := ../firmware
4
4
5
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
5
+ ccflags-y += -I$(src ) /.. -Wno-undef
6
6
7
7
ifeq ($(HOTPLUG_FIRMWARE ) ,yes)
8
- EXTRA_CFLAGS + =-DHOTPLUG_FIRMWARE
8
+ ccflags-y + =-DHOTPLUG_FIRMWARE
9
9
endif
10
10
11
11
wctc4xxp-objs := base.o
Original file line number Diff line number Diff line change 1
1
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp.o
2
2
3
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
3
+ ccflags-y += -I$(src ) /.. -Wno-undef
4
4
5
5
wctdm24xxp-objs := base.o xhfc.o
Original file line number Diff line number Diff line change 1
1
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp.o
2
2
3
- EXTRA_CFLAGS += -I$(src ) /.. -Wno-undef
3
+ ccflags-y += -I$(src ) /.. -Wno-undef
4
4
5
5
wcte12xp-objs := base.o
Original file line number Diff line number Diff line change 1
- EXTRA_CFLAGS = $(XPP_LOCAL_CFLAGS ) \
1
+ ccflags-y = $(XPP_LOCAL_CFLAGS ) \
2
2
-DDEBUG \
3
3
-DPOLL_DIGITAL_INPUTS \
4
4
-DDEBUG_PCMTX \
@@ -32,7 +32,7 @@ xpd_echo-objs += card_echo.o
32
32
xpp_mmap-objs += mmapbus.o mmapdrv.o
33
33
34
34
ifeq (y,$(PARPORT_DEBUG ) )
35
- EXTRA_CFLAGS += -DDEBUG_SYNC_PARPORT
35
+ ccflags-y += -DDEBUG_SYNC_PARPORT
36
36
obj-m += parport_debug.o
37
37
endif
38
38
You can’t perform that action at this time.
0 commit comments