Makefile.common 1.1 KB

123456789101112131415161718192021
  1. #
  2. # Copyright (C) 2010-2011 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. SRC = $(UMP_FILE_PREFIX)common/ump_kernel_common.c \
  11. $(UMP_FILE_PREFIX)common/ump_kernel_descriptor_mapping.c \
  12. $(UMP_FILE_PREFIX)common/ump_kernel_api.c \
  13. $(UMP_FILE_PREFIX)common/ump_kernel_ref_drv.c
  14. # Get subversion revision number, fall back to 0000 if no svn info is available
  15. SVN_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: //')
  16. EXTRA_CFLAGS += -DSVN_REV=$(SVN_REV)
  17. EXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\"