]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
base.bbclass: Check BuildStarted for HOSTTOOLS rbt/ht
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 14 Feb 2019 02:45:27 +0000 (10:45 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 14 Feb 2019 06:34:31 +0000 (14:34 +0800)
commit5729c139f7de24d4285e2d05fe5469dae5883560
tree46099b38561203767dc0d04434f7a25adc0e7f0d
parent430bd28093fb743ba3bd032e11e40b4dd8e5bd1f
base.bbclass: Check BuildStarted for HOSTTOOLS

There might be no bb.event.ConfigParsed event if bitbake server is running, so
check bb.event.BuildStarted too to make sure HOSTTOOLS_DIR exists.

Fixed:
$ export BB_SERVER_TIMEOUT=-1
$ bitbake quilt-native
$ rm -fr tmp
$ bitbake quilt-native
ERROR: Error running gcc  --version: /bin/sh: gcc: command not found

This error is caused by enable_uninative(), it runs twice (ConfigParsed and
BuildStarted), the error would happen when there is no ConfigParsed event
(no hosttools is created), but BuildStarted. This patch can fix the problem.

[YOCTO #13022]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/base.bbclass