Commit 983bc1ff authored by Stefan Lankes's avatar Stefan Lankes

add rule "cargo" to build the kernel

parent 32cbda25
Pipeline #213642 failed with stages
in 40 seconds
......@@ -24,7 +24,7 @@ docker:
build:
stage: build
script:
- make
- make cargo
- du -hs ./target
image: ${IMAGE}
tags:
......
......@@ -17,7 +17,7 @@ else
RM := rm -rf
endif
.PHONY: all fmt clean run debug docs
.PHONY: all fmt clean run debug docs cargo
all: qemu
......@@ -27,12 +27,14 @@ fmt:
qemu:
@bootimage run $(opt) --target $(target).json || ([ $$? -eq 1 ] && exit 0) || exit 1
run:
@echo Build for ehyve
@cargo build -Z build-std=core,alloc --no-default-features $(opt) --target $(target).json
run: cargo
@echo Run within ehyve
@ehyve target/$(arch)-eduos/$(rdir)/eduos-rs
cargo:
@echo Build for ehyve
@cargo build -Z build-std=core,alloc --no-default-features $(opt) --target $(target).json
clean:
@cargo clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment