1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 12:36:18 +00:00
Lakka-LibreELEC/projects/Ayn/devices/Odin/packages/usb-gadget-scripts/package.mk
GavinDarkglider 4f8d2a57e9
WIP - Add Support for Ayn Odin (#1713)
* Initial fully buildable/bootable Odin Support

* Rework NX-Boot to FAT32 Boot for shared usage between switch and odin

* Move shared packages from switch/odin to main packages folder
2023-01-21 16:11:38 +01:00

20 lines
648 B
Makefile

PKG_NAME="usb-gadget-scripts"
PKG_DEPENDS_TARGET=""
PKG_SHORTDESC="Nintendo Switch USB Gadget scripts, and configs"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/{usr/bin,usr/lib/systemd/system/}
cp ${PKG_DIR}/assets/usb-gadget.sh ${INSTALL}/usr/bin/
sed -i "s/@DISTRO@/${DISTRO}/g" ${INSTALL}/usr/bin/usb-gadget.sh
chmod +x ${INSTALL}/usr/bin/usb-gadget.sh
cp ${PKG_DIR}/system.d/*.service ${INSTALL}/usr/lib/systemd/system/
#Enable Services
enable_service usb-gadget-init.service
enable_service usb-gadget-finalize.service
#enable_service umtp-responder.service
enable_service usb-tty.service
}