diff options
author | Li Zhou <li.zhou@windriver.com> | 2019-01-22 17:00:27 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-24 17:45:25 +0000 |
commit | a5c4807022c044f34e5a570ccfb2624779784632 (patch) | |
tree | 8f359055c1cfae715d034eba4a2462c82b7258ed /meta | |
parent | 9a9124e50c449c324a6b070873579640b7d216d6 (diff) | |
download | poky-a5c4807022c044f34e5a570ccfb2624779784632.tar.gz |
ptest-runner: pass libdir to DEFAULT_DIRECTORY when compiling
Ptest data are installed to PTEST_PATH ?= "${libdir}/${BPN}/ptest".
When libdir isn't "/usr/lib", it will cause "No ptests found" error
when running "ptest-runner" command. Here pass libdir to
DEFAULT_DIRECTORY when compiling to avoid that error.
Need update ptest-runner source code to get the new commit:
<ptest-runner: make DEFAULT_DIRECTORY be able to be defined when compiling>
(From OE-Core rev: 1447afd62035f42344a32a487bec408e6563d5f6)
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/ptest-runner/ptest-runner_2.3.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-support/ptest-runner/ptest-runner_2.3.bb b/meta/recipes-support/ptest-runner/ptest-runner_2.3.bb index 26add9b0a0..0a58f74ea2 100644 --- a/meta/recipes-support/ptest-runner/ptest-runner_2.3.bb +++ b/meta/recipes-support/ptest-runner/ptest-runner_2.3.bb | |||
@@ -7,7 +7,7 @@ HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/about/" | |||
7 | LICENSE = "GPLv2" | 7 | LICENSE = "GPLv2" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" |
9 | 9 | ||
10 | SRCREV = "80712583732b4a809532f644fb09e7d2e812d7ba" | 10 | SRCREV = "e1062f776eea60c50435c6b8ddf9714a31141aee" |
11 | PV = "2.3+git${SRCPV}" | 11 | PV = "2.3+git${SRCPV}" |
12 | 12 | ||
13 | SRC_URI = "git://git.yoctoproject.org/ptest-runner2" | 13 | SRC_URI = "git://git.yoctoproject.org/ptest-runner2" |
@@ -15,7 +15,7 @@ S = "${WORKDIR}/git" | |||
15 | 15 | ||
16 | FILES_${PN} = "${bindir}/ptest-runner" | 16 | FILES_${PN} = "${bindir}/ptest-runner" |
17 | 17 | ||
18 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | 18 | EXTRA_OEMAKE = "-e MAKEFLAGS= CFLAGS="${CFLAGS} -DDEFAULT_DIRECTORY=\\\"${libdir}\\\""" |
19 | 19 | ||
20 | do_compile () { | 20 | do_compile () { |
21 | oe_runmake | 21 | oe_runmake |