1# 2# Copyright (C) 2010-2011, 2013, 2016-2017 ARM Limited. All rights reserved. 3# 4# This program is free software and is provided to you under the terms of the GNU General Public License version 2 5# 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# 7# A copy of the licence is included with the program, and can also be obtained from Free Software 8# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9# 10 11SRC = $(UMP_FILE_PREFIX)common/ump_kernel_common.c \ 12 $(UMP_FILE_PREFIX)common/ump_kernel_descriptor_mapping.c \ 13 $(UMP_FILE_PREFIX)common/ump_kernel_api.c \ 14 $(UMP_FILE_PREFIX)common/ump_kernel_ref_drv.c 15 16# Get subversion revision number, fall back to 0000 if no svn info is available 17SVN_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 19EXTRA_CFLAGS += -DSVN_REV=$(SVN_REV) 20EXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\" 21