Initial commit
[kernel/linux-3.0.git] / drivers / gpu / vithar_rev0 / kbase / Makefile
1 # (C) COPYRIGHT 2011-2012 ARM Limited. All rights reserved.
2 #
3 # This program is free software and is provided to you under the terms of the GNU General Public License version 2
4 # as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
5 #
6 # A copy of the licence is included with the program, and can also be obtained from Free Software
7 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
8 #
9 #
10
11
12 # Defaults
13 #export MALI_KBASE_SCHEDULING_POLICY?=cfs
14 #export PLATFORM?=dummy
15 #export MALI_BACKEND_KERNEL?=1
16 #export MALI_NO_MALI?=0
17 #export MALI_USE_UMP?=1
18 #export MALI_DEBUG?=0
19 #export MALI_ERROR_INJECT_ON?=0
20 #export MALI_ANDROID?=0
21 #export MALI_BASE_TRACK_MEMLEAK?=0
22 #export MALI_KERNEL_TEST_API?=0
23 #export MALI_UNIT_TEST?=0
24 #export MALI_INFINITE_CACHE?=0
25 #export MALI_LICENSE_IS_GPL?=1
26 #export MALI_FAKE_PLATFORM_DEVICE?=0
27 #export MALI_MOCK_TEST?=0
28 #export MALI_HW_VERSION?=r0p0
29 #export MALI_UNCACHED?=0
30 #export MALI_INSTRUMENTATION_LEVEL?=0
31
32 KDIR ?= /lib/modules/$(shell uname -r)/build
33
34 # MROOT defines root of kernel device driver components
35 # This makefile may reside in container directory of the kernel device driver components or within the
36 # 'kbase' kernel driver component itself, so we set MROOT accordingly.
37 #
38 ifeq ($(wildcard $(PWD)/kbase/src/Makefile),)
39 MROOT=$(PWD)/..
40 else
41 MROOT=$(PWD)
42 endif
43
44 all:
45         $(MAKE) -C $(KDIR) M=$(MROOT)/osk/src/linux
46         $(MAKE) -C $(KDIR) M=$(MROOT)/uk/src/ukk/linux
47         $(MAKE) -C $(KDIR) M=$(MROOT)/ump/src/devicedrv
48         $(MAKE) -C $(KDIR) M=$(MROOT)/kbase/src KBUILD_EXTRA_SYMBOLS="$(MROOT)/uk/src/ukk/linux/Module.symvers $(MROOT)/ump/src/devicedrv/Module.symvers"
49
50 clean:
51         $(MAKE) -C $(KDIR) M=$(MROOT)/osk/src/linux clean
52         $(MAKE) -C $(KDIR) M=$(MROOT)/uk/src/ukk/linux clean
53         $(MAKE) -C $(KDIR) M=$(MROOT)/ump/src/devicedrv clean
54         $(MAKE) -C $(KDIR) M=$(MROOT)/kbase/src clean
55