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:
@@ -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"
|
||||
|
||||
32
meta-corstone700/recipes-test/test-app/test-app.bb
Normal file
32
meta-corstone700/recipes-test/test-app/test-app.bb
Normal 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"
|
||||
Reference in New Issue
Block a user