mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 02:55:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,62 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=nvtop
|
||||
PKG_VERSION:=3.2.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/Syllo/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=skip
|
||||
|
||||
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>
|
||||
PKG_LICENSE:=GPL-3.0+
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_LIBDRM_AMDGPU
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/nvtop
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=NVTOP
|
||||
DEPENDS:=@(aarch64||x86_64) +libncursesw +libudev +libdrm
|
||||
URL:=https://github.com/Syllo/nvtop
|
||||
endef
|
||||
|
||||
define Package/nvtop/description
|
||||
NVTOP stands for Neat Videocard TOP, a (h)top like task monitor for GPUs and accelerators
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
||||
|
||||
CMAKE_OPTIONS += \
|
||||
-DUSE_LIBUDEV_OVER_LIBSYSTEMD=ON \
|
||||
-DAPPLE_SUPPORT=OFF \
|
||||
-DNVIDIA_SUPPORT=OFF \
|
||||
-DASCEND_SUPPORT=OFF \
|
||||
-DTPU_SUPPORT=OFF
|
||||
|
||||
ifdef CONFIG_aarch64
|
||||
CMAKE_OPTIONS += \
|
||||
-DPANFROST_SUPPORT=ON \
|
||||
-DPANTHOR_SUPPORT=ON \
|
||||
-DAMDGPU_SUPPORT=OFF \
|
||||
-DINTEL_SUPPORT=OFF
|
||||
else
|
||||
CMAKE_OPTIONS += \
|
||||
-DPANFROST_SUPPORT=OFF \
|
||||
-DPANTHOR_SUPPORT=OFF \
|
||||
-DAMDGPU_SUPPORT=$(if $(CONFIG_LIBDRM_AMDGPU),ON,OFF) \
|
||||
-DINTEL_SUPPORT=ON \
|
||||
-DV3D_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
define Package/nvtop/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nvtop $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,nvtop))
|
||||
Reference in new issue
Block a user