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.
56 lines
1.5 KiB
56 lines
1.5 KiB
|
|
ifneq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
ccflags-y += -fstack-protector-all
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9"),)
|
|
HAL_DIR := hal/hal_v1_0
|
|
ccflags-y += -Idrivers/drv/lpmcu/reserved13
|
|
endif
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved19", "reserved17"),)
|
|
HAL_DIR := hal/hal_v3_0
|
|
ccflags-y += -Idrivers/drv/lpmcu/reserved19
|
|
endif
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "hi3751v811"),)
|
|
HAL_DIR := hal/hal_v3_0
|
|
ccflags-y += -Idrivers/drv/lpmcu/hi3751v811
|
|
endif
|
|
|
|
ccflags-y += -Idrivers/drv/common/include
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/generic
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/common
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/pmoc
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/gpio
|
|
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/mailbox
|
|
ccflags-y += -Idrivers/drv/ext_inc/otp
|
|
ccflags-y += -Idrivers/drv/ext_inc/pmoc
|
|
ccflags-y += -Idrivers/drv/ext_inc/dvfs
|
|
ccflags-y += -Idrivers/drv/pmoc
|
|
|
|
MODNAME := soc_pmoc
|
|
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
obj-$(CONFIG_SOCT_PMOC_SUPPORT) += $(MODNAME).o
|
|
else
|
|
obj-m += $(MODNAME).o
|
|
endif
|
|
|
|
$(MODNAME)-objs-y += drv_pmoc_intf.o
|
|
$(MODNAME)-objs-y += drv_pmoc.o
|
|
$(MODNAME)-objs-y += drv_pmoc_active_standby.o
|
|
$(MODNAME)-objs-y += drv_pmoc_proc.o
|
|
$(MODNAME)-objs-y += $(HAL_DIR)/drv_pmoc_adapt.o
|
|
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|
|
|
|
LPMCU_BIN_PATH := \"lpmcu.bin\"
|
|
|
|
ccflags-y += -DLPMCU_BIN_PATH=$(LPMCU_BIN_PATH)
|