| @@ -12,46 +12,46 @@ all: build/loader.img |
| 12 | 12 | build: |
| 13 | 13 | mkdir -p build |
| 14 | 14 | |
| 15 | | -build/pager.o: pager.c split.h | build |
| 15 | +build/pager.o: guest/pager.c guest/split.h | build |
| 16 | 16 | $(CC) $(CFLAGS) -c $< -o $@ |
| 17 | 17 | |
| 18 | | -build/alpha.o: client.c split.h | build |
| 18 | +build/alpha.o: guest/client.c guest/split.h | build |
| 19 | 19 | $(CC) $(CFLAGS) -DCLIENT=0 -c $< -o $@ |
| 20 | 20 | |
| 21 | | -build/beta.o: client.c split.h | build |
| 21 | +build/beta.o: guest/client.c guest/split.h | build |
| 22 | 22 | $(CC) $(CFLAGS) -DCLIENT=1 -c $< -o $@ |
| 23 | 23 | |
| 24 | | -build/unsafe.o: pager.c split.h | build |
| 24 | +build/unsafe.o: guest/pager.c guest/split.h | build |
| 25 | 25 | $(CC) $(CFLAGS) -DSHARED_WRITE=1 -c $< -o $@ |
| 26 | 26 | |
| 27 | 27 | build/%.elf: build/%.o |
| 28 | 28 | $(LD) -L$(BOARD)/lib $< -lmicrokit -Tmicrokit.ld -o $@ |
| 29 | 29 | |
| 30 | | -build/loader.img: build/pager.elf build/alpha.elf build/beta.elf split.system |
| 31 | | - MICROKIT_SDK=$(SDK) $(TOOL) --board qemu_virt_aarch64 --config debug --search-path build -o $@ -r build/report.txt split.system |
| 30 | +build/loader.img: build/pager.elf build/alpha.elf build/beta.elf guest/split.system |
| 31 | + MICROKIT_SDK=$(SDK) $(TOOL) --board qemu_virt_aarch64 --config debug --search-path build -o $@ -r build/report.txt guest/split.system |
| 32 | 32 | |
| 33 | | -build/unsafe.img: build/unsafe.elf build/alpha.elf build/beta.elf split.system |
| 34 | | - sed 's/pager.elf/unsafe.elf/' split.system > build/unsafe.system |
| 33 | +build/unsafe.img: build/unsafe.elf build/alpha.elf build/beta.elf guest/split.system |
| 34 | + sed 's/pager.elf/unsafe.elf/' guest/split.system > build/unsafe.system |
| 35 | 35 | MICROKIT_SDK=$(SDK) $(TOOL) --board qemu_virt_aarch64 --config debug --search-path build -o $@ -r build/unsafe.txt build/unsafe.system |
| 36 | 36 | |
| 37 | 37 | proof: |
| 38 | | - isabelle build -D . |
| 38 | + isabelle build -D proof |
| 39 | 39 | |
| 40 | | -build/split.ml: Export.thy Reuse.thy Snapshot.thy Execution.thy Protocol.thy Isolation.thy Model.thy ROOT | build |
| 41 | | - isabelle build -D . |
| 42 | | - isabelle export -n -d . -O build/generated -x 'Split.Export:code/**' Split |
| 40 | +build/split.ml: proof/Export.thy proof/Reuse.thy proof/Snapshot.thy proof/Execution.thy proof/Protocol.thy proof/Isolation.thy proof/Model.thy proof/ROOT | build |
| 41 | + isabelle build -D proof |
| 42 | + isabelle export -n -d proof -O build/generated -x 'Split.Export:code/**' Split |
| 43 | 43 | cp build/generated/Split.Export/code/split.ocaml $@ |
| 44 | 44 | |
| 45 | | -build/check: build/split.ml check.ml Makefile |
| 45 | +build/check: build/split.ml host/check.ml Makefile |
| 46 | 46 | ocamlopt -w -a -I build -c build/split.ml |
| 47 | | - ocamlopt -w +a-4-42-70 -I +unix -I build -c -o build/check.cmx check.ml |
| 47 | + ocamlopt -w +a-4-42-70 -I +unix -I build -c -o build/check.cmx host/check.ml |
| 48 | 48 | ocamlopt -I +unix -I build unix.cmxa build/split.cmx build/check.cmx -o $@ |
| 49 | 49 | |
| 50 | 50 | model: build/check |
| 51 | 51 | build/check --model |
| 52 | 52 | |
| 53 | 53 | work: all build/check |
| 54 | | - build/check work document |
| 54 | + build/check work example/document |
| 55 | 55 | |
| 56 | 56 | demo run: work |
| 57 | 57 | |