Openwrt/package/kernel/lantiq/ltq-hcd/src/Makefile
John Crispin 1878a3d6ab lantiq: add v3.10 patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38031
2013-09-17 21:46:10 +00:00

75 lines
1.9 KiB
Makefile

ltq_hcd_$(BUILD_VARIANT)-objs := ifxusb_driver.o ifxusb_cif.o \
ifxusb_cif_h.o ifxhcd.o ifxhcd_es.o \
ifxhcd_intr.o ifxhcd_queue.o
obj-m = ltq_hcd_$(BUILD_VARIANT).o
ifeq ($(BUILD_VARIANT),danube)
EXTRA_CFLAGS += -D__IS_DANUBE__
endif
ifeq ($(BUILD_VARIANT),ase)
EXTRA_CFLAGS += -D__IS_AMAZON_SE__
endif
ifeq ($(BUILD_VARIANT),ar9)
EXTRA_CFLAGS += -D__IS_AR9__
EXTRA_CFLAGS += -D__IS_DUAL__
endif
ifeq ($(BUILD_VARIANT),vr9)
EXTRA_CFLAGS += -D__IS_VR9__
EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
EXTRA_CFLAGS += -D__PINGSTOP_BULK__
EXTRA_CFLAGS += -D__IS_DUAL__
endif
ifeq ($(BUILD_VARIANT),ar10)
EXTRA_CFLAGS += -D__IS_AR10__
EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
EXTRA_CFLAGS += -D__PINGSTOP_BULK__
endif
ifeq ($(CONFIG_USB_HOST_IFX_FORCE_USB11),y)
EXTRA_CFLAGS += -D__FORCE_USB11__
endif
ifeq ($(CONFIG_USB_HOST_IFX_WITH_HS_ELECT_TST),y)
EXTRA_CFLAGS += -D__WITH_HS_ELECT_TST__
endif
ifeq ($(CONFIG_USB_HOST_IFX_WITH_ISO),y)
EXTRA_CFLAGS += -D__EN_ISOC__
endif
#ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_ADJ),y)
EXTRA_CFLAGS += -D__UNALIGNED_BUF_ADJ__
#endif
ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_CHK),y)
EXTRA_CFLAGS += -D__UNALIGNED_BUF_CHK__
endif
ifeq ($(CONFIG_USB_HOST_IFX_COC),y)
EXTRA_CFLAGS += -D__HOST_COC__
endif
# EXTRA_CFLAGS += -D__IS_FIRST__
# EXTRA_CFLAGS += -D__IS_SECOND__
# EXTRA_CFLAGS += -D__EN_ISOC__
# EXTRA_CFLAGS += -D__EN_ISOC_SPLIT__
# EXTRA_CFLAGS += -D__EPQD_DESTROY_TIMEOUT__
# EXTRA_CFLAGS += -D__INNAKSTOP_CTRL__
EXTRA_CFLAGS += -Dlinux -D__LINUX__
EXTRA_CFLAGS += -D__IS_HOST__
EXTRA_CFLAGS += -D__KERNEL__
#EXTRA_CFLAGS += -D__DEBUG__
#EXTRA_CFLAGS += -D__ENABLE_DUMP__
EXTRA_CFLAGS += -D__DYN_SOF_INTR__
EXTRA_CFLAGS += -D__UEIP__
EXTRA_CFLAGS += -D__DO_OC_INT__
EXTRA_CFLAGS += -D__INNAKSTOP_BULK__
EXTRA_CFLAGS += -D__INTRNAKRETRY__
EXTRA_CFLAGS += -D__INTRINCRETRY__