mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvidia-oot: Add options to disable drivers
In Linux v6.2, the Tegra IVC driver was updated to support iosys-map and this breaks building some of the out-of-tree drivers for Linux v6.2+ kernels. In Linux v6.3, the GPIO OF APIs were removed and this breaks building some of the out-of-tree drivers that use these legacy APIs. For now the broken drivers are not built for these corresponding kernels. Instead of checking the kernel version in the Makefile for the corresponding broken driver, move the kernel version checking to the top-level Makefile and add CONFIG definitions that can be used the various Makefiles. This is also needed for working with 3rd party Linux kernels that may have upstream backports and need to set these CONFIG variables for their Linux kernel. Bug 4221847 Change-Id: I35ee59bccdcdb1be56e4680c453279b421692c6a Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2996215 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4e8ed5f7b7
commit
7f53d7ba3e
@@ -9,7 +9,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE)
|
||||
#if !defined(CONFIG_TEGRA_IVC_LEGACY_DISABLE)
|
||||
/**
|
||||
* @brief Submit the control message binary blob to capture-IVC driver,
|
||||
* which is to be transferred over control IVC channel to RTCPU.
|
||||
@@ -187,6 +187,6 @@ static inline int tegra_capture_ivc_unregister_capture_cb(
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
#endif /* (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE) */
|
||||
#endif /* !defined(CONFIG_TEGRA_IVC_LEGACY_DISABLE) */
|
||||
|
||||
#endif /* INCLUDE_CAPTURE_IVC_H */
|
||||
|
||||
Reference in New Issue
Block a user