aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-21 00:14:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-03 23:07:40 +0100
commit45004ac59a7051df0961f036ec05cc4963636436 (patch)
tree0766b254d8682ac30343c3593b902102f8f7b9a9
parent2c1336533de82a39254eebe545f03aefa6708006 (diff)
downloadbuildroot-45004ac59a7051df0961f036ec05cc4963636436.tar.gz
buildroot-45004ac59a7051df0961f036ec05cc4963636436.tar.bz2
package/nvidia-driver: use += where appropriate
Within the BR2_PACKAGE_NVIDIA_DRIVER_XORG condition, some "=" assignements are used for various variables, which are also appended in other conditions below in nvidia-driver.mk. It works fine because those assignements appear earlier in the .mk, but it is a bit error-prone, so let's use += when adding values to those variables. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/nvidia-driver/nvidia-driver.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/nvidia-driver/nvidia-driver.mk b/package/nvidia-driver/nvidia-driver.mk
index a595aed4f7..0d051fcaa4 100644
--- a/package/nvidia-driver/nvidia-driver.mk
+++ b/package/nvidia-driver/nvidia-driver.mk
@@ -20,8 +20,8 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_XORG),y)
# are build dependencies of packages that depend on nvidia-driver, so
# they should be built prior to those packages, and the only simple
# way to do so is to make nvidia-driver depend on them.
-NVIDIA_DRIVER_DEPENDENCIES = mesa3d-headers xlib_libX11 xlib_libXext
-NVIDIA_DRIVER_PROVIDES = libgl libegl libgles
+NVIDIA_DRIVER_DEPENDENCIES += mesa3d-headers xlib_libX11 xlib_libXext
+NVIDIA_DRIVER_PROVIDES += libgl libegl libgles
# libGL.so.$(NVIDIA_DRIVER_VERSION) is the legacy libGL.so library; it
# has been replaced with libGL.so.1.0.0. Installing both is technically
@@ -65,7 +65,7 @@ NVIDIA_DRIVER_LIBS_MISC = \
libvdpau_nvidia.so.$(NVIDIA_DRIVER_VERSION) \
libnvidia-ml.so.$(NVIDIA_DRIVER_VERSION)
-NVIDIA_DRIVER_LIBS = \
+NVIDIA_DRIVER_LIBS += \
$(NVIDIA_DRIVER_LIBS_GL) \
$(NVIDIA_DRIVER_LIBS_EGL) \
$(NVIDIA_DRIVER_LIBS_GLES) \