diff options
author | Jens Rehsack <sno@netbsd.org> | 2020-09-17 16:45:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-20 12:48:11 +0100 |
commit | 0a54b771f16b3626ee8302ed6fbae51758a7a460 (patch) | |
tree | 90e368c352ee21fec093ce6d76383ca4a6013975 /meta/classes/image-artifact-names.bbclass | |
parent | da4fb13f6d16b88dddf29495c1567b54cf1c7234 (diff) | |
download | poky-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.bbclass | 8 |
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 | ||
5 | IMAGE_BASENAME = "${PN}" | 5 | IMAGE_BASENAME ?= "${PN}" |
6 | IMAGE_VERSION_SUFFIX = "-${DATETIME}" | 6 | IMAGE_VERSION_SUFFIX ?= "-${DATETIME}" |
7 | IMAGE_VERSION_SUFFIX[vardepsexclude] += "DATETIME" | 7 | IMAGE_VERSION_SUFFIX[vardepsexclude] += "DATETIME" |
8 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | 8 | IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" |
9 | IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" | 9 | IMAGE_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 |