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.

42 lines
1.3 KiB

#===============================================================================
# export variables
#===============================================================================
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
endif
#===============================================================================
# local variable
#===============================================================================
ccflags-y += -Idrivers/drv/ioctl_inc/generic
ccflags-y += -Idrivers/drv/ioctl_inc/common
ccflags-y += -Idrivers/drv/ioctl_inc/otp
ccflags-y += -Idrivers/drv/ext_inc/base
ccflags-y += -Idrivers/drv/ext_inc/osal
ccflags-y += -Idrivers/drv/ext_inc/common
ccflags-y += -Idrivers/drv/ext_inc/otp
ccflags-y += -Idrivers/drv/common/include
ccflags-y += -Idrivers/drv/otp
ccflags-y += -fstack-protector-all
MODNAME := soc_otp
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
obj-$(CONFIG_SOCT_OTP_SUPPORT) += $(MODNAME).o
else
obj-m += $(MODNAME).o
endif
$(MODNAME)-objs-y += drv_otp.o
$(MODNAME)-objs-y += drv_otp_intf.o
$(MODNAME)-objs-y += drv_otp_proc.o
$(MODNAME)-objs-y += hal_otp.o
ifeq ($(CONFIG_RESERVED5)$(CONFIG_RESERVED17)$(CONFIG_RESERVED19)$(CONFIG_HI3751V811),y)
$(MODNAME)-objs-y += drv_otp_old.o
else
$(MODNAME)-objs-y += drv_otp_panda.o
endif
$(MODNAME)-objs := $($(MODNAME)-objs-y)