[OE-core] Including license metadata in target package

Eric Bénard eric at eukrea.com
Mon Nov 26 19:45:23 UTC 2012


Hi Martin,

Le Mon, 26 Nov 2012 20:33:04 +0100,
Martin Jansa <martin.jansa at gmail.com> a écrit :
> we'll have to provide some proprietary packages for our feed/images and
> because of that we're thinking about adding functionality to package
> LICENSE files (referenced by LIC_FILES_CHKSUM) to PN (something like 
> ${datadir}/licenses/${PN}/file), probably reusing some code from 
> license.bbclass
> 
> Does something like this already exist somewhere or does it look
> usefull for someone else too, so it could be integrated into
> license.bbclass and controlled by some variable (per package 
> or by distro config)?
> 
IIRC with these settings you will get the license in the image
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"
INHERIT += "copyleft_compliance"
so maybe you can add the capability to add the license to each package
starting from here.

Eric




More information about the Openembedded-core mailing list