summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-08 16:19:06 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-09 08:35:06 +0000
commiteb72bbdd06b1b60c443e444527e3d7c6d2b53dfd (patch)
tree8b7e86a1acd47e5699d1a4fd72ffee03d9bb2816
parent6c4d41f4797779cade64bad60c0b6315697b9b22 (diff)
downloadmeta-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>
-rw-r--r--conf/local.conf.sample2
-rwxr-xr-xrecipes/adbd/files/adb-init2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/local.conf.sample b/conf/local.conf.sample
index 991cefc..b14b55d 100644
--- a/conf/local.conf.sample
+++ b/conf/local.conf.sample
@@ -74,7 +74,7 @@ PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
74# 74#
75# This sets the default machine to be qemux86 if no other machine is selected: 75# This sets the default machine to be qemux86 if no other machine is selected:
76MACHINE ??= "qemux86" 76MACHINE ??= "qemux86"
77MACHINE_HOSTNAME ?= "b2qt-linux-${MACHINE}" 77MACHINE_HOSTNAME ?= "b2qt-${MACHINE}"
78 78
79# 79#
80# Where to place downloads 80# Where to place downloads
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
11case "$1" in 11case "$1" in
12start) 12start)
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