]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
authorChen Qi <Qi.Chen@windriver.com>
Sat, 30 Sep 2017 08:15:42 +0000 (16:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Oct 2017 09:04:40 +0000 (10:04 +0100)
Add tools required by testimage to HOSTTOOLS only when testimage is
inherited. These tools, as described in the comment, are only required
by the testimage task. So this change should not have negtive effect.
This would also solve build error on hosts which miss some tool such as scp.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 6f53b23a67c644a504383bf94c2c02c4f5f10896..0eefb86d13a72ad7d1599010abfec75c6eae4dbe 100644 (file)
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"
 
 # Link to these if present
 HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"