diff options
author | Eric Biggers <ebiggers@google.com> | 2018-03-13 11:57:29 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2018-03-13 11:57:29 -0700 |
commit | 419072235fd883882c68319f915c3f8c6988fdbd (patch) | |
tree | 00070a202ad6db63f57c114994fc0d2934a22017 | |
parent | a544a98c6d3ee05421873296b9d8039efd1803a8 (diff) | |
download | fsverity-utils-419072235fd883882c68319f915c3f8c6988fdbd.tar.gz |
Add a Makefile which builds the binaries
Signed-off-by: Eric Biggers <ebiggers@google.com>
-rw-r--r-- | Makefile | 9 | ||||
-rwxr-xr-x | full-run-fsverity.sh | 7 |
2 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5cf2c22 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +CFLAGS := -O2 -Wall +EXE := fsverityset fsveritymeasure + +all:$(EXE) + +clean: + rm -f $(EXE) + +.PHONY: all clean diff --git a/full-run-fsverity.sh b/full-run-fsverity.sh index b1737b5..c98da92 100755 --- a/full-run-fsverity.sh +++ b/full-run-fsverity.sh @@ -6,10 +6,9 @@ dd if=/dev/zero of=/root/f2fs.img seek=$(($1/128)) bs=512 count=1 /root/f2fs-tools/mkfs/mkfs.f2fs -O verity /root/f2fs.img mount -o loop /root/f2fs.img /mnt/f2fs cp /root/output-$1.apk /mnt/f2fs/output-$1.apk -gcc -o ioctl-fs-verity-set ioctl-fs-verity-set.c -./ioctl-fs-verity-set /mnt/f2fs/output-$1.apk $1 -gcc -o ioctl-fs-verity-measure ioctl-fs-verity-measure.c -./ioctl-fs-verity-measure /mnt/f2fs/output-$1.apk $2 +make +./fsverityset /mnt/f2fs/output-$1.apk $1 +./fsveritymeasure /mnt/f2fs/output-$1.apk $2 sync echo 3 > /proc/sys/vm/drop_caches dd if=/mnt/f2fs/output-$1.apk of=byte0-$1 count=1 bs=1 |