mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
Added NVGPU_GRAPHICS flag for separating graphics functionality. Once compute only mode working, this flag will be removed for safety build. JIRA NVGPU-3415 Change-Id: Ie6c0ce0afe2c36375c694f28ef4ec9e908ff168e Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2123792 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
73 lines
3.0 KiB
Makefile
73 lines
3.0 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.
|
|
#
|
|
|
|
# This file defines the make variables and cflags applicable to nvgpu common
|
|
# shared by qnx, nvgpu userspace, test builds. Note that cflags are added to
|
|
# variable NVGPU_COMMON_CFLAGS that needs to be used by the parent Makefile
|
|
# to update corresponding cflags variable.
|
|
|
|
# Enable debugger APIs for safety build until devctl whitelisting is done
|
|
NVGPU_DEBUGGER := 1
|
|
NVGPU_COMMON_CFLAGS := -DNVGPU_DEBUGGER
|
|
|
|
# Enable cyclestats APIs for safety build until complete debugger support is enabled
|
|
NVGPU_CYCLESTATS_SUPPORT := 1
|
|
NVGPU_COMMON_CFLAGS += -DCONFIG_GK20A_CYCLE_STATS
|
|
|
|
# Enable USERD for safety build until we switch to user mode submits only
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_USERD
|
|
|
|
# Enable Channel WDT for safety build until we switch to user mode submits only
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_CHANNEL_WDT
|
|
|
|
# Enable Grpahics support for safety build until we switch to compute only
|
|
NVGPU_GRAPHICS := 1
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_GRAPHICS
|
|
|
|
# Enable iGPU LS PMU for safety build until devctl whitelisting is done
|
|
NVGPU_LS_PMU := 1
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_LS_PMU
|
|
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_ENGINE
|
|
|
|
ifeq ($(NV_BUILD_CONFIGURATION_IS_SAFETY),0)
|
|
NVGPU_FECS_TRACE_SUPPORT := 1
|
|
NVGPU_COMMON_CFLAGS += -DCONFIG_GK20A_CTXSW_TRACE
|
|
|
|
IGPU_VIRT_SUPPORT := 1
|
|
NVGPU_COMMON_CFLAGS += -DIGPU_VIRT_SUPPORT
|
|
|
|
# Enable nvlink support for normal build.
|
|
NVGPU_NVLINK_SUPPORT := 1
|
|
NVGPU_COMMON_CFLAGS += -DCONFIG_TEGRA_NVLINK
|
|
|
|
# Enable dgpu support for normal build.
|
|
NVGPU_DGPU_SUPPORT := 1
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_DGPU_SUPPORT
|
|
|
|
NVGPU_VPR := 1
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_VPR
|
|
|
|
NVGPU_REPLAYABLE_FAULT := 1
|
|
NVGPU_COMMON_CFLAGS += -DNVGPU_REPLAYABLE_FAULT
|
|
endif
|