From: "Petter Mabäcker" <petter@technux.se>
To: "Nguyễn Thanh Vũ" <ngthanh.vu94@gmail.com>,
Yocto <yocto@yoctoproject.org>
Subject: Re: Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
Date: Tue, 16 Jan 2018 09:11:19 +0100 [thread overview]
Message-ID: <fe6967465644f853cbb070b2eecc2bca@technux.se> (raw)
In-Reply-To: <CAGJSYqk+PQDg+8vZ_jpnJQKDVpxDM_mNQ9LMS6JptjsSfW2rrw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
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@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@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
[-- Attachment #2: Type: text/html, Size: 3022 bytes --]
next prev parent reply other threads:[~2018-01-16 8:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 4:28 Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto Nguyễn Thanh Vũ
2018-01-16 6:40 ` Petter Mabäcker
[not found] ` <CAGJSYqk+PQDg+8vZ_jpnJQKDVpxDM_mNQ9LMS6JptjsSfW2rrw@mail.gmail.com>
2018-01-16 8:11 ` Petter Mabäcker [this message]
2018-01-16 11:19 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe6967465644f853cbb070b2eecc2bca@technux.se \
--to=petter@technux.se \
--cc=ngthanh.vu94@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.