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 6faf55c86d9b86f40de8d19970e42cb42a892c47)
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 0921a771da8a9117edf26352a8a047bacbfcee45)
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 60e199d9fde1c3c60a96b969bf6982278cbc1e88)
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 061b68a76030f4147f5a30e60ab5f4296c1376b7)
2024-04-16 13:54:23 -06:00