Add flake #4

Merged
Yehowshua merged 10 commits from Artturin/RiscV-Formal:addnix into main 2025-03-14 15:55:41 +00:00
Showing only changes of commit c82dfbe2a7 - Show all commits

View file

@ -28,7 +28,7 @@ $(ELF): $(SRC) $(LDSCRIPT)
$(BIN): $(ELF) $(BIN): $(ELF)
$(OBJCOPY) -O binary $(ELF) $(BIN) $(OBJCOPY) -O binary $(ELF) $(BIN)
# Pad the binary to a multiple of 4 bytes # Pad the binary to a multiple of 4 bytes
size=$$(stat -f%z $(BIN)); \ size=$$(stat -c %s $(BIN)); \
padding=$$(( (4 - (size % 4)) % 4 )); \ padding=$$(( (4 - (size % 4)) % 4 )); \
[ $$padding -ne 0 ] && dd if=/dev/zero bs=1 count=$$padding >> $(BIN) || true [ $$padding -ne 0 ] && dd if=/dev/zero bs=1 count=$$padding >> $(BIN) || true