[Buildroot] [RFC PATCH] Handle _LICENSE_FILES with full path

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Nov 24 19:41:27 UTC 2021


Hello Cyril,

On Wed, 24 Nov 2021 15:18:27 +0000
Cyril Bur <cyrilbur at gmail.com> wrote:

> legal-info currently assumes that a packages _LICENSE_FILES will be a
> path or a filename relative to the source of the package.
> 
> There is nothing preventing _LICENSE_FILES from containing a full path,
> probably using _PKGDIR within the package .mk file. When this happens,
> the legal-info process simply adds the build directory on the front of
> the _LICENSE_FILES resulting in a failed cp of the file.
> 
> This patch simply performs a check to see if the _LICENSE_FILES path
> with the build directory prepended exists (as is the case for all
> packages currently) and uses that. Otherwise it will assume that
> the _LICENSE_FILES file is a fullpath and attempt to use that.
> 
> Signed-off-by: Cyril Bur <cyrilbur at gmail.com>

Could you clarify the use case with a specific example ?

Thanks!

Thoimas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com


More information about the buildroot mailing list