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.

59 lines
2.0 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/panel \
-Idrivers/drv/ioctl_inc/generic \
-Idrivers/drv/ioctl_inc/video \
-Idrivers/drv/ioctl_inc/i2c \
-Idrivers/drv/ioctl_inc/gpio \
-Idrivers/drv/ioctl_inc/pdm \
-Idrivers/drv/ioctl_inc/vo \
-Idrivers/drv/ioctl_inc/ao \
-Idrivers/drv/ioctl_inc/memc \
-Idrivers/drv/ioctl_inc/audio \
-Idrivers/drv/ext_inc/base \
-Idrivers/drv/ext_inc/osal \
-Idrivers/drv/ext_inc/common \
-Idrivers/drv/ext_inc/gpio \
-Idrivers/drv/ext_inc/panel \
-Idrivers/drv/ext_inc/custom \
-Idrivers/drv/ext_inc/i2c \
-Idrivers/drv/ext_inc/pdm \
-Idrivers/drv/custom/kernel \
-Idrivers/drv/custom/boot \
-Idrivers/drv/custom \
-Idrivers/drv/panel \
-Idrivers/drv/panel/data
MODNAME := soc_custom
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
obj-y += $(MODNAME).o
else
obj-m += $(MODNAME).o
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved13")
$(MODNAME)-objs-y := drv_custom_intf.o src/reserved13/drv_custom_for_kernel.o
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved9")
$(MODNAME)-objs-y := drv_custom_intf.o src/reserved9/drv_custom_for_kernel.o
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "hi3751v811")
$(MODNAME)-objs-y := drv_custom_intf.o src/hi3751v811/drv_custom_for_kernel.o
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved19")
$(MODNAME)-objs-y := drv_custom_intf.o src/reserved19/drv_custom_for_kernel.o
endif
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved17")
$(MODNAME)-objs-y := drv_custom_intf.o src/reserved17/drv_custom_for_kernel.o
endif
$(MODNAME)-objs := $($(MODNAME)-objs-y)