nvidia-oot: Fix compilation warning for ack build

Refine the compiler flags for ACK make command and fix compilation
warnings from the new command.

Bug 4187941
Bug 4223187

Signed-off-by: Jian-Min Liu <jianminl@nvidia.com>
Change-Id: Iff7bf5839c585a6c3d3ef6daefb64eb113c739e2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2954087
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jian-Min Liu
2023-08-09 18:09:57 +00:00
committed by mobile promotions
parent 37cf697fb1
commit 1df2ef7d23
2 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,14 @@ ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
subdir-ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION
endif
ifeq ($(CONFIG_TEGRA_SYSTEM_TYPE_ACK),y)
subdir-ccflags-y += -DNV_BUILD_KERNEL_ACK
subdir-ccflags-y += -Wno-sometimes-uninitialized
subdir-ccflags-y += -Wno-parentheses-equality
subdir-ccflags-y += -Wno-enum-conversion
subdir-ccflags-y += -Wno-implicit-fallthrough
endif
obj-m += drivers/
ifdef CONFIG_SOUND

View File

@@ -8,6 +8,8 @@ endif
obj-m += tegra-se-nvrng.o
ifdef CONFIG_TEGRA_HOST1X
ifneq ($(CONFIG_TEGRA_SYSTEM_TYPE_ACK),y)
ccflags-y += -Wframe-larger-than=2560
endif
obj-m += tegra-nvvse-cryptodev.o
endif