aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-bsp/iio-utils/iio-utils_%.bb
blob: e84668c8fb67ecc26cd30a41bacd17bd264c0fd0 (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
SUMMARY = "IIO Utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=574295575bba94ba7980d611516fe3d2"

DEPENDS = "virtual/kernel"

export KERNELDIR = "${STAGING_KERNEL_DIR}"

S = "${WORKDIR}/iio-utils"

SRC_URI = " \
    file://iio-utils.tar.gz \
"

do_compile() {
    cd ${S}
    make all || die
}

do_install() {
    install -d ${D}${bindir}
    install -m 755 ${S}/iio_event_monitor ${D}${bindir}
    install -m 755 ${S}/lsiio ${D}${bindir}
    install -m 755 ${S}/iio_generic_buffer ${D}${bindir}
}

FILES_${PN} = " \
    ${bindir}/iio_event_monitor \
    ${bindir}/lsiio \
    ${bindir}/iio_generic_buffer \
"