mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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:
committed by
mobile promotions
parent
1e8b88fcc1
commit
a447c2b3b3
@@ -53,6 +53,8 @@ INCLUDES= \
|
||||
|
||||
# This Makefile is only for host POSIX builds
|
||||
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
|
||||
# Linux kernel.
|
||||
|
||||
@@ -44,7 +44,8 @@ CONFIGS := \
|
||||
-DCONFIG_GK20A_VIDMEM=1 \
|
||||
-DCONFIG_PCI_MSI \
|
||||
-DCONFIG_SUPPORT_PMU_PSTATE \
|
||||
-DCONFIG_TEGRA_NVLINK
|
||||
-DCONFIG_TEGRA_NVLINK \
|
||||
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT
|
||||
|
||||
# Uncomment these to enable the config.
|
||||
# CONFIGS += -DCONFIG_NVGPU_TRACK_MEM_USAGE=y
|
||||
|
||||
Reference in New Issue
Block a user