All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 5/6] package/nvidia-driver: become an OpenCL provider
Date: Sun, 21 Oct 2018 00:14:36 +0200	[thread overview]
Message-ID: <20181020221437.12687-6-thomas.petazzoni@bootlin.com> (raw)
In-Reply-To: <20181020221437.12687-1-thomas.petazzoni@bootlin.com>

We need to install the mesa3d-headers, because the CL headers are not
provided by nvidia-driver (just like it didn't provide the OpenGL
headers).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/nvidia-driver/Config.in        | 5 +++++
 package/nvidia-driver/nvidia-driver.mk | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/package/nvidia-driver/Config.in b/package/nvidia-driver/Config.in
index 732d9255c7..9631b3e70c 100644
--- a/package/nvidia-driver/Config.in
+++ b/package/nvidia-driver/Config.in
@@ -60,6 +60,11 @@ if BR2_PACKAGE_NVIDIA_DRIVER_CUDA
 
 config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
 	bool "OpenCL support"
+	select BR2_PACKAGE_MESA3D_HEADERS
+	select BR2_PACKAGE_HAS_LIBOPENCL
+
+config BR2_PACKAGE_PROVIDES_LIBOPENCL
+	default "nvidia-driver" if BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
 
 config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS
 	bool "CUDA MPS server and control"
diff --git a/package/nvidia-driver/nvidia-driver.mk b/package/nvidia-driver/nvidia-driver.mk
index 0d051fcaa4..baf2ba2be5 100644
--- a/package/nvidia-driver/nvidia-driver.mk
+++ b/package/nvidia-driver/nvidia-driver.mk
@@ -116,6 +116,8 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_OPENCL),y)
 NVIDIA_DRIVER_LIBS += \
 	libOpenCL.so.1.0.0 \
 	libnvidia-opencl.so.$(NVIDIA_DRIVER_VERSION)
+NVIDIA_DRIVER_DEPENDENCIES += mesa3d-headers
+NVIDIA_DRIVER_PROVIDES += libopencl
 endif
 
 # Build and install the kernel modules if needed
-- 
2.14.4

  parent reply	other threads:[~2018-10-20 22:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 22:14 [Buildroot] [PATCH 0/6] OpenCL support Thomas Petazzoni
2018-10-20 22:14 ` [Buildroot] [PATCH 1/6] package/opengl/opencl: new virtual package Thomas Petazzoni
2018-10-21 10:46   ` Valentin Korenblit
2018-10-21 14:29   ` Thomas Petazzoni
2018-10-20 22:14 ` [Buildroot] [PATCH 2/6] package/mesa3d: enable OpenCL support Thomas Petazzoni
2018-10-21 10:53   ` Valentin Korenblit
2018-10-21 11:10     ` Thomas Petazzoni
2018-10-20 22:14 ` [Buildroot] [PATCH 3/6] package/mesa3d-headers: install OpenCL headers when needed Thomas Petazzoni
2018-10-20 22:14 ` [Buildroot] [PATCH 4/6] package/nvidia-driver: use += where appropriate Thomas Petazzoni
2018-10-20 22:14 ` Thomas Petazzoni [this message]
2018-10-20 22:14 ` [Buildroot] [PATCH 6/6] package/clinfo: new package Thomas Petazzoni
2018-12-03 22:09 ` [Buildroot] [PATCH 0/6] OpenCL support Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181020221437.12687-6-thomas.petazzoni@bootlin.com \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.