summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb')
-rw-r--r--meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb21
1 files changed, 8 insertions, 13 deletions
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
index fbad5e1368..63e31e90cc 100644
--- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
+++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = " \
7 file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f \ 7 file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f \
8 file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9 \ 8 file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9 \
9" 9"
10DEPENDS = "libbsd libpcre zlib libcap libusb squashfs-tools p7zip libselinux googletest" 10DEPENDS = "libbsd libpcre zlib libcap libusb squashfs-tools 7zip libselinux googletest"
11 11
12SRCREV_core = "abfd66fafcbb691d7860df059f1df1c9b1ef29da" 12SRCREV_core = "abfd66fafcbb691d7860df059f1df1c9b1ef29da"
13 13
@@ -43,18 +43,18 @@ SRC_URI += " \
43 43
44# patches which don't come from debian 44# patches which don't come from debian
45SRC_URI += " \ 45SRC_URI += " \
46 file://rules_yocto.mk;subdir=git \ 46 file://rules_yocto.mk;subdir=${BB_GIT_DEFAULT_DESTSUFFIX} \
47 file://android-tools-adbd.service \ 47 file://android-tools-adbd.service \
48 file://adbd.mk;subdir=git/debian/system/core \ 48 file://adbd.mk;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/debian/system/core \
49 file://remount \ 49 file://remount \
50 file://0001-Fixes-for-yocto-build.patch \ 50 file://0001-Fixes-for-yocto-build.patch \
51 file://0002-android-tools-modifications-to-make-it-build-in-yoct.patch \ 51 file://0002-android-tools-modifications-to-make-it-build-in-yoct.patch \
52 file://0003-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch \ 52 file://0003-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch \
53 file://0004-adb-Fix-build-on-big-endian-systems.patch \ 53 file://0004-adb-Fix-build-on-big-endian-systems.patch \
54 file://0005-adb-Allow-adbd-to-be-run-as-root.patch \ 54 file://0005-adb-Allow-adbd-to-be-run-as-root.patch \
55 file://0001-liblp-fix-building-with-GCC-14.patch \
55" 56"
56 57
57S = "${WORKDIR}/git"
58B = "${WORKDIR}/${BPN}" 58B = "${WORKDIR}/${BPN}"
59 59
60# http://errors.yoctoproject.org/Errors/Details/1debian881/ 60# http://errors.yoctoproject.org/Errors/Details/1debian881/
@@ -67,6 +67,7 @@ COMPATIBLE_HOST:powerpc64le = "(null)"
67 67
68inherit systemd 68inherit systemd
69 69
70SYSTEMD_PACKAGES = "${PN}-adbd"
70SYSTEMD_SERVICE:${PN}-adbd = "android-tools-adbd.service" 71SYSTEMD_SERVICE:${PN}-adbd = "android-tools-adbd.service"
71 72
72# Find libbsd headers during native builds 73# Find libbsd headers during native builds
@@ -138,7 +139,7 @@ do_compile() {
138 139
139do_install() { 140do_install() {
140 install -d ${D}${base_sbindir} 141 install -d ${D}${base_sbindir}
141 install -m 0755 ${S}/../remount -D ${D}${base_sbindir}/remount 142 install -m 0755 ${UNPACKDIR}/remount -D ${D}${base_sbindir}/remount
142 143
143 for tool in img2simg simg2img fastboot adbd; do 144 for tool in img2simg simg2img fastboot adbd; do
144 if echo ${TOOLS_TO_BUILD} | grep -q "$tool" ; then 145 if echo ${TOOLS_TO_BUILD} | grep -q "$tool" ; then
@@ -153,7 +154,7 @@ do_install() {
153 fi 154 fi
154 155
155 # Outside the if statement to avoid errors during do_package 156 # Outside the if statement to avoid errors during do_package
156 install -D -p -m0644 ${WORKDIR}/android-tools-adbd.service \ 157 install -D -p -m0644 ${UNPACKDIR}/android-tools-adbd.service \
157 ${D}${systemd_unitdir}/system/android-tools-adbd.service 158 ${D}${systemd_unitdir}/system/android-tools-adbd.service
158 159
159 install -d ${D}${libdir}/android/ 160 install -d ${D}${libdir}/android/
@@ -166,7 +167,7 @@ do_install() {
166 167
167PACKAGES =+ "${PN}-fstools ${PN}-adbd" 168PACKAGES =+ "${PN}-fstools ${PN}-adbd"
168 169
169RDEPENDS:${BPN} = "${BPN}-conf p7zip" 170RDEPENDS:${BPN} = "${BPN}-conf 7zip"
170 171
171FILES:${PN}-adbd = "\ 172FILES:${PN}-adbd = "\
172 ${bindir}/adbd \ 173 ${bindir}/adbd \
@@ -186,9 +187,3 @@ FILES:${PN}-fstools = "\
186FILES:${PN} += "${libdir}/android ${libdir}/android/*" 187FILES:${PN} += "${libdir}/android ${libdir}/android/*"
187 188
188BBCLASSEXTEND = "native" 189BBCLASSEXTEND = "native"
189
190android_tools_enable_devmode() {
191 touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled
192}
193
194ROOTFS_POSTPROCESS_COMMAND_${PN}-adbd += "${@bb.utils.contains("USB_DEBUGGING_ENABLED", "1", "android_tools_enable_devmode;", "", d)}"