[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 <staphylo@arista.com>
This commit is contained in:
Samuel Angebault 2020-09-10 01:24:12 -07:00 committed by GitHub
parent 8bac4904b8
commit 7e2fa7d997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
.arch
.platform
.screen
rules/config.user
# Build artifacts
fsroot/

View File

@ -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