aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <agherzan@hanoverdisplays.com>2019-12-17 10:22:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-21 13:18:03 +0000
commit773a3977d255e8f59a741ad6ce37c4d40f1feaa1 (patch)
treee44d7a2f5a2d52e242e53dfe799d185d74f88737
parent2913c24920a984331685eaa528f6b29c18e285c8 (diff)
downloadpsplash-773a3977d255e8f59a741ad6ce37c4d40f1feaa1.tar.gz
psplash-773a3977d255e8f59a741ad6ce37c4d40f1feaa1.tar.bz2
psplash-773a3977d255e8f59a741ad6ce37c4d40f1feaa1.zip
Add configure flags for fullscreen logo and no startup message
Signed-off-by: Andrei Gherzan <agherzan@hanoverdisplays.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac18
-rw-r--r--psplash-config.h4
3 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 7e0b23e..4bf0736 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=psplash psplash-write
-AM_CFLAGS = $(GCC_FLAGS) -D_GNU_SOURCE -DFONT_HEADER=\"$(FONT_NAME)-font.h\" -DFONT_DEF=$(FONT_NAME)_font
+AM_CFLAGS = $(GCC_FLAGS) $(EXTRA_GCC_FLAGS) -D_GNU_SOURCE -DFONT_HEADER=\"$(FONT_NAME)-font.h\" -DFONT_DEF=$(FONT_NAME)_font
psplash_SOURCES = psplash.c psplash.h psplash-fb.c psplash-fb.h \
psplash-console.c psplash-console.h \
diff --git a/configure.ac b/configure.ac
index c2807f7..2d836a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,24 @@ AC_ARG_WITH([font],
[FONT_NAME=radeon])
AC_SUBST([FONT_NAME])
+AC_ARG_ENABLE([startup-msg],
+ AS_HELP_STRING([--disable-startup-msg], [Disable text banner output on startup]),
+ [disable_startup_msg=true],
+ [disable_startup_msg=false])
+AS_IF([test x$disable_startup_msg = xtrue], [
+ EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_DISABLE_STARTUP_MSG"
+])
+
+AC_ARG_ENABLE([img-fullscreen],
+ AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in fullscreen mode)]),
+ [img_fullscreen=true],
+ [img_fullscreen=false])
+AS_IF([test x$img_fullscreen = xtrue], [
+ EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
+])
+
+AC_SUBST(EXTRA_GCC_FLAGS)
+
AC_OUTPUT([
Makefile
])
diff --git a/psplash-config.h b/psplash-config.h
index 036b8ea..0ba8440 100644
--- a/psplash-config.h
+++ b/psplash-config.h
@@ -12,10 +12,14 @@
#define _HAVE_PSPLASH_CONFIG_H
/* Text to output on program start; if undefined, output nothing */
+#ifndef PSPLASH_DISABLE_STARTUP_MSG
#define PSPLASH_STARTUP_MSG ""
+#endif
/* Bool indicating if the image is fullscreen, as opposed to split screen */
+#ifndef PSPLASH_IMG_FULLSCREEN
#define PSPLASH_IMG_FULLSCREEN 0
+#endif
/* Position of the image split from top edge, numerator of fraction */
#define PSPLASH_IMG_SPLIT_NUMERATOR 5