aboutsummaryrefslogtreecommitdiff
path: root/bbl/bbl.ac
diff options
context:
space:
mode:
Diffstat (limited to 'bbl/bbl.ac')
-rw-r--r--bbl/bbl.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/bbl/bbl.ac b/bbl/bbl.ac
index dc3cf42..68780db 100644
--- a/bbl/bbl.ac
+++ b/bbl/bbl.ac
@@ -18,3 +18,8 @@ AC_ARG_WITH([payload], AS_HELP_STRING([--with-payload], [Set ELF payload for bbl
AC_ARG_WITH([logo], AS_HELP_STRING([--with-logo], [Specify a better logo]),
[AC_SUBST([BBL_LOGO_FILE], $with_logo, [Logo for bbl])],
[AC_SUBST([BBL_LOGO_FILE], [riscv_logo.txt], [Logo for bbl])])
+
+AC_ARG_ENABLE([boot-machine], AS_HELP_STRING([--enable-boot-machine], [Run payload in machine mode]))
+AS_IF([test "x$enable_boot_machine" == "xyes"], [
+ AC_DEFINE([BBL_BOOT_MACHINE],,[Define to run payload in machine mode])
+])