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.
67 lines
1.8 KiB
67 lines
1.8 KiB
###############################################################################
|
|
# export variables
|
|
###############################################################################
|
|
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
###############################################################################
|
|
# local variables
|
|
###############################################################################
|
|
ccflags-y += \
|
|
-Idrivers/drv/ioctl_inc/generic \
|
|
-Idrivers/drv/ioctl_inc/audio \
|
|
-Idrivers/drv/ioctl_inc/adec \
|
|
-Idrivers/drv/ext_inc/base \
|
|
-Idrivers/drv/ext_inc/osal \
|
|
-Idrivers/drv/ext_inc/common \
|
|
-Idrivers/drv/ext_inc/adec \
|
|
-Idrivers/drv/ext_inc/adsp
|
|
|
|
|
|
# ccflags-y += -DCONFIG_SOCT_MPEG_LAYER12_SUPPORT
|
|
# ccflags-y += -DCONFIG_SOCT_INTERLEAVED_OUTPUT
|
|
ccflags-y += -Werror
|
|
MODNAME := soc_adec
|
|
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
MOD_OBJ_BUILD_FLAGS := -objs-y
|
|
MOD_OBJ_TARGET_FLAGS := obj-y
|
|
else
|
|
MOD_OBJ_BUILD_FLAGS := -objs-m
|
|
MOD_OBJ_TARGET_FLAGS := obj-m
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved9"),)
|
|
EXTRA_CFLAGS += -DCONFIG_RESERVED9
|
|
endif
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13"),)
|
|
EXTRA_CFLAGS += -DCONFIG_RESERVED13
|
|
endif
|
|
|
|
endif
|
|
# end of CONFIG_SOCT_DRV_BUILDIN
|
|
|
|
$(MOD_OBJ_TARGET_FLAGS) += $(MODNAME).o
|
|
$(MODNAME)$(MOD_OBJ_BUILD_FLAGS) += drv_adec.o
|
|
###############################################################################
|
|
$(MODNAME)-objs := $($(MODNAME)$(MOD_OBJ_BUILD_FLAGS))
|
|
|
|
##################modules######################
|
|
|
|
KDIR := $(LINUX_DIR)
|
|
|
|
PWD := $(shell pwd)
|
|
CURFOLDER ?= $(pwd)
|
|
|
|
EXTRA_CFLAGS += -I$(CURFOLDER)/include
|
|
all:drivers_modules
|
|
|
|
drivers_modules:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules CROSS_COMPILE=$(CROSS_COMPILE)
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
$(RM) Module.markers
|
|
$(RM) modules.order
|