Skip to content

Commit

Permalink
Merge pull request #565 from eberman-quic/adbd-cmdline-kirkstone
Browse files Browse the repository at this point in the history
kirkstone: initramfs-test-image: add adbd support
  • Loading branch information
lumag authored Jan 13, 2024
2 parents 8e384a6 + bc9b07b commit 1b7ed03
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
DESCRIPTION = "An override for adbd unit - start adbd depending on the kernel command line"
SECTION = "console/utils"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
file://50-adbd-cmdline.conf \
"

do_install() {
install -d ${D}${systemd_unitdir}/system/android-tools-adbd.service.d
install -m 0644 ${WORKDIR}/50-adbd-cmdline.conf ${D}${systemd_unitdir}/system/android-tools-adbd.service.d
}

FILES:${PN} += " \
${systemd_unitdir}/system/ \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
# Clear all conditions
ConditionPathExists=
# And start if kernel adbd argument is provided or if the file exists
ConditionPathExists=|/var/usb-debugging-enabled
ConditionKernelCommandLine=|adbd
2 changes: 2 additions & 0 deletions recipes-test/images/initramfs-test-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ PACKAGE_INSTALL += " \
# on. This can be handled by .bbappends, but then image recipes including this
# one would not get all these tools. So simulate dynamic bbappend here.
PACKAGE_INSTALL_openembedded-layer += " \
android-tools-adbd \
android-tools-adbd-cmdline \
cpufrequtils \
cryptsetup \
devmem2 \
Expand Down

0 comments on commit 1b7ed03

Please sign in to comment.