Makefile: Don't overwrite RUNTIME-related variables if they are already set.

Without this, setting `RUNTIME` in the environment has no effect.

PiperOrigin-RevId: 459311928
This commit is contained in:
Etienne Perot
2022-07-06 12:15:06 -07:00
committed by gVisor bot
parent 5b70da9525
commit 1b60c51687
+5 -5
View File
@@ -105,14 +105,14 @@ endif
## DOCKER_RELOAD_COMMAND - The command to run to reload Docker. (default: sudo systemctl reload docker).
ifeq (,$(BRANCH_NAME))
RUNTIME := runsc
RUNTIME ?= runsc
else
RUNTIME := $(BRANCH_NAME)
RUNTIME ?= $(BRANCH_NAME)
endif
RUNTIME_DIR ?= $(shell dirname $(shell mktemp -u))/$(RUNTIME)
RUNTIME_BIN := $(RUNTIME_DIR)/runsc
RUNTIME_LOG_DIR := $(RUNTIME_DIR)/logs
RUNTIME_LOGS := $(RUNTIME_LOG_DIR)/runsc.log.%TEST%.%TIMESTAMP%.%COMMAND%
RUNTIME_BIN ?= $(RUNTIME_DIR)/runsc
RUNTIME_LOG_DIR ?= $(RUNTIME_DIR)/logs
RUNTIME_LOGS ?= $(RUNTIME_LOG_DIR)/runsc.log.%TEST%.%TIMESTAMP%.%COMMAND%
RUNTIME_ARGS ?=
DOCKER_RELOAD_COMMAND ?= sudo systemctl reload docker