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".
This commit is contained in:
xumia 2022-05-26 21:55:13 +08:00 committed by GitHub
parent f0dfd398a6
commit cc9a4beb0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)