Commit graph

4 commits

Author SHA1 Message Date
Warner Losh
204a5c85ab loader: rename gfx_interp_md to gfx_interp_ref
We have the call to gfx_interp_ref to bring in the .o so that we get the
linker set item to add the language bindings at the right time. Where we
call it is not the right time... So the _ref name is better. Change it
before we have too many others like it.

Sponsored by:		Netflix

(cherry picked from commit 6faf55c86d)
2024-04-16 13:54:27 -06:00
Warner Losh
94e1374b55 loader: Move to using linker sets to bring in optional bits
The graphics stuff is optional. When it is pulled into the system, we
use a linker set to initialize the lua bindings for it now.

Sponsored by:		Netflix
Reviewed by:		kevans, jhb
Differential Revision:	https://reviews.freebsd.org/D43906

(cherry picked from commit 0921a771da)
2024-04-16 13:54:24 -06:00
Warner Losh
ab3aa90b70 loader: Add prototype for gfx_interp_md
This function will be used to draw in the graphics bindings when the
loader is compiled with graphics (gfx) support. Provide definitions
for lua and the simple interpreter. 4th support is forthcoming.

Sponsored by:		Netflix
Reviewed by:		kevans, jhb
Differential Revision:	https://reviews.freebsd.org/D43903

(cherry picked from commit 60e199d9fd)
2024-04-16 13:54:23 -06:00
Warner Losh
8929f8454f loader: Separate gfx to a new file.
Move gfx lua hook registration to a new file.

Sponsored by:		Netflix
Reviewed by:		kevans, jhb
Differential Revision:	https://reviews.freebsd.org/D43901

(cherry picked from commit 061b68a760)
2024-04-16 13:54:23 -06:00