mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-01 10:46:43 +00:00
quiet hashing process slightly
This commit is contained in:
parent
fdb8268fc9
commit
66b51d3296
12
Makefile
12
Makefile
@ -137,7 +137,7 @@ $(error "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
sha256sum $< | tee -a "$(HASHES)"
|
@sha256sum $< | tee -a "$(HASHES)"
|
||||||
|
|
||||||
# Disable all built in rules
|
# Disable all built in rules
|
||||||
.INTERMEDIATE:
|
.INTERMEDIATE:
|
||||||
@ -192,10 +192,13 @@ define do-cpio =
|
|||||||
echo "$(DATE) UNCHANGED $(1:$(pwd)/%=%)" ; \
|
echo "$(DATE) UNCHANGED $(1:$(pwd)/%=%)" ; \
|
||||||
rm "$1.tmp" ; \
|
rm "$1.tmp" ; \
|
||||||
fi
|
fi
|
||||||
$(call do,HASHES, $1,\
|
@sha256sum "$1" | tee -a "$(HASHES)"
|
||||||
|
$(call do,HASHES , $1,\
|
||||||
( cd "$2"; \
|
( cd "$2"; \
|
||||||
|
echo "-----" ; \
|
||||||
find . -type f -print0 \
|
find . -type f -print0 \
|
||||||
| xargs -0 sha256sum \
|
| xargs -0 sha256sum ; \
|
||||||
|
echo "-----" ; \
|
||||||
) >> "$(HASHES)" \
|
) >> "$(HASHES)" \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
@ -488,14 +491,13 @@ $(build)/$(initrd_dir)/initrd.cpio.xz: $(initrd-y)
|
|||||||
-9 \
|
-9 \
|
||||||
| dd bs=512 conv=sync status=none > "$@.tmp" \
|
| dd bs=512 conv=sync status=none > "$@.tmp" \
|
||||||
)
|
)
|
||||||
sha256sum "$@" | tee -a "$(HASHES)"
|
|
||||||
@if ! cmp --quiet "$@.tmp" "$@" ; then \
|
@if ! cmp --quiet "$@.tmp" "$@" ; then \
|
||||||
mv "$@.tmp" "$@" ; \
|
mv "$@.tmp" "$@" ; \
|
||||||
sha256sum "$(@:$(pwd)/%=%)" ; \
|
|
||||||
else \
|
else \
|
||||||
echo "$(DATE) UNCHANGED $(@:$(pwd)/%=%)" ; \
|
echo "$(DATE) UNCHANGED $(@:$(pwd)/%=%)" ; \
|
||||||
rm "$@.tmp" ; \
|
rm "$@.tmp" ; \
|
||||||
fi
|
fi
|
||||||
|
@sha256sum "$(@:$(pwd)/%=%)" | tee -a "$(HASHES)"
|
||||||
|
|
||||||
#
|
#
|
||||||
# The heads.cpio is built from the initrd directory in the
|
# The heads.cpio is built from the initrd directory in the
|
||||||
|
@ -155,7 +155,7 @@ $(build)/$(BOARD)/modules.cpio: $(build)/$(linux_dir)/.build
|
|||||||
$(build)/$(BOARD)/bzImage: $(build)/$(linux_dir)/.build
|
$(build)/$(BOARD)/bzImage: $(build)/$(linux_dir)/.build
|
||||||
$(call do-copy,$(dir $<)/$(linux_output),$@)
|
$(call do-copy,$(dir $<)/$(linux_output),$@)
|
||||||
@touch $@ # force a timestamp update
|
@touch $@ # force a timestamp update
|
||||||
sha256sum "$@" | tee -a "$(HASHES)"
|
@sha256sum "$@" | tee -a "$(HASHES)"
|
||||||
|
|
||||||
|
|
||||||
# menuconfig target allows us to easily reconfigure this Linux kernel
|
# menuconfig target allows us to easily reconfigure this Linux kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user