You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
#===============================================================================
|
|
# export variables
|
|
#===============================================================================
|
|
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
ccflags-y += -Idrivers/drv/common/include \
|
|
-Idrivers/drv/ioctl_inc/generic \
|
|
-Idrivers/drv/ioctl_inc/common \
|
|
-Idrivers/drv/ioctl_inc/gpio \
|
|
-Idrivers/drv/ioctl_inc/pwm \
|
|
-Idrivers/drv/ext_inc/base \
|
|
-Idrivers/drv/ext_inc/osal \
|
|
-Idrivers/drv/ext_inc/common \
|
|
-Idrivers/drv/ext_inc/gpio \
|
|
-Idrivers/drv/ext_inc/pwm \
|
|
-Idrivers/drv/pwm
|
|
|
|
MODNAME := soc_pwm
|
|
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
obj-y += $(MODNAME).o
|
|
else
|
|
obj-m += $(MODNAME).o
|
|
endif
|
|
|
|
$(MODNAME)-objs-y := drv_pwm_intf.o
|
|
$(MODNAME)-objs-y += pwm_common.o
|
|
$(MODNAME)-objs-y += pwm_fileops.o
|
|
$(MODNAME)-objs-y += pwm_pm.o
|
|
$(MODNAME)-objs-y += pwm_proc.o
|
|
$(MODNAME)-objs-y += pwm_v1.o
|
|
$(MODNAME)-objs-y += pwm_v2.o
|
|
$(MODNAME)-objs-y += pwm_v3.o
|
|
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|