diff options
| author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-12-24 13:31:23 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-12-24 13:02:20 -0800 |
| commit | f3718960705d80990c5e6aa568cbb0d8b9269b50 (patch) | |
| tree | a42de0777881179e8ece6242c9f1288f012b803c /meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb | |
| parent | 049f0b3e83d60707648a945ea98a39ab3bd17405 (diff) | |
| download | meta-openembedded-f3718960705d80990c5e6aa568cbb0d8b9269b50.tar.gz | |
android-tools-conf-configfs: add an alternative to anrdoid-tools-conf
The package android-tools-conf depends on presence of
/sys/class/android_usb, which is not present in default (mainline)
kernels. Add a set of scripts that will use ConfigFS to configure USB
gadget rather than using non-standard device class.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb b/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb new file mode 100644 index 0000000000..01dc1bea98 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs_1.0.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | DESCRIPTION = "Different utilities from Android - corressponding configuration files for using ConfigFS" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 5 | |||
| 6 | SRC_URI = " \ | ||
| 7 | file://android-gadget-setup \ | ||
| 8 | file://android-gadget-start \ | ||
| 9 | file://android-gadget-cleanup \ | ||
| 10 | file://10-adbd-configfs.conf \ | ||
| 11 | " | ||
| 12 | |||
| 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 14 | |||
| 15 | do_install() { | ||
| 16 | install -d ${D}${bindir} | ||
| 17 | install -m 0755 ${WORKDIR}/android-gadget-setup ${D}${bindir} | ||
| 18 | install -m 0755 ${WORKDIR}/android-gadget-start ${D}${bindir} | ||
| 19 | install -m 0755 ${WORKDIR}/android-gadget-cleanup ${D}${bindir} | ||
| 20 | |||
| 21 | if [ -r ${WORKDIR}/android-gadget-setup.machine ] ; then | ||
| 22 | install -d ${D}${sysconfdir} | ||
| 23 | install -m 0644 ${WORKDIR}/android-gadget-setup.machine ${D}${sysconfdir} | ||
| 24 | fi | ||
| 25 | |||
| 26 | install -d ${D}${systemd_unitdir}/system/android-tools-adbd.service.d | ||
| 27 | install -m 0644 ${WORKDIR}/10-adbd-configfs.conf ${D}${systemd_unitdir}/system/android-tools-adbd.service.d | ||
| 28 | } | ||
| 29 | |||
| 30 | FILES_${PN} += " \ | ||
| 31 | ${systemd_unitdir}/system/ \ | ||
| 32 | " | ||
| 33 | |||
| 34 | PROVIDES += "android-tools-conf" | ||
| 35 | RPROVIDES_${PN} = "android-tools-conf" | ||
