All of lore.kernel.org
 help / color / mirror / Atom feed
* Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
@ 2018-01-16  4:28 Nguyễn Thanh Vũ 
  2018-01-16  6:40 ` Petter Mabäcker
  2018-01-16 11:19 ` Burton, Ross
  0 siblings, 2 replies; 4+ messages in thread
From: Nguyễn Thanh Vũ  @ 2018-01-16  4:28 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 310 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
  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 11:19 ` Burton, Ross
  1 sibling, 1 reply; 4+ messages in thread
From: Petter Mabäcker @ 2018-01-16  6:40 UTC (permalink / raw)
  To: Yocto, ngthanh.vu94

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

 

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).


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).
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
 

[-- Attachment #2: Type: text/html, Size: 1697 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
       [not found]   ` <CAGJSYqk+PQDg+8vZ_jpnJQKDVpxDM_mNQ9LMS6JptjsSfW2rrw@mail.gmail.com>
@ 2018-01-16  8:11     ` Petter Mabäcker
  0 siblings, 0 replies; 4+ messages in thread
From: Petter Mabäcker @ 2018-01-16  8:11 UTC (permalink / raw)
  To: Nguyễn Thanh Vũ, Yocto

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Remove libjpeg.so (default built even in core-image-minimal) from the rootfs when build yocto
  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
@ 2018-01-16 11:19 ` Burton, Ross
  1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2018-01-16 11:19 UTC (permalink / raw)
  To: Nguyễn Thanh Vũ; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

On 16 January 2018 at 04:28, Nguyễn Thanh Vũ <ngthanh.vu94@gmail.com> wrote:

> 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.
>
>
Find out what installs it, and stop installing that.  Possibly your exe
isn't actually statically linking at all.

Ross

[-- Attachment #2: Type: text/html, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-16 11:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2018-01-16 11:19 ` Burton, Ross

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.