From 145b06d59b0e9b30aea7cad904f1c3846835a731 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Mon, 10 Jan 2022 17:35:05 +0200 Subject: [PATCH] build: Override assignment of DOCKER_OPTS. ... so that users can use this variable to extra docker options when desired. --- build/makefile_base.mak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/makefile_base.mak b/build/makefile_base.mak index 72515166..363e91c2 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -60,14 +60,14 @@ include $(SRC)/make/rules-cargo.mk CCACHE_ENV := $(patsubst %,-e %,$(shell env|cut -d= -f1|grep '^CCACHE_')) ifeq ($(ENABLE_CCACHE),1) export CCACHE_DIR := $(if $(CCACHE_DIR),$(CCACHE_DIR),$(HOME)/.ccache) - DOCKER_OPTS := -v $(CCACHE_DIR):$(CCACHE_DIR)$(CONTAINER_MOUNT_OPTS) $(CCACHE_ENV) -e CCACHE_DIR=$(CCACHE_DIR) $(DOCKER_OPTS) + override DOCKER_OPTS := -v $(CCACHE_DIR):$(CCACHE_DIR)$(CONTAINER_MOUNT_OPTS) $(CCACHE_ENV) -e CCACHE_DIR=$(CCACHE_DIR) $(DOCKER_OPTS) else export CCACHE_DISABLE := 1 - DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS) + override DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS) endif ifneq ($(ROOTLESS_CONTAINER),1) - DOCKER_OPTS := -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) $(DOCKER_OPTS) + override DOCKER_OPTS := -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) $(DOCKER_OPTS) endif ifeq ($(CONTAINER_ENGINE),)