admin管理员组

文章数量:1123370

Using Yocto, I created a recipe which depends on an other recipe I have created. I added the recipe to my image. I want to specify the version which depends the recipe such like:

custom-image-next.bb

IMAGE_INSTALL:append = " my-recipe"

custom-image.bb

require custom-image-next.bb
# use fixed version of package
REQUIRE_VERSION_my-recipe = "0.1.0"

my-recipe.bb

# Depends on my-other-recipe last version
DEPENDS = "my-other-recipe"

my-recipe_0.1.0.bb

# Should depends on my-other-recipe 0.2.0
DEPENDS = "my-other-recipe_0.2.0"
# I also tried REQUIRE_VERSION_my-other-recipe = "0.2.0"

my-other-recipe.bb

# Used by custom-image-next as REQUIRED_VERSION not set

my-other-recipe_0.2.0.bb

# Used by custom-image-release as REQUIRED_VERSION set

But my-other-recipe 0.2.0 is never used. How to tells my-recipe.bb to use my-other-recipe.bb and force my-recipe_0.1.0.bb to use my-other-recipe_0.2.0.bb ?

本文标签: Yocto DEPENDS on specific versionStack Overflow