mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add non-safe compile flag NVGPU_ENGINE
common.fifo.engine unit has both safe as well as non-safe functions. The build flag NVGPU_ENGINE is used to restrict the use of non-safe functions of the engine unit in safety builds. Jira NVGPU-1315 Change-Id: Ic363ad547e07136024a254c078fdf0194fafc265 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2032605 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
3d5fc5a6a1
commit
2eea2b23c5
@@ -25,6 +25,8 @@ ifeq ($(CONFIG_NVGPU_LS_PMU),y)
|
||||
ccflags-y += -DNVGPU_LS_PMU
|
||||
endif
|
||||
|
||||
ccflags-y += -DNVGPU_ENGINE
|
||||
|
||||
obj-$(CONFIG_GK20A) := nvgpu.o
|
||||
|
||||
# OS independent parts of nvgpu. The work to collect files here
|
||||
|
||||
@@ -67,6 +67,7 @@ NVGPU_DEBUGGER := 1
|
||||
NVGPU_LS_PMU := 1
|
||||
NV_COMPONENT_CFLAGS += -DNVGPU_DEBUGGER
|
||||
NV_COMPONENT_CFLAGS += -DNVGPU_LS_PMU
|
||||
NV_COMPONENT_CFLAGS += -DNVGPU_ENGINE
|
||||
endif
|
||||
|
||||
_NV_TOOLCHAIN_CFLAGS += -rdynamic -g
|
||||
|
||||
Reference in New Issue
Block a user