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

Romain Naour romain.naour at gmail.com
Sat Nov 21 23:25:22 UTC 2020


Hello Christian,

Le 21/11/2020 à 21:54, Christian Stewart a écrit :
> 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...

I don't have the time to search an test any alternative solution.

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

Another big patch impossible to review.

I'm not sure if maintainers will accept it as is.

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

I meant, maybe you only need to use:
depends on !BR2_STATIC_LIBS

> 
>>> +     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"

So you can remove libtirpc from dependency ?

Best regards,
Romain


> 
> Best,
> Christian
> 



More information about the buildroot mailing list