mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
nvgpu: Get rid of NV_BUILD_KERNEL_OPTIONS for identify stable kernel
There are some configs which are set for the stable kernel and it is identified from the NV_BUILD_KERNEL_OPTIONS. The stable kernel build nvgpu as out-of-tree module and pass the environment config CONFIG_TEGRA_OOT_MODULE during build. Hence, it is not required to use the NV_BUILD_KERNEL_OPTIONS to identify the kstable build. It uses CONFIG_TEGRA_OOT_MODULE for setting the configs for build as module. Bug 3652905 Change-Id: I6570760e91ca98a4c83d7691fad517b2c772e629 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2720729 Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
e80d74b810
commit
646a48ea5a
@@ -119,16 +119,10 @@ CONFIG_NVGPU_NVMAP_NEXT := y
|
||||
CONFIG_NVGPU_NVMEM_FUSE := y
|
||||
endif
|
||||
|
||||
ifneq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
CONFIG_NVGPU_NVMEM_FUSE := y
|
||||
endif
|
||||
|
||||
# Set CONFIG_NVGPU_IVM_BUILD for non-stable and non-oot build
|
||||
ifeq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
# Set CONFIG_NVGPU_IVM_BUILD for non-oot build
|
||||
ifneq ($(CONFIG_TEGRA_OOT_MODULE),m)
|
||||
CONFIG_NVGPU_IVM_BUILD := y
|
||||
endif
|
||||
endif
|
||||
|
||||
# Set config for OOT module build
|
||||
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
|
||||
@@ -190,11 +184,7 @@ endif
|
||||
# internal build system.
|
||||
ifneq ($(NV_BUILD_KERNEL_OPTIONS),)
|
||||
|
||||
# Disable the below configs for kstable
|
||||
ifneq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
CONFIG_GK20A_DEVFREQ := n
|
||||
CONFIG_GK20A_PM_QOS := n
|
||||
else ifneq ($(filter 4.9 4.14,$(patsubst -,$(space),$(NV_BUILD_KERNEL_OPTIONS))),)
|
||||
ifneq ($(filter 4.9 4.14,$(patsubst -,$(space),$(NV_BUILD_KERNEL_OPTIONS))),)
|
||||
# Enable support to pass PM_QOS constraints to devfreq based scaling.
|
||||
CONFIG_GK20A_PM_QOS := y
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user