summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman-conf.bb
blob: 6ecfbfbe861389da3b88e6afb6921fbc13e21bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#connman config to setup wired interface on qemu machines

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI_append_qemuall = "file://wired.config \
                          file://wired-setup \
                         "
PR = "r2"

PACKAGE_ARCH = "${MACHINE_ARCH}"

FILES_${PN} = "${localstatedir}/* ${libdir}/*"

do_install() {
    #Configure Wired network interface in case of qemu* machines
    if test -e ${WORKDIR}/wired.config && test -e ${WORKDIR}/wired-setup; then
        install -d ${D}${localstatedir}/lib/connman
        install -m 0644 ${WORKDIR}/wired.config ${D}${localstatedir}/lib/connman
        install -d ${D}${libdir}/connman
        install -m 0755 ${WORKDIR}/wired-setup ${D}${libdir}/connman
    fi
}