added my Recipes
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# Copyright (C) 2014, STMicroelectronics - All Rights Reserved
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Basic splash screen which display a picture on DRM/KMS"
|
||||
LICENSE = "MIT"
|
||||
DEPENDS = "libdrm pkgconfig-native libpng pixman"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
SRC_URI = " \
|
||||
file://image_header.h \
|
||||
file://basic_splash_drm.c \
|
||||
file://Makefile \
|
||||
file://psplash-drm-quit \
|
||||
"
|
||||
|
||||
SRC_URI += " file://psplash-drm-start.service "
|
||||
|
||||
PROVIDES = "virtual/psplash"
|
||||
RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
|
||||
SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','psplash-drm-start.service ','',d)}"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
|
||||
do_compile() {
|
||||
bbnote "EXTRA_OEMAKE=${EXTRA_OEMAKE}"
|
||||
oe_runmake clean
|
||||
oe_runmake psplash
|
||||
}
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 ${WORKDIR}/psplash-drm ${D}${bindir}
|
||||
|
||||
install -m 755 ${WORKDIR}/psplash-drm-quit ${D}${bindir}
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 644 ${WORKDIR}/*.service ${D}/${systemd_unitdir}/system
|
||||
fi
|
||||
}
|
||||
FILES:${PN} += "${systemd_unitdir}/system "
|
||||
@@ -0,0 +1,16 @@
|
||||
SPLASH_IMG ?= OpenSTLinux_background_480x272.png
|
||||
SPLASH_IMG_ROT ?= OpenSTLinux_background_480x272_rotation.png
|
||||
|
||||
all: modeset
|
||||
|
||||
generate_header: $(SPLASH_IMG) $(SPLASH_IMG_ROT)
|
||||
@gdk-pixbuf-csource --macros $(SPLASH_IMG) > image_header.tmp
|
||||
@(sed -e "s/MY_PIXBUF/SPLASH_IMG/g" -e "s/guint8/uint8_t/g" image_header.tmp > image_header.h && rm image_header.tmp)
|
||||
@gdk-pixbuf-csource --macros $(SPLASH_IMG_ROT) > image_header.tmp
|
||||
@(sed -e "s/MY_PIXBUF/SPLASH_IMG_ROT/g" -e "s/guint8/uint8_t/g" image_header.tmp >> image_header.h && rm image_header.tmp)
|
||||
|
||||
psplash:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o psplash-drm basic_splash_drm.c -I. `pkg-config --cflags --libs libdrm pixman-1 libpng` -Wall -Os
|
||||
|
||||
clean:
|
||||
rm -rf psplash-drm
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
PSPLASH_PID=`pidof psplash-drm`
|
||||
if [[ ! -z $PSPLASH_PID ]]; then
|
||||
echo -n "Stop psplash: "
|
||||
echo QUIT > /tmp/splash_fifo
|
||||
#kill -9 $PSPLASH_PID
|
||||
echo "done."
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Starts Psplash Boot screen
|
||||
#Wants=systemd-remount-fs.service
|
||||
#After=systemd-vconsole-setup.service systemd-udev-trigger.service systemd-udevd.service
|
||||
After=systemd-remount-fs.service
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
KillMode=mixed
|
||||
SendSIGKILL=no
|
||||
ExecStart=/usr/bin/psplash-drm -w
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
Reference in New Issue
Block a user