forked from libretro/Lakka-LibreELEC
* libCEC: Update to 6.0.2 * L4T: Switch-bsp: Fix typos * Switch: Fix all permission issues with running kodi as a non-root user. * L4T: Switch: Minor code cleanups * Add upower and libgudev so kodi can get battery stats Upower was removed from libreELEC in 2013 with this commit: 3a130cd5009c8d3595b8afcde2421324572ce58b This was a stupid choice as it is the only option in kodi for supplying any battery statitistics. Currently broken. This patchset: https://github.com/xbmc/xbmc/pull/17327/commits for kodi seemingliy wants to fix the issue(Doesnt, is more of a new way to deal with dbus in general), but will still require that upower be available for battery. * Switch: LibreELEC: Peripheral.Joystick: Fix Add Patches from PR's upstream to fix issues with udev devices * Switch: LibreElec: Peripheral.Joystick: Add Nintendo Switch udev joystick mappings * Switch: LibreELEC: Peripheral.Joystick: Force Udev controller driver as default.
31 lines
1.1 KiB
Makefile
Executable File
31 lines
1.1 KiB
Makefile
Executable File
PKG_NAME="switch-bsp"
|
|
PKG_VERSION="1.2"
|
|
PKG_LICENSE="GPL"
|
|
PKG_DEPENDS_TARGET="joycond rewritefs xdotool alsa-lib alsa-ucm-conf usb-gadget-scripts"
|
|
PKG_SECTION="virtual"
|
|
PKG_LONGDESC="LibreELEC Nintendo Switch Board Support"
|
|
|
|
if [ ! "${DISTRO}" = "LibreELEC" ]; then
|
|
PKG_DEPENDS_TARGET+=" mergerfs v4l-utils" # We use this for CEC in lakka, in libreELEC kodi handles that via libCEC.
|
|
fi
|
|
|
|
post_install() {
|
|
enable_service xorg-configure-switch.service
|
|
enable_service var-bluetoothconfig.mount
|
|
enable_service pair-joycon.service
|
|
enable_service fix-permissions.service
|
|
enable_service alsa-init.service
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp -Pv ${PKG_DIR}/scripts/pair-joycon.sh ${INSTALL}/usr/bin
|
|
cp -Pv ${PKG_DIR}/scripts/dock-hotplug ${INSTALL}/usr/bin
|
|
cp -pv ${PKG_DIR}/scripts/fix-sysfs-permissions.sh ${INSTALL}/usr/bin
|
|
mkdir -p ${INSTALL}/usr/share/alsa/ucm2
|
|
cp -Prv ${PKG_DIR}/ucm_data/* ${INSTALL}/usr/share/alsa/ucm2/
|
|
|
|
#Fix Script Permissions
|
|
chmod +x ${INSTALL}/usr/bin/pair-joycon.sh
|
|
chmod +x ${INSTALL}/usr/bin/dock-hotplug
|
|
chmod +x ${INSTALL}/usr/bin/fix-sysfs-permissions.sh
|
|
}
|