summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-artifact-names.bbclass
diff options
context:
space:
mode:
authorJens Rehsack <sno@netbsd.org>2020-09-17 16:45:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-20 12:48:11 +0100
commit0a54b771f16b3626ee8302ed6fbae51758a7a460 (patch)
tree90e368c352ee21fec093ce6d76383ca4a6013975 /meta/classes/image-artifact-names.bbclass
parentda4fb13f6d16b88dddf29495c1567b54cf1c7234 (diff)
downloadpoky-0a54b771f16b3626ee8302ed6fbae51758a7a460.tar.gz
image-artifact-names: make variables overridable
Since the newly introduced image-artifact-names class is inherited at later processing stage, individual IMAGE_NAME settings are overridden (hopefully by accident instead on purpose). Allow derived distributions define their own name schema by setting defaults iwth question mark. (From OE-Core rev: d0f18376dca5649aa80aff2536378763740ecda9) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-artifact-names.bbclass')
-rw-r--r--meta/classes/image-artifact-names.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/image-artifact-names.bbclass b/meta/classes/image-artifact-names.bbclass
index 5ab8f1b7aa..3ac8dd731a 100644
--- a/meta/classes/image-artifact-names.bbclass
+++ b/meta/classes/image-artifact-names.bbclass
@@ -2,11 +2,11 @@
2# Specific image creation and rootfs population info. 2# Specific image creation and rootfs population info.
3################################################################## 3##################################################################
4 4
5IMAGE_BASENAME = "${PN}" 5IMAGE_BASENAME ?= "${PN}"
6IMAGE_VERSION_SUFFIX = "-${DATETIME}" 6IMAGE_VERSION_SUFFIX ?= "-${DATETIME}"
7IMAGE_VERSION_SUFFIX[vardepsexclude] += "DATETIME" 7IMAGE_VERSION_SUFFIX[vardepsexclude] += "DATETIME"
8IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" 8IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
9IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" 9IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
10 10
11# IMAGE_NAME is the base name for everything produced when building images. 11# IMAGE_NAME is the base name for everything produced when building images.
12# The actual image that contains the rootfs has an additional suffix (.rootfs 12# The actual image that contains the rootfs has an additional suffix (.rootfs