summaryrefslogtreecommitdiff
path: root/stand/forth
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-03-21 22:01:51 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-03-21 22:01:51 +0000
commit5ef2174a50709655163fbd8a81d0f76a24e04ad0 (patch)
tree6e88a5184028b6921ecd4f55b4217d5026b461de /stand/forth
parenta7defaea9a278c089f398cab247bc76b27d00442 (diff)
downloadsrc-test2-5ef2174a50709655163fbd8a81d0f76a24e04ad0.tar.gz
src-test2-5ef2174a50709655163fbd8a81d0f76a24e04ad0.zip
Notes
Diffstat (limited to 'stand/forth')
-rw-r--r--stand/forth/Makefile1
-rw-r--r--stand/forth/efi.4th13
-rw-r--r--stand/forth/loader.rc3
3 files changed, 16 insertions, 1 deletions
diff --git a/stand/forth/Makefile b/stand/forth/Makefile
index 08111682b723..a21661d01934 100644
--- a/stand/forth/Makefile
+++ b/stand/forth/Makefile
@@ -18,6 +18,7 @@ FILES+= brand-fbsd.4th
FILES+= check-password.4th
FILES+= color.4th
FILES+= delay.4th
+FILES+= efi.4th
FILES+= frames.4th
FILES+= loader.4th
FILES+= logo-beastie.4th
diff --git a/stand/forth/efi.4th b/stand/forth/efi.4th
index 7c1bdf30b8e1..4778b405455c 100644
--- a/stand/forth/efi.4th
+++ b/stand/forth/efi.4th
@@ -26,5 +26,16 @@
only forth definitions
-\ Place holder for more functions
+: efiboot? ( -- flag )
+ s" efi-version" getenv -1 <> dup if
+ swap drop ( c-addr flag -- flag )
+ then
+;
+
+: maybe-efi-resizecons
+ efiboot? if
+ efi-autoresizecons
+ then
+;
+
.( EFI boot environment) cr
diff --git a/stand/forth/loader.rc b/stand/forth/loader.rc
index 0bc66579cd0f..d898a7de6354 100644
--- a/stand/forth/loader.rc
+++ b/stand/forth/loader.rc
@@ -6,12 +6,15 @@
\
\ Includes additional commands
include /boot/loader.4th
+include /boot/efi.4th
try-include /boot/loader.rc.local
\ Reads and processes loader.conf variables
\ NOTE: Change to `initialize' if you enable the below boot menu
start
+maybe-efi-resizecons
+
\ Tests for password -- executes autoboot first if a password was defined
check-password