diff options
-rw-r--r-- | meta/classes/externalsrc.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index d64af6a9c9..529be49a2b 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -29,6 +29,12 @@ EXTERNALSRC_SYMLINKS ?= "oe-workdir:${WORKDIR} oe-logs:${T}" | |||
29 | 29 | ||
30 | python () { | 30 | python () { |
31 | externalsrc = d.getVar('EXTERNALSRC') | 31 | externalsrc = d.getVar('EXTERNALSRC') |
32 | externalsrcbuild = d.getVar('EXTERNALSRC_BUILD') | ||
33 | |||
34 | if externalsrc and not externalsrc.startswith("/"): | ||
35 | bb.error("EXTERNALSRC must be an absolute path") | ||
36 | if externalsrcbuild and not externalsrcbuild.startswith("/"): | ||
37 | bb.error("EXTERNALSRC_BUILD must be an absolute path") | ||
32 | 38 | ||
33 | # If this is the base recipe and EXTERNALSRC is set for it or any of its | 39 | # If this is the base recipe and EXTERNALSRC is set for it or any of its |
34 | # derivatives, then enable BB_DONT_CACHE to force the recipe to always be | 40 | # derivatives, then enable BB_DONT_CACHE to force the recipe to always be |
@@ -48,7 +54,6 @@ python () { | |||
48 | 54 | ||
49 | if externalsrc: | 55 | if externalsrc: |
50 | d.setVar('S', externalsrc) | 56 | d.setVar('S', externalsrc) |
51 | externalsrcbuild = d.getVar('EXTERNALSRC_BUILD') | ||
52 | if externalsrcbuild: | 57 | if externalsrcbuild: |
53 | d.setVar('B', externalsrcbuild) | 58 | d.setVar('B', externalsrcbuild) |
54 | else: | 59 | else: |