mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
When building the out-of-tree drivers with virtualization support disabled, symbols for some of the virtualization functions are not found ... nvgpu: Unknown symbol tegra_hv_mempool_unreserve (err -2) nvgpu: Unknown symbol is_tegra_hypervisor_mode (err -2) nvgpu: Unknown symbol tegra_hv_mempool_reserve (err -2) nvhost_pva: Unknown symbol is_tegra_hypervisor_mode (err -2) mc_utils: Unknown symbol is_tegra_hypervisor_mode (err -2) mc_utils: Unknown symbol is_tegra_hypervisor_mode (err -2) Update the hv-ivc.h header to ensure that these function stubs are defined when virtualization support is disabled and only build the hv-ivc driver if virtualization is enabled. Finally, move populating the ccflags to the top-level Makefile and use the subdir-ccflags directive to ensure the ccflags are passed to all sub-directories. Bug 4159372 Bug 4170085 Change-Id: I35edb91007524c3143dff7564f9ad545bd34e969 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2921199 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
23 lines
750 B
Makefile
23 lines
750 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
GCOV_PROFILE := y
|
|
|
|
subdir-ccflags-y += -Werror
|
|
ccflags-y += -I$(overlay)/$(src)/../tegra-virt-alt/include/
|
|
ccflags-y += -I$(overlay)/$(src)/../codecs
|
|
ccflags-y += -I$(srctree.nvidia-oot)/sound/soc/tegra-virt-alt/nvaudio_ivc/
|
|
|
|
# Tegra platform Support
|
|
|
|
snd-soc-tegra210-virt-alt-admaif-objs := tegra210_virt_alt_admaif.o \
|
|
tegra_asoc_xbar_virt_alt.o \
|
|
tegra_asoc_util_virt_alt.o \
|
|
tegra_asoc_machine_virt_alt.o \
|
|
tegra_pcm_virt_alt.o \
|
|
nvaudio_ivc/tegra_virt_alt_ivc.o
|
|
|
|
snd-soc-tegra-virt-t210ref-pcm-objs := tegra_virt_ref_alt.o
|
|
obj-m += snd-soc-tegra210-virt-alt-admaif.o
|
|
obj-m += snd-soc-tegra-virt-t210ref-pcm.o
|