use hash of cache directory as toolchain tag

This commit is contained in:
Lance Vick 2023-09-27 17:22:01 -07:00
parent bba9553c2f
commit f4a93830c5
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@ HOST_ARCH_ALT := $(call altarch,$(HOST_ARCH))
HOST_OS := $(call lc,$(shell uname -s)) HOST_OS := $(call lc,$(shell uname -s))
PLATFORM := $(or $(PLATFORM),linux) PLATFORM := $(or $(PLATFORM),linux)
NAME := $(shell basename $(shell git rev-parse --show-toplevel | tr A-Z a-z )) NAME := $(shell basename $(shell git rev-parse --show-toplevel | tr A-Z a-z ))
IMAGE := local/$(NAME)
UID := $(shell id -u) UID := $(shell id -u)
GID := $(shell id -g) GID := $(shell id -g)
USER := $(UID):$(GID) USER := $(UID):$(GID)
@ -44,6 +43,7 @@ BIN_DIR := $(CACHE_DIR_ROOT)/bin
SRC_DIR := src SRC_DIR := src
KEY_DIR := fetch/keys KEY_DIR := fetch/keys
OUT_DIR := out OUT_DIR := out
IMAGE := toolchain/$(shell git ls-files -s $(CONFIG_DIR) | git hash-object --stdin)
docker = docker docker = docker
PATH_PREFIX := /home/build/.local/bin:/home/build/$(CACHE_DIR)/bin:/home/build/$(OUT_DIR)/linux/x86_64 PATH_PREFIX := /home/build/.local/bin:/home/build/$(CACHE_DIR)/bin:/home/build/$(OUT_DIR)/linux/x86_64