diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2025-04-20 12:05:25 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-23 09:47:42 +0100 |
| commit | 5780f45bc106af046b27bfcb02616baa1d1796c5 (patch) | |
| tree | 37d2893aa450c6e776f71cc5a3fb644c3e2c12d9 /meta | |
| parent | 741e12d5b9e4a8d1c9935b0ac6f0bd5d3d0f7f27 (diff) | |
| download | poky-5780f45bc106af046b27bfcb02616baa1d1796c5.tar.gz | |
cpio: fix ptest-runner dependency
ptest is only meaningful for target. So we need to specify class-target
override to ensure correct dependency.
Also, the above DEPENDS:append:class-targets lacks a leading whitespace,
add it.
(From OE-Core rev: ef705f6969845aa4b28cb2cfb95b0aa0c67c11e3)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-extended/cpio/cpio_2.15.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/cpio/cpio_2.15.bb b/meta/recipes-extended/cpio/cpio_2.15.bb index b081bd53db..77fb019af9 100644 --- a/meta/recipes-extended/cpio/cpio_2.15.bb +++ b/meta/recipes-extended/cpio/cpio_2.15.bb | |||
| @@ -66,8 +66,8 @@ do_install_ptest_base:append() { | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | # The tests need to run as a non-root user, so pull in the ptest user | 68 | # The tests need to run as a non-root user, so pull in the ptest user |
| 69 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" | 69 | DEPENDS:append:class-target = " ${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" |
| 70 | PACKAGE_WRITE_DEPS += "ptest-runner" | 70 | PACKAGE_WRITE_DEPS:append:class-target = " ${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" |
| 71 | 71 | ||
| 72 | RDEPENDS:${PN}-ptest += "ptest-runner" | 72 | RDEPENDS:${PN}-ptest += "ptest-runner" |
| 73 | 73 | ||
