mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
xbmc-rpi: sync buildscripts with package 'xbmc-frodo'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
585dd6712c
commit
ca7ed1c6d4
@ -1,6 +1,6 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# 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
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# setup XBMC
|
# setup XBMC
|
||||||
#
|
#
|
||||||
# runlevels: openelec
|
# runlevels: openelec
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
# 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
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# starting XBMC
|
# starting XBMC
|
||||||
#
|
#
|
||||||
# runlevels: openelec
|
# runlevels: openelec
|
||||||
@ -35,9 +36,6 @@ fi
|
|||||||
# hack: make addon-bins executable
|
# hack: make addon-bins executable
|
||||||
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
||||||
|
|
||||||
# hack: make addon-libs executable
|
|
||||||
chmod +x /storage/.xbmc/addons/*/lib/* > /dev/null 2>&1
|
|
||||||
|
|
||||||
# hack to support user installed fonts
|
# hack to support user installed fonts
|
||||||
SUBFONTS="/storage/.xbmc/userdata/fonts"
|
SUBFONTS="/storage/.xbmc/userdata/fonts"
|
||||||
if [ -d "$SUBFONTS" ]; then
|
if [ -d "$SUBFONTS" ]; then
|
||||||
@ -64,28 +62,46 @@ fi
|
|||||||
# waiting for Xorg to start
|
# waiting for Xorg to start
|
||||||
wait_for_xorg
|
wait_for_xorg
|
||||||
|
|
||||||
# set cpu's to 'on demand'
|
# set cpu's to 'conservative'
|
||||||
( usleep 15000000
|
( usleep 15000000
|
||||||
progress "set cpu's to 'on demand'"
|
progress "set cpu's to 'conservative'"
|
||||||
cpupower frequency-set -g ondemand > /dev/null 2>&1
|
cpupower frequency-set -g conservative > /dev/null 2>&1
|
||||||
)&
|
)&
|
||||||
|
|
||||||
|
# prevent restrating XBMC at reboot or shutdown
|
||||||
|
LOCKDIR="/var/lock/"
|
||||||
|
LOCKFILE="xbmc.disabled"
|
||||||
|
[ -f "$LOCKDIR/$LOCKFILE" ] && rm -f "$LOCKDIR/$LOCKFILE" &
|
||||||
|
|
||||||
# starting XBMC
|
# starting XBMC
|
||||||
usleep $XBMC_STARTDELAY
|
usleep $XBMC_STARTDELAY
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
|
while [ -f "$LOCKDIR/$LOCKFILE" ]; do
|
||||||
|
usleep 250000
|
||||||
|
done
|
||||||
|
|
||||||
DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin $XBMC_ARGS > /dev/null 2>&1
|
DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin $XBMC_ARGS > /dev/null 2>&1
|
||||||
RET=$?
|
RET=$?
|
||||||
|
|
||||||
case "$RET" in
|
case "$RET" in
|
||||||
0)
|
0)
|
||||||
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
poweroff -f
|
poweroff -f
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
64)
|
64)
|
||||||
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
poweroff -f
|
poweroff -f
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
66)
|
66)
|
||||||
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
reboot
|
reboot
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
255)
|
255)
|
||||||
echo "Abnormal Exit. Exited with code $RET"
|
echo "Abnormal Exit. Exited with code $RET"
|
||||||
|
@ -27,7 +27,11 @@ PYTHON_LIBDIR="`ls -d $INSTALL/usr/lib/python*`"
|
|||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/cputemp $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/cputemp $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/gputemp $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/gputemp $INSTALL/usr/bin
|
||||||
|
cp $PKG_DIR/scripts/wait_on_xbmc_exit $INSTALL/usr/bin
|
||||||
cp $PKG_BUILD/tools/EventClients/Clients/XBMC\ Send/xbmc-send.py $INSTALL/usr/bin/xbmc-send
|
cp $PKG_BUILD/tools/EventClients/Clients/XBMC\ Send/xbmc-send.py $INSTALL/usr/bin/xbmc-send
|
||||||
|
if [ "$PVR" = yes ]; then
|
||||||
|
cp $PKG_DIR/scripts/setwakeup.sh $INSTALL/usr/bin
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib/xbmc
|
mkdir -p $INSTALL/usr/lib/xbmc
|
||||||
cp $PKG_BUILD/xbmc.bin $INSTALL/usr/lib/xbmc
|
cp $PKG_BUILD/xbmc.bin $INSTALL/usr/lib/xbmc
|
||||||
|
@ -45,8 +45,8 @@ if [ "$XORG_SUPPORT" = yes ]; then
|
|||||||
PKG_DEPENDS="$PKG_DEPENDS libXrandr"
|
PKG_DEPENDS="$PKG_DEPENDS libXrandr"
|
||||||
|
|
||||||
# for SDL support
|
# for SDL support
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS SDL SDL_mixer SDL_image"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS SDL SDL_image"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS SDL SDL_mixer SDL_image"
|
PKG_DEPENDS="$PKG_DEPENDS SDL SDL_image"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$OPENGL_SUPPORT" = yes ]; then
|
if [ "$OPENGL_SUPPORT" = yes ]; then
|
||||||
@ -159,7 +159,14 @@ if [ "$CRYSTALHD" = yes ]; then
|
|||||||
PKG_DEPENDS="$PKG_DEPENDS crystalhd"
|
PKG_DEPENDS="$PKG_DEPENDS crystalhd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$XVBA" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS xf86-video-fglrx"
|
||||||
|
fi
|
||||||
|
|
||||||
# some python stuff needed for various addons
|
# some python stuff needed for various addons
|
||||||
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS simplejson"
|
PKG_DEPENDS="$PKG_DEPENDS simplejson"
|
||||||
|
|
||||||
|
if [ "$PVR" = yes ]; then
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-vuplus"
|
||||||
|
fi
|
||||||
|
28
packages/mediacenter/xbmc-rpi/scripts/setwakeup.sh
Executable file
28
packages/mediacenter/xbmc-rpi/scripts/setwakeup.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# 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
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
if [ -f /sys/class/rtc/rtc0/wakealarm ]; then
|
||||||
|
logger -t setwakeup.sh "### Setting system wakeup time ###"
|
||||||
|
echo 0 > /sys/class/rtc/rtc0/wakealarm
|
||||||
|
echo $1 > /sys/class/rtc/rtc0/wakealarm
|
||||||
|
logger -t setwakeup.sh "### $(cat /proc/driver/rtc) ###"
|
||||||
|
fi
|
29
packages/mediacenter/xbmc-rpi/scripts/wait_on_xbmc_exit
Executable file
29
packages/mediacenter/xbmc-rpi/scripts/wait_on_xbmc_exit
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# 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
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
count=0
|
||||||
|
|
||||||
|
while [ $(pidof xbmc.bin) -a $count -le 20 ]; do
|
||||||
|
usleep 250000
|
||||||
|
logger -t wait_on_xbmc_exit "### Waiting for XBMC to Exit - $count ###"
|
||||||
|
count=$((count+1))
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user