mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Some camera drivers are dependent upon CONFIG_MEDIA_SUPPORT being
enabled in the kernel and if it is not enabled, building these drivers
fail. Fix this by only building the camera drivers dependent upon
CONFIG_MEDIA_SUPPORT when this option is actually enabled.
Bug 4449072
Change-Id: I3637b5763667fbc9965bbeaf126115010e711c7e
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3050559
(cherry picked from commit 9de3e799ae)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053101
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
28 lines
589 B
Makefile
28 lines
589 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
subdir-ccflags-y += -Werror
|
|
|
|
obj-m += max9295.o
|
|
obj-m += max9296.o
|
|
ifeq ($(findstring ack_src,$(NV_BUILD_KERNEL_OPTIONS)),)
|
|
obj-m += max96712.o
|
|
|
|
ifdef CONFIG_MEDIA_SUPPORT
|
|
obj-m += ar1335_common.o
|
|
obj-m += lt6911uxc.o
|
|
obj-m += nv_imx185.o
|
|
obj-m += nv_imx219.o
|
|
obj-m += nv_imx274.o
|
|
obj-m += nv_imx318.o
|
|
obj-m += nv_imx390.o
|
|
obj-m += nv_imx477.o
|
|
obj-m += nv_ov5693.o
|
|
obj-m += nv_ar0234.o
|
|
obj-m += nv_hawk_owl.o
|
|
endif
|
|
|
|
obj-m += pca9570.o
|
|
obj-m += virtual_i2c_mux.o
|
|
endif
|