53 lines
1.7 KiB
Makefile
53 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
PKG_NAME="plymouth-lite"
|
|
PKG_VERSION="0.6.0"
|
|
PKG_SHA256="fa7b581bdd38c5751668243ff9d2ebaee7c45753358cbb310fb50cfcd3a8081b"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://www.meego.com"
|
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
|
PKG_DEPENDS_INIT="toolchain ccache:init libpng"
|
|
PKG_DEPENDS_TARGET="toolchain libpng"
|
|
PKG_LONGDESC="Boot splash screen based on Fedora's Plymouth code"
|
|
|
|
if [ "$UVESAFB_SUPPORT" = yes ]; then
|
|
PKG_DEPENDS_INIT="$PKG_DEPENDS_INIT v86d:init"
|
|
fi
|
|
|
|
pre_configure_init() {
|
|
# plymouth-lite dont support to build in subdirs
|
|
cd $PKG_BUILD
|
|
rm -rf .$TARGET_NAME-init
|
|
}
|
|
|
|
makeinstall_init() {
|
|
mkdir -p $INSTALL/usr/bin
|
|
cp ply-image $INSTALL/usr/bin
|
|
|
|
mkdir -p $INSTALL/splash
|
|
find_file_path splash/splash.conf && cp ${FOUND_PATH} $INSTALL/splash
|
|
find_file_path "splash/splash-*.png" && cp ${FOUND_PATH} $INSTALL/splash
|
|
}
|
|
|
|
pre_configure_target() {
|
|
# plymouth-lite dont support to build in subdirs
|
|
cd $PKG_BUILD
|
|
rm -rf .$TARGET_NAME-init
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/config/splash
|
|
|
|
find_file_path "splash/splash-*.png" && cp ${FOUND_PATH} ${INSTALL}/usr/config/splash
|
|
|
|
mkdir -p ${INSTALL}/usr/share/bootloader
|
|
if [ "${DEVICE}" == "RG351P" ]; then
|
|
find_file_path "splash/splash-480.bmp" && cp ${FOUND_PATH} ${INSTALL}/usr/share/bootloader/logo.bmp
|
|
elif [ "${DEVICE}" == "RG351V" ] || [ "${DEVICE}" == "RG351MP" ] ; then
|
|
find_file_path "splash/splash-640.bmp" && cp ${FOUND_PATH} ${INSTALL}/usr/share/bootloader/logo.bmp
|
|
elif [ "${DEVICE}" == "RG552" ]; then
|
|
find_file_path "splash/splash-1152.bmp" && cp ${FOUND_PATH} ${INSTALL}/usr/share/bootloader/logo.bmp
|
|
fi
|
|
}
|