aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.ac1
-rw-r--r--bbl/bbl.mk.in5
2 files changed, 6 insertions, 0 deletions
diff --git a/bbl/bbl.ac b/bbl/bbl.ac
index b803ae9..dc3cf42 100644
--- a/bbl/bbl.ac
+++ b/bbl/bbl.ac
@@ -2,6 +2,7 @@
AC_ARG_ENABLE([logo], AS_HELP_STRING([--enable-logo], [Enable boot logo]))
AS_IF([test "x$enable_logo" == "xyes"], [
+ AC_SUBST([BBL_ENABLE_LOGO], 1)
AC_DEFINE([PK_ENABLE_LOGO],,[Define if the RISC-V logo is to be displayed])
])
diff --git a/bbl/bbl.mk.in b/bbl/bbl.mk.in
index 01c06c5..f91dfbf 100644
--- a/bbl/bbl.mk.in
+++ b/bbl/bbl.mk.in
@@ -23,8 +23,13 @@ bbl_payload: $(BBL_PAYLOAD)
raw_logo.o: bbl_logo_file
+ifeq (@BBL_ENABLE_LOGO@,1)
bbl_logo_file: @BBL_LOGO_FILE@
cat $^ | sed 's/$$/\r/' > $@
+else
+bbl_logo_file:
+ touch $@
+endif
bbl_test_srcs =