[oe-core,v7,2/2] base.bbclass: Add sysroot deps for repo fetcher

Message ID 20211124233702.74352-2-jasper@fancydomain.eu
State New
Headers show
Series [oe-core,v7,1/2] repo: Add recipe for 2.17.3 | expand

Commit Message

Jasper Orschulko Nov. 24, 2021, 11:37 p.m. UTC
From: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com>

Add repo-native as prerequisite for the repo fetcher.

Signed-off-by: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com>
---
 meta/classes/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index a65fcc6c1d..b709777f24 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -665,6 +665,10 @@  python () {
         elif uri.scheme == "npm":
             d.appendVarFlag('do_fetch', 'depends', ' nodejs-native:do_populate_sysroot')
 
+        elif uri.scheme == "repo":
+            needsrcrev = True
+            d.appendVarFlag('do_fetch', 'depends', ' repo-native:do_populate_sysroot')
+
         # *.lz4 should DEPEND on lz4-native for unpacking
         if path.endswith('.lz4'):
             d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot')