mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Building the tegra-virt-alt driver with Linux v6.13 fails because some
of the header files are not found ...
sound/soc/tegra-virt-alt/tegra210_virt_alt_admaif.c:17:10: fatal error:
tegra_pcm_alt.h: No such file or directory
17 | #include "tegra_pcm_alt.h"
| ^~~~~~~~~~~~~~~~~
The 'tegra_pcm_alt.h' header is located in a 'include' sub-directory and
although the cflags add this path for find headers, the header is not
found because the '#include' of the file uses double-quotes and not
"<>". This could be fixed by simply updating the file with
'#include <tegra_pcm_alt.h>'. However, reviewing the code it simplifies
the Makefile to remove the 'include' sub-directory and directly include
the header files. Similarly, we can remove the search path of the
'nvaudio_ivc' headers and directly include these.
Bug 4991705
Change-Id: I1993d1f619698f33fc9edab05ad9235334fd3b5b
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260938
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
23 lines
679 B
Makefile
23 lines
679 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
GCOV_PROFILE := y
|
|
|
|
subdir-ccflags-y += -Werror
|
|
|
|
# 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
|
|
|
|
snd-soc-tegra210-virt-alt-adsp-objs := tegra210_adsp_virt_alt.o
|
|
obj-m += snd-soc-tegra210-virt-alt-adsp.o
|