]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
authorChen Qi <Qi.Chen@windriver.com>
Thu, 1 Feb 2018 12:22:18 +0000 (12:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 4 Mar 2018 13:30:55 +0000 (13:30 +0000)
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.

Cherry-picked from rocko 8ca61a5464743ff85b6d26886112750d6ddd13e0

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>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 3ef7f7ae21db36dbc64e7347d2379587b3d1c378..e2383d2709c2a4c2be58a2b08cf39b288a96d68c 100644 (file)
@@ -469,7 +469,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 ssh sudo"