The only reason xbmc depends on xorg (and asportal) is because it needs the hw drivers found in xorg/smd-driver.
1. Please spin-off smd-driver as a separate package/app
2. make xorg depend smd-driver app
3. make xbmc depend on smd-driver instead of xorg & asportal; this will require minor tweaks to xbmc start script like this:
Code: Select all
--- /usr/local/AppCentral/xbmc/CONTROL/start-stop.sh
+++ /usr/local/AppCentral/xbmc/CONTROL/start-stop.sh
--- /root/xbmc-start-stop.sh
+++ xbmc/CONTROL/start-stop.sh
@@ -11,6 +11,8 @@
PKG_PATH=/usr/local/AppCentral/xbmc
ASPORTAL_PATH=/usr/local/AppCentral/asportal
ASPORTAL_STAT="`apkg --info-installed asportal | grep 'Enabled:' | awk '{print $2}'`"
+XORG_STAT="`apkg --info-installed xorg | grep 'Enabled:' | awk '{print $2}'`"
+DRV_PATH=/usr/local/AppCentral/xorg/smd-driver
NAME=xbmc
RUN_XBMC=$PKG_PATH/run_xbmc.sh
@@ -29,10 +31,12 @@
[ -e "/usr/share" ] || mkdir -p /usr/share
[ -e "/usr/share/ffmpeg" ] || ln -sf $PKG_PATH/ffmpeg-smd/usr/share/ffmpeg /usr/share
- if [ -e "$ASPORTAL_PATH" ]; then
- if [ "Yes" == "$ASPORTAL_STAT" ]; then
+ #if xorg is disabled, we need to load the drivers from it
+ if [ "No" == "$XORG_STAT" ]; then
+ $DRV_PATH/start-stop.sh start
+ fi
+ if [ -e "$ASPORTAL_PATH" ] && [ "Yes" == "$ASPORTAL_STAT" ]; then
$ASPORTAL_PATH/CONTROL/start-stop.sh reload &
- fi
else
$RUN_XBMC
fi
If needed, I am willing to help on this and also beta test.
--sadyc