mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
21c7a00f18
commit
57e31af3a6
@@ -106,7 +106,7 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_COMPRESSION
|
|||||||
# Flags enabled for only the regular build profile.
|
# Flags enabled for only the regular build profile.
|
||||||
#
|
#
|
||||||
ifneq ($(profile),safety)
|
ifneq ($(profile),safety)
|
||||||
# Enable logging for non-safety builds
|
# Enable logging for non-safety and safety-debug builds
|
||||||
CONFIG_NVGPU_LOGGING := 1
|
CONFIG_NVGPU_LOGGING := 1
|
||||||
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_LOGGING
|
NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_LOGGING
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,15 @@ CONFIGS := -D__NVGPU_POSIX__ \
|
|||||||
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT \
|
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT \
|
||||||
-D__NVGPU_UNIT_TEST__
|
-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
|
NVGPU_FORCE_DEBUG_PROFILE := 1
|
||||||
|
else
|
||||||
|
NVGPU_FORCE_DEBUG_PROFILE := 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
NVGPU_FORCE_SAFETY_PROFILE := 1
|
||||||
include $(NVGPU_SRC)/Makefile.shared.configs
|
include $(NVGPU_SRC)/Makefile.shared.configs
|
||||||
CONFIGS+=$(NVGPU_COMMON_CFLAGS)
|
CONFIGS+=$(NVGPU_COMMON_CFLAGS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user