bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
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 (From OE-Core rev: 189d8282e82381d65c8cc9efe1896f628e9632bd) 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>
This commit is contained in:
parent
3e7d531c59
commit
30adf2653a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue