blob: 49a7e95905fd74cad03a6705e5398b1b2d194052 (
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
49
50
51
52
53
54
55
56
57
58
59
|
DESCRIPTION = "TI Trace Framework library"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/instrumentation/traceframework/COPYING.txt;md5=e8f6789acdcda76d02ed9203fc2e603d"
TRACEFRAMEWORK_GIT_URI = "git://git.ti.com/keystone-rtos/traceframework.git"
TRACEFRAMEWORK_GIT_PROTOCOL = "git"
TRACEFRAMEWORK_GIT_BRANCH = "master"
TRACEFRAMEWORK_GIT_DESTSUFFIX = "git/ti/instrumentation/traceframework"
# Below commit ID corresponds to DEV.TFWK-01.01.01.08B
TRACEFRAMEWORK_SRCREV = "e7a60a71a385337425547e3cac6716998c6a3528"
BRANCH="${TRACEFRAMEWORK_GIT_BRANCH}"
SRC_URI = "${TRACEFRAMEWORK_GIT_URI};destsuffix=${TRACEFRAMEWORK_GIT_DESTSUFFIX};protocol=${TRACEFRAMEWORK_GIT_PROTOCOL};branch=${BRANCH}"
SRCREV = "${TRACEFRAMEWORK_SRCREV}"
PV = "01.01.01.08"
PR = "r1"
COMPATIBLE_MACHINE = "(tci6614-evm|keystone)"
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS = "cuia"
DEVICELIST = "k2k k2h k2e k2l"
DEVICELIST_tci6614-evm = "c6614"
DEVICELIST_k2hk-evm = "k2k k2h"
DEVICELIST_k2e-evm = "k2e"
DEVICELIST_k2l-evm = "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
}
|