New version adds support for Mali GPUs with both panfrost and panthor
kernel drivers. Disable Apple and Ascend support, as those are only
available on non-Linux platforms.

Signed-off-by: Lucas Stach <[email protected]>
---
 rules/nvtop.in   |  8 ++++++++
 rules/nvtop.make | 10 +++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/rules/nvtop.in b/rules/nvtop.in
index af42874156aa..5ebaec21056e 100644
--- a/rules/nvtop.in
+++ b/rules/nvtop.in
@@ -31,4 +31,12 @@ config NVTOP_MSM
        bool
        prompt "build support for Adreno GPUs using the msm driver"
 
+config NVTOP_PANFROST
+       bool
+       prompt "build support for Mali GPUs using the panfrost driver"
+
+config NVTOP_PANTHOR
+       bool
+       prompt "build support for Mali GPUs using the panthor driver"
+
 endif
diff --git a/rules/nvtop.make b/rules/nvtop.make
index 738b7a013032..0f6747e7ce21 100644
--- a/rules/nvtop.make
+++ b/rules/nvtop.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_NVTOP) += nvtop
 #
 # Paths and names
 #
-NVTOP_VERSION  := 3.0.2
-NVTOP_MD5      := fdf9bc33c2240ba99cee0d726d267427
+NVTOP_VERSION  := 3.1.0
+NVTOP_MD5      := bdf8217412aa12f54448f14bb49bb164
 NVTOP          := nvtop-$(NVTOP_VERSION)
 NVTOP_SUFFIX   := tar.gz
 NVTOP_URL      := 
https://github.com/Syllo/nvtop/archive/refs/tags/$(NVTOP_VERSION).$(NVTOP_SUFFIX)
@@ -38,7 +38,11 @@ NVTOP_CONF_OPT       := \
        -DNVIDIA_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_NVIDIA) \
        -DAMDGPU_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_AMDGPU) \
        -DINTEL_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_INTEL) \
-       -DMSM_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_MSM)
+       -DMSM_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_MSM) \
+       -DAPPLE_SUPPORT=off \
+       -DPANFROST_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_PANFROST) \
+       -DPANTHOR_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_PANTHOR) \
+       -DASCEND_SUPPORT=off
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.39.2


Reply via email to