diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-12-08 16:19:06 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-12-09 08:35:06 +0000 |
commit | eb72bbdd06b1b60c443e444527e3d7c6d2b53dfd (patch) | |
tree | 8b7e86a1acd47e5699d1a4fd72ffee03d9bb2816 /recipes | |
parent | 6c4d41f4797779cade64bad60c0b6315697b9b22 (diff) | |
download | meta-boot2qt-eb72bbdd06b1b60c443e444527e3d7c6d2b53dfd.tar.gz |
adb: make sure serial number is max 32 characters
Windows adb cannot handle devices which have longer serial, so limit
it to 32 characters. Remove the -linux- part of the hostname to make
it a bit shorter.
Change-Id: I3f6f811a9ecd8a273576fdef268d5a343edc531e
Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'recipes')
-rwxr-xr-x | recipes/adbd/files/adb-init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init index d8920b8..5f47fd0 100755 --- a/recipes/adbd/files/adb-init +++ b/recipes/adbd/files/adb-init | |||
@@ -11,7 +11,7 @@ fi | |||
11 | case "$1" in | 11 | case "$1" in |
12 | start) | 12 | start) |
13 | if [ "$USE_ETHERNET" = "no" ]; then | 13 | if [ "$USE_ETHERNET" = "no" ]; then |
14 | modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} | 14 | modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL:0:32} |
15 | mkdir -p /dev/usb-ffs | 15 | mkdir -p /dev/usb-ffs |
16 | chmod 770 /dev/usb-ffs | 16 | chmod 770 /dev/usb-ffs |
17 | mkdir -p /dev/usb-ffs/adb | 17 | mkdir -p /dev/usb-ffs/adb |