diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 14:35:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 15:27:17 +0100 |
commit | fd1517e2b51a170f2427122c6b95396db251d827 (patch) | |
tree | dabfe3e631339c2fc99a9ee7febb0f9c128e325e /meta/classes/distrooverrides.bbclass | |
parent | 10317912ee319ccf7f83605d438b5cbf9663f296 (diff) | |
download | poky-fd1517e2b51a170f2427122c6b95396db251d827.tar.gz |
classes: Update classes to match new bitbake class scope functionality
Move classes to classes-global or classes-recipe as appropriate to take
advantage of new bitbake functionality to check class scope/usage.
(From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distrooverrides.bbclass')
-rw-r--r-- | meta/classes/distrooverrides.bbclass | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/classes/distrooverrides.bbclass b/meta/classes/distrooverrides.bbclass deleted file mode 100644 index 8d9d7cda7d..0000000000 --- a/meta/classes/distrooverrides.bbclass +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | # Turns certain DISTRO_FEATURES into overrides with the same | ||
8 | # name plus a df- prefix. Ensures that these special | ||
9 | # distro features remain set also for native and nativesdk | ||
10 | # recipes, so that these overrides can also be used there. | ||
11 | # | ||
12 | # This makes it simpler to write .bbappends that only change the | ||
13 | # task signatures of the recipe if the change is really enabled, | ||
14 | # for example with: | ||
15 | # do_install:append:df-my-feature () { ... } | ||
16 | # where "my-feature" is a DISTRO_FEATURE. | ||
17 | # | ||
18 | # The class is meant to be used in a layer.conf or distro | ||
19 | # .inc file with: | ||
20 | # INHERIT += "distrooverrides" | ||
21 | # DISTRO_FEATURES_OVERRIDES += "my-feature" | ||
22 | # | ||
23 | # Beware that this part of OVERRIDES changes during parsing, so usage | ||
24 | # of these overrides should be limited to .bb and .bbappend files, | ||
25 | # because then DISTRO_FEATURES is final. | ||
26 | |||
27 | DISTRO_FEATURES_OVERRIDES ?= "" | ||
28 | DISTRO_FEATURES_OVERRIDES[doc] = "A space-separated list of <feature> entries. \ | ||
29 | Each entry is added to OVERRIDES as df-<feature> if <feature> is in DISTRO_FEATURES." | ||
30 | |||
31 | DISTRO_FEATURES_FILTER_NATIVE:append = " ${DISTRO_FEATURES_OVERRIDES}" | ||
32 | DISTRO_FEATURES_FILTER_NATIVESDK:append = " ${DISTRO_FEATURES_OVERRIDES}" | ||
33 | |||
34 | # If DISTRO_FEATURES_OVERRIDES or DISTRO_FEATURES show up in a task | ||
35 | # signature because of this line, then the task dependency on | ||
36 | # OVERRIDES itself should be fixed. Excluding these two variables | ||
37 | # with DISTROOVERRIDES[vardepsexclude] would just work around the problem. | ||
38 | DISTROOVERRIDES .= "${@ ''.join([':df-' + x for x in sorted(set(d.getVar('DISTRO_FEATURES_OVERRIDES').split()) & set((d.getVar('DISTRO_FEATURES') or '').split()))]) }" | ||