summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/mmap-lld/mmap-lld-test_git.bb
blob: 036f646cb0c234a71d3c640d27a9cb47f0b602c3 (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
DESCRIPTION = "TI KEYSTONE MMAP driver test binaries "
include mmap-lld.inc

PR = "${INC_PR}.0"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEPENDS="common-csl-ip mmap-lld"
RDEPENDS_${PN}="uio-module-drv"

DEVICELIST_k2hk = "k2h k2k"
DEVICELIST_k2e = "k2e"
DEVICELIST_k2l-evm = "k2l"
DEVICELIST_k2g = "k2g"

CHOICELIST = " yes \
               no \
"

do_compile () {
	for device in ${DEVICELIST}
	do
		make -f makefile_armv7 clean \
			PDK_INSTALL_PATH="${STAGING_INCDIR}" \
			DEVICE="$device" MPAX_SRC_DIR="${S}"
		for choice in ${CHOICELIST}
		do
			make -f makefile_armv7 tests examples \
				PDK_INSTALL_PATH=${STAGING_INCDIR} \
				DEVICE="$device" MPAX_SRC_DIR="${S}" \
				USEDYNAMIC_LIB="$choice"
		done
	done
}

do_install () {
	for device in ${DEVICELIST}
	do
		make -f makefile_armv7 installbin \
		PDK_INSTALL_PATH=${STAGING_INCDIR} \
		DEVICE="$device" MPAX_SRC_DIR="${S}" \
		INSTALL_BIN_BASE_DIR="${D}/${bindir}"
	done
}