blob: e721e7e6c4a9861e421dffa8092c9a23038bd6be (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
DESCRIPTION = "Embedded Linux Device Driver Tests based on Linux Test Project"
HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
PR = "r1"
PROVIDES += "ltp"
DEPENDS += "zip-native virtual/kernel alsa-lib"
inherit autotools
PACKAGE_ARCH = "${MACHINE_ARCH}"
SRCREV = "5fba3d42f126ce13333fb7d0412d729b753ee5a4"
BRANCH ?= "master"
SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
LTPROOT = "/opt/ltp"
EXTRA_OEMAKE_append = " \
prefix=${LTPROOT} \
CROSS_COMPILE=${HOST_PREFIX} \
SKIP_IDCHECK=1 \
KERNEL_INC=${STAGING_KERNEL_DIR}/include \
KERNEL_USR_INC=${STAGING_INCDIR} \
ALSA_INCPATH=${STAGING_INCDIR} \
ALSA_LIBPATH=${STAGING_LIBDIR} \
PLATFORM=${MACHINE} \
"
TARGET_CC_ARCH += "${LDFLAGS}"
FILES_${PN}-dbg += " \
${LTPROOT}/.debug \
${LTPROOT}/bin/.debug \
${LTPROOT}/runtest/.debug \
${LTPROOT}/testcases/bin/.debug \
${LTPROOT}/testcases/bin/*/bin/.debug \
${LTPROOT}/testcases/bin/*/test/.debug \
${LTPROOT}/testcases/bin/ddt/.debug \
${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
${LTPROOT}/testcases/bin/ddt/*/test/.debug \
"
FILES_${PN} += "${LTPROOT}/*"
do_configure() {
cp ${S}/include/config.h.default ${S}/include/config.h
cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
echo "${TAG}" > ${S}/ChangeLog
}
do_install() {
oe_runmake DESTDIR=${D} install
install -d ${D}${datadir}
cp -a ${D}${LTPROOT}/share/* ${D}${datadir}
rm -rf ${D}${LTPROOT}/share/
}
|