diff options
-rw-r--r-- | meta/classes/kernel-artifact-names.bbclass | 19 | ||||
-rw-r--r-- | meta/classes/kernel.bbclass | 18 |
2 files changed, 20 insertions, 17 deletions
diff --git a/meta/classes/kernel-artifact-names.bbclass b/meta/classes/kernel-artifact-names.bbclass new file mode 100644 index 0000000000..d696888322 --- /dev/null +++ b/meta/classes/kernel-artifact-names.bbclass | |||
@@ -0,0 +1,19 @@ | |||
1 | KERNEL_IMAGE_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
2 | # Don't include the DATETIME variable in the sstate package signatures | ||
3 | KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
4 | KERNEL_IMAGE_SYMLINK_NAME ?= "${MACHINE}" | ||
5 | |||
6 | KERNEL_DTB_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
7 | KERNEL_DTB_BASE_NAME[vardepsexclude] = "DATETIME" | ||
8 | KERNEL_DTB_SYMLINK_NAME ?= "${MACHINE}" | ||
9 | |||
10 | MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
11 | MODULE_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
12 | |||
13 | MODULE_TARBALL_BASE_NAME ?= "${MODULE_IMAGE_BASE_NAME}.tgz" | ||
14 | MODULE_TARBALL_SYMLINK_NAME ?= "modules-${MACHINE}.tgz" | ||
15 | MODULE_TARBALL_DEPLOY ?= "1" | ||
16 | |||
17 | INITRAMFS_BASE_NAME ?= "initramfs-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
18 | INITRAMFS_BASE_NAME[vardepsexclude] = "DATETIME" | ||
19 | INITRAMFS_SYMLINK_NAME ?= "initramfs-${MACHINE}" | ||
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 0045cec819..42efa382ad 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -657,23 +657,7 @@ do_sizecheck[dirs] = "${B}" | |||
657 | 657 | ||
658 | addtask sizecheck before do_install after do_strip | 658 | addtask sizecheck before do_install after do_strip |
659 | 659 | ||
660 | KERNEL_IMAGE_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | 660 | inherit kernel-artifact-names |
661 | # Don't include the DATETIME variable in the sstate package signatures | ||
662 | KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
663 | KERNEL_IMAGE_SYMLINK_NAME ?= "${MACHINE}" | ||
664 | KERNEL_DTB_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
665 | KERNEL_DTB_BASE_NAME[vardepsexclude] = "DATETIME" | ||
666 | KERNEL_DTB_SYMLINK_NAME ?= "${MACHINE}" | ||
667 | MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
668 | MODULE_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
669 | MODULE_TARBALL_BASE_NAME ?= "${MODULE_IMAGE_BASE_NAME}.tgz" | ||
670 | # Don't include the DATETIME variable in the sstate package signatures | ||
671 | MODULE_TARBALL_SYMLINK_NAME ?= "modules-${MACHINE}.tgz" | ||
672 | MODULE_TARBALL_DEPLOY ?= "1" | ||
673 | |||
674 | INITRAMFS_BASE_NAME ?= "initramfs-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
675 | INITRAMFS_BASE_NAME[vardepsexclude] = "DATETIME" | ||
676 | INITRAMFS_SYMLINK_NAME ?= "initramfs-${MACHINE}" | ||
677 | 661 | ||
678 | kernel_do_deploy() { | 662 | kernel_do_deploy() { |
679 | deployDir="${DEPLOYDIR}" | 663 | deployDir="${DEPLOYDIR}" |