diff --git a/.gitignore b/.gitignore index 9a84b61c20..cc7246cf89 100644 --- a/.gitignore +++ b/.gitignore @@ -7,11 +7,11 @@ _preview/ .sass-cache/ _repos/ projects/virtualization/docs/api/ -projects/rust/tutorial .jekyll-cache/ .npm_deps vendor/ node_modules/ _processed/microkit-tutorial/ _processed/tutes/ +_processed/rust/ _data/microkit_tutorial.yml diff --git a/Makefile b/Makefile index ba051148c0..b0103c5d41 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,23 @@ $(REPOSITORIES): .PHONY: repos repos: $(REPOSITORIES) +MICROKIT_VERSION=1.4.1 +VENDOR_SEL4 = vendor/seL4 +VENDOR_MICROKIT = vendor/microkit/sdk + +.PHONY: sdk +sdk: $(VENDOR_SEL4) $(VENDOR_MICROKIT) + +# it is fine to use the Linux version on Mac, we're not going to run any binaries +$(VENDOR_MICROKIT): + mkdir -p $@ + curl -L https://github.com/seL4/microkit/releases/download/$(MICROKIT_VERSION)/microkit-sdk-$(MICROKIT_VERSION)-linux-x86-64.tar.gz | tar -xzf - -C $@ --strip-components=1 + +MK_BOARD = board/qemu_virt_aarch64/debug +$(VENDOR_SEL4): $(VENDOR_MICROKIT) + mkdir -p $@ + ln -s ../../$