Skip to content

Update Makefile to use modern iteration#42

Closed
WolfWings wants to merge 2 commits intofcambus:masterfrom
WolfWings:patch-1
Closed

Update Makefile to use modern iteration#42
WolfWings wants to merge 2 commits intofcambus:masterfrom
WolfWings:patch-1

Conversation

@WolfWings
Copy link

The current Makefile uses some vendor-specific method of looping over the SIZES variable.

This updates it to use normal Makefile pattern substitution design which is more universally compatible and also can be run fully in parallel.

I also modified the PSF and OTF generation to integrate appropriate size filters with comments explaining why.

While some other OS platforms support the 32x64 font size that is not supported by the Linux kernel as it has a hard limit on console fonts of 32x32 due to internal implementation details.

The current Makefile uses some vendor-specific method of looping over the SIZES variable.

This updates it to use normal Makefile pattern substitution design which is more universally compatible and also can be run fully in parallel.

I also modified the PSF and OTF generation to integrate appropriate size filters with comments explaining why.

While some other OS platforms support the 32x64 font size that is not supported by the Linux kernel as it has a hard limit on console fonts of 32x32 due to internal implementation details, see: torvalds/linux@2b09d5d
Turns out Linux Kernel 6.12 and newer w/ kbd 2.6.0 or higher CAN load the 32x64 or larger (up to 64x128) fonts.

Also removing remnant error purging code that was filtering out the 'missing glyph' warnings bdf2psf was generating when I was scripting testing locally.
@fcambus
Copy link
Owner

fcambus commented Jun 18, 2025

There seems to be issues with spaces vs TAB preventing this to work out of the box but even with it fixed it doesn't seem to work when I tested with both BSD Make and GNU Make.

What platform did you test your changes on?

@fcambus
Copy link
Owner

fcambus commented Jan 12, 2026

I took some time to rework the Makefile with the goal of full compatibility between BSD Make and GNU Make.

Thanks for raising the portability issue in the first place.

@fcambus fcambus closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants