freebsd-dev/stand
Kyle Evans 9937e97979 lualoader: Re-work menu skipping bits
This is motivated by a want to reduce heap usage if the menu is being
skipped. Currently, the menu module must be loaded regardless of whether
it's being skipped or not, which adds a cool ~50-100KB worth of memory
usage.

Move the menu skip logic out to core (and remove a debug print), then check
in loader.lua if we should be skipping the menu and avoid loading the menu
module entirely if so. This keeps our memory usage below ~115KB for a boot
with the menu stripped.

Also worth noting: with this change, we no longer explicitly invoke autoboot
if we're skipping the menu. Instead, we let the standard loader behavior
apply: try to autoboot if we need to, then drop to a loader prompt if not or
if the autoboot sequence is interrupted. The only thing we still handle
before dropping to the loader autoboot sequence is loadelf(), so that we can
still apply any of our kernel loading behavior.
2018-02-26 15:37:32 +00:00
..
arm Go back to one loader.conf 2018-02-26 03:16:47 +00:00
arm64
common load_elf.c: Use consistent indentation 2018-02-21 19:42:54 +00:00
defaults loader.conf is loader agnostic, so remove 4th references. 2018-02-26 03:16:57 +00:00
efi Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
fdt Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl32
forth Go back to one loader.conf 2018-02-26 03:16:47 +00:00
geli Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
i386 Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua liblua: Implement write support 2018-02-24 02:57:24 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libsa liblua: Implement write support 2018-02-24 02:57:24 +00:00
libsa32
lua lualoader: Re-work menu skipping bits 2018-02-26 15:37:32 +00:00
man
mips Go back to one loader.conf 2018-02-26 03:16:47 +00:00
ofw Fix regression introduced in r328806, preventing boot at least on all 2018-02-03 23:49:21 +00:00
powerpc Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
sparc64 Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
uboot Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
usb Move the stand/usb test loader into its own directory. 2018-02-07 19:20:59 +00:00
userboot libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
zfs libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
zfs32
defs.mk Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
fdt.mk
ficl.mk Now that we no longer conditionally compile some files outside of ficl 2018-02-02 15:01:54 +00:00
loader.mk Consolidate three copies of ZFS commands into a central location. 2018-02-21 15:57:36 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile Go back to one loader.conf 2018-02-26 03:16:47 +00:00
Makefile.amd64 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386 Switch to proper MK_LOADER_GELI tests. 2017-12-04 01:14:12 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
Makefile.mips
Makefile.powerpc
Makefile.sparc64
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00