MALI: midgard: RK: add separate src dir of Midgard driver for RK Linux device
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / platform / rk / Kbuild
1 #
2 # (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
3 #
4 # This program is free software and is provided to you under the terms of the
5 # GNU General Public License version 2 as published by the Free Software
6 # Foundation, and any use by you of this program is subject to the terms
7 # of such GNU licence.
8 #
9 # A copy of the licence is included with the program, and can also be obtained
10 # from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
11 # Boston, MA  02110-1301, USA.
12 #
13 #
14
15 # add default config for RK Linux device for absence of Kconfig.
16 include drivers/gpu/arm/midgard_for_linux/default_config.mk
17
18 ccflags-y += -I$(srctree)/drivers/staging/android
19
20 ifeq ($(CONFIG_MALI_MIDGARD),y)
21 obj-y += mali_kbase_config_rk.o
22 # obj-y += mali_kbase_dvfs.o
23 # obj-y += mali_kbase_platform.o
24 else ifeq ($(CONFIG_MALI_MIDGARD),m)
25 SRC += platform/rk/mali_kbase_config_rk.c
26 # SRC += platform/rk/mali_kbase_dvfs.c
27 # SRC += platform/rk/mali_kbase_platform.c
28 endif