forked from public/airgap
1
0
Fork 0

refactor attest/release target deps

This commit is contained in:
Lance Vick 2022-12-24 18:07:53 -08:00
parent a73942f722
commit 9036ccae48
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 15 additions and 18 deletions

View File

@ -66,24 +66,16 @@ build-fw: $(CACHE_DIR)/toolchain.tar
## Release Targets ## Release Targets
.PHONY: release .PHONY: release
release: \ release: | out/release.env out/airgap.iso out/manifest.txt
$(RELEASE_DIR)/airgap.iso \ mkdir -p $(RELEASE_DIR)
$(RELEASE_DIR)/release.env \ cp out/release.env release/$(RELEASE_DIR)/release.env
$(RELEASE_DIR)/manifest.txt cp out/airgap.iso release/$(RELEASE_DIR)/airgap.iso
cp out/manifest.txt release/$(RELEASE_DIR)/manifest.txt
.PHONY: audit
audit: $(CACHE_DIR)/toolchain.tar
mkdir -p $(CACHE_DIR)/audit
$(call toolchain,$(USER),"audit")
.PHONY: attest .PHONY: attest
attest: \ attest:
$(RELEASE_DIR)/airgap.iso \
$(RELEASE_DIR)/release.env \
$(RELEASE_DIR)/manifest.txt
$(MAKE) mrproper out/manifest.txt $(MAKE) mrproper out/manifest.txt
diff -q $(OUT_DIR)/manifest.txt $(RELEASE_DIR)/manifest.txt; diff -q out/manifest.txt release/$(VERSION)/manifest.txt;
.PHONY: sign .PHONY: sign
sign: $(RELEASE_DIR)/manifest.txt sign: $(RELEASE_DIR)/manifest.txt
@ -109,23 +101,28 @@ verify: $(RELEASE_DIR)/manifest.txt
gpg --verify $${file} $(RELEASE_DIR)/manifest.txt; \ gpg --verify $${file} $(RELEASE_DIR)/manifest.txt; \
done; done;
.PHONY: audit
audit: $(CACHE_DIR)/toolchain.tar
mkdir -p $(CACHE_DIR)/audit
$(call toolchain,$(USER),"audit")
$(RELEASE_DIR): $(RELEASE_DIR):
mkdir -p $(RELEASE_DIR) mkdir -p $(RELEASE_DIR)
$(RELEASE_DIR)/release.env: \ $(RELEASE_DIR)/release.env: \
$(RELEASE_DIR) \ $(RELEASE_DIR) \
$(OUT_DIR)/release.env $(OUT_DIR)/release.env
cp out/release.env $(RELEASE_DIR)/release.env cp $(OUT_DIR)/release.env $(RELEASE_DIR)/release.env
$(RELEASE_DIR)/airgap.iso: \ $(RELEASE_DIR)/airgap.iso: \
$(RELEASE_DIR) \ $(RELEASE_DIR) \
$(OUT_DIR)/airgap.iso $(OUT_DIR)/airgap.iso
cp out/airgap.iso $(RELEASE_DIR)/airgap.iso cp $(OUT_DIR)/airgap.iso $(RELEASE_DIR)/airgap.iso
$(RELEASE_DIR)/manifest.txt: \ $(RELEASE_DIR)/manifest.txt: \
$(RELEASE_DIR) \ $(RELEASE_DIR) \
$(OUT_DIR)/manifest.txt $(OUT_DIR)/manifest.txt
cp out/manifest.txt $(RELEASE_DIR)/manifest.txt cp $(OUT_DIR)/manifest.txt $(RELEASE_DIR)/manifest.txt
## Development Targets ## Development Targets