aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-12-15 23:40:58 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-01-28 02:15:04 +0300
commit836b602393037f37992a05044ee16e836093dc9b (patch)
tree3c1b1960483b3304e1b581862768b5aba84ebaf3
parentb7bdd830ba7107447caad0f3e1d6ad5c3e6c7dc8 (diff)
downloadmeta-qcom-836b602393037f37992a05044ee16e836093dc9b.tar.gz
meta-qcom-836b602393037f37992a05044ee16e836093dc9b.tar.bz2
meta-qcom-836b602393037f37992a05044ee16e836093dc9b.zip
android-tools-conf-configfs: provide machine configuration for adbd
Provide Qualcomm-specific configuration for adbd. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> (cherry picked from commit 93eaa756a81d5b91b81e039345aac90f4571e9b9) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-rw-r--r--dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs/qcom/android-gadget-setup.machine4
-rw-r--r--dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs_%.bbappend5
2 files changed, 9 insertions, 0 deletions
diff --git a/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs/qcom/android-gadget-setup.machine b/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs/qcom/android-gadget-setup.machine
new file mode 100644
index 0000000..37f26bb
--- /dev/null
+++ b/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs/qcom/android-gadget-setup.machine
@@ -0,0 +1,4 @@
+manufacturer=Qualcomm
+model=`hostname`
+androidserial="$(sed -n -e '/androidboot.serialno/ s/.*androidboot.serialno=\([^ ]*\).*/\1/gp ' /proc/cmdline)"
+[ -n "$androidserial" ] && serial="$androidserial"
diff --git a/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs_%.bbappend b/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs_%.bbappend
new file mode 100644
index 0000000..1e314d8
--- /dev/null
+++ b/dynamic-layers/backports-layer/recipes-devtools/android-tools/android-tools-conf-configfs_%.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
+
+SRC_URI_append_qcom = " \
+ file://android-gadget-setup.machine \
+"