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-recipe/kernel-artifact-names.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-recipe/kernel-artifact-names.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel-artifact-names.bbclass | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel-artifact-names.bbclass b/meta/classes-recipe/kernel-artifact-names.bbclass new file mode 100644 index 0000000000..311075c68d --- /dev/null +++ b/meta/classes-recipe/kernel-artifact-names.bbclass | |||
@@ -0,0 +1,37 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | ################################################################## | ||
8 | # Specific kernel creation info | ||
9 | # for recipes/bbclasses which need to reuse some of the kernel | ||
10 | # artifacts, but aren't kernel recipes themselves | ||
11 | ################################################################## | ||
12 | |||
13 | inherit image-artifact-names | ||
14 | |||
15 | KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | ||
16 | KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}" | ||
17 | KERNEL_ARTIFACT_BIN_EXT ?= ".bin" | ||
18 | |||
19 | KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}" | ||
20 | KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | ||
21 | KERNEL_IMAGE_BIN_EXT ?= "${KERNEL_ARTIFACT_BIN_EXT}" | ||
22 | KERNEL_IMAGETYPE_SYMLINK ?= "1" | ||
23 | |||
24 | KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}" | ||
25 | KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | ||
26 | KERNEL_DTB_BIN_EXT ?= "${KERNEL_ARTIFACT_BIN_EXT}" | ||
27 | |||
28 | KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}" | ||
29 | KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | ||
30 | KERNEL_FIT_BIN_EXT ?= "${KERNEL_ARTIFACT_BIN_EXT}" | ||
31 | |||
32 | MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}" | ||
33 | MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" | ||
34 | MODULE_TARBALL_DEPLOY ?= "1" | ||
35 | |||
36 | INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}" | ||
37 | INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}" | ||