mali: utgard: Fix build issue
authorJacob Chen <jacob2.chen@rock-chips.com>
Mon, 9 Jan 2017 10:44:39 +0000 (18:44 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 12 Jan 2017 03:56:00 +0000 (11:56 +0800)
The following statement doesn't have consistent behaviour on all machines.
Since the driver is in-tree, we can assume GPL compliance

Change-Id: I5d993ba8f1b4002a1bcd20b8ac40f442269897a8
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
drivers/gpu/arm/mali400/mali/Kbuild
drivers/gpu/arm/mali400/ump/Kbuild

index 8b3e08edb74354d7309825d866d327316299ee83..c3038ca111b5d613cad59f987f347ee2d9d247be 100755 (executable)
@@ -26,21 +26,8 @@ MALI_PLATFORM ?= rk30
 # 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
-ifeq ($(wildcard $(src)/linux/license/gpl/*),)
-    ccflags-y += -I$(src)/linux/license/proprietary
-    ifeq ($(CONFIG_MALI400_PROFILING),y)
-        $(error Profiling is incompatible with non-GPL license)
-    endif
-    ifeq ($(CONFIG_PM_RUNTIME),y)
-        $(error Runtime PM is incompatible with non-GPL license)
-    endif
-    ifeq ($(CONFIG_DMA_SHARED_BUFFER),y)
-        $(error DMA-BUF is incompatible with non-GPL license)
-    endif
-    $(error Linux Device integration is incompatible with non-GPL license)
-else
-    ccflags-y += -I$(src)/linux/license/gpl
-endif
+ccflags-y += -I$(src)/linux/license/gpl
+
 
 ifeq ($(USING_GPU_UTILIZATION), 1)
     ifeq ($(USING_DVFS), 1)
index ed658196769f7ba1940b9fe327b727f5ead32a38..3342d781756121f2626a252632caeb557154716b 100755 (executable)
 # Change this to use a different config.h
 CONFIG ?= default
 
-# Validate selected config
-ifneq ($(shell [ -d $(src)/arch-$(CONFIG) ] && [ -f  $(src)/arch-$(CONFIG)/config.h ] && echo "OK"), OK)
-$(warning Current directory is $(src))
-$(error No configuration found for config $(CONFIG). Check that arch-$(CONFIG)/config.h exists)
-else
 # Link arch to the selected arch-config directory
 $(shell [ -L $(src)/arch ] && rm $(src)/arch)
 $(shell ln -sf arch-$(CONFIG) $(src)/arch)
 $(shell touch $(src)/arch/config.h)
-endif
 
 UDD_FILE_PREFIX = ../mali/