blob: 9e3ed67bc349ac652bd24ec862c57998588c352a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://qt.digia.com/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################
DESCRIPTION = "Android Debug Bridge Daemon"
HOMEPAGE = "http://developer.android.com/tools/help/adb.html"
SECTION = "devel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://NOTICE;md5=2ddb23e63b1f9c3c46aaa4195f819a6d"
PV = "android-4.2.2_r1.2"
PR = "r0"
SRCREV = "${PV}"
RRECOMMENDS_${PN} += "kernel-module-g-ffs"
SRC_URI = "git://android.googlesource.com/platform/system/core;protocol=https \
file://adbd.patch;striplevel=2 \
file://Makefile.adbd \
file://adb-init \
file://defaults \
"
S = "${WORKDIR}/git/adb"
FILES_${PN} += "${bindir}/adbd"
do_configure() {
if [ -n "${ADB_PRODUCTID}" ]; then
sed -i -e 's/PRODUCT=.*/PRODUCT=${ADB_PRODUCTID}/' ${WORKDIR}/defaults
fi
}
do_compile() {
make -f ${WORKDIR}/Makefile.adbd
}
do_install() {
install -m 0755 -d ${D}${bindir}/
install -m 0755 ${WORKDIR}/git/adb/adbd ${D}${bindir}/
install -m 0755 -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/adb-init ${D}${sysconfdir}/init.d/
install -m 0755 -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/defaults ${D}${sysconfdir}/default/adbd
}
INITSCRIPT_NAME = "adb-init"
INITSCRIPT_PARAMS = "defaults 96"
inherit update-rc.d
|