xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/Makefile.common (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#
2*4882a593Smuzhiyun# Copyright (C) 2010-2011, 2013, 2016-2017 ARM Limited. All rights reserved.
3*4882a593Smuzhiyun#
4*4882a593Smuzhiyun# This program is free software and is provided to you under the terms of the GNU General Public License version 2
5*4882a593Smuzhiyun# as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6*4882a593Smuzhiyun#
7*4882a593Smuzhiyun# A copy of the licence is included with the program, and can also be obtained from Free Software
8*4882a593Smuzhiyun# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9*4882a593Smuzhiyun#
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC = $(UMP_FILE_PREFIX)common/ump_kernel_common.c \
12*4882a593Smuzhiyun	$(UMP_FILE_PREFIX)common/ump_kernel_descriptor_mapping.c \
13*4882a593Smuzhiyun	$(UMP_FILE_PREFIX)common/ump_kernel_api.c \
14*4882a593Smuzhiyun	$(UMP_FILE_PREFIX)common/ump_kernel_ref_drv.c
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# Get subversion revision number, fall back to 0000 if no svn info is available
17*4882a593SmuzhiyunSVN_REV:=$(shell ((svnversion | grep -qv exported && echo -n 'Revision: ' && svnversion) || git svn info | sed -e 's/$$$$/M/' | grep '^Revision: ' || echo ${MALI_RELEASE_NAME}) 2>/dev/null | sed -e 's/^Revision: //')
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunEXTRA_CFLAGS += -DSVN_REV=$(SVN_REV)
20*4882a593SmuzhiyunEXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\"
21