gpu: nvgpu: disable logging for libnvgpu build

This is a follow up patch for disabling logging for userspace libnvgpu
build. Logging is still force enabled for unit tests.

Jira NVGPU-869

Change-Id: Ieea84fad14e3caab33ae686d4f00fd04ec80850b
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2140311
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2019-06-20 13:15:33 -07:00
committed by mobile promotions
parent 21c7a00f18
commit 57e31af3a6
2 changed files with 9 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_COMPRESSION
# Flags enabled for only the regular build profile.
#
ifneq ($(profile),safety)
# Enable logging for non-safety builds
# Enable logging for non-safety and safety-debug builds
CONFIG_NVGPU_LOGGING := 1
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_LOGGING

View File

@@ -65,8 +65,15 @@ CONFIGS := -D__NVGPU_POSIX__ \
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT \
-D__NVGPU_UNIT_TEST__
NVGPU_FORCE_SAFETY_PROFILE := 1
# For target "libnvgpu", safety profile should be used
# safety-debug profile is used otherwise
ifeq ( ,$(findstring libnvgpu, '$(MAKECMDGOALS)'))
NVGPU_FORCE_DEBUG_PROFILE := 1
else
NVGPU_FORCE_DEBUG_PROFILE := 0
endif
NVGPU_FORCE_SAFETY_PROFILE := 1
include $(NVGPU_SRC)/Makefile.shared.configs
CONFIGS+=$(NVGPU_COMMON_CFLAGS)