1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00

add test app support recipe

Change-Id: I7536c80ba6c5c0ad5827a187dd5b5db51d24bc6e
Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com>
This commit is contained in:
Tushar Khandelwal
2019-05-28 22:40:27 +01:00
parent 95cfe5ad83
commit 43b6449601
2 changed files with 35 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ IMAGE_FSTYPES += "tar.bz2 wic cpio.gz"
WKS_FILE = "iota-corstone700.wks"
EXTRA_IMAGEDEPENDS_append = " trusted-firmware-a boot-firmware"
EXTRA_IMAGEDEPENDS_append = " trusted-firmware-a boot-firmware test-app"
SERIAL_CONSOLES = "115200;ttyAMA0"
CORE_IMAGE_EXTRA_INSTALL += "test-app"

View File

@@ -0,0 +1,32 @@
SUMMARY = "CORSTONE700 Host Test App"
DESCRIPTION = "CORSTONE700 Host Test App"
DEPENDS += " coreutils-native "
LICENSE="BSD"
LIC_FILES_CHKSUM = "file://license.md;md5=e44b2531cd6ffe9dece394dbe988d9a0"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI = "git://${USER}@git.linaro.org/landing-teams/working/arm/test-apps.git;protocol=https;branch=corstone700-19.02"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
B = "${WORKDIR}/build"
COMPATIBLE_MACHINE = "(corstone700)"
PLATFORM = "corstone700"
LDFLAGS[unexport] = "1"
do_compile() {
mkdir -p ${B}
${CC} ${S}/test-app.c -o ${S}/test-app --static
cp ${S}/test-app ${B}/test-app
}
do_install() {
install -d ${D}/${bindir}/
install -m 0755 ${B}/test-app ${D}${bindir}/test-app
}
FILES_${PN} += "${bindir}/test-app"