Including license metadata in target package
Hi,
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)?
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Hi Martin,
Quoted 11 lines · Martin Jansa
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.bbclassDoes 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