diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/externalsrc.bbclass | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz |
Convert to new override syntax
This is the result of automated script conversion:
scripts/contrib/convert-overrides.py <oe-core directory>
converting the metadata to use ":" as the override character instead of "_".
(From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r-- | meta/classes/externalsrc.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 3d6b80bee2..54b08adf62 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -13,7 +13,7 @@ | |||
13 | # called "myrecipe" you would do: | 13 | # called "myrecipe" you would do: |
14 | # | 14 | # |
15 | # INHERIT += "externalsrc" | 15 | # INHERIT += "externalsrc" |
16 | # EXTERNALSRC_pn-myrecipe = "/path/to/my/source/tree" | 16 | # EXTERNALSRC:pn-myrecipe = "/path/to/my/source/tree" |
17 | # | 17 | # |
18 | # In order to make this class work for both target and native versions (or with | 18 | # In order to make this class work for both target and native versions (or with |
19 | # multilibs/cross or other BBCLASSEXTEND variants), B is set to point to a separate | 19 | # multilibs/cross or other BBCLASSEXTEND variants), B is set to point to a separate |
@@ -21,7 +21,7 @@ | |||
21 | # the default, but the build directory can be set to the source directory if | 21 | # the default, but the build directory can be set to the source directory if |
22 | # circumstances dictate by setting EXTERNALSRC_BUILD to the same value, e.g.: | 22 | # circumstances dictate by setting EXTERNALSRC_BUILD to the same value, e.g.: |
23 | # | 23 | # |
24 | # EXTERNALSRC_BUILD_pn-myrecipe = "/path/to/my/source/tree" | 24 | # EXTERNALSRC_BUILD:pn-myrecipe = "/path/to/my/source/tree" |
25 | # | 25 | # |
26 | 26 | ||
27 | SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch" | 27 | SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch" |
@@ -45,11 +45,11 @@ python () { | |||
45 | if bpn == d.getVar('PN') or not classextend: | 45 | if bpn == d.getVar('PN') or not classextend: |
46 | if (externalsrc or | 46 | if (externalsrc or |
47 | ('native' in classextend and | 47 | ('native' in classextend and |
48 | d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or | 48 | d.getVar('EXTERNALSRC:pn-%s-native' % bpn)) or |
49 | ('nativesdk' in classextend and | 49 | ('nativesdk' in classextend and |
50 | d.getVar('EXTERNALSRC_pn-nativesdk-%s' % bpn)) or | 50 | d.getVar('EXTERNALSRC:pn-nativesdk-%s' % bpn)) or |
51 | ('cross' in classextend and | 51 | ('cross' in classextend and |
52 | d.getVar('EXTERNALSRC_pn-%s-cross' % bpn))): | 52 | d.getVar('EXTERNALSRC:pn-%s-cross' % bpn))): |
53 | d.setVar('BB_DONT_CACHE', '1') | 53 | d.setVar('BB_DONT_CACHE', '1') |
54 | 54 | ||
55 | if externalsrc: | 55 | if externalsrc: |