mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-28 06:24:10 +01:00
Make sure dist tar modification time is consistent
This commit is contained in:
parent
b00ac8a55a
commit
c4c0fc21e3
6
Makefile
6
Makefile
@ -382,12 +382,13 @@ $(DIST_TAR): $(DIST_VER_INFO) .git/index | $(DIST_DIR)
|
|||||||
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_TAR))"
|
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_TAR))"
|
||||||
$(V1) git archive --prefix="$(PACKAGE_NAME)/" -o "$(DIST_TAR)" HEAD
|
$(V1) git archive --prefix="$(PACKAGE_NAME)/" -o "$(DIST_TAR)" HEAD
|
||||||
$(V1) tar --append --file="$(DIST_TAR)" \
|
$(V1) tar --append --file="$(DIST_TAR)" \
|
||||||
|
--owner=root --group=root --mtime="`git show -s --format=%ci`" \
|
||||||
--transform='s,.*version-info.json,$(PACKAGE_NAME)/version-info.json,' \
|
--transform='s,.*version-info.json,$(PACKAGE_NAME)/version-info.json,' \
|
||||||
$(call toprel, "$(DIST_VER_INFO)")
|
$(call toprel, "$(DIST_VER_INFO)")
|
||||||
|
|
||||||
$(DIST_TAR_GZ): $(DIST_TAR)
|
$(DIST_TAR_GZ): $(DIST_TAR)
|
||||||
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_TAR_GZ))"
|
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_TAR_GZ))"
|
||||||
$(V1) gzip -kf "$(DIST_TAR)"
|
$(V1) gzip -knf "$(DIST_TAR)"
|
||||||
|
|
||||||
.PHONY: dist_tar_gz
|
.PHONY: dist_tar_gz
|
||||||
dist_tar_gz: $(DIST_TAR_GZ)
|
dist_tar_gz: $(DIST_TAR_GZ)
|
||||||
@ -399,12 +400,13 @@ dist: dist_tar_gz
|
|||||||
$(FW_DIST_TAR): $(PACKAGE_FW_TARGETS) | $(DIST_DIR)
|
$(FW_DIST_TAR): $(PACKAGE_FW_TARGETS) | $(DIST_DIR)
|
||||||
@$(ECHO) " FIRMWARE FOR DISTRIBUTION $(call toprel, $(FW_DIST_TAR))"
|
@$(ECHO) " FIRMWARE FOR DISTRIBUTION $(call toprel, $(FW_DIST_TAR))"
|
||||||
$(V1) tar -c --file="$(FW_DIST_TAR)" --directory=$(FLIGHT_OUT_DIR) \
|
$(V1) tar -c --file="$(FW_DIST_TAR)" --directory=$(FLIGHT_OUT_DIR) \
|
||||||
|
--owner=root --group=root --mtime="`git show -s --format=%ci`" \
|
||||||
--transform='s,^,firmware/,' \
|
--transform='s,^,firmware/,' \
|
||||||
$(foreach fw_targ,$(PACKAGE_FW_TARGETS),$(fw_targ)/$(fw_targ).opfw)
|
$(foreach fw_targ,$(PACKAGE_FW_TARGETS),$(fw_targ)/$(fw_targ).opfw)
|
||||||
|
|
||||||
$(FW_DIST_TAR_GZ): $(FW_DIST_TAR)
|
$(FW_DIST_TAR_GZ): $(FW_DIST_TAR)
|
||||||
@$(ECHO) " FIRMWARE FOR DISTRIBUTION $(call toprel, $(FW_DIST_TAR_GZ))"
|
@$(ECHO) " FIRMWARE FOR DISTRIBUTION $(call toprel, $(FW_DIST_TAR_GZ))"
|
||||||
$(V1) gzip -kf "$(FW_DIST_TAR)"
|
$(V1) gzip -knf "$(FW_DIST_TAR)"
|
||||||
|
|
||||||
.PHONY: fw_dist_tar_gz
|
.PHONY: fw_dist_tar_gz
|
||||||
fw_dist_tar_gz: $(FW_DIST_TAR_GZ)
|
fw_dist_tar_gz: $(FW_DIST_TAR_GZ)
|
||||||
|
Loading…
Reference in New Issue
Block a user