Skip to contentSkip to conversation

archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure

PATCH In review Dengke Du 2 participants 4 messages Jun 9, 2017 – Jun 12, 2017

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

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
author
#1 lore raw

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
index 18c5b96..4775786 100644
@@ -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
#2 lore raw
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

author
#3 lore raw

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 aa2240657b015d46e9ba4bcb6264709a82313d83 fixes this already, can you verify?

Ross