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/rootfs_ipk.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/rootfs_ipk.bbclass')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass deleted file mode 100644 index a48ad07dfc..0000000000 --- a/meta/classes/rootfs_ipk.bbclass +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | # | ||
8 | # Creates a root filesystem out of IPKs | ||
9 | # | ||
10 | # This rootfs can be mounted via root-nfs or it can be put into an cramfs/jffs etc. | ||
11 | # See image.bbclass for a usage of this. | ||
12 | # | ||
13 | |||
14 | EXTRAOPKGCONFIG ?= "" | ||
15 | ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}" | ||
16 | |||
17 | do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" | ||
18 | do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" | ||
19 | do_rootfs[recrdeptask] += "do_package_write_ipk do_package_qa" | ||
20 | do_rootfs[vardeps] += "PACKAGE_FEED_URIS PACKAGE_FEED_BASE_PATHS PACKAGE_FEED_ARCHS" | ||
21 | |||
22 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" | ||
23 | do_populate_sdk[lockfiles] += "${WORKDIR}/sdk-ipk.lock" | ||
24 | do_populate_sdk_ext[lockfiles] += "${WORKDIR}/sdk-ipk.lock" | ||
25 | |||
26 | OPKG_PREPROCESS_COMMANDS = "" | ||
27 | |||
28 | OPKG_POSTPROCESS_COMMANDS = "" | ||
29 | |||
30 | OPKGLIBDIR ??= "${localstatedir}/lib" | ||
31 | |||
32 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg" | ||
33 | |||
34 | python () { | ||
35 | |||
36 | if d.getVar('BUILD_IMAGES_FROM_FEEDS'): | ||
37 | flags = d.getVarFlag('do_rootfs', 'recrdeptask') | ||
38 | flags = flags.replace("do_package_write_ipk", "") | ||
39 | flags = flags.replace("do_deploy", "") | ||
40 | flags = flags.replace("do_populate_sysroot", "") | ||
41 | d.setVarFlag('do_rootfs', 'recrdeptask', flags) | ||
42 | d.setVar('OPKG_PREPROCESS_COMMANDS', "") | ||
43 | d.setVar('OPKG_POSTPROCESS_COMMANDS', '') | ||
44 | } | ||