aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb
blob: 8212c9712ef62f0fc0fe38a012ad95fa65eafc3c (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
include hyplnk-lld.inc

DEPENDS = "common-csl-ip hyplnk-lld"

CHOICELIST = " yes \
               no  \
"

do_compile () {
	make -f makefile_armv7 clean PDK_INSTALL_PATH="${STAGING_INCDIR}" \
		HYPLNK_SRC_DIR="${S}"
	for device in ${DEVICELIST}
	do
		for choice in ${CHOICELIST}
		do
			make -f makefile_armv7 tests examples \
				PDK_INSTALL_PATH="${STAGING_INCDIR}" \
				DEVICE="$device" HYPLNK_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" \
			HYPLNK_SRC_DIR="${S}" \
			INSTALL_BIN_BASE_DIR="${D}/${bindir}"
	done
}