From 7e2fa7d9973105752e2e9d4abb3c9031657d0eaa Mon Sep 17 00:00:00 2001 From: Samuel Angebault Date: Thu, 10 Sep 2020 01:24:12 -0700 Subject: [PATCH] [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 --- .gitignore | 1 + slave.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 88a4174168..253196bd11 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ .arch .platform .screen +rules/config.user # Build artifacts fsroot/ diff --git a/slave.mk b/slave.mk index fa2926d408..90805f286e 100644 --- a/slave.mk +++ b/slave.mk @@ -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