The recipe uses AUTOREV and so needs network access while being
parsed even if the recipe will not be selected.  We disable parsing
unless AIED_VERSION = "2.0".  This could be done in local.conf

AIED_VERSION_pn-ai-engine-driver = "2.0"

is one way.

Signed-off-by: Joe Slater <[email protected]>
---
 recipes-bsp/ai-engine/ai-engine-driver_2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/ai-engine/ai-engine-driver_2.0.bb 
b/recipes-bsp/ai-engine/ai-engine-driver_2.0.bb
index 7e68434..136f402 100644
--- a/recipes-bsp/ai-engine/ai-engine-driver_2.0.bb
+++ b/recipes-bsp/ai-engine/ai-engine-driver_2.0.bb
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git"
 I = "${AIEDIR}/include"
 
 # Keep v1 as default for now.
-DEFAULT_PREFERENCE = "-1"
+COMPATIBLE_HOST = "${@bb.utils.contains('AIED_VERSION','2.0','.*','none',d)}"
 
 DEPENDS = "libmetal"
 RDEPENDS_${PN} = "libmetal"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4743): 
https://lists.yoctoproject.org/g/meta-xilinx/message/4743
Mute This Topic: https://lists.yoctoproject.org/mt/76412584/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to