Re: Naming images


Thanks Quentin! That's just what I needed.

Do you know if there's a variable to control the content of /etc/version?


On Mon, Mar 29, 2021 at 4:14 PM Quentin Schulz <quentin.schulz@...> wrote:
Hi Damien,

On Mon, Mar 29, 2021 at 03:33:09PM +0300, Damien LEFEVRE wrote:
> Hi,
> In my build system the generated images are in this format:
> imagename-machine-timestamp.img
> For release builds, I'd like to replace the time stamp with the image
> version. I could rename the image after the build but is there a better way?

IMAGE_NAME variable is the one specifying the name which should be used
for the final image. c.f.

By default, its value is "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"

IMAGE_VERSION_SUFFIX is by default set to "-${DATETIME}" as documented

Therefore to put the image version, you just need to change
IMAGE_VERSION_SUFFIX to what you want it to contain.


Join to automatically receive all group messages.