aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/samsung/ump/Makefile_backup
blob: 632cb0c4578f049711802a1c23a98d5682ccc628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Copyright (C) 2010 ARM Limited. All rights reserved.
# 
# 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.
#
BUILD		?= debug 
USING_MALI400	?= 1 
USING_ZBT	?= 0 
USING_MMU	?= 1 
USING_UMP	?= 1 
CPU		?= vega1 
CONFIG		?= marcopolo-vega1-m400


# Set up our defines, which will be passed to gcc
DEFINES += -DUSING_MALI400=$(USING_MALI400)
DEFINES += -DUSING_ZBT=$(USING_ZBT)
DEFINES += -DUSING_MMU=$(USING_MMU)
DEFINES += -DUSING_UMP=$(USING_UMP)
DEFINES += -DMALI_USE_UNIFIED_MEMORY_PROVIDER
ifeq ($(BUILD), debug)
DEFINES += -DDEBUG
endif


UMP_FILE_PREFIX := drivers/video/samsung/ump
UDD_FILE_PREFIX := drivers/video/samsung/mali
KBUILDROOT = 

# linux build system integration

obj-y += ump.o

# For customer releases the Linux Device Drivers will be provided as ARM proprietary and GPL releases:
# The ARM proprietary product will only include the license/proprietary directory
# The GPL product will only include the license/gpl directory

INCLUDES = \
		-I$(UMP_FILE_PREFIX)\
		-I$(UMP_FILE_PREFIX)/common\
		-I$(UMP_FILE_PREFIX)/linux\
		-I$(UMP_FILE_PREFIX)/include\
		-I$(UMP_FILE_PREFIX)/linux/license/proprietary/\
		-I$(UDD_FILE_PREFIX)/common\
		-I$(UDD_FILE_PREFIX)/linux

ump-y := \
		$(KBUILDROOT)linux/ump_kernel_linux.o \
		$(KBUILDROOT)linux/ump_kernel_memory_backend_os.o \
		$(KBUILDROOT)linux/ump_kernel_memory_backend_dedicated.o \
		$(KBUILDROOT)linux/ump_memory_backend.o \
		$(KBUILDROOT)linux/ump_ukk_wrappers.o \
		$(KBUILDROOT)linux/ump_ukk_ref_wrappers.o \
		$(KBUILDROOT)linux/ump_osk_atomics.o \
		$(KBUILDROOT)linux/ump_osk_low_level_mem.o \
		$(KBUILDROOT)linux/ump_osk_misc.o \
		$(KBUILDROOT)../mali/linux/mali_osk_atomics.o \
		$(KBUILDROOT)../mali/linux/mali_osk_locks.o \
		$(KBUILDROOT)../mali/linux/mali_osk_memory.o \
		$(KBUILDROOT)../mali/linux/mali_osk_math.o \
		$(KBUILDROOT)../mali/linux/mali_osk_misc.o \
		$(KBUILDROOT)common/ump_kernel_common.o \
		$(KBUILDROOT)common/ump_kernel_descriptor_mapping.o \
		$(KBUILDROOT)common/ump_kernel_api.o \
		$(KBUILDROOT)common/ump_kernel_ref_drv.o

EXTRA_CFLAGS += $(INCLUDES) \
		$(DEFINES) 
		
		
# Get subversion revision number, fall back to 0000 if no svn info is available
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: //')
		
EXTRA_CFLAGS += -DSVN_REV=$(SVN_REV)
EXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\"