mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
f371896070
The package android-tools-conf depends on presence of /sys/class/android_usb, which is not present in default (mainline) kernels. Add a set of scripts that will use ConfigFS to configure USB gadget rather than using non-standard device class. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
25 lines
309 B
Bash
25 lines
309 B
Bash
#!/bin/sh
|
|
|
|
[ -d /sys/kernel/config/usb_gadget ] || exit 0
|
|
|
|
cd /sys/kernel/config/usb_gadget
|
|
|
|
cd adb
|
|
|
|
echo "" > UDC || true
|
|
|
|
killall adbd || true
|
|
|
|
umount /dev/usb-ffs/adb
|
|
|
|
rm configs/c.1/ffs.usb0
|
|
|
|
rmdir configs/c.1/strings/0x409
|
|
rmdir configs/c.1
|
|
|
|
rmdir functions/ffs.usb0
|
|
rmdir strings/0x409
|
|
|
|
cd ..
|
|
rmdir adb
|