summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb24
1 files changed, 15 insertions, 9 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
index 1769b6a8a7..a9e7d5d828 100644
--- a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
+++ b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
@@ -108,7 +108,7 @@ do_compile() {
108} 108}
109 109
110do_install() { 110do_install() {
111 if [ grep -q "ext4_utils" "${TOOLS}" ] ; then 111 if echo ${TOOLS} | grep -q "ext4_utils" ; then
112 install -D -p -m0755 ${S}/system/core/libsparse/simg_dump.py ${D}${bindir}/simg_dump 112 install -D -p -m0755 ${S}/system/core/libsparse/simg_dump.py ${D}${bindir}/simg_dump
113 install -D -p -m0755 ${S}/system/extras/ext4_utils/mkuserimg.sh ${D}${bindir}/mkuserimg 113 install -D -p -m0755 ${S}/system/extras/ext4_utils/mkuserimg.sh ${D}${bindir}/mkuserimg
114 114
@@ -120,22 +120,28 @@ do_install() {
120 install -m0755 ${B}/ext4_utils/simg2simg ${D}${bindir} 120 install -m0755 ${B}/ext4_utils/simg2simg ${D}${bindir}
121 fi 121 fi
122 122
123 if [ grep -q "adb " "${TOOLS}" ] ; then 123 if echo ${TOOLS} | grep -q "adb " ; then
124 install -m0755 ${B}/adb/adb ${D}${bindir}i 124 install -d ${D}${bindir}
125 install -m0755 ${B}/adb/adb ${D}${bindir}
125 fi 126 fi
126 127
127 if [ grep -q "adbd" "${TOOLS}" ] ; then 128 if echo ${TOOLS} | grep -q "adbd" ; then
129 install -d ${D}${bindir}
128 install -m0755 ${B}/adbd/adbd ${D}${bindir} 130 install -m0755 ${B}/adbd/adbd ${D}${bindir}
129 install -D -p -m0644 ${WORKDIR}/android-tools-adbd.service \
130 ${D}${systemd_unitdir}/system/android-tools-adbd.service
131 fi 131 fi
132 132
133 if [ grep -q "fastboot" "${TOOLS}" ] ; then 133 # Outside the if statement to avoid errors during do_package
134 install -D -p -m0644 ${WORKDIR}/android-tools-adbd.service \
135 ${D}${systemd_unitdir}/system/android-tools-adbd.service
136
137 if echo ${TOOLS} | grep -q "fastboot" ; then
138 install -d ${D}${bindir}
134 install -m0755 ${B}/fastboot/fastboot ${D}${bindir} 139 install -m0755 ${B}/fastboot/fastboot ${D}${bindir}
135 fi 140 fi
136 141
137 if [ grep -q "mkbootimg" "${TOOLS}" ] ; then 142 if echo ${TOOLS} | grep -q "mkbootimg" ; then
138 install -m0755 ${B}/mkbootimg/mkbootimg ${D}${bindir} 143 install -d ${D}${bindir}
144 install -m0755 ${B}/mkbootimg/mkbootimg ${D}${bindir}
139 fi 145 fi
140} 146}
141 147