diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2017-01-03 11:19:18 +0100 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2017-01-24 15:06:13 +0100 |
commit | c3a09fabf352a18e327eccbdc5316ee6e79ae81d (patch) | |
tree | f30bb451510b9b26c1af1c444cef6b247ac98079 | |
parent | 0d0f4ffda652229faefa4c17a7a7ab58a6db2434 (diff) | |
download | meta-ptx-c3a09fabf352a18e327eccbdc5316ee6e79ae81d.tar.gz meta-ptx-c3a09fabf352a18e327eccbdc5316ee6e79ae81d.tar.xz |
classes/genimage: place genimage task after do_configure to fix deps
When having a genimage-based image recipe, this might require some extra
host tools that might not be part of the system but have to be build
from the BSP.
In order to achive this, you would have to add, e.g.
DEPENDS += "genext2fs-native"
to your image recipe.
As this will make image-recipe:do_configure depend on
genext2fs-native:do_populate_sysroot while the `genimage` task was
placed only after `image-recipe:do_unpack`, there was no guarantee that
the tools required for the genimage task were build before the
do_genimage task ran.
In many cases, this will make the build fail because of missing host
tools.
To fix this, the do_genimage task must be placed *after* do_configure, to
ensure that the dependency handling places the tools do_populate_sysroot
task *before* the images do_genimage task.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
-rw-r--r-- | classes/genimage.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/genimage.bbclass b/classes/genimage.bbclass index 07b3945..3596328 100644 --- a/classes/genimage.bbclass +++ b/classes/genimage.bbclass @@ -128,4 +128,4 @@ do_package_write_ipk[noexec] = "1" do_package_write_deb[noexec] = "1" do_package_write_rpm[noexec] = "1" -addtask genimage after do_unpack before do_build +addtask genimage after do_configure before do_build |