Skip to content

Commit

Permalink
Merge branch 'main' into cc_rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
123abcpp authored Jun 11, 2024
2 parents 6c216e7 + 2f6247a commit 7b7972e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions qkernel/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[unstable]
build-std = ["core","alloc", "compiler_builtins"]
build-std-features = ["compiler-builtins-mem"]
8 changes: 4 additions & 4 deletions qkernel/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ $(cc_kernel_debug): cc_kernel_debug $(assembly_object_files)
$(assembly_object_files) $(qkernel_debug)

kernel:
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) xbuild --target $(arch)-qkernel.json --release
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) build --target $(arch)-qkernel.json --release

kernel_debug:
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) xbuild --target $(arch)-qkernel.json
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) build --target $(arch)-qkernel.json
cc_kernel:
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) xbuild --target $(arch)-qkernel.json --release --features cc
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) build --target $(arch)-qkernel.json --release --features cc

cc_kernel_debug:
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) xbuild --target $(arch)-qkernel.json --features cc
CARGO_TARGET_DIR=../target cargo +$(TOOLCHAIN) build --target $(arch)-qkernel.json --features cc

../build/arch/$(arch)/%.o: src/qlib/kernel/arch/$(arch)/%.s
@mkdir -p $(shell dirname $@)
Expand Down

0 comments on commit 7b7972e

Please sign in to comment.