mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
media: tegra: Conditionally disable L4T-specific drivers in embedded Linux builds
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>
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2022 NVIDIA Corporation. All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file include/media/fusa-capture/capture-common.h
|
||||
/* SPDX-FileCopyrightText: Copyright (c) 2017-2025 NVIDIA CORPORATION & AFFILIATES.
|
||||
* All rights reserved.
|
||||
*
|
||||
* @brief VI/ISP channel common operations header for the T186/T194 Camera RTCPU
|
||||
* platform.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef __FUSA_CAPTURE_COMMON_H__
|
||||
#define __FUSA_CAPTURE_COMMON_H__
|
||||
|
||||
#ifdef NV_IS_L4T
|
||||
#include <media/mc_common.h>
|
||||
#endif
|
||||
|
||||
struct capture_buffer_table;
|
||||
struct capture_mapping;
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* SPDX-FileCopyrightText: Copyright (c) 2017-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
|
||||
/* SPDX-FileCopyrightText: Copyright (c) 2017-2025 NVIDIA CORPORATION & AFFILIATES.
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <nvidia/conftest.h>
|
||||
|
||||
@@ -12,6 +24,9 @@
|
||||
#include <linux/version.h>
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
#ifdef NV_IS_L4T
|
||||
#include <media/mc_common.h>
|
||||
|
||||
struct tegra_channel;
|
||||
struct timespec64;
|
||||
|
||||
@@ -140,6 +155,8 @@ DEFINE_EVENT(frame, tegra_channel_capture_done,
|
||||
TP_ARGS(str, ts)
|
||||
);
|
||||
|
||||
#endif /* NV_IS_L4T */
|
||||
|
||||
TRACE_EVENT(vi_task_submit,
|
||||
TP_PROTO(u32 class_id, u32 channel_id, u32 syncpt_id,
|
||||
u32 syncpt_thresh, u32 pid, u32 tid),
|
||||
|
||||
Reference in New Issue
Block a user