Skip to content

Commit

Permalink
[build]: Add a user defined rules/config file not tracked by git (#5325)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Staphylo authored Sep 10, 2020
1 parent 8bac490 commit 7e2fa7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.arch
.platform
.screen
rules/config.user

# Build artifacts
fsroot/
Expand Down
1 change: 1 addition & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ list :
###############################################################################

include $(RULES_PATH)/config
-include $(RULES_PATH)/config.user

ifeq ($(SONIC_ENABLE_PFCWD_ON_START),y)
ENABLE_PFCWD_ON_START = y
Expand Down

0 comments on commit 7e2fa7d

Please sign in to comment.