Skip to content

Commit

Permalink
Touch the donwload files to change the modified time (#10929)
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
xumia authored May 26, 2022
1 parent f0dfd39 commit cc9a4be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sonic-fips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cc9a4be

Please sign in to comment.