diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2018-02-22 17:11:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:35:40 +0000 |
commit | b0d9ce473f47f8b58b08b0ad07449efa775b0b74 (patch) | |
tree | 61a23db5170b90e0878520e9bc2fabaaa0af9ee4 /meta | |
parent | 823ca27a79f968b1461a67187063e5b372a009bd (diff) | |
download | poky-b0d9ce473f47f8b58b08b0ad07449efa775b0b74.tar.gz |
kbd: build tests only when ptest is enabled
Also include the libcheck dependency only when tests are to be built.
(From OE-Core rev: f4fbdc8cc19be843f733701fc6fa2ac8cf5c3699)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/kbd/kbd_2.0.4.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/kbd/kbd_2.0.4.bb b/meta/recipes-core/kbd/kbd_2.0.4.bb index 5937cb8145..80808af135 100644 --- a/meta/recipes-core/kbd/kbd_2.0.4.bb +++ b/meta/recipes-core/kbd/kbd_2.0.4.bb | |||
@@ -3,7 +3,6 @@ HOMEPAGE = "http://www.kbd-project.org/" | |||
3 | # everything minus console-fonts is GPLv2+ | 3 | # everything minus console-fonts is GPLv2+ |
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a5fcc36121d93e1f69d96a313078c8b5" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a5fcc36121d93e1f69d96a313078c8b5" |
6 | DEPENDS = "libcheck" | ||
7 | 6 | ||
8 | inherit autotools gettext ptest pkgconfig | 7 | inherit autotools gettext ptest pkgconfig |
9 | 8 | ||
@@ -19,8 +18,12 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \ | |||
19 | SRC_URI[md5sum] = "c1635a5a83b63aca7f97a3eab39ebaa6" | 18 | SRC_URI[md5sum] = "c1635a5a83b63aca7f97a3eab39ebaa6" |
20 | SRC_URI[sha256sum] = "5fd90af6beb225a9bb9b9fb414c090fba53c9a55793e172f508cd43652e59a88" | 19 | SRC_URI[sha256sum] = "5fd90af6beb225a9bb9b9fb414c090fba53c9a55793e172f508cd43652e59a88" |
21 | 20 | ||
22 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | 21 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ |
22 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests','', d)} \ | ||
23 | " | ||
24 | |||
23 | PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam," | 25 | PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam," |
26 | PACKAGECONFIG[tests] = "--enable-tests, --disable-tests, libcheck" | ||
24 | 27 | ||
25 | do_compile_ptest() { | 28 | do_compile_ptest() { |
26 | oe_runmake -C ${B}/tests dumpkeys-fulltable alt-is-meta | 29 | oe_runmake -C ${B}/tests dumpkeys-fulltable alt-is-meta |