From: Jacob Chen Date: Mon, 9 Jan 2017 10:44:39 +0000 (+0800) Subject: mali: utgard: Fix build issue X-Git-Tag: firefly_0821_release~762 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d05454aafc9c999896635e864354630f5b8c6151;p=firefly-linux-kernel-4.4.55.git mali: utgard: Fix build issue 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 --- diff --git a/drivers/gpu/arm/mali400/mali/Kbuild b/drivers/gpu/arm/mali400/mali/Kbuild index 8b3e08edb743..c3038ca111b5 100755 --- a/drivers/gpu/arm/mali400/mali/Kbuild +++ b/drivers/gpu/arm/mali400/mali/Kbuild @@ -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) diff --git a/drivers/gpu/arm/mali400/ump/Kbuild b/drivers/gpu/arm/mali400/ump/Kbuild index ed658196769f..3342d7817561 100755 --- a/drivers/gpu/arm/mali400/ump/Kbuild +++ b/drivers/gpu/arm/mali400/ump/Kbuild @@ -12,16 +12,10 @@ # 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/