<div dir="ltr">On 1 February 2018 at 12:55, Daniel F. Dickinson <span dir="ltr">&lt;<a href="mailto:cshored@thecshore.com" target="_blank">cshored@thecshore.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m wondering if is doable and would be accepted to add a &quot;tiny&quot; DISTRO_FEATURE that automatically does PACKAGECONFIG += &quot;tiny&quot;, and<br>
packages which honour this make choices that build smaller editions and/or create smaller binary sub-packages than default (i.e. things that can be split out of build packages are, so that a -core or -base package has only the minimum, and a one uses metapackages to install expected packaging (so ${PN} would by default RDEPEND on ${PN}-base and other sub-packages (or other recipes packages/sub-packages) that give the &#39;usual&#39; use case for the package, but can be managed in parts for systems that are quite small.<br>
<br>
Or is the splitting into sub-parts preferred anyway and patches to make smaller splits would accepted relatively easily, but usually just don&#39;t get done because it&#39;s more work to have more sub-packages and so it just doesn&#39;t get done to the level a project like OpenWrt pieces things up, and OpenEmbedded usually has more space available than a typical OpenWrt device?<br>
<br>
I think PACKAGECONFIG[tiny] would really translate into different things in different packages (hence the idea of having a top-level flag that<br>
makes it easier to do across the board rather than having to specify specific flags for each recipe, except in exceptional circumstances), although something like nossl should perhaps be a separate top-level flag since even if you want small you probably want some kind of ssl, but there may be relevant use cases where nossl would be wanted but isn&#39;t just about size.  With -tiny one could perhaps emphasize the choice of smaller SSL libraries like mbedtls and wolfssl (cyassl) when they are an option and warn (or refuse to build) if a big library like openssl can&#39;t be avoided.<br></blockquote><div><br></div><div>I feel that DISTRO_FEATURES=tiny is too coarse: you may want a tiny busybox but a fully-featured wget, or whatever.</div><div><br></div><div>Also PACKAGECONFIG[tiny] doesn&#39;t really explain *what* it&#39;s doing, and may end up doing many things at once.  Does a tiny systemd disable networkd? What if you want as tiny as possible, but with networkd?</div><div><br></div><div>Fine grained PACKAGECONFIGs and/or subpackages as appropriate are definitely the way forwards in my opinion.</div><div><br></div><div>Ross</div></div></div></div>