From: Łukasz Stelmach Date: Tue, 1 Mar 2022 15:27:59 +0000 (+0100) Subject: gpu/arm: utgard: Fix out of tree (O=...) builds X-Git-Tag: submit/tizen/20220322.224920~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62ec17c54e401e80bd7d29b36bdba27aebc2b15d;p=platform%2Fkernel%2Flinux-amlogic.git gpu/arm: utgard: Fix out of tree (O=...) builds Using file with $(src) path is not enough for out-of-tree build. Fix with $(srctree) aslo. Change-Id: Ibd8695a9e88afeec0eeadcb931bfee6efc103303 Signed-off-by: Łukasz Stelmach Signed-off-by: Seung-Woo Kim --- diff --git a/drivers/gpu/arm/utgard/Kbuild b/drivers/gpu/arm/utgard/Kbuild index 8e7d7741078e..d74e720dca43 100644 --- a/drivers/gpu/arm/utgard/Kbuild +++ b/drivers/gpu/arm/utgard/Kbuild @@ -27,7 +27,7 @@ MALI_ENABLE_CPU_CYCLES ?= 0 # 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/*),) +ifeq ($(wildcard $(srctree)/$(src)/linux/license/gpl/*),) ccflags-y += -I$(src)/linux/license/proprietary ifeq ($(CONFIG_MALI400_PROFILING),y) $(error Profiling is incompatible with non-GPL license) @@ -230,7 +230,7 @@ endif ccflags-y += -DSVN_REV_STRING=\"$(DRIVER_REV)\" VERSION_STRINGS := -VERSION_STRINGS += API_VERSION=$(shell cd $(src); grep "\#define _MALI_API_VERSION" $(FILES_PREFIX)include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 ) +VERSION_STRINGS += API_VERSION=$(shell cd $(srctree)/$(src); grep "\#define _MALI_API_VERSION" $(FILES_PREFIX)include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 ) VERSION_STRINGS += REPO_URL=$(REPO_URL) VERSION_STRINGS += REVISION=$(DRIVER_REV) VERSION_STRINGS += CHANGED_REVISION=$(CHANGED_REVISION)