mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: build unit tests for safety qnx based on umbrella chosen
Earlier, libnvgpu-drv.so and unit tests were being built with safety debug profile unconditionally for all qnx and l4t builds. In order to get coverage numbers corresponding to the release build let us remove the overriding of the build profile for safety qnx build. This also needs that these components are built only for safety qnx and l4t builds. For x86 and L4T userspace build, default profile is still set to safety-debug. JIRA NVGPU-4830 Change-Id: I02f572761bda9eb0c1b8fcdf7b22a07a9d10303a Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2275764 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
95fc0571d7
commit
a3d91c4f47
@@ -70,15 +70,9 @@ CONFIGS := -D__NVGPU_POSIX__ \
|
||||
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT \
|
||||
-D__NVGPU_UNIT_TEST__
|
||||
|
||||
# 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
|
||||
|
||||
# safety-debug profile is used by default
|
||||
NVGPU_FORCE_SAFETY_PROFILE := 1
|
||||
NVGPU_FORCE_DEBUG_PROFILE := 1
|
||||
include $(NVGPU_SRC)/Makefile.shared.configs
|
||||
CONFIGS+=$(NVGPU_COMMON_CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user