Skip to content

Commit 01832e3

Browse files
yxiecaraphaelt-nvidia
authored andcommitted
[makefile] define a do-nothing target for config.user (sonic-net#7483)
Why I did it After PR sonic-net#7344, 'make init' and/or 'make reset' will also build sonic slave dockers. '-include rules/config.user' is supposed to be fine when the file is missing. However, when the file is missing, it generates a delayed error which later causes make init and make reset trying to build the sonic slave dockers. How I did it Define a do-nothing target for config.user to catch config.user build therefore preventing other builds to be triggered unexpectedly. How to verify it did make init and it is now only doing submodule init.
1 parent 71e6ca7 commit 01832e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile.work

+5
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ else
9999
SLAVE_DIR = sonic-slave-jessie
100100
endif
101101

102+
# Define a do-nothing target for rules/config.user so that when
103+
# the file is missing, make won't try to rebuld everything.
104+
rules/config.user:
105+
@echo -n ""
106+
102107
include rules/config
103108
-include rules/config.user
104109

0 commit comments

Comments
 (0)