package/nvidia-modprobe: new package

nvidia-modprobe package adds a utility and headers for probing the NVIDIA
hardware at runtime.

https://github.com/NVIDIA/nvidia-modprobe

Signed-off-by: Christian Stewart <christian@paral.in>
[Arnout:
 - use upstream Makefile instead of building directly;
 - don't install to staging;
 - remove dependency on host-pkgconf;
 - correct license to GPL-2.0;
 - remove dependency on threads and glibc;
 - add dependency on MMU.]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Christian Stewart 2020-11-18 23:53:24 -08:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 8a5ba80b86
commit 83aaf5106e
4 changed files with 34 additions and 0 deletions

View File

@ -510,6 +510,7 @@ endmenu
source "package/nanocom/Config.in"
source "package/neard/Config.in"
source "package/nvidia-driver/Config.in"
source "package/nvidia-modprobe/Config.in"
source "package/nvme/Config.in"
source "package/ofono/Config.in"
source "package/on2-8170-modules/Config.in"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_NVIDIA_MODPROBE
bool "nvidia-modprobe"
depends on BR2_USE_MMU # fork()
help
nvidia-modprobe package adds a utility and headers for
probing the NVIDIA hardware at runtime.
https://github.com/NVIDIA/nvidia-modprobe

View File

@ -0,0 +1,3 @@
# Locally computed:
sha256 396b4102d3075a2dee3024652fae206a1b38ace54b8efb1e2c20757a11ec19f1 nvidia-modprobe-450.57.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@ -0,0 +1,22 @@
################################################################################
#
# nvidia-modprobe
#
################################################################################
NVIDIA_MODPROBE_VERSION = 450.57
NVIDIA_MODPROBE_SITE = $(call github,NVIDIA,nvidia-modprobe,$(NVIDIA_MODPROBE_VERSION))
NVIDIA_MODPROBE_LICENSE = GPL-2.0
NVIDIA_MODPROBE_LICENSE_FILES = COPYING
define NVIDIA_MODPROBE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
OUTPUTDIR=. ./nvidia-modprobe.unstripped
endef
define NVIDIA_MODPROBE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/nvidia-modprobe.unstripped \
$(TARGET_DIR)/usr/bin/nvidia-modprobe
endef
$(eval $(generic-package))