From da37858d806cf73cd09ada4f62ab834a06b19e95 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Fri, 4 Oct 2024 11:53:27 +0200 Subject: [PATCH] eiq-examples: fix dependence on vela native tool The recipe level DEPENDS on ethos-u-vela-native is insufficient to ensure the native vela tool population into the eiq-examples recipe sysroot native directory before use. The new download_transform_models task uses that tool, so add the dependence on the task to ensure it is available before use. While on it, configure the working directory of the new task using the Yocto way (using task[dirs]). Signed-off-by: Javier Viguera --- .../eiq-examples/eiq-examples_git.bbappend | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bbappend b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bbappend index a1db80aeb..fd956fb85 100644 --- a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bbappend +++ b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/eiq-examples/eiq-examples_git.bbappend @@ -6,9 +6,6 @@ MODELS_DIR = "models" # Directory for transformation tasks. VELA_MODELS_DIR = "vela_models" -# The Vela native tool is required to transform the models. -DEPENDS += "ethos-u-vela-native" - SRC_URI += " \ file://patches/0001-Customize-EiQ-demos.patch \ file://patches/0002-dms-update-the-demo-to-use-the-landmark-full-model.patch \ @@ -20,12 +17,11 @@ SRC_URI += " \ # Custom task to download and transform the models using Vela. do_download_transform_models() { - cd "${S}" - python3 "${S}/download_models.py" + python3 download_models.py } +do_download_transform_models[depends] = "ethos-u-vela-native:do_populate_sysroot" +do_download_transform_models[dirs] = "${S}" do_download_transform_models[network] = "1" - -# Add the custom task to download and transform the models. addtask download_transform_models after do_patch before do_install inherit systemd