summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-postinst-intercepts.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-10 14:35:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-12 15:26:52 +0100
commitf5c128008365e141082c129417eb72d2751e8045 (patch)
treef5d969302d73813c56d3f871d456173ef63fe9a6 /meta/classes/image-postinst-intercepts.bbclass
parent7c6c717a54423480c0ac9ed13861e3c1cc47e2b2 (diff)
downloadopenembedded-core-f5c128008365e141082c129417eb72d2751e8045.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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-postinst-intercepts.bbclass')
-rw-r--r--meta/classes/image-postinst-intercepts.bbclass29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/classes/image-postinst-intercepts.bbclass b/meta/classes/image-postinst-intercepts.bbclass
deleted file mode 100644
index fc15926384..0000000000
--- a/meta/classes/image-postinst-intercepts.bbclass
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# Copyright OpenEmbedded Contributors
-#
-# SPDX-License-Identifier: MIT
-#
-
-# Gather existing and candidate postinst intercepts from BBPATH
-POSTINST_INTERCEPTS_DIR ?= "${COREBASE}/scripts/postinst-intercepts"
-POSTINST_INTERCEPTS_PATHS ?= "${@':'.join('%s/postinst-intercepts' % p for p in '${BBPATH}'.split(':'))}:${POSTINST_INTERCEPTS_DIR}"
-
-python find_intercepts() {
- intercepts = {}
- search_paths = []
- paths = d.getVar('POSTINST_INTERCEPTS_PATHS').split(':')
- overrides = (':' + d.getVar('FILESOVERRIDES')).split(':') + ['']
- search_paths = [os.path.join(p, op) for p in paths for op in overrides]
- searched = oe.path.which_wild('*', ':'.join(search_paths), candidates=True)
- files, chksums = [], []
- for pathname, candidates in searched:
- if os.path.isfile(pathname):
- files.append(pathname)
- chksums.append('%s:True' % pathname)
- chksums.extend('%s:False' % c for c in candidates[:-1])
-
- d.setVar('POSTINST_INTERCEPT_CHECKSUMS', ' '.join(chksums))
- d.setVar('POSTINST_INTERCEPTS', ' '.join(files))
-}
-find_intercepts[eventmask] += "bb.event.RecipePreFinalise"
-addhandler find_intercepts