From 3690c1a0d9383d01267bb0f5e6776440a6e8b7d1 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Fri, 25 Dec 2020 02:21:57 -0800 Subject: [PATCH] [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 --- Makefile.work | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.work b/Makefile.work index 021f9e0c137b..0605eae14764 100644 --- a/Makefile.work +++ b/Makefile.work @@ -91,7 +91,11 @@ endif include rules/config +ifeq ($(CONFIGURED_ARCH),amd64) SLAVE_BASE_IMAGE = $(SLAVE_DIR) +else +SLAVE_BASE_IMAGE = $(SLAVE_DIR)-$(CONFIGURED_ARCH) +endif SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER) # Generate the version control build info