From cc9a4beb0c0712c149f5139e3911017b42348a64 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Thu, 26 May 2022 21:55:13 +0800 Subject: [PATCH] Touch the donwload files to change the modified time (#10929) Why I did it It is to improve the build performance, when building multiple targets. The modified time of downloaded files should be not older than the file .platform. If not, the file will be downloaded again, when building any dependent targets. How I did it When downloading the packages from web site, the modified time will be changed by the command "touch". --- src/sonic-fips/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sonic-fips/Makefile b/src/sonic-fips/Makefile index f38583e2f6..3ee9f46fc5 100644 --- a/src/sonic-fips/Makefile +++ b/src/sonic-fips/Makefile @@ -24,6 +24,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : url=$(FIPS_URL_PREFIX)/$$filename mkdir -p "$$(dirname $(DEST)/$$target)" wget -O "$(DEST)/$$target" "$$url" + touch "$(DEST)/$$target" done $(addprefix $(DEST)/, $(FIPS_DERIVED_TARGET)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)