mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
This change adds conditional compilation blocks to disable L4T-specific camera and multimedia drivers when building for embedded Linux platforms. Key changes include: - Add ifneq ($(NV_BUILD_SYSTEM_TYPE),embedded-linux) checks in multiple Makefiles to exclude L4T-specific components - Introduce NV_IS_L4T define to conditionally include L4T functionality - Reorganize header includes to support both L4T and embedded Linux builds - Conditionally wrap L4T-specific struct members and function calls - Update module dependencies (cdi_mgr now depends on cdi_dev instead of cdi_pwm) Jira CAMERASW-32251 Change-Id: I934fdd0188e914c07b456c0f6ad379d2a08555ca Signed-off-by: Mohit Ingale <mohiti@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3294869 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Jagadeesh Kinni <jkinni@nvidia.com> Reviewed-by: Vincent Chung <vincentc@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com>
23 lines
876 B
Makefile
23 lines
876 B
Makefile
# SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms and conditions of the GNU General Public License,
|
|
# version 2, as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
# more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
GCOV_PROFILE := y
|
|
ifneq ($(NV_BUILD_SYSTEM_TYPE),embedded-linux)
|
|
obj-m += isc_gpio.o
|
|
obj-m += isc_mgr.o
|
|
obj-m += isc_dev.o
|
|
obj-m += isc_pwm.o
|
|
endif
|