forked from public/airgap
updated hash format: 1.0.0rc4
This commit is contained in:
parent
875c5c891f
commit
2d00082279
39
Makefile
39
Makefile
|
@ -29,19 +29,6 @@ all: image fetch build hash
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: build-os build-fw
|
build: build-os build-fw
|
||||||
|
|
||||||
.PHONY: verify
|
|
||||||
verify:
|
|
||||||
mkdir -p build/verify/$(VERSION)
|
|
||||||
openssl sha256 $(RELEASE_DIR)/*.rom > build/verify/$(VERSION)/hashes.txt
|
|
||||||
openssl sha256 $(RELEASE_DIR)/*.iso >> build/verify/$(VERSION)/hashes.txt
|
|
||||||
diff -q build/verify/$(VERSION)/hashes.txt $(RELEASE_DIR)/hashes.txt;
|
|
||||||
|
|
||||||
.PHONY: sign
|
|
||||||
sign: $(RELEASE_DIR)/*.rom $(RELEASE_DIR)/*.iso
|
|
||||||
for file in $^; do \
|
|
||||||
gpg --armor --detach-sig "$${file}"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
.PHONY: image
|
.PHONY: image
|
||||||
image:
|
image:
|
||||||
$(docker) build \
|
$(docker) build \
|
||||||
|
@ -61,6 +48,7 @@ clean:
|
||||||
|
|
||||||
.PHONY: mrproper
|
.PHONY: mrproper
|
||||||
mrproper:
|
mrproper:
|
||||||
|
docker image rm -f $(IMAGE)
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
.PHONY: build-os
|
.PHONY: build-os
|
||||||
|
@ -79,15 +67,36 @@ build-fw:
|
||||||
$(RELEASE_DIR)/$${device}.rom ; \
|
$(RELEASE_DIR)/$${device}.rom ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
## Release Targets
|
||||||
|
|
||||||
|
.PHONY: audit
|
||||||
|
audit:
|
||||||
|
$(contain) audit
|
||||||
|
|
||||||
.PHONY: hash
|
.PHONY: hash
|
||||||
hash:
|
hash:
|
||||||
if [ ! -f release/$(VERSION)/hashes.txt ]; then \
|
if [ ! -f release/$(VERSION)/hashes.txt ]; then \
|
||||||
openssl sha256 release/$(VERSION)/*.rom \
|
openssl sha256 -r release/$(VERSION)/*.rom \
|
||||||
> release/$(VERSION)/hashes.txt; \
|
> release/$(VERSION)/hashes.txt; \
|
||||||
openssl sha256 release/$(VERSION)/*.iso \
|
openssl sha256 -r release/$(VERSION)/*.iso \
|
||||||
>> release/$(VERSION)/hashes.txt; \
|
>> release/$(VERSION)/hashes.txt; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
.PHONY: verify
|
||||||
|
verify:
|
||||||
|
mkdir -p build/verify/$(VERSION)
|
||||||
|
openssl sha256 -r $(RELEASE_DIR)/*.rom \
|
||||||
|
> build/stats/$(VERSION)/release_hashes.txt
|
||||||
|
openssl sha256 -r $(RELEASE_DIR)/*.iso \
|
||||||
|
>> build/stats/$(VERSION)/release_hashes.txt
|
||||||
|
diff -q build/stats/$(VERSION)/release_hashes.txt $(RELEASE_DIR)/hashes.txt;
|
||||||
|
|
||||||
|
.PHONY: sign
|
||||||
|
sign: $(RELEASE_DIR)/*.rom $(RELEASE_DIR)/*.iso
|
||||||
|
for file in $^; do \
|
||||||
|
gpg --armor --detach-sig "$${file}"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
## Development Targets
|
## Development Targets
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
SHA256(release/1.0.0rc4/librem13v4.rom)= 7a1a01c10aa23be3a961c295e791dbd9d7d1db59a5cf599521163ae2fd35a15f
|
7a1a01c10aa23be3a961c295e791dbd9d7d1db59a5cf599521163ae2fd35a15f *release/1.0.0rc4/librem13v4.rom
|
||||||
SHA256(release/1.0.0rc4/librem15v4.rom)= 85dbfbb107f90ee7a61107551641af92387d0b3a83feb86e3891a522d7d68e3a
|
85dbfbb107f90ee7a61107551641af92387d0b3a83feb86e3891a522d7d68e3a *release/1.0.0rc4/librem15v4.rom
|
||||||
SHA256(release/1.0.0rc4/airgap_x86_64.iso)= 50aad77752846d4ea48bf0e8c772e494276a4156c7d6a113813c1c8477075c5c
|
50aad77752846d4ea48bf0e8c772e494276a4156c7d6a113813c1c8477075c5c *release/1.0.0rc4/airgap_x86_64.iso
|
||||||
|
|
Loading…
Reference in New Issue