From 537d0534f75ea4d3a9b97dfa665b4e6a3b49f6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=8F=8B=E6=8D=B7?= Date: Thu, 2 May 2024 15:22:06 +0800 Subject: [PATCH] chore: pass sched_rr and sched_cfs to axlibc crate --- scripts/make/features.mk | 2 +- tools/axlibc/Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/make/features.mk b/scripts/make/features.mk index 1ddd798..45893bc 100644 --- a/scripts/make/features.mk +++ b/scripts/make/features.mk @@ -14,7 +14,7 @@ ifeq ($(APP_TYPE),c) ax_feat_prefix := axfeat/ lib_feat_prefix := axlibc/ - lib_features := fp_simd alloc multitask fs net fd pipe select epoll irq + lib_features := fp_simd alloc multitask fs net fd pipe select epoll irq sched_rr sched_cfs else ifneq ($(findstring monolithic,$(APP)),) ax_feat_prefix := axstarry/ diff --git a/tools/axlibc/Cargo.toml b/tools/axlibc/Cargo.toml index e735e48..7a3f9a3 100644 --- a/tools/axlibc/Cargo.toml +++ b/tools/axlibc/Cargo.toml @@ -43,6 +43,10 @@ fs = ["arceos_posix_api/fs", "fd"] # Networking net = ["arceos_posix_api/net", "fd"] +# Schedule policy +sched_rr = ["arch_boot/preempt", "axfeat/sched_rr"] +sched_cfs = ["arch_boot/preempt", "axfeat/sched_cfs"] + # Libc features fd = [] pipe = ["arceos_posix_api/pipe"]