Skip to content

Commit c63e9fe

Browse files
authored
[Build] Update SLAVE_BASE_TAG and DPKG cache if Debian mirrors were changed (sonic-net#12702)
Why I did it After sonic-net#12557 sources.lists are generated. So we need to recalculate SLAVE_BASE_TAG if mirrors were changed. Also we need to rebuild DPKG cache in this case. How I did it Use generated sources.list for SLAVE_BASE_TAG Add MIRROR_URLS and MIRROR_SECURITY_URLS to SONIC_COMMON_FLAGS_LIST
1 parent 672367c commit c63e9fe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile.cache

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ SONIC_COMMON_FILES_LIST := $(if $(wildcard cache.skip.common),, .platform slave
7070
SONIC_COMMON_FLAGS_LIST := $(CONFIGURED_PLATFORM) \
7171
$(CONFIGURED_ARCH) \
7272
$(BLDENV) \
73+
$(MIRROR_URLS) $(MIRROR_SECURITY_URLS) \
7374
$(SONIC_DEBUGGING_ON) \
7475
$(SONIC_PROFILING_ON) $(SONIC_ENABLE_SYNCD_RPC)
7576
SONIC_COMMON_DPKG_LIST := debian/control debian/changelog debian/rules \

Makefile.work

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ $(shell $(PREPARE_DOCKER) )
207207
# Add the versions in the tag, if the version change, need to rebuild the slave
208208
SLAVE_BASE_TAG = $(shell \
209209
cat $(SLAVE_DIR)/Dockerfile \
210+
$(SLAVE_DIR)/sources.list.* \
210211
$(SLAVE_DIR)/buildinfo/versions/versions-* \
211212
src/sonic-build-hooks/hooks/* 2>/dev/null \
212213
| sha1sum \

0 commit comments

Comments
 (0)