From fdcc156d8e253ed5f34c77cec865b05db056a3d6 Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Fri, 21 Jun 2019 15:17:33 +0530 Subject: [PATCH] gpu: nvgpu: fix the comments in Makefile.shared.configs List clearly the safety release/debug and regular build profiles while defining the flags. JIRA NVGPU-1949 Change-Id: I259e136e5941602fc263740f0d81384939d7ab11 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/2140630 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/Makefile.shared.configs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/nvgpu/Makefile.shared.configs b/drivers/gpu/nvgpu/Makefile.shared.configs index b4b57f206..c15265c05 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -31,16 +31,16 @@ # profile build. profile := default -# Decide whether to use the safety profile or the regular profile. +# Decide whether to use the safety release, safety debug or the regular profile. ifeq ($(NV_BUILD_CONFIGURATION_IS_SAFETY),1) -profile := safety +profile := safety_release ifeq ($(NV_BUILD_CONFIGURATION_IS_DEBUG),1) profile := safety_debug endif endif ifeq ($(NVGPU_FORCE_SAFETY_PROFILE),1) -profile := safety +profile := safety_release ifeq ($(NVGPU_FORCE_DEBUG_PROFILE),1) profile := safety_debug endif @@ -103,16 +103,19 @@ CONFIG_NVGPU_COMPRESSION := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_COMPRESSION # -# Flags enabled for only the regular build profile. +# Flags enabled only for safety debug and regular build profile. # -ifneq ($(profile),safety) -# Enable logging for non-safety and safety-debug builds +ifneq ($(profile),safety_release) + CONFIG_NVGPU_LOGGING := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_LOGGING CONFIG_NVGPU_TRACE := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_TRACE +# +# Flags enabled only for regular build profile. +# ifneq ($(profile),safety_debug) # ACR feature to enable old tegra ACR profile support