aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-10-24SECURITY.md: Add fileHEADmasterRichard Purdie
Add a SECURITY.md file with hints for security researchers and other parties who might report potential security vulnerabilities. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-29Add configure options to disable progress barPavel Zhukov
Progress bar can overlap with products logos, added --disable-progress-bar configure option to disable progress bar completely without patching the code. Default behaviour is to show progress bar Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-21Improve warnings from probing for double bufferingZach Welch
Adds missing newline characters in output, while clarifying that these messages are warnings that may be safely ignored. Signed-off-by: Zachary T Welch <zach.welch@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-15Update mailing list details since the move to groups.ioRoss Burton
Signed-off-by: Ross Burton <ross.burton@arm.com>
2020-03-02Fix psplash-systemd failuresScott Murray
To avoid racing on FIFO creation between psplash and psplash-systemd, enhance the systemd support by adding a call to sd_notify in psplash after the FIFO is created. That will alow setting the psplash-start systemd unit type to "notify" to avoid the race. Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-02Remove generated psplash-poky-img.hScott Murray
Since removing psplash-bar-img.h in commit f7a354d means that it will always need to be regenerated, go ahead and remove psplash-poky-img.h as well for consistency. Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-29Makefile.am: Fix out of tree buildsRichard Purdie
Out of tree builds were broken, fix the makefile path so it can find the image generation script. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Makefile.am: use BUILT_SOURCES instead of BUILD_SOURCESPierre-Jean Texier
Since commit f7a354dd7991bda57ab8b26d6491687d777f88da ("Generate image headers from their PNG source, while still including them in dist tarball") headers files are generated from autotools by using BUILD_SOURCES variable. But when generating header files, it is important to generate the files before the rest of the sources are compiled. So, the BUILT_SOURCES variable must be used in this case. Fixes: psplash.c:17:10: fatal error: psplash-bar-img.h: No such file or directory #include "psplash-bar-img.h" Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Generate image headers from their PNG source, while still including them in ↵Yann Dirson
dist tarball Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Import png source for images, extracted from headersYann Dirson
The prefered form for manipulating an image is the PNG source from which the C code was generated. These PNG were extracted by feeding data from the C headers to libpng. Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Cleanup poky logoYann Dirson
Make the shipped logo used as source for psplash-poky-img.h to have the name expected by make-image-header.sh, and remove unused logo. Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Add configure flags for fullscreen logo and no startup messageAndrei Gherzan
Signed-off-by: Andrei Gherzan <agherzan@hanoverdisplays.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Double buffering supportAndrei Gherzan
'psplash' uses only one buffer which can cause tearing artifacts. This change uses the FBIOPAN_DISPLAY ioctl as a way to handle page flipping and also does that after a vsync interrupt to remove any tearing issues. Signed-off-by: Andrei Gherzan <agherzan@hanoverdisplays.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Support --with-font configure option to use other font headersDavid Steinberg
Signed-off-by: David Steinberg <david@sonabuzz.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Add SPDX License information to files, drop boilerplateRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21add systemd supportStefan Agner
This adds optional systemd support. When enabled, an utility called psplash-systemd is built. This tool will connect to systemd using the system bus to obtain progress information and communicate that to psplash. Once full boot progress is reported by systemd psplash psplash is closed using the quit command. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-20process consecutive commandsStefan Agner
Process consecutive commands separated by null-termations. Since it is a FIFO, in theory, two commands can be queued from two independent calls to psplash-write. This also makes the command parser more robust. With this code, sequences like this get parsed just fine: echo -e "\nPROGRESS 10\n\0\nQUIT" > /run/psplash_fifo Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-20use /run for communication FIFOStefan Agner
Use /run for communication FIFO which is typically preserved between initramfs and regular root file system. Introduce a new environment variable PSPLASH_FIFO_DIR which allows to pass /tmp for the old behavior or another directory. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-20add recovered bar.pngStefan Agner
While the source files for the main splash image is present in the source folder base-image, the progress bar isn't. This patch adds the bar.png recovered from the RLE data in the bar header file. The tool make-image-header.sh allows to translate this png back the the header exactly. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-02Fix text width calculation.Kevin Corry
Psplash: Fix text width calculation. Using the "psplash-write MSG <message_text>" command, you can display messages when the splash screen is running. As part of this, psplash needs to calculate the height and width of the box to render on the screen to hold the text (which will appear on top of the background image), which it does in the psplash_fb_text_size() function in psplash-fb.c. If the message contains multiple lines (i.e. it contains one or more newline characters), then it looks like the intention is for psplash to use the length of the longest single line as the width of this text box. However, there's a bug in this calculation that leads to some multi-line messages being rendered off the left edge of the screen, instead of properly centered. To fix this, each time a newline is encountered, if the width of the current line (w) is greater than the maximum line width (mw), update the maximum width. Also, reset the current line width to zero so we can correctly calculate the width of the next line. Signed-off-by: Kevin Corry <kevin@corry.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-05Add --fbdev option to psplash like --rotation.Julien Gueytat
A new fbdev file is needed and should be overrided if needed. The number contained in fbdev will be used as X in /dev/fbX. By overriding fbdev you can have a splash screen on another framebuffer than /dev/fbO. The getenv(FBDEV) line has been replaced by this option since the environment variables are not read yet when psplash starts. Signed-off-by: Julien Gueytat <contact@jgueytat.fr> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-05Fix indendation.Julien Gueytat
Signed-off-by: Julien Gueytat <contact@jgueytat.fr> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash: fix remaining unused-parameter warningsRichard Leitner
Define UNUSED macro for GCC's ((__unused__)) attribute and use it for the remaining unused-parameter warnings. These unused parameters are required due to the definition of the sighandler_t. This fixes following unused-parameter warnings: psplash.c: In function 'psplash_exit': psplash.c:36:19: warning: unused parameter 'signum' [-Wunused-parameter] psplash-console.c: In function 'vt_request': psplash-console.c:27:17: warning: unused parameter 'sig' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash: remove unused parameter length from parse_commandRichard Leitner
This fixes following unused-parameter warning: psplash.c: In function 'parse_command': psplash.c:105:49: warning: unused parameter 'length' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash-fb: remove unused parameter from psplash_fb_text_sizeRichard Leitner
This fixes following unused-parameter warning: psplash-fb.c: In function 'psplash_fb_text_size': psplash-fb.c:464:43: warning: unused parameter 'fb' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash-fb: fix sign-compare warningRichard Leitner
Cast font->index[i] to wchar_t for the comparison. This fixes following sign-compare warning: psplash-fb.c: In function 'psplash_font_glyph': psplash-fb.c:452:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14configure: add -Wextra GCC flagRichard Leitner
Enable extra warnings when using GCC. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13README: add "Contributing" guidelineRichard Leitner
The "Contributing" guideline section should help people sending their patches correctly. A similar section is available in nearly all layers/repositories hosted on yoctoproject.org. Therefore add it also the the psplash repository. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13add initial .gitignoreRichard Leitner
This initial version of .gitignore contains all files created during a build. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13AUTHORS: add list of git commit authorsRichard Leitner
Added an initial AUTHORS list in alphabetical order, created with following commandline: git log --format='%aN <%aE>' | sort -u Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-11-24psplash: remove unused variableRoss Burton
2015-11-24Add GPLv2+ copyright fileRoss Burton
2015-11-24autogen: remove, autoreconf exists nowRoss Burton
2015-11-24configure: remove AM_MAINTAINER_MODERoss Burton
2015-11-24psplash-fb: Convert psplash_fb_plot_pixel() to a static inlineKhem Raj
This function is not used outside psplash-fb.c and by making it static inline we keep the performance and also make it portable across multiple compilers and gcc versions Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-11-24psplash-fb.c: Fix some endian issuesJuro Bystricky
The routine psplash_fb_plot_pixel implicitly assumed little endian format when plotting pixels in RGB888 or BGR888 modes. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2015-11-24psplash-fb.c: Fix BGR888 detectionJuro Bystricky
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2014-10-31Make appearance more configurableOlaf Mandel
* Allow not showing the startup message * Make the screen-split (between image and progress bar) configurable * Allow for fullscreen image (overlaid by progress bar) Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
2014-10-31Images: handle rowstride != width*bytes_per_pixelOlaf Mandel
Up till now, image data with a rowstride larger than the value expected from width and bytes_per_pixel caused a trapezoid distortion of the displayed image. Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
2012-08-14make-image-header: set -e so that errors are noticedRoss Burton
2012-07-10Fix for psplash segmentation faultAws Ismail
Fix segmentation fault when passing -a without angel value. When psplash -a is called instead of psplash -a<angle value> it will segmentation fault calling out of bound argv[]. git://git.yoctoproject.org/psplash Signed-of-by: Aws Ismail<aws.ismail@windriver.com> -----------------------------------------------------------------
2012-05-10Make it easier to customise coloursTomas Frydrych
This commit moves colour definitions to psplash-colors.h so that the colour scheme can be easily modified by replacing this file rather than having to maintain a patch. Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-07-13psplash: Apply logo centering patch from Paul SokolovskyRichard Purdie
2009-05-28psplash: Fix so the code honours whatever bit order the display reports with ↵Richard Purdie
fast paths for the most common cases.
2009-05-25psplash: really fix R&B bit swappingRichard Purdie
2009-05-19psplash: Fix image byte order, add master copy of underlying logo imageRichard Purdie
2009-05-19* psplash-fb.c:Richard Purdie
* psplash-poky-img.h: * psplash.c * Makefile.am: Fix colour read order from RLE images (R & B swapped) Add handling for alpha channel in images Update the Poky RLE image Change the OpenedHand logo for the Poky one
2008-11-10psplash: Fix Changelog's last entry date.Samuel Ortiz
2008-11-10psplash: Update Changelog.Samuel Ortiz
2008-11-10psplash: unlink the FIFO and switch the console back when no fb is foundSamuel Ortiz