summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bbappend
blob: 7121bd168cad7034d66cfaeb1039e13968adf65e (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
FILESEXTRAPATHS:append := ":${THISDIR}/files"

SRC_URI += " \
    file://si-tools-fm-improvements.patch \
"

EXTRA_OEMAKE:append = " 'LDFLAGS=${LDFLAGS}'"

do_install() {
    install -d ${D}${bindir}
    install -d ${D}${nonarch_base_libdir}/firmware/radio/

    install -m 755 si_ctl ${D}${bindir}
    install -m 755 si_flash ${D}${bindir}
    for file in ${SCRIPTS}; do
        install -m 755 ${S}/scripts/$file ${D}${bindir}
        sed -e 's,^\(SI_ARGS\s*=\s*\).*,\1"/dev/i2c-12 0x65",' -i ${D}${bindir}/$file
    done

    for file in ${FIRMWARE}; do
        install -m 644 ${S}/firmware/$file ${D}${nonarch_base_libdir}/firmware/radio/
    done
}

FILES:${PN} = " \
    ${bindir} \
    ${nonarch_base_libdir}/firmware/radio \
"