* remove /boot/uImage and /usr/share/terminfo
@ 2013-03-15 13:33 Hans Beckérus
2013-03-15 14:20 ` Bruce Ashfield
0 siblings, 1 reply; 5+ messages in thread
From: Hans Beckérus @ 2013-03-15 13:33 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 797 bytes --]
Hi. In an effort to shrink our rootfs by some major numbers we found two
low-hanging fruits that we would like to address before cherry picking and
removing lots of good linux functionality. We have no need for the uImage
(3MB) stored in /boot and also we can leave out the terminfo tree (2.5MB).
My question here now is if the build system provide functionality to
actually tell the image builder not to include these specific components?
Or do we need to write some post installer for our rootfs that mounts the
image, removes the files, and then umount it?
If we remove inclusion of any kernel modules it seems that /boot is never
populated? But we need the modules. Also, what package brings in terminfo?
Is it as simple as writing a .bbappend to remove it att deploy time?
Hans
[-- Attachment #2: Type: text/html, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove /boot/uImage and /usr/share/terminfo
2013-03-15 13:33 remove /boot/uImage and /usr/share/terminfo Hans Beckérus
@ 2013-03-15 14:20 ` Bruce Ashfield
2013-03-15 14:36 ` Hans Beckérus
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2013-03-15 14:20 UTC (permalink / raw)
To: Hans Beckérus; +Cc: yocto
On 13-03-15 06:33 AM, Hans Beckérus wrote:
> Hi. In an effort to shrink our rootfs by some major numbers we found two
> low-hanging fruits that we would like to address before cherry picking
> and removing lots of good linux functionality. We have no need for the
> uImage (3MB) stored in /boot and also we can leave out the terminfo tree
> (2.5MB).
> My question here now is if the build system provide functionality to
> actually tell the image builder not to include these specific components?
From kernel.bbclass, you just need to clear RDEPENDS_kernel-base
in your .conf files:
# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"
You'll still get your kernel modules installed after making this change.
Bruce
> Or do we need to write some post installer for our rootfs that mounts
> the image, removes the files, and then umount it?
> If we remove inclusion of any kernel modules it seems that /boot is
> never populated? But we need the modules. Also, what package brings in
> terminfo?
> Is it as simple as writing a .bbappend to remove it att deploy time?
>
> Hans
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove /boot/uImage and /usr/share/terminfo
2013-03-15 14:20 ` Bruce Ashfield
@ 2013-03-15 14:36 ` Hans Beckérus
2013-03-15 14:41 ` Bruce Ashfield
0 siblings, 1 reply; 5+ messages in thread
From: Hans Beckérus @ 2013-03-15 14:36 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]
On Fri, Mar 15, 2013 at 3:20 PM, Bruce Ashfield <
bruce.ashfield@windriver.com> wrote:
> On 13-03-15 06:33 AM, Hans Beckérus wrote:
>
>> Hi. In an effort to shrink our rootfs by some major numbers we found two
>> low-hanging fruits that we would like to address before cherry picking
>> and removing lots of good linux functionality. We have no need for the
>> uImage (3MB) stored in /boot and also we can leave out the terminfo tree
>> (2.5MB).
>> My question here now is if the build system provide functionality to
>> actually tell the image builder not to include these specific components?
>>
>
> From kernel.bbclass, you just need to clear RDEPENDS_kernel-base
> in your .conf files:
>
> # Allow machines to override this dependency if kernel image files are
> # not wanted in images as standard
> RDEPENDS_kernel-base ?= "kernel-image"
>
> You'll still get your kernel modules installed after making this change.
>
> Bruce
>
Thanks Bruce.How could I have missed that? I believe I scanned through the
kernel.bbclass for something like this.
Also got some good tip regarding /usr/share/terminfo? Guess I need to
figure out what package drags it in ;)
Hans
[-- Attachment #2: Type: text/html, Size: 1689 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove /boot/uImage and /usr/share/terminfo
2013-03-15 14:36 ` Hans Beckérus
@ 2013-03-15 14:41 ` Bruce Ashfield
2013-03-15 15:36 ` Hans Beckérus
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2013-03-15 14:41 UTC (permalink / raw)
To: Hans Beckérus; +Cc: yocto
On 13-03-15 07:36 AM, Hans Beckérus wrote:
>
>
> On Fri, Mar 15, 2013 at 3:20 PM, Bruce Ashfield
> <bruce.ashfield@windriver.com <mailto:bruce.ashfield@windriver.com>> wrote:
>
> On 13-03-15 06:33 AM, Hans Beckérus wrote:
>
> Hi. In an effort to shrink our rootfs by some major numbers we
> found two
> low-hanging fruits that we would like to address before cherry
> picking
> and removing lots of good linux functionality. We have no need
> for the
> uImage (3MB) stored in /boot and also we can leave out the
> terminfo tree
> (2.5MB).
> My question here now is if the build system provide functionality to
> actually tell the image builder not to include these specific
> components?
>
>
> From kernel.bbclass, you just need to clear RDEPENDS_kernel-base
> in your .conf files:
>
> # Allow machines to override this dependency if kernel image files are
> # not wanted in images as standard
> RDEPENDS_kernel-base ?= "kernel-image"
>
> You'll still get your kernel modules installed after making this change.
>
> Bruce
>
>
> Thanks Bruce.How could I have missed that? I believe I scanned through
> the kernel.bbclass for something like this.
> Also got some good tip regarding /usr/share/terminfo? Guess I need to
> figure out what package drags it in ;)
Not off the top of my head. Hopefully someone else with experience in
that area will notice the traffic and jump in :)
I'm fairly certain that is is controllable, since in the past, I've
known it to be removed and tuned for small systems, so it's not a
completely uncommon thing to do.
Cheers,
Bruce
>
> Hans
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: remove /boot/uImage and /usr/share/terminfo
2013-03-15 14:41 ` Bruce Ashfield
@ 2013-03-15 15:36 ` Hans Beckérus
0 siblings, 0 replies; 5+ messages in thread
From: Hans Beckérus @ 2013-03-15 15:36 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 2262 bytes --]
On Fri, Mar 15, 2013 at 3:41 PM, Bruce Ashfield <
bruce.ashfield@windriver.com> wrote:
> On 13-03-15 07:36 AM, Hans Beckérus wrote:
>
>>
>>
>> On Fri, Mar 15, 2013 at 3:20 PM, Bruce Ashfield
>> <bruce.ashfield@windriver.com <mailto:bruce.ashfield@**windriver.com<bruce.ashfield@windriver.com>>>
>> wrote:
>>
>> On 13-03-15 06:33 AM, Hans Beckérus wrote:
>>
>> Hi. In an effort to shrink our rootfs by some major numbers we
>> found two
>> low-hanging fruits that we would like to address before cherry
>> picking
>> and removing lots of good linux functionality. We have no need
>> for the
>> uImage (3MB) stored in /boot and also we can leave out the
>> terminfo tree
>> (2.5MB).
>> My question here now is if the build system provide functionality
>> to
>> actually tell the image builder not to include these specific
>> components?
>>
>>
>> From kernel.bbclass, you just need to clear RDEPENDS_kernel-base
>> in your .conf files:
>>
>> # Allow machines to override this dependency if kernel image files are
>> # not wanted in images as standard
>> RDEPENDS_kernel-base ?= "kernel-image"
>>
>> You'll still get your kernel modules installed after making this
>> change.
>>
>> Bruce
>>
>>
>> Thanks Bruce.How could I have missed that? I believe I scanned through
>> the kernel.bbclass for something like this.
>> Also got some good tip regarding /usr/share/terminfo? Guess I need to
>> figure out what package drags it in ;)
>>
>
> Not off the top of my head. Hopefully someone else with experience in
> that area will notice the traffic and jump in :)
>
> I'm fairly certain that is is controllable, since in the past, I've
> known it to be removed and tuned for small systems, so it's not a
> completely uncommon thing to do.
>
> Cheers,
>
But of course. It is ncurses that drags it in. That figures ;)
It can be disabled in the configure script
--disable-database do not use terminfo, only fallbacks/termcap
So all it should take is to create a .bbappend and update EXTRA_OECONF.
But I might be wrong of course. Might be an even easier solution.
Hans
[-- Attachment #2: Type: text/html, Size: 2963 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-15 15:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-15 13:33 remove /boot/uImage and /usr/share/terminfo Hans Beckérus
2013-03-15 14:20 ` Bruce Ashfield
2013-03-15 14:36 ` Hans Beckérus
2013-03-15 14:41 ` Bruce Ashfield
2013-03-15 15:36 ` Hans Beckérus
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.