mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
The RTCPU driver has a dependency of the following kernel modules: clk-group device-group reset-group Rather that builds all these source files as individual drivers, which is bloating the number of kernel modules required, compile these source files into the main RTCPU kernel module. Finally, remove any unneeded header files from the ivc-bus driver. Bug 4078936 Change-Id: I0981a716db7a91556d8c00a291b81dec01dda2e3 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890896 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
25 lines
754 B
Makefile
25 lines
754 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
|
|
LINUX_VERSION_6_2 := $(shell expr 6 \* 256 + 2)
|
|
|
|
# capture-ivc is currently broken for Linux v6.2 and so skip for Linux v6.2+
|
|
ifeq ($(shell test $(LINUX_VERSION) -lt $(LINUX_VERSION_6_2); echo $$?),0)
|
|
obj-m += capture-ivc.o
|
|
endif
|
|
obj-m += ivc-bus.o
|
|
obj-m += camchar.o
|
|
obj-m += camera-diagnostics.o
|
|
obj-m += rtcpu-debug.o
|
|
obj-m += hsp-mailbox-client.o
|
|
|
|
tegra-camera-rtcpu-objs := clk-group.o \
|
|
device-group.o \
|
|
reset-group.o \
|
|
rtcpu-monitor.o \
|
|
tegra-camera-rtcpu-base.o \
|
|
tegra-rtcpu-trace.o
|
|
|
|
obj-m += tegra-camera-rtcpu.o
|