aboutsummaryrefslogtreecommitdiff
path: root/stand/Makefile.amd64
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-02-12 15:31:53 +0000
committerWarner Losh <imp@FreeBSD.org>2018-02-12 15:31:53 +0000
commit7cafeaa1fde93dbefa40971343bf9a3bb92f2ede (patch)
treee2a3d8fd463435f0fdb612dd21e5a419c76d0d1c /stand/Makefile.amd64
parent62bca778430f98fcd71ef01b9a7d525255c20a9f (diff)
downloadsrc-7cafeaa1fde93dbefa40971343bf9a3bb92f2ede.tar.gz
src-7cafeaa1fde93dbefa40971343bf9a3bb92f2ede.zip
Add Lua as a scripting langauge to /boot/loader
liblua glues the lua run time into the boot loader. It implements all the runtime routines that lua expects. In addition, it has a few standard 'C' headers that nueter various aspects of the LUA build that are too specific to lua to be in libsa. Many refinements from the original code to improve implementation and the number of included lua libraries. Use int64_t for lua_Number. Have "/boot/lua" be the default module path. Numerous cleanups from the original GSoC project, including hacking libsa to allow lua to be built with only one change outside luaconf.h. Add the final bit of lua glue to bring in liblua and plug into the multiple interpreter framework, previously committed. Add LOADER_LUA option, currently off by default. Presently, this is an experimental option. One must opt-in to using this by defining WITH_LOADER_LUA and WITHOUT_FORTH. It's been lightly tested, so keep a backup copy of your old loader handy. The menu code, coming in the next commit, hasn't been exhaustively tested. A LUA boot loader is 60k larger than a FORTH one, which is 80k larger than a no-interpreter one. Subtle changes in size may tip things past some subtle limit (the binary is ~430k now when built with LUA). A future version may offer coexistance. Bump FreeBSD version to 1200058 to mark the milestone. Pedro Souza's 2014 Summer of Code project. Rui Paulo, Pedro Arthur, Zakary Nafziger and Wojciech A. Koszek also contributed. Warner Losh reworked it extensively into its current form. Obtained from: https://wiki.freebsd.org/SummerOfCode2014/LuaLoader Sponsored by: Google Summer of Code Relnotes: Yes MFC After: 1 month Differential Review: https://reviews.freebsd.org/D14295
Notes
Notes: svn path=/head/; revision=329166
Diffstat (limited to 'stand/Makefile.amd64')
-rw-r--r--stand/Makefile.amd643
1 files changed, 3 insertions, 0 deletions
diff --git a/stand/Makefile.amd64 b/stand/Makefile.amd64
index 6e8c967378cb..2b742143fb33 100644
--- a/stand/Makefile.amd64
+++ b/stand/Makefile.amd64
@@ -7,6 +7,9 @@ SUBDIR+= zfs zfs32
.if ${MK_FORTH} != "no"
SUBDIR+= ficl32
.endif
+.if ${MK_LOADER_LUA} != "no"
+SUBDIR+= liblua32
+.endif
SUBDIR+= efi
SUBDIR+= userboot