Skip to contentSkip to conversation

android-tools: recommend the USB gadget modules adbd needs

PATCH New Daiane Angolini 1 participant 1 message Sep 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android-tools: recommend the USB gadget modules adbd needs

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
---
 meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +1 -0
index 761c98f5d7..623dfa7717 100644
@@ -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
Signature · 1 line
2.43.0