summaryrefslogtreecommitdiff
path: root/kernel/Kbuild
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-20 22:02:06 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-20 22:02:06 +0000
commit9b6044503bbded2291fad9681cbc2210048048a8 (patch)
treeb15d0e9f1afb2c9038f4a0c9e42d40a69ca6d6af /kernel/Kbuild
parent58974380fb0da22b218183b2391baa1f2a8fb707 (diff)
Make hpec buildable again.
Closes issue #11951, patch by me. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3861 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/Kbuild')
-rw-r--r--kernel/Kbuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/Kbuild b/kernel/Kbuild
index 7454c90..f114721 100644
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -16,16 +16,23 @@ endif
zaptel-objs := zaptel-base.o
-ifeq ($(HPEC_PRESENT),yes)
ifeq ($(ARCH),i386)
+ifneq ($(wildcard $(src)/hpec/hpec_x86_32.o_shipped),)
+HPEC_PRESENT=yes
zaptel-objs += hpec/hpec_x86_32.o
endif
+endif
ifeq ($(ARCH),x86_64)
+ifneq ($(wildcard $(src)/hpec/hpec_x86_64.o_shipped),)
+HPEC_PRESENT=yes
zaptel-objs += hpec/hpec_x86_64.o
endif
+endif
+ifeq ($(HPEC_PRESENT),yes)
EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
+$(obj)/zaptel-base.o: hpec/hpec_zaptel.h hpec/hpec_user.h
endif
$(obj)/pciradio.o: $(obj)/radfw.h