Re: [poky] let the manifest/used licenses become part of image

Arno Steffens <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
Am 10.11.23 um 21:55 schrieb Peter Kjellerstedt:
>> -----Original Message-----
>> From: [email protected] <[email protected]> On Behalf
>> Of Steve via lists.yoctoproject.org
>> Sent: den 9 november 2023 08:17
>> To: [email protected]
>> Subject: [poky] let the manifest/used licenses become part of image
>>
>> Hi,
>> think it makes sense to provide in the image itself the manifest and
>> what licenses are used.
>>
>> I want to copy the *.manifest to some place in filesystem, but that
>> doesn't work. Even if done in IMAGE_POSTPROCESS_COMMAND, the manifest
>> file seems to be generated at a later stage.
>> Although here is stated something different:
>> https://docs.yoctoproject.org/overview-manual/concepts.html#image-generation
>>
>> Any hint how to work around that? Or am I completly wrong?
>> Best regards,
>> Arno
>>
>> Another thing. The tmp/deploy/license folder keeps all ever used
>> packages. How to get only thoses licenses that used (as in manifest)?
>
> If you set:
>
> COPY_LIC_MANIFEST = "1"
> COPY_LIC_DIRS = "1"
>
> in your configuration, you should get the license manifest and the
> licenses added to your rootfs.
>
> //Peter
>

Thanks Peter,
that helps me a lot! To not spend so much space in final rootfs, I
compress that folder /usr/share/common-licenses into a single file and
remove that original /usr/share/common-licenses via
ROOTFS_POSTPROCESS_COMMAND.
Best regards,
Arno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.