| 1 |
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP) += wct4xxp.o |
| 2 |
|
| 3 |
FIRM_DIR := ../firmware |
| 4 |
|
| •5 |
ccflags-y += -I$(src)/.. -I$(src)/../oct612x/ $(shell $(src)/../oct612x/octasic-helper cflags $(src)/../oct612x) -Wno-undef |
| 6 |
|
| 7 |
# The OCT612X source files are from a vendor drop and we do not want to edit |
| 8 |
# them to make this warning go away. Therefore, turn off the |
| 9 |
# unused-but-set-variable warning for this driver. |
| 10 |
|
| •11 |
ccflags-y += $(call cc-option, -Wno-unused-but-set-variable) |
| 12 |
|
| 13 |
ifeq ($(HOTPLUG_FIRMWARE),yes) |
| •14 |
ccflags-y+=-DHOTPLUG_FIRMWARE |
| 15 |
endif |
| 16 |
|
| 17 |
wct4xxp-objs := base.o vpm450m.o |
| 18 |
|
| 19 |
ifneq ($(HOTPLUG_FIRMWARE),yes) |
| 20 |
wct4xxp-objs += $(FIRM_DIR)/dahdi-fw-oct6114-064.o $(FIRM_DIR)/dahdi-fw-oct6114-128.o $(FIRM_DIR)/dahdi-fw-oct6114-256.o |
| 21 |
$(warning WARNING: You are compiling firmware into wct4xxp.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.) |
| 22 |
endif |
| 23 |
|
| 24 |
$(obj)/$(FIRM_DIR)/dahdi-fw-oct6114-064.o: $(obj)/base.o |
| 25 |
$(MAKE) -C $(obj)/$(FIRM_DIR) dahdi-fw-oct6114-064.o |
| 26 |
|
| 27 |
$(obj)/$(FIRM_DIR)/dahdi-fw-oct6114-128.o: $(obj)/base.o |
| 28 |
$(MAKE) -C $(obj)/$(FIRM_DIR) dahdi-fw-oct6114-128.o |
| 29 |
|
| 30 |
$(obj)/$(FIRM_DIR)/dahdi-fw-oct6114-256.o: $(obj)/base.o |
| 31 |
$(MAKE) -C $(obj)/$(FIRM_DIR) dahdi-fw-oct6114-256.o |