mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
On weekly builds INFIX_RELEASE is "latest", and it fed straight into INFIX_VERSION, so the keyword showed up as VERSION, VERSION_ID and PRETTY_NAME in /etc/os-release, in /etc/version (show version), in the ietf-system os-version operational leaf, and in the mDNS advertisement. None of those pinned down the source revision; only BUILD_ID did. Tie INFIX_VERSION to INFIX_BUILD_ID (git describe). INFIX_RELEASE now only labels the release channel (IMAGE_VERSION) and names the published artifacts. Also exclude the moving 'latest*' tags from git describe, so the build id can never resolve to "latest" should that tag land on, or nearest to, the built commit. Fixes #1524 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
16 lines
918 B
Makefile
16 lines
918 B
Makefile
IXMSG = printf "\e[37;44m>>> $(call qstrip,$(1))\e[0m\n"
|
|
|
|
oem-dir := $(call qstrip,$(INFIX_OEM_PATH))
|
|
INFIX_TOPDIR = $(if $(oem-dir),$(oem-dir),$(BR2_EXTERNAL_INFIX_PATH))
|
|
|
|
# Unless the user specifies an explicit build id, source it from git.
|
|
# Exclude the moving 'latest*' tags so the version always resolves to a
|
|
# real release tag, see issue #1524. The build id is also the version
|
|
# shown to users; INFIX_RELEASE only labels the release channel and names
|
|
# artifacts (see INFIX_ARTIFACT below).
|
|
export INFIX_BUILD_ID ?= $(shell git -C $(INFIX_TOPDIR) describe --dirty --always --tags --exclude 'latest*')
|
|
export INFIX_VERSION = $(INFIX_BUILD_ID)
|
|
export INFIX_ARTIFACT = $(call qstrip,$(INFIX_IMAGE_ID)$(if $(INFIX_RELEASE),-$(INFIX_RELEASE)))
|
|
|
|
INFIX_CFLAGS:=-Wall -Werror -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-overflow=2 -Winit-self -Wstrict-overflow=4 -Wno-format-truncation -Wno-format-nonliteral
|