mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
bcm2835-driver: port to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d184d9e560
commit
1c9be56121
@ -65,6 +65,9 @@ makeinstall_target() {
|
|||||||
cp -PRv $FLOAT/opt/vc/lib/libvchiq_arm.so $INSTALL/usr/lib
|
cp -PRv $FLOAT/opt/vc/lib/libvchiq_arm.so $INSTALL/usr/lib
|
||||||
cp -PRv $FLOAT/opt/vc/lib/libvcos.so $INSTALL/usr/lib
|
cp -PRv $FLOAT/opt/vc/lib/libvcos.so $INSTALL/usr/lib
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib/bcm2835
|
||||||
|
cp -P $PKG_DIR/scripts/setup-framebuffer $INSTALL/usr/lib/bcm2835
|
||||||
|
|
||||||
# some usefull debug tools
|
# some usefull debug tools
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp -PRv $FLOAT/opt/vc/bin/vcdbg $INSTALL/usr/bin
|
cp -PRv $FLOAT/opt/vc/bin/vcdbg $INSTALL/usr/bin
|
||||||
@ -76,3 +79,8 @@ makeinstall_target() {
|
|||||||
mkdir -p $INSTALL/opt/vc
|
mkdir -p $INSTALL/opt/vc
|
||||||
ln -sf /usr/lib $INSTALL/opt/vc/lib
|
ln -sf /usr/lib $INSTALL/opt/vc/lib
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
enable_service framebuffer.service
|
||||||
|
enable_service vcfiled.service
|
||||||
|
}
|
@ -1,32 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
|
||||||
# evironment variables that are not user defined.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# setup functions
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# stub function
|
|
||||||
wait_for_xorg () {
|
|
||||||
echo 0 > /sys/class/vtconsole/vtcon1/bind
|
|
||||||
fbset -g 1 1 1 1 32
|
|
||||||
}
|
|
11
packages/graphics/bcm2835-driver/init.d/81_vllinit → packages/graphics/bcm2835-driver/scripts/setup-framebuffer
Normal file → Executable file
11
packages/graphics/bcm2835-driver/init.d/81_vllinit → packages/graphics/bcm2835-driver/scripts/setup-framebuffer
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||||
@ -17,12 +18,6 @@
|
|||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
|
||||||
# set vll dir and run vcfiled service
|
|
||||||
#
|
|
||||||
# runlevels: openelec
|
|
||||||
|
|
||||||
progress "run vcfiled service"
|
|
||||||
|
|
||||||
/usr/sbin/vcfiled
|
|
||||||
|
|
||||||
|
echo 0 > /sys/class/vtconsole/vtcon1/bind
|
||||||
|
fbset -g 1 1 1 1 32
|
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Framebuffer setup
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/lib/bcm2835/setup-framebuffer
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
11
packages/graphics/bcm2835-driver/system.d/vcfiled.service
Normal file
11
packages/graphics/bcm2835-driver/system.d/vcfiled.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=vcfiled
|
||||||
|
After=syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/vcfiled -f
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user