Skip to content

Commit 3690c1a

Browse files
committed
[build]: add arch name in sonic-slave docker image
for exmaple, for arm64, the sonic-slave docker image name is sonic-slave-arm64-$(USER) for amd64, the docker image is kept as it is Signed-off-by: Guohan Lu <[email protected]>
1 parent 2999dfa commit 3690c1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.work

+4
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ endif
9191

9292
include rules/config
9393

94+
ifeq ($(CONFIGURED_ARCH),amd64)
9495
SLAVE_BASE_IMAGE = $(SLAVE_DIR)
96+
else
97+
SLAVE_BASE_IMAGE = $(SLAVE_DIR)-$(CONFIGURED_ARCH)
98+
endif
9599
SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER)
96100

97101
# Generate the version control build info

0 commit comments

Comments
 (0)