From 882626965d7778cecd7ec0329e7f4a19f97d8218 Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Tue, 14 May 2024 23:50:15 +0100 Subject: test file size of bootsector/kernel image --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dbfe31..3039d1d 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ kernel/main.o: kernel/util.h providence.img: ${OBJ} ${CC} ${LDFLAGS} $^ ${LDLIBS} -o $@ - @du -b $@ + test "$$(wc -c $@ | cut -f1 -d' ')" -le 29696 || { rm -f $@ ; false ; } truncate -s 29696 $@ %.o: %.c -- cgit v1.2.3