From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 22 Jun 2023 14:10:19 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qCJ8m-00Gw2b-S6 for lore@lore.pengutronix.de; Thu, 22 Jun 2023 14:10:19 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qCJ8j-00032E-L0; Thu, 22 Jun 2023 14:10:17 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qCJ83-0002iX-EH; Thu, 22 Jun 2023 14:09:35 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qCJ82-009GhL-Q8; Thu, 22 Jun 2023 14:09:34 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qCJ82-00GsAG-1x; Thu, 22 Jun 2023 14:09:34 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 22 Jun 2023 14:09:34 +0200 Message-Id: <20230622120934.4021449-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230620085957.347454-1-p.zabel@pengutronix.de> References: <20230620085957.347454-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] nvtop: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Philipp Zabel Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 74923a19b980ec93c8a4122a859d3ce98d1eac3e. Michael [sent from post-receive hook] On Thu, 22 Jun 2023 14:09:34 +0200, Philipp Zabel wrote: > Only supports AMD (amdgpu), Intel (i915), and Adreno (msm) GPUs for now. > NVIDIA support would require libnvml. > > Signed-off-by: Philipp Zabel > Message-Id: <20230620085957.347454-1-p.zabel@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/nvtop.in b/rules/nvtop.in > new file mode 100644 > index 000000000000..af42874156aa > --- /dev/null > +++ b/rules/nvtop.in > @@ -0,0 +1,34 @@ > +## SECTION=shell_and_console > + > +menuconfig NVTOP > + bool > + prompt "nvtop" > + select HOST_CMAKE > + select NCURSES > + select LIBDRM if NVTOP_AMDGPU || NVTOP_MSM > + select LIBDRM_AMDGPU if NVTOP_AMDGPU > + select SYSTEMD if NVTOP_AMDGPU || NVTOP_INTEL > + help > + Interactive GPU process monitor > + > +if NVTOP > + > +config NVTOP_NVIDIA > + bool > + # needs libnvml > + depends on BROKEN > + prompt "build support for NVIDIA GPUs" > + > +config NVTOP_AMDGPU > + bool > + prompt "build support for AMD GPUs using the amdgpu driver" > + > +config NVTOP_INTEL > + bool > + prompt "build support for Intel GPUs using the i915 driver" > + > +config NVTOP_MSM > + bool > + prompt "build support for Adreno GPUs using the msm driver" > + > +endif > diff --git a/rules/nvtop.make b/rules/nvtop.make > new file mode 100644 > index 000000000000..738b7a013032 > --- /dev/null > +++ b/rules/nvtop.make > @@ -0,0 +1,62 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Philipp Zabel > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_NVTOP) += nvtop > + > +# > +# Paths and names > +# > +NVTOP_VERSION := 3.0.2 > +NVTOP_MD5 := fdf9bc33c2240ba99cee0d726d267427 > +NVTOP := nvtop-$(NVTOP_VERSION) > +NVTOP_SUFFIX := tar.gz > +NVTOP_URL := https://github.com/Syllo/nvtop/archive/refs/tags/$(NVTOP_VERSION).$(NVTOP_SUFFIX) > +NVTOP_SOURCE := $(SRCDIR)/$(NVTOP).$(NVTOP_SUFFIX) > +NVTOP_DIR := $(BUILDDIR)/$(NVTOP) > +NVTOP_LICENSE := GPL-3.0-or-later > +NVTOP_LICENSE_FILES := \ > + file://COPYING;md5=d32239bcb673463ab874e80d47fae504 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# cmake > +# > +NVTOP_CONF_TOOL := cmake > +NVTOP_CONF_OPT := \ > + $(CROSS_CMAKE_USR) \ > + -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) > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/nvtop.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, nvtop) > + @$(call install_fixup, nvtop, PRIORITY, optional) > + @$(call install_fixup, nvtop, SECTION, base) > + @$(call install_fixup, nvtop, AUTHOR, "Philipp Zabel ") > + @$(call install_fixup, nvtop, DESCRIPTION, missing) > + > + @$(call install_copy, nvtop, 0, 0, 0755, -, /usr/bin/nvtop) > + > + @$(call install_finish, nvtop) > + > + @$(call touch) > + > +# vim: syntax=make