Hi,

On Tue, Jul 31, 2018 at 08:54:14AM +0000, Baeuerle, Florian wrote:
> the approach works for me, at least for completely selecting or deselecting
> a font via collection. You have to select MENU_FONTS and XORG_FONT_TTF as
> module. I have a package which then selects noto fonts as dependency.
> 
> When deselecting this package in a collection, I end up with a rootfs
> containing no fonts. When selecting the package, I have the font.
> 
> I admittedly did not check all scenarios and corner cases, like (de)selecting
> a subset of fonts via collection.
> 
> We really need such a feature because we have products with and without
> display and the latter ones do not have enough NAND to contain the fonts.
> 
> 
> The solution might be ugly but it solves a problem.
> 
> If you have other ideas, I'd be willing to discuss and eventually implement
> them, because we really want to be able to (de)select fonts via collection.

If only want to switch from 'some fonts' to 'no fonts', then the goal
should be to leave the individual font packages as 'bool' and only change
MENU_XORG_FONTS/XORG_FONTS to tristate.

However, that's currently not quite that simple because xorg-fonts provides
the dependencies. Hmmm, try this for the font packages:

ifdef PTXCONF_XORG_FONTS
PACKAGES-$(PTXCONF_XORG_FONT_<SOMETHING>) += xorg-font-<something>
endif

Then the packages should be skipped if XORG_FONTS is not selected in the
collection.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to