mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
INFIX_OEM_PATH is `""` by default (i.e., not empty in `make`'s eyes). So we called `git` with `-C ""`, which it interpreted as "from the current directory" and thus we sourced the autogenerated build id from _buildroot_ instead of Infix. Therefore, make sure to strip any quotes from the OEM path before determining the top directory.
13 lines
676 B
Makefile
13 lines
676 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.
|
|
# The build id also becomes the image version, unless an official
|
|
# release is being built.
|
|
export INFIX_BUILD_ID ?= $(shell git -C $(INFIX_TOPDIR) describe --dirty --always --tags)
|
|
export INFIX_VERSION = $(if $(INFIX_RELEASE),$(INFIX_RELEASE),$(INFIX_BUILD_ID))
|
|
|
|
INFIX_CFLAGS:=-Wall -Werror -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-overflow=2 -Winit-self -Wstrict-overflow=4 -Wno-format-truncation -Wno-format-nonliteral
|