File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 13
13
# * PASSWORD: Desired password -- default at rules/config
14
14
# * KEEP_SLAVE_ON: Keeps slave container up after building-process concludes.
15
15
# * SOURCE_FOLDER: host path to be mount as /var/src, only effective when KEEP_SLAVE_ON=yes
16
+ # * SONIC_BUILD_JOB: Specifying number of concurrent build job(s) to run
16
17
#
17
18
# ##############################################################################
18
19
@@ -59,7 +60,8 @@ SONIC_BUILD_INSTRUCTION := make \
59
60
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START ) \
60
61
ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC ) \
61
62
PASSWORD=$(PASSWORD ) \
62
- USERNAME=$(USERNAME )
63
+ USERNAME=$(USERNAME ) \
64
+ SONIC_BUILD_JOBS=$(SONIC_BUILD_JOBS )
63
65
64
66
.PHONY : sonic-slave-build sonic-slave-bash init
65
67
Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ ifeq ($(PASSWORD),)
74
74
override PASSWORD := $(DEFAULT_PASSWORD )
75
75
endif
76
76
77
- MAKEFLAGS += -j $(SONIC_CONFIG_BUILD_JOBS )
77
+ ifeq ($(SONIC_BUILD_JOBS ) ,)
78
+ override SONIC_BUILD_JOBS := $(SONIC_CONFIG_BUILD_JOBS )
79
+ endif
80
+
81
+ MAKEFLAGS += -j $(SONIC_BUILD_JOBS )
78
82
export SONIC_CONFIG_MAKE_JOBS
79
83
80
84
# ##############################################################################
@@ -86,7 +90,7 @@ $(info )
86
90
$(info Build Configuration)
87
91
$(info "CONFIGURED_PLATFORM" : "$(if $(PLATFORM ) ,$(PLATFORM ) ,$(CONFIGURED_PLATFORM ) ) ")
88
92
$(info "SONIC_CONFIG_PRINT_DEPENDENCIES" : "$(SONIC_CONFIG_PRINT_DEPENDENCIES ) ")
89
- $(info "SONIC_CONFIG_BUILD_JOBS " : "$(SONIC_CONFIG_BUILD_JOBS ) ")
93
+ $(info "SONIC_BUILD_JOBS " : "$(SONIC_BUILD_JOBS ) ")
90
94
$(info "SONIC_CONFIG_MAKE_JOBS" : "$(SONIC_CONFIG_MAKE_JOBS ) ")
91
95
$(info "DEFAULT_USERNAME" : "$(DEFAULT_USERNAME ) ")
92
96
$(info "DEFAULT_PASSWORD" : "$(DEFAULT_PASSWORD ) ")
You can’t perform that action at this time.
0 commit comments