Skip to content

Commit 7e2fa7d

Browse files
authored
[build]: Add a user defined rules/config file not tracked by git (#5325)
This change introduce the rules/config.user file. It gets loaded after rules/config as a mean to override default values. If the configuration file does not exists this step is ignored. Since this path is tracked by .gitignore, it provides a mean to change the configuration of sonic build without dirtying the git tree. Signed-off-by: Samuel Angebault <[email protected]>
1 parent 8bac490 commit 7e2fa7d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.arch
66
.platform
77
.screen
8+
rules/config.user
89

910
# Build artifacts
1011
fsroot/

slave.mk

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ list :
9494
###############################################################################
9595

9696
include $(RULES_PATH)/config
97+
-include $(RULES_PATH)/config.user
9798

9899
ifeq ($(SONIC_ENABLE_PFCWD_ON_START),y)
99100
ENABLE_PFCWD_ON_START = y

0 commit comments

Comments
 (0)