[yocto] Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
Petter Mabäcker
petter at technux.se
Tue Jan 16 00:11:19 PST 2018
My guess would be that the package name to exclude is libjpeg-turbo
. But it seems to provide jpeg-tools as well, so that can be good to
have in mind when elaborating with excluding this package.
BR Petter
2018-01-16 07:46 skrev Nguyễn Thanh Vũ:
> I know that I need to use
PACKAGE_EXCLUDE, but I have no idea what is the package name of libjpeg
... Any clue?
>
> On Tue, Jan 16, 2018 at 1:40 PM, Petter Mabäcker
<petter at technux.se> wrote:
>
>> 2018-01-16 05:28 skrev Nguyễn Thanh Vũ:
>>
>>> I have statically linked the libjpeg of my own to the exe file,
so I do not need the libjpeg.so default built in the /lib of rootfs. How
can I modify or specify in the local.conf file so that I can remove that
component? It takes quite a lot of space.
>>>
>>> Thank you.
>>
>> Hi
Nguyễn,
>>
>> If you want (and no dependencies dissallow it), you can
remove the entire package providing libjpeg.so from being installed with
PACKAGE_EXCLUDE
(http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PACKAGE_EXCLUDE
[2]).
>>
>> If that`s not working you can for example use
ROOTFS_POSTPROCESS_COMMAND
(http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND
[3]). However that will require more work then just update a line in
local.conf.
>>
>> If you want to try it out you can simply append the
image recipe in a custom layer with below.
>>
>>
my_postprocess_function() {
>> rm -f
${IMAGE_ROOTFS}/path/to/libjpeg.so
>> }
>> ROOTFS_POSTPROCESS_COMMAND +=
"my_postprocess_function; "
>>
>> BR Petter
>>
>> Petter Mabäcker
>>
>> Technux <petter at technux.se>
>> www.technux.se [1]
Links:
------
[1] http://www.technux.se
[2]
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PACKAGE_EXCLUDE
[3]
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180116/fa52b860/attachment.html>
More information about the yocto
mailing list