archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
cover archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
The following changes since commit 4a7612c7a12b9a381fb8343ba9586272b889fc15:
buildhistory: skip tests if GitPython module is missing (2017-06-07 16:00:49 +0100)
are available in the git repository at:
https://github.com/DengkeDu/openembedded-core.git dengke/fix-archiver-configure-failed
Dengke Du (1):
archiver.bbclass: add task do_prepare_recipe_sysroot before
do_configure
meta/classes/archiver.bbclass | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.8.1
PATCH 1/1 archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
When recipe inherit archiver.bbclass and enable:
ARCHIVER_MODE[src] = "configured"
output errors:
automake: command not found
This is because no recipe-sysroot-native directory, so there is no native environment before executing do_configure, we can check it at the line 254 in archiver.bbclass:
prefuncs = d.getVarFlag('do_configure', 'prefuncs') for func in (prefuncs or '').split():
if func != "sysroot_cleansstate":
bb.build.exec_func(func, d)
bb.build.exec_func('do_configure', d)
So it is necessary to add the task do_prepare_recipe_sysroot before executing the do_configure task.
--- meta/classes/archiver.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/archiver.bbclass +1 -0
@@ -247,6 +247,7 @@ python do_ar_configured() { bb.build.exec_func('do_kernel_configme', d) if bb.data.inherits_class('cmake', d): bb.build.exec_func('do_generate_toolchain_file', d) + bb.build.exec_func('do_prepare_recipe_sysroot',d) prefuncs = d.getVarFlag('do_configure', 'prefuncs') for func in (prefuncs or '').split(): if func != "sysroot_cleansstate":
Signature · 1 line
2.8.1
Quoted 8 lines · Dengke Du
When recipe inherit archiver.bbclass and enable:
ARCHIVER_MODE[src] = "configured"
output errors:
automake: command not found
I think oe-core aa2240657b015d46e9ba4bcb6264709a82313d83 fixes this already, can you verify?
Ross
Thanks, that commit works, please ignore this patch.
Quoted 15 lines · Ross
On 9 June 2017 at 10:45, Dengke Du <[email protected] <mailto:[email protected]>> wrote:
When recipe inherit archiver.bbclass and enable:
ARCHIVER_MODE[src] = "configured"
output errors:
automake: command not found
I think oe-core
aa2240657b015d46e9ba4bcb6264709a82313d83fixes this already, can you verify?Ross