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:
Debarshi Dutta
2019-03-05 14:57:54 +05:30
committed by mobile promotions
parent 3d5fc5a6a1
commit 2eea2b23c5
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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