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
.PHONY: release
release: \
$(RELEASE_DIR)/airgap.iso \
$(RELEASE_DIR)/release.env \
$(RELEASE_DIR)/manifest.txt
.PHONY: audit
audit: $(CACHE_DIR)/toolchain.tar
mkdir -p $(CACHE_DIR)/audit
$(call toolchain,$(USER),"audit")
release: | out/release.env out/airgap.iso out/manifest.txt
mkdir -p $(RELEASE_DIR)
cp out/release.env release/$(RELEASE_DIR)/release.env
cp out/airgap.iso release/$(RELEASE_DIR)/airgap.iso
cp out/manifest.txt release/$(RELEASE_DIR)/manifest.txt
.PHONY: attest
attest: \
$(RELEASE_DIR)/airgap.iso \
$(RELEASE_DIR)/release.env \
$(RELEASE_DIR)/manifest.txt
attest:
$(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
sign: $(RELEASE_DIR)/manifest.txt
@ -109,23 +101,28 @@ verify: $(RELEASE_DIR)/manifest.txt
gpg --verify $${file} $(RELEASE_DIR)/manifest.txt; \
done;
.PHONY: audit
audit: $(CACHE_DIR)/toolchain.tar
mkdir -p $(CACHE_DIR)/audit
$(call toolchain,$(USER),"audit")
$(RELEASE_DIR):
mkdir -p $(RELEASE_DIR)
$(RELEASE_DIR)/release.env: \
$(RELEASE_DIR) \
$(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) \
$(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) \
$(OUT_DIR)/manifest.txt
cp out/manifest.txt $(RELEASE_DIR)/manifest.txt
cp $(OUT_DIR)/manifest.txt $(RELEASE_DIR)/manifest.txt
## Development Targets