summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus/Kbuild
blob: 62666533e62ffb30ca161b240876515f13ab52b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_VOICEBUS) += dahdi_voicebus.o

dahdi_voicebus-objs := voicebus.o GpakCust.o GpakApi.o voicebus_net.o vpmoct.o

FIRM_DIR	:= ../firmware

ifneq ($(HOTPLUG_FIRMWARE),yes)
dahdi_voicebus-objs += $(FIRM_DIR)/dahdi-fw-vpmoct032.o
else
  EXTRA_CFLAGS+=-DHOTPLUG_FIRMWARE
endif

EXTRA_CFLAGS += -I$(src)/.. -Wno-undef

$(obj)/$(FIRM_DIR)/dahdi-fw-vpmoct032.o: $(obj)/voicebus.o
	$(MAKE) -C $(obj)/$(FIRM_DIR) dahdi-fw-vpmoct032.o