7ab915fe4c
Add an configuration to use personalized png image. If the configuration is empty we keep the psplash default image. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> [Arnout: use ifneq condition instead of $(if ...)] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# psplash
|
|
#
|
|
################################################################################
|
|
|
|
PSPLASH_VERSION = fd33a9b3d68c89fa22ff6873f4f9fd28bd85830c
|
|
PSPLASH_SITE = git://git.yoctoproject.org/psplash
|
|
PSPLASH_LICENSE = GPL-2.0+
|
|
PSPLASH_LICENSE_FILES = COPYING
|
|
PSPLASH_AUTORECONF = YES
|
|
PSPLASH_DEPENDENCIES = host-gdk-pixbuf host-pkgconf
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
PSPLASH_DEPENDENCIES += systemd
|
|
PSPLASH_CONF_OPTS += --with-systemd
|
|
else
|
|
PSPLASH_CONF_OPTS += --without-systemd
|
|
endif
|
|
|
|
PSPLASH_IMAGE = $(call qstrip,$(BR2_PACKAGE_PSPLASH_IMAGE))
|
|
|
|
ifneq ($(PSPLASH_IMAGE),)
|
|
define PSPLASH_COPY_IMAGE
|
|
cp $(PSPLASH_IMAGE) $(@D)/base-images/psplash-poky.png
|
|
endef
|
|
|
|
PSPLASH_POST_EXTRACT_HOOKS += PSPLASH_COPY_IMAGE
|
|
endif
|
|
|
|
define PSPLASH_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 644 package/psplash/psplash-start.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/psplash-start.service
|
|
|
|
$(INSTALL) -D -m 644 package/psplash/psplash-systemd.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/psplash-systemd.service
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|