2 # Copyright (C) 2010 ARM Limited. All rights reserved.
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.
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.
16 CONFIG ?= marcopolo-vega1-m400
19 # Set up our defines, which will be passed to gcc
20 DEFINES += -DUSING_MALI400=$(USING_MALI400)
21 DEFINES += -DUSING_ZBT=$(USING_ZBT)
22 DEFINES += -DUSING_MMU=$(USING_MMU)
23 DEFINES += -DUSING_UMP=$(USING_UMP)
24 DEFINES += -DMALI_USE_UNIFIED_MEMORY_PROVIDER
25 ifeq ($(BUILD), debug)
30 UMP_FILE_PREFIX := drivers/video/samsung/ump
31 UDD_FILE_PREFIX := drivers/video/samsung/mali
34 # linux build system integration
38 # For customer releases the Linux Device Drivers will be provided as ARM proprietary and GPL releases:
39 # The ARM proprietary product will only include the license/proprietary directory
40 # The GPL product will only include the license/gpl directory
44 -I$(UMP_FILE_PREFIX)/common\
45 -I$(UMP_FILE_PREFIX)/linux\
46 -I$(UMP_FILE_PREFIX)/include\
47 -I$(UMP_FILE_PREFIX)/linux/license/proprietary/\
48 -I$(UDD_FILE_PREFIX)/common\
49 -I$(UDD_FILE_PREFIX)/linux
52 $(KBUILDROOT)linux/ump_kernel_linux.o \
53 $(KBUILDROOT)linux/ump_kernel_memory_backend_os.o \
54 $(KBUILDROOT)linux/ump_kernel_memory_backend_dedicated.o \
55 $(KBUILDROOT)linux/ump_memory_backend.o \
56 $(KBUILDROOT)linux/ump_ukk_wrappers.o \
57 $(KBUILDROOT)linux/ump_ukk_ref_wrappers.o \
58 $(KBUILDROOT)linux/ump_osk_atomics.o \
59 $(KBUILDROOT)linux/ump_osk_low_level_mem.o \
60 $(KBUILDROOT)linux/ump_osk_misc.o \
61 $(KBUILDROOT)../mali/linux/mali_osk_atomics.o \
62 $(KBUILDROOT)../mali/linux/mali_osk_locks.o \
63 $(KBUILDROOT)../mali/linux/mali_osk_memory.o \
64 $(KBUILDROOT)../mali/linux/mali_osk_math.o \
65 $(KBUILDROOT)../mali/linux/mali_osk_misc.o \
66 $(KBUILDROOT)common/ump_kernel_common.o \
67 $(KBUILDROOT)common/ump_kernel_descriptor_mapping.o \
68 $(KBUILDROOT)common/ump_kernel_api.o \
69 $(KBUILDROOT)common/ump_kernel_ref_drv.o
71 EXTRA_CFLAGS += $(INCLUDES) \
75 # Get subversion revision number, fall back to 0000 if no svn info is available
76 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: //')
78 EXTRA_CFLAGS += -DSVN_REV=$(SVN_REV)
79 EXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\"