45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
#
|
|
# Makefile for gsc3280 Highspeed USB controller driver
|
|
#
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
ccflags-$(CONFIG_GSC3280_OTG_DEBUG) += -DDEBUG
|
|
ccflags-$(CONFIG_GSC3280_OTG_HOST_ONLY) += -DGSC3280_HOST_ONLY
|
|
ccflags-$(CONFIG_GSC3280_OTG_DEVICE_ONLY) += -DGSC3280_DEVICE_ONLY
|
|
|
|
#ccflags-y += -Dlinux -DGSC3280_HS_ELECT_TST
|
|
#ccflags-y += -DGSC3280_EN_ISOC
|
|
ccflags-y += -DGSC3280_LINUX
|
|
ccflags-y += $(CFI)
|
|
#ccflags-y += -DGSC3280_DEV_SRPCAP
|
|
ccflags-y += -msoft-float
|
|
|
|
|
|
obj-y := gsc3280_otg.o
|
|
|
|
gsc3280_otg-objs := gsc3280_otg_driver.o gsc3280_otg_attr.o
|
|
gsc3280_otg-objs += gsc3280_otg_cil.o gsc3280_otg_cil_intr.o
|
|
gsc3280_otg-objs += gsc3280_otg_pcd_linux.o gsc3280_otg_pcd.o gsc3280_otg_pcd_intr.o
|
|
gsc3280_otg-objs += gsc3280_otg_hcd.o gsc3280_otg_hcd_intr.o gsc3280_otg_hcd_queue.o gsc3280_otg_hcd_ddma.o
|
|
gsc3280_otg-objs += gsc3280_otg_adp.o gsc3280_otg_hcd_linux.o gsc3280_common_linux.o
|
|
ifneq ($(CFI),)
|
|
gsc3280_otg-objs += gsc3280_otg_cfi.o
|
|
endif
|
|
|
|
else
|
|
|
|
PWD := $(shell pwd)
|
|
KDIR :=
|
|
|
|
default:
|
|
$(MAKE) -C$(KDIR) M=$(PWD) modules
|
|
|
|
install: default
|
|
$(MAKE) -C$(KDIR) M=$(PWD) modules_install
|
|
|
|
clean:
|
|
rm -rf *.o *.ko .*cmd *.mod.c .tmp_versions Module.symvers
|
|
|
|
endif
|