mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvidia-oot: Fix ccflag for IVC legacy support
The flag CONFIG_TEGRA_IVC_LEGACY_DISABLE was added so that it can be set by an external Makefile that build the out-of-tree drivers. If this flag is set by an external Makefile then the ccflags definition '-DCONFIG_TEGRA_IVC_LEGACY_DISABLE' does not get set as expected and builds fail. Fix this by setting the ccflag if the Make flag CONFIG_TEGRA_IVC_LEGACY_DISABLE is set and not just for Linux v6.2+ kernels. Bug 4221847 Change-Id: Ia662a9e6bfac064fa0571af7f0173cda2cf94b02 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3005233 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5cfb7fef0a
commit
d0ae4194d7
3
Makefile
3
Makefile
@@ -14,6 +14,9 @@ LINUX_VERSION_6_3 := $(shell expr 6 \* 256 + 3)
|
||||
# For Linux v6.2 kernels, don't build any drivers that requires this.
|
||||
ifeq ($(shell test $(LINUX_VERSION) -ge $(LINUX_VERSION_6_2); echo $$?),0)
|
||||
export CONFIG_TEGRA_IVC_LEGACY_DISABLE=y
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_TEGRA_IVC_LEGACY_DISABLE),y)
|
||||
subdir-ccflags-y += -DCONFIG_TEGRA_IVC_LEGACY_DISABLE
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user