mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
53 lines
2.2 KiB
Makefile
53 lines
2.2 KiB
Makefile
#
|
|
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
# to deal in the Software without restriction, including without limitation
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
# DEALINGS IN THE SOFTWARE.
|
|
#
|
|
|
|
#
|
|
# Define various configs such as VIDMEM, etc. This is a bit annoying since
|
|
# this really should be specific to Linux, but many header files need to
|
|
# be aware of the CONFIG_* defines. As such we replicate some of the configs
|
|
# that we potientially will want enabled in testing.
|
|
#
|
|
|
|
# Enabled configs.
|
|
CONFIGS := \
|
|
-D__NVGPU_POSIX__ \
|
|
-DCONFIG_TEGRA_19x_GPU \
|
|
-DCONFIG_TEGRA_GK20A_NVHOST \
|
|
-DCONFIG_GK20A_CYCLE_STATS \
|
|
-DCONFIG_TEGRA_T19X_GRHOST \
|
|
-DCONFIG_NVGPU_SUPPORT_TURING \
|
|
-DCONFIG_TEGRA_GK20A_PMU=1 \
|
|
-DCONFIG_TEGRA_ACR=1 \
|
|
-DCONFIG_TEGRA_GR_VIRTUALIZATION\
|
|
-DNVCPU_IS_AARCH64=1 \
|
|
-DCONFIG_TEGRA_IOVMM=0 \
|
|
-DCONFIG_ARCH_TEGRA_18x_SOC=1 \
|
|
-DCONFIG_GK20A_VIDMEM=1 \
|
|
-DCONFIG_PCI_MSI \
|
|
-DCONFIG_SUPPORT_PMU_PSTATE \
|
|
-DCONFIG_TEGRA_NVLINK \
|
|
-DNVGPU_UNITTEST_FAULT_INJECTION_ENABLEMENT
|
|
|
|
# Uncomment these to enable the config.
|
|
# CONFIGS += -DCONFIG_NVGPU_TRACK_MEM_USAGE=y
|
|
# CONFIGS += -DCONFIG_GK20A_VIDMEM
|