File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ all: toolchain go-tools chroot-tools
201
201
# its help will be displayed at the top of the help output.
202
202
include $(SCRIPTS_DIR ) /help.mk
203
203
204
+ # Set-up the Azure configuration for the build
205
+ include $(SCRIPTS_DIR ) /azure_config.mk
206
+
204
207
# Set up for the timestamp feature
205
208
include $(SCRIPTS_DIR ) /timestamp.mk
206
209
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT License.
3
+
4
+ # By default pass original user's Azure configuration if running as root.
5
+ # Running as root is required by how the toolkit operates while
6
+ # in most cases the user expects to use their Azure configuration, thus the default.
7
+ USE_USER_AZURE_CONFIG ?= y
8
+ ifneq ($(SUDO_USER ) ,)
9
+ ifeq ($(USE_USER_AZURE_CONFIG),y)
10
+ # Getting the original user's home directory first.
11
+ export AZURE_CONFIG_DIR=$(shell getent passwd "$(SUDO_USER)" | cut -d: -f6)/.azure
12
+ endif
13
+ endif
You can’t perform that action at this time.
0 commit comments