[Buildroot] [PATCH v4 3/5] package/libnvidia-container: new package

Christian Stewart christian at paral.in
Sat Nov 21 20:54:44 UTC 2020


Hi Romain,

On Sat, Nov 21, 2020 at 2:55 AM Romain Naour <romain.naour at gmail.com> wrote:

> This is really a huge patch...

Because it includes a couple of headers from nvidia-modprobe. It's
necessary for the build to work. I wouldn't add the patch otherwise.

If you would like to take the time to find some alternative...

> > +Subject: [PATCH] Remove dependency handling from Makefile
> > +
> > +Buildroot will handle this for the makefile.
> > +
> > +Signed-off-by: Christian Stewart <christian at paral.in>
> > +---
>
> Same

??

> > @@ -0,0 +1,18 @@
> > +config BR2_PACKAGE_LIBNVIDIA_CONTAINER
> > +     bool "libnvidia-container"
> > +     depends on BR2_SHARED_LIBS
>
> BR2_SHARED_STATIC_LIBS maybe

??

> > +     depends on BR2_TOOLCHAIN_HAS_THREADS # tirpc
>
> Already selected by glibc toolchain.

OK noted & removed.

> > +
> > +LIBNVIDIA_CONTAINER_MAKE_OPTS = \
> > +     CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
> > +     OBJCPY="$(TARGET_OBJCOPY)" \
> > +     RPCGEN="$(HOST_DIR)/bin/rpcgen" \
> > +     WITH_LIBELF=yes \
> > +     WITH_TIRPC=no
>
> Why adding libtirpc in the dependencies and using WITH_TIRPC=no ?

Because, without it, we get this build error:

libnvidia-container-1.2.0/src/driver.c:23:10: fatal error:
driver_rpc.h: No such file or directory
   23 | #include "driver_rpc.h"

Best,
Christian



More information about the buildroot mailing list