]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: improve the design of the brand-/logo- mechanism
authorkevans <kevans@FreeBSD.org>
Sun, 4 Oct 2020 22:41:43 +0000 (22:41 +0000)
committerkevans <kevans@FreeBSD.org>
Sun, 4 Oct 2020 22:41:43 +0000 (22:41 +0000)
commit33583454c2ad32ecfe7e8f8dc3019d9ad42f9660
tree1864d146a41099c3745e2af8f2b9eb56bd40aed8
parentbb968a50b4093d87265eeb4ba3c8374012934d7f
lualoader: improve the design of the brand-/logo- mechanism

In the previous world order, any brand/logo was forced to pull in the
drawer and call drawer.add{Brand,Logo} with the name their brand/logo is
taking and a table describing it.

In the new world order, these files just need to return a table that maps
out graphics types to a table of the exact same format as what was
previously being passed back into the drawer. The appeal here is not needing
to grab a reference back to the drawer module and having a cleaner
data-driven looking format for these. The format has been renamed to 'gfx-*'
prefixes and each one can provide a logo and a brand.

drawer.addBrand/drawer.addLogo will remain in place until FreeBSD 13, as
there's no overhead to them and it's not yet worth the break in
compatibility with any pre-existing brands and logos.

Reviewed by: freqlabs
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24966
ObsoleteFiles.inc
stand/lua/Makefile
stand/lua/drawer.lua
stand/lua/gfx-beastie.lua [moved from stand/lua/logo-beastie.lua with 59% similarity]
stand/lua/gfx-beastiebw.lua [moved from stand/lua/logo-beastiebw.lua with 65% similarity]
stand/lua/gfx-fbsdbw.lua [moved from stand/lua/logo-fbsdbw.lua with 74% similarity]
stand/lua/gfx-orb.lua [moved from stand/lua/logo-orb.lua with 60% similarity]
stand/lua/gfx-orbbw.lua [moved from stand/lua/logo-orbbw.lua with 68% similarity]