#
# Copyright (c) Huawei Technologies Co., Ltd. 2014-2019. All rights reserved.
# Description: This file describe HISI GPU GMC build
# Author: Huawei Technologies Co., Ltd.
# Create: 2014-2-24
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
# Foundation, and any use by you of this program is subject to the terms
# of such GNU licence.
#
# A copy of the licence is included with the program, and can also be obtained
# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA  02110-1301, USA.
#
#

MALI_GMC_COMPRESS_SIZE ?= 250

ifeq ($(CONFIG_GPU_GMC_GENERIC),y)
# Set up our defines, which will be passed to gcc
DEFINES += \
	-DMALI_GMC_COMPRESS_SIZE=$(MALI_GMC_COMPRESS_SIZE)

ccflags-y += $(DEFINES) \
	-I$(src)/$(MALI_PLATFORM_DIR)/gmc

subdir-ccflags-y += $(DEFINES) \
	-I$(src)/$(MALI_PLATFORM_DIR)/gmc

SRC += $(MALI_PLATFORM_DIR)/gmc/mali_kbase_gmc.c

mali_kbase-y += \
	$(MALI_PLATFORM_DIR)/gmc/mali_kbase_gmc.o
endif
