summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/sa-lld/sa-lld-test_git.bb
blob: f3fa4f3db54deb6807e92155cdec98ddb934dd5c (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 Security Accelerator LLD (SA LLD) Examples"

DEPENDS = "common-csl-ip cppi-lld qmss-lld pa-lld sa-lld"

include sa-lld.inc

PR = "${INC_PR}.1"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEVICELIST_k2hk = "k2h k2k"
DEVICELIST_k2l  = "k2l"
DEVICELIST_k2e  = "k2e"

CHOICELIST = "no yes"

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} SA_SRC_DIR=${S}"

do_compile () {
#   Now build the lld in the updated directory
	for device in ${DEVICELIST}
	do
		oe_runmake clean DEVICE="$device"
		for choice in ${CHOICELIST}
		do
			oe_runmake examples utils DEVICE="$device" USEDYNAMIC_LIB="$choice"
		done
	done
}

do_install () {
	install -d ${D}${bindir}/ti/drv/sa/example/SaBasicExample/vectors

# copy all the test vectors
	find example/SaBasicExample/vectors -name *.bin -type f | xargs -I {} cp --parents {} ${D}${bindir}/ti/drv/sa

	for device in ${DEVICELIST}
	do
		oe_runmake installbin DEVICE="$device" INSTALL_BIN_BASE_DIR=${D}${bindir}
	done
}

INSANE_SKIP_${PN} = "ldflags"