Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenly pi gadget #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
bin_PROGRAMS=psplash psplash-write

AM_CFLAGS = $(GCC_FLAGS) -D_GNU_SOURCE
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 \
psplash-colors.h psplash-config.h \
psplash-poky-img.h psplash-bar-img.h radeon-font.h
psplash-poky-img.h psplash-bar-img.h $(FONT_NAME)-font.h
BUILT_SOURCES = psplash-poky-img.h psplash-bar-img.h

psplash_write_SOURCES = psplash-write.c psplash.h

if HAVE_SYSTEMD
psplash_CPPFLAGS = $(SYSTEMD_CFLAGS) -DHAVE_SYSTEMD
psplash_LDFLAGS= $(SYSTEMD_LIBS)
bin_PROGRAMS += psplash-systemd
psplash_systemd_CPPFLAGS = $(SYSTEMD_CFLAGS)
psplash_systemd_LDFLAGS= $(SYSTEMD_LIBS)
psplash_systemd_SOURCES = psplash-systemd.c psplash.h
endif

EXTRA_DIST = make-image-header.sh

MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.sub configure depcomp install-sh ltmain.sh Makefile.in missing

snapshot:
$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

psplash-bar-img.h: base-images/psplash-bar.png
$(top_srcdir)/make-image-header.sh $< BAR
psplash-poky-img.h: base-images/psplash-poky.png
$(top_srcdir)/make-image-header.sh $< POKY

Binary file removed base-images/poky-logo.png
Binary file not shown.
Binary file added base-images/psplash-bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base-images/psplash-hand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
33 changes: 33 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,41 @@ if test "x$GCC" = "xyes"; then
GCC_FLAGS="-g -Wall -Wextra"
fi

AC_ARG_WITH([systemd], AS_HELP_STRING([--with-systemd], [Build with systemd
support]))

AS_IF([test "x$with_systemd" = "xyes"], [
PKG_CHECK_MODULES(SYSTEMD, libsystemd >= 221)
])

AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemd" = "xyes"])

AC_SUBST(GCC_FLAGS)

AC_ARG_WITH([font],
AS_HELP_STRING([--with-font], [Set font to use (default is 'radeon')]),
[FONT_NAME=$withval],
[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
])
3 changes: 3 additions & 0 deletions make-image-header.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
#
# SPDX-License-Identifier: GPL-2.0-or-later
#

set -e

Expand Down
47 changes: 0 additions & 47 deletions psplash-bar-img.h

This file was deleted.

10 changes: 1 addition & 9 deletions psplash-colors.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@
* Copyright (c) 2012 sleep(5) ltd
* Author: Tomas Frydrych <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* SPDX-License-Identifier: GPL-2.0-or-later
*
*/

Expand Down
14 changes: 4 additions & 10 deletions psplash-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,20 @@
* Copyright (c) 2014 MenloSystems GmbH
* Author: Olaf Mandel <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* SPDX-License-Identifier: GPL-2.0-or-later
*
*/

#ifndef _HAVE_PSPLASH_CONFIG_H
#define _HAVE_PSPLASH_CONFIG_H

/* Text to output on program start; if undefined, output nothing */
#define PSPLASH_STARTUP_MSG ""
#define PSPLASH_STARTUP_MSG "Setting up the system. This might take up to 15 minutes."

/* 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
Expand Down
10 changes: 1 addition & 9 deletions psplash-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
*
* Copyright (c) 2006 Matthew Allum <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* SPDX-License-Identifier: GPL-2.0-or-later
*
*/

Expand Down
10 changes: 1 addition & 9 deletions psplash-console.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
*
* Copyright (c) 2006 Matthew Allum <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* SPDX-License-Identifier: GPL-2.0-or-later
*
*/

Expand Down
Loading