mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 21:35:59 +00:00
x86-64 client: the controller reader for x86 programs
The session's pads exist for a guest program only through libfakeinput (the FAKE_EVDEV_* rings), which was built for arm64 alone, so the x86 client saw no controller. Build it natively for x86-64 too, stage it, and preload it through the FEX rootfs next to the session shim.
This commit is contained in:
1 parent
1d90448924
commit
47e528102d
3 files changed
+14
-1
No files matched your search
@@ -66,6 +66,13 @@ if [ -f /usr/local/lib/x86_64-linux-gnu/libblsession.so ]; then
|
||||
mkdir -p "$ROOTFS/usr/local/lib"
|
||||
cp -f /usr/local/lib/x86_64-linux-gnu/libblsession.so "$ROOTFS/usr/local/lib/libblsession-x86_64.so"
|
||||
echo /usr/local/lib/libblsession-x86_64.so > "$ROOTFS/etc/ld.so.preload"
|
||||
# The controller reader too: the session's pads (FAKE_EVDEV_*) exist for a program only through it.
|
||||
if [ -f /usr/local/lib/x86_64-linux-gnu/libfakeinput.so ]; then
|
||||
cp -f /usr/local/lib/x86_64-linux-gnu/libfakeinput.so "$ROOTFS/usr/local/lib/libfakeinput-x86_64.so"
|
||||
echo /usr/local/lib/libfakeinput-x86_64.so >> "$ROOTFS/etc/ld.so.preload"
|
||||
else
|
||||
step "warning: no x86-64 controller reader (/usr/local/lib/x86_64-linux-gnu/libfakeinput.so); no pads in the client"
|
||||
fi
|
||||
else
|
||||
step "warning: no x86-64 session shim (/usr/local/lib/x86_64-linux-gnu/libblsession.so); the client will stop on semget"
|
||||
: > "$ROOTFS/etc/ld.so.preload"
|
||||
|
||||
Reference in new issue
Block a user