• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/nvidia-driver/nvidia-driver.mk
Yann E. MORINYann E. MORIN committed 861cc84f8c724 Apr 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# nvidia-driver
4
#
5
################################################################################
6
​
7
NVIDIA_DRIVER_VERSION = 346.35
8
NVIDIA_DRIVER_SUFFIX = $(if $(BR2_x86_64),_64)
9
NVIDIA_DRIVER_SITE = ftp://download.nvidia.com/XFree86/Linux-x86$(NVIDIA_DRIVER_SUFFIX)/$(NVIDIA_DRIVER_VERSION)
10
NVIDIA_DRIVER_SOURCE = NVIDIA-Linux-x86$(NVIDIA_DRIVER_SUFFIX)-$(NVIDIA_DRIVER_VERSION).run
11
NVIDIA_DRIVER_LICENSE = NVIDIA Software License
12
NVIDIA_DRIVER_LICENSE_FILES = LICENSE
13
NVIDIA_DRIVER_REDISTRIBUTE = NO
14
NVIDIA_DRIVER_INSTALL_STAGING = YES
15
​
16
ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_XORG),y)
17
​
18
# Since nvidia-driver are binary blobs, the below dependencies are not
19
# strictly speaking build dependencies of nvidia-driver. However, they
20
# are build dependencies of packages that depend on nvidia-driver, so
21
# they should be built prior to those packages, and the only simple
22
# way to do so is to make nvidia-driver depend on them.
23
NVIDIA_DRIVER_DEPENDENCIES = mesa3d-headers xlib_libX11 xlib_libXext
24
NVIDIA_DRIVER_PROVIDES = libgl libegl libgles
25
​
26
# We have two variables that contains a list of libraries to install:
27
#   NVIDIA_DRIVER_LIBS
28
#       contains the libraries whose filename end up in .so.$(VERSION); rather
29
#       than duplicate the version string for all of them, we just store their
30
#       basename, and append the version string below.
31
#   NVIDIA_DRIVER_LIBS_NO_VERSION
32
#       contains all libraries the do not use the NVidia version; since there
33
#       is currently only one such library, we store its full name.
34
​
35
# Each line corresponds to a specific set of libraries
36
NVIDIA_DRIVER_LIBS = \
37
    libEGL libGLESv1_CM libGLESv2 libGL \
38
    libnvidia-glcore libnvidia-eglcore libnvidia-glsi \
39
    tls/libnvidia-tls \
40
    libvdpau libvdpau_nvidia \
41
    libnvidia-ml
42
​
43
# Install the gl.pc file
44
define NVIDIA_DRIVER_INSTALL_GL_DEV
45
    $(INSTALL) -D -m 0644 $(@D)/libGL.la $(STAGING_DIR)/usr/lib/libGL.la
46
    $(SED) 's:__GENERATED_BY__:Buildroot:' $(STAGING_DIR)/usr/lib/libGL.la
47
    $(SED) 's:__LIBGL_PATH__:/usr/lib:' $(STAGING_DIR)/usr/lib/libGL.la
48
    $(SED) 's:-L[^[:space:]]\+::' $(STAGING_DIR)/usr/lib/libGL.la
49
    $(INSTALL) -D -m 0644 package/nvidia-driver/gl.pc $(STAGING_DIR)/usr/lib/pkgconfig/gl.pc
50
endef
51
​
52
# Those libraries are 'private' libraries requiring an agreement with
53
# NVidia to develop code for those libs. There seems to be no restriction
54
# on using those libraries (e.g. if the user has such an agreement, or
55
# wants to run a third-party program developped under such an agreement).
56
ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_PRIVATE_LIBS),y)
57
NVIDIA_DRIVER_LIBS += libnvidia-ifr libnvidia-fbc
58
endif
59
​
60
# We refer to the destination path; the origin file has no directory component
61
NVIDIA_DRIVER_X_MODS = drivers/nvidia_drv.so \
62
    extensions/libglx.so.$(NVIDIA_DRIVER_VERSION) \
63
    libnvidia-wfb.so.$(NVIDIA_DRIVER_VERSION)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.