diff mbox series

[meta-oe] android-tools: recommend the USB gadget modules adbd needs

Message ID 20260914194653.1984445-1-daiane.angolini@oss.qualcomm.com
State Under Review
Headers show
Series [meta-oe] android-tools: recommend the USB gadget modules adbd needs | expand

Commit Message

Daiane Angolini Sept. 14, 2026, 7:46 p.m. UTC
Recommend libcomposite and usb_f_fs from the adbd package.

adbd needs both loaded: android-gadget-setup modprobes the first, and
the second comes in via request_module when the ffs function is
created. Nothing in an image pulls them in, so adbd fails to start on
kernels that build them as modules. A kernel with gadget support built
in ships no kernel-module packages, which recommendations tolerate.

Assisted-by: Claude Code:claude-opus-5

Signed-off-by: Daiane Angolini <daiane.angolini@oss.qualcomm.com>
---
 meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb b/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb
index 761c98f5d7..623dfa7717 100644
--- a/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb
+++ b/meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb
@@ -228,6 +228,7 @@  do_install:append:class-native() {
 PACKAGES =+ "${PN}-adbd"
 RDEPENDS:${PN}:class-target = "android-tools-conf-configfs 7zip android-libboringssl"
 RDEPENDS:${PN}-adbd += "${PN}"
+RRECOMMENDS:${PN}-adbd += "kernel-module-libcomposite kernel-module-usb-f-fs"
 PRIVATE_LIBS:${PN} = "liblog.so.0 libbase.so.0 libcutils.so.0"
 
 inherit useradd