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.
75 lines
2.7 KiB
75 lines
2.7 KiB
#===============================================================================
|
|
# export variables
|
|
#===============================================================================
|
|
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
#===============================================================================
|
|
# local variable
|
|
#===============================================================================
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/klad
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/generic
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/common
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/keyslot
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/cipher
|
|
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/klad
|
|
ccflags-y += -Idrivers/drv/ext_inc/keyslot
|
|
ccflags-y += -Idrivers/drv/ext_inc/cipher
|
|
ccflags-y += -Idrivers/drv/common/include
|
|
ccflags-y += -Idrivers/drv/klad
|
|
ccflags-y += -Idrivers/drv/klad/v1/rkp
|
|
ccflags-y += -Idrivers/drv/klad/v1/rkp/hal
|
|
ccflags-y += -Idrivers/drv/klad/v1
|
|
ccflags-y += -Idrivers/drv/klad/v1/hal
|
|
ccflags-y += -Idrivers/drv/klad/v2
|
|
ccflags-y += -Idrivers/drv/klad/v2/hal
|
|
ccflags-y += -Idrivers/drv/ext_inc/dftevent
|
|
|
|
ccflags-y += -fstack-protector-all
|
|
|
|
MODNAME := soc_klad
|
|
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
obj-$(CONFIG_SOCT_KLAD_SUPPORT) := $(MODNAME).o
|
|
else
|
|
obj-m += $(MODNAME).o
|
|
endif
|
|
|
|
$(MODNAME)-objs-y += drv_klad_intf.o
|
|
$(MODNAME)-objs-y += drv_klad_proc.o
|
|
|
|
ifeq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved9" "reserved13"),)
|
|
ccflags-y += -DKLAD_MODULE_ID_BASIC=\"./v2/data/$(CONFIG_SOCT_CHIP_TYPE)/null.txt\"
|
|
else
|
|
ccflags-y += -DKLAD_MODULE_ID_BASIC=\"./v1/data/$(CONFIG_SOCT_CHIP_TYPE)/module_id_basic.txt\"
|
|
endif
|
|
|
|
$(MODNAME)-objs-y += v1/drv_klad_sw.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_sw_func.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_sw_mgmt.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_sw_utils.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_hw.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_hw_func.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_hw_mgmt.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_timestamp.o
|
|
$(MODNAME)-objs-y += v1/hal/hal_klad.o
|
|
$(MODNAME)-objs-y += v1/drv_hkl.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_com.o
|
|
$(MODNAME)-objs-y += v1/rkp/drv_rkp.o
|
|
$(MODNAME)-objs-y += v1/rkp/drv_rkp_dbg.o
|
|
$(MODNAME)-objs-y += v1/rkp/hal/hal_rkp.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_hw_utils.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_timestamp_logic.o
|
|
$(MODNAME)-objs-y += v1/drv_klad_fmea.o
|
|
|
|
$(MODNAME)-objs-y += v2/drv_klad_v2.o
|
|
$(MODNAME)-objs-y += v2/drv_klad_hkl.o
|
|
$(MODNAME)-objs-y += v2/drv_klad_hw_mgmt_v2.o
|
|
$(MODNAME)-objs-y += v2/hal/hal_klad_v2.o
|
|
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|