summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-26 17:53:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:32:57 +0000
commitbc5a1d1684ad8627c2ffb8065460004132274607 (patch)
treed59a857e984812da2ae6b14fc911e50ea8277ec7 /meta/classes
parent9d5483c37523ff3d334c98cafb848282b54962cd (diff)
downloadpoky-bc5a1d1684ad8627c2ffb8065460004132274607.tar.gz
base: Add nodejs-native dependency for npm:// urls
With the addition of the npm fetcher, we add the native dependency handling too. (From OE-Core rev: 500c432419739e2be247d6feea3f4d85eb7ddfd0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1372f38461..e066dc986f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -577,6 +577,9 @@ python () {
577 elif scheme == "osc": 577 elif scheme == "osc":
578 d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot') 578 d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot')
579 579
580 elif scheme == "npm":
581 d.appendVarFlag('do_fetch', 'depends', ' nodejs-native:do_populate_sysroot')
582
580 # *.lz4 should DEPEND on lz4-native for unpacking 583 # *.lz4 should DEPEND on lz4-native for unpacking
581 if path.endswith('.lz4'): 584 if path.endswith('.lz4'):
582 d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot') 585 d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot')