summaryrefslogtreecommitdiff
path: root/Makefile.kernel26
blob: 6af9a69737f692900bbcef1c58030aadbcbd3f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ifdef ECHO_CAN_NAME
	ECHO_CAN_CFLAGS	:= -DECHO_CAN_FROMENV -DECHO_CAN_$(ECHO_CAN_NAME)
endif

EXTRA_CFLAGS := -I$(src)
EXTRA_CFLAGS += $(ECHO_CAN_CFLAGS)

# fix typo present in CentOS and RHEL 2.6.9 kernels
BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2
BAD_KERNELS := $(foreach ver,$(BAD_KERNELS_VERS),2.6.9-$(ver).EL 2.6.9-$(ver).ELsmp)
ifneq (,$(filter $(KVERS),$(BAD_KERNELS)))
EXTRA_CFLAGS+=-Drw_lock_t=rwlock_t
endif

zaptel-objs := zaptel-base.o

ifeq ($(HPEC_PRESENT),yes)
ifeq ($(ARCH),i386)
zaptel-objs += hpec/hpec_x86_32.o
endif

ifeq ($(ARCH),x86_64)
zaptel-objs += hpec/hpec_x86_64.o
endif

EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
endif