device-tree: generic-dts: Set correct LINUX_VERSION

For generic-dts, LINUX_VERSION is hardcoded to be 5.15. This is used by
kstable as well where kernel version is 6.0.
Fix this by setting appropriate LINUX_VERSION based on kernel build
options.

Bug 3931063

Change-Id: I478ce03b40ff57b9839ae9d3168825b3c917196b
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2840518
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Ashish Mhetre
2023-01-10 06:25:29 +00:00
committed by mobile promotions
parent c9df39dd07
commit a835180be5

View File

@@ -13,7 +13,11 @@ include $(oottree)/scripts/Makefile.lib
DTC_CPP_FLAGS += $(EXTRA_CPP_FLAGS)
ifneq ($(findstring oot,$(NV_BUILD_KERNEL_OPTIONS)),)
DTC_CPP_FLAGS += -DLINUX_VERSION=515 -DTEGRA_HOST1X_DT_VERSION=2
else
DTC_CPP_FLAGS += -DLINUX_VERSION=600 -DTEGRA_HOST1X_DT_VERSION=2
endif
ifneq ($(TEGRA_TOP),)
SOURCE_TOP := $(TEGRA_TOP)