mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Enable crypto build with noble
Change-Id: Ib4ab440fdd75a3663c717992c3c80eae1fe77f88
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3011180
(cherry picked from commit b185ee48be)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053822
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
LINUXINCLUDE += -I$(srctree.nvconftest)
|
|
LINUXINCLUDE += -I$(srctree.nvidia-oot)/include
|
|
|
|
subdir-ccflags-y += -Werror
|
|
subdir-ccflags-y += -Wmissing-prototypes
|
|
|
|
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
|
|
LINUX_VERSION_6_2 := $(shell expr 6 \* 256 + 2)
|
|
|
|
# The Tegra IVC driver was updated to support iosys-map in Linux v6.2.
|
|
# For Linux v6.2 kernels, don't build any drivers that requires this.
|
|
ifeq ($(shell test $(LINUX_VERSION) -ge $(LINUX_VERSION_6_2); echo $$?),0)
|
|
export CONFIG_TEGRA_IVC_LEGACY_DISABLE=y
|
|
endif
|
|
|
|
ifeq ($(CONFIG_TEGRA_IVC_LEGACY_DISABLE),y)
|
|
subdir-ccflags-y += -DCONFIG_TEGRA_IVC_LEGACY_DISABLE
|
|
endif
|
|
|
|
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
|
subdir-ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION
|
|
endif
|
|
|
|
ifeq ($(CONFIG_TEGRA_SYSTEM_TYPE_ACK),y)
|
|
subdir-ccflags-y += -DCONFIG_TEGRA_SYSTEM_TYPE_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_SND_SOC
|
|
obj-m += sound/soc/tegra/
|
|
obj-m += sound/tegra-safety-audio/
|
|
obj-m += sound/soc/tegra-virt-alt/
|
|
endif
|