gpu: nvgpu: unit: fix host build

A previous change that added a flag around the fault injection
mechanism broken the host userspace build. This patch fixes it
by enabling the flag and adding the appropriate source file to
the host Makefile

JIRA NVGPU-1246

Change-Id: I060a04bdd28eaf5039fe1fb0d2ad6150d0a74455
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2090906
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2019-04-05 16:12:04 -04:00
committed by mobile promotions
parent 1e8b88fcc1
commit a447c2b3b3
2 changed files with 4 additions and 1 deletions

View File

@@ -53,6 +53,8 @@ INCLUDES= \
# This Makefile is only for host POSIX builds # This Makefile is only for host POSIX builds
NVGPU_POSIX=1 NVGPU_POSIX=1
# Enable fault injection for unit tests
NVGPU_FAULT_INJECTION_ENABLEMENT=1
# Linuxy configs. We want these so that we can mirror builds from the actual # Linuxy configs. We want these so that we can mirror builds from the actual
# Linux kernel. # Linux kernel.

View File

@@ -44,7 +44,8 @@ CONFIGS := \
-DCONFIG_GK20A_VIDMEM=1 \ -DCONFIG_GK20A_VIDMEM=1 \
-DCONFIG_PCI_MSI \ -DCONFIG_PCI_MSI \
-DCONFIG_SUPPORT_PMU_PSTATE \ -DCONFIG_SUPPORT_PMU_PSTATE \
-DCONFIG_TEGRA_NVLINK -DCONFIG_TEGRA_NVLINK \
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT
# Uncomment these to enable the config. # Uncomment these to enable the config.
# CONFIGS += -DCONFIG_NVGPU_TRACK_MEM_USAGE=y # CONFIGS += -DCONFIG_NVGPU_TRACK_MEM_USAGE=y