summaryrefslogtreecommitdiff
path: root/recipes-bsp/wl12xx-calibrator/wl12xx-calibrator_git.bb
blob: 0aee005c006b86ade2d87925a170c4f35f6e693f (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
# Copyright (C) 2015 Wadim Egorov <w.egorov@phytec.de>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Configuration utility for TI wireless drivers (wl12xx)"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"

DEPENDS += "libnl"

PV = "R8.5+git${SRCPV}"
PR = "r1"

# Tag: R8.5
SRCREV = "dcf0800f30ba449cd7f3a20f8b3f4853dc829652"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git"

S = "${WORKDIR}/git"

CFLAGS += "-I=/usr/include/libnl3 -DCONFIG_LIBNL32"

do_compile() {
	oe_runmake all NLVER=3
}

SRC_URI_append = " file://tiwi-ble-fcc-etsi.ini"
FILES_${PN} = "${datadir}/wl127x-inis/* \
	${bindir}"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 calibrator ${D}${bindir}

	install -d ${D}${datadir}/wl127x-inis
	install -m 0644 ${WORKDIR}/tiwi-ble-fcc-etsi.ini ${D}${datadir}/wl127x-inis
}