summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/traceframework/traceframework_git.bb
blob: 3211dea2702542a211a7f13285d894d0df31163f (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
DESCRIPTION = "TI Trace Framework library"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/instrumentation/traceframework/COPYING.txt;md5=e8f6789acdcda76d02ed9203fc2e603d"

BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/traceframework.git;destsuffix=git/ti/instrumentation/traceframework;protocol=git;branch=${BRANCH}"

# Below commit ID corresponds to DEV.TFWK-01.01.01.06A
SRCREV = "bd87f53f4d12dc802bcc5609afb7994643e40cb9"
PV = "01.01.01.06"

COMPATIBLE_MACHINE = "(tci6614-evm|keystone)"
DEPENDS = "cuia"

DEVICELIST = ""
DEVICELIST_append_tci6614-evm = "c6614"
DEVICELIST_append_keystone    = "k2k k2h k2e k2l"

PACKAGES =+ "${PN}-test"

FILES_${PN}-test = "${bindir}/tfw*.out \
                    ${bindir}/*.txt"

BASEDIR = "${WORKDIR}/git"
S = "${BASEDIR}/ti/instrumentation/traceframework"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} \
                 CUIA_INSTALL_DIR=${STAGING_INCDIR} CUIA_LIB_DIR=${STAGING_LIBDIR}"

do_compile () {
#   making the library
	oe_runmake clean
	oe_runmake lib

#   make the test application
	for device in ${DEVICELIST}
	do
		oe_runmake tests DEVICE="$device" TFW_INC_DIR=${BASEDIR} TFW_SRC_DIR=${S} \
			TARGET_ROOT_DIR=${D}
	done
}

do_install() {
	for device in ${DEVICELIST}
	do
		oe_runmake install DEVICE="$device" TFW_SRC_DIR=${S} TARGET_ROOT_DIR=${D}
	done
}