[build] Fix docker image cached tag issue. (#10297)

before: [ finished ] target/docker-base-buster.gz
after: [ cached ] target/docker-base-buster.gz
This commit is contained in:
Shilong Liu 2022-03-22 15:39:01 +08:00 committed by GitHub
parent e9ac13678d
commit f8e11042b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -816,7 +816,7 @@ $(addprefix $(TARGET_PATH)/, $(DOCKER_IMAGES)) : $(TARGET_PATH)/%.gz : .platform
# Load the target deb from DPKG cache
$(call LOAD_CACHE,$*.gz,$@)
$(eval $*_CACHE_LOADED:=$($*.gz_CACHE_LOADED))
# Skip building the target if it is already loaded from cache
if [ -z '$($*.gz_CACHE_LOADED)' ] ; then
@ -890,7 +890,7 @@ $(addprefix $(TARGET_PATH)/, $(DOCKER_DBG_IMAGES)) : $(TARGET_PATH)/%-$(DBG_IMAG
# Load the target deb from DPKG cache
$(call LOAD_CACHE,$*-$(DBG_IMAGE_MARK).gz,$@)
$(eval $*_CACHE_LOADED:=$($*-$(DBG_IMAGE_MARK).gz_CACHE_LOADED))
# Skip building the target if it is already loaded from cache
if [ -z '$($*-$(DBG_IMAGE_MARK).gz_CACHE_LOADED)' ] ; then