On Fri, 24 Nov 2023 16:50:04 +0000, Alex Kiernan wrote:
> > > tzdata.bb by default pulls in all possible timezone data packages which
> > > increases size of the final root filesystem considerably.
> > > The customer would like to have extra timezones configurable so that only
> > > tzdata-core is chosen by default and rest of the zones are optional.
> > > This change would make the fs size a lot smaller.
> > >
> > > Comparison of customized package volume before and after:
> > > When TZ_PACKAGES contains all tzdata packets, the image size of tzdata is 
> > > 7.4MB.
> > > The difference in mirror size between the two is 7MB.
> > >
> > > When TZ_PACKAGES only retains one tzdata-core, the image size generated by
> > > tzdata is 320KB.
> > >
> > > Signed-off-by: Lizhi Xu <lizhi...@windriver.com>
> >
> > I get what you're trying to do, but this looks horrid. How about
> > splitting into multiple packages based on top level directory (plus
> > the few which sit in the top level directory) using a new
> > PACKAGESPLITFUNCS so you don't have to hardcode the list of packages?
> >
> 
> Foolishly, I didn't actually look at what was in the tzdata recipe
> first and it already splits things... I'm lost, can't you just remove
> things from TZ_PACKAGES to get what you're after?
To achieve a final reduction in the size of the tzdata package, simply 
configuring 
TZ_PACKAGES is not enough. It is also necessary to delete the corresponding 
zoneinfo 
when generating the final package, this requires performing the corresponding 
deletion 
operation in the do_install() task simultaneously, which is too complex for 
users. 

Therefore, this patch is provided to simplify the step of reducing package size.
After applying this patch, users only need to modify the OP_TZ in tzd.inc to 
determine which time zones are needed in the final generated package, in order
to facilitate customization of the final size of the tzdata package.

Thanks,
Lizhi
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191333): 
https://lists.openembedded.org/g/openembedded-core/message/191333
Mute This Topic: https://lists.openembedded.org/mt/102777104/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to