From 16efe4590c5d57b3dc4266f1023728651c66059f Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Tue, 3 Nov 2026 09:02:47 +0900 Subject: [PATCH] openkal-ld/run/tools/bind 0.4.0 Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> --- CHANGELOG.md | 6 +++++ pkgs/o/openkal-bind.lua | 21 ++++++++++++++++ pkgs/o/openkal-ld.lua | 21 ++++++++++++++++ pkgs/o/openkal-run.lua | 21 ++++++++++++++++ pkgs/o/openkal-tools.lua | 25 ++++++++++++++++++-- tests/examples/openkal-bind/mcpp.toml | 6 ++--- tests/examples/openkal-tools/mcpp.toml | 2 +- tests/examples/openkal-tools/tests/tools.cpp | 2 +- 8 files changed, 97 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df935cf4..629ab052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,12 @@ ### Added +- **openkal-ld/run/tools/bind 0.4.0。** 在 openkal 0.23 的实现上构建(openkal-linux 0.24.0、openkal-macos 0.21.0、openkal-windows + 0.19.0):映像在每次开机选定的基址上放置,数据作为预备副本保存在用户缓存中;触页记录(`okprof record --what touch`、 + `okld touch`)按程序的资源偏好预读;初始化代码的快照每次开机生成一次、之后的启动直接映射(`OKRUN_SNAPSHOT=0` 关闭);启动的 + 花费随资源偏好(performance、balanced、economy)变化,`okrun cache` 列出并回收运行器的缓存;`okld bundle --compress` 写出压缩 + 的 okb(okb 2);okprof 成为 openkal-tools 的第三个程序。测试成员 `openkal-tools`(构建 okprof)、`openkal-bind` 随之移动。 + GLOBAL 为 GitHub 标签归档,CN 为 GitCode `mcpp-res` 镜像,sha256 两处一致。 - **openkal 0.23.0;openkal-linux 0.24.0、openkal-macos 0.21.0、openkal-windows 0.19.0、openkal-emscripten 0.12.0。** 映像在其基址上放置(`kal_exec_alloc_at`、placement note);exec 区域返回时为零,可封存(`kal_exec_seal_part`)、预取、私有映射 文件的部分(`KAL_EXEC_MAP_WRITE`);按名字解析全部链接(`kal_fs_resolved_name`)与带属性的列举;目录授予的衰减(只读、不变、 diff --git a/pkgs/o/openkal-bind.lua b/pkgs/o/openkal-bind.lua index 35e0fab6..edf9c714 100644 --- a/pkgs/o/openkal-bind.lua +++ b/pkgs/o/openkal-bind.lua @@ -25,6 +25,13 @@ package = { xpm = { linux = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -111,6 +118,13 @@ package = { }, }, macosx = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -197,6 +211,13 @@ package = { }, }, windows = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", diff --git a/pkgs/o/openkal-ld.lua b/pkgs/o/openkal-ld.lua index cc612c0c..ed732d63 100644 --- a/pkgs/o/openkal-ld.lua +++ b/pkgs/o/openkal-ld.lua @@ -18,6 +18,13 @@ package = { xpm = { linux = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -118,6 +125,13 @@ package = { }, }, macosx = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -218,6 +232,13 @@ package = { }, }, windows = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", diff --git a/pkgs/o/openkal-run.lua b/pkgs/o/openkal-run.lua index ea338e3a..60b36103 100644 --- a/pkgs/o/openkal-run.lua +++ b/pkgs/o/openkal-run.lua @@ -18,6 +18,13 @@ package = { xpm = { linux = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -118,6 +125,13 @@ package = { }, }, macosx = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -218,6 +232,13 @@ package = { }, }, windows = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", diff --git a/pkgs/o/openkal-tools.lua b/pkgs/o/openkal-tools.lua index 68f5453d..4a2e8a58 100644 --- a/pkgs/o/openkal-tools.lua +++ b/pkgs/o/openkal-tools.lua @@ -1,4 +1,4 @@ --- openkal-tools --- okrun and okld (openkal SPEC clause 12). +-- openkal-tools --- okrun, okld and okprof (openkal SPEC clause 12). -- -- A member of mcpplibs/openkal-image (one tag, one archive). A project that -- builds ok images (`-openkal`) declares it for this machine: @@ -13,13 +13,20 @@ package = { spec = "1", namespace = "mcpplibs", name = "openkal-tools", - description = "okrun and okld: the runner of ok images, and the tool that writes an image's requirements note, checks the convention and signs it", + description = "okrun, okld and okprof: the runner of ok images; the tool that writes an image's notes (requirements, placement, touches), checks the convention, signs and bundles it; and the reader of the runner's reports", licenses = {"Apache-2.0"}, repo = "https://github.com/mcpplibs/openkal-image", type = "package", xpm = { linux = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -120,6 +127,13 @@ package = { }, }, macosx = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", @@ -220,6 +234,13 @@ package = { }, }, windows = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/openkal-image/releases/download/0.4.0/openkal-image-0.4.0.tar.gz", + }, + sha256 = "2ffec55b912f22c3efefca4e9ad651ea0180c3d2495c8bc5413503b05524a92f", + }, ["0.3.2"] = { url = { GLOBAL = "https://github.com/mcpplibs/openkal-image/archive/refs/tags/0.3.2.tar.gz", diff --git a/tests/examples/openkal-bind/mcpp.toml b/tests/examples/openkal-bind/mcpp.toml index 73143071..a12d49d0 100644 --- a/tests/examples/openkal-bind/mcpp.toml +++ b/tests/examples/openkal-bind/mcpp.toml @@ -17,11 +17,11 @@ sources = [] include_dirs = ["include"] [dependencies.mcpplibs] -openkal-run = "0.3.2" +openkal-run = "0.4.0" [build-dependencies.mcpplibs] -openkal-bind = "0.3.2" -openkal-tools = { version = "0.3.2", tools = ["okld"] } +openkal-bind = "0.4.0" +openkal-tools = { version = "0.4.0", tools = ["okld"] } [xlings.workspace] "xim:llvm" = "23.1.3" diff --git a/tests/examples/openkal-tools/mcpp.toml b/tests/examples/openkal-tools/mcpp.toml index 4d783a33..2488a757 100644 --- a/tests/examples/openkal-tools/mcpp.toml +++ b/tests/examples/openkal-tools/mcpp.toml @@ -9,7 +9,7 @@ name = "openkal-tools-tests" version = "0.1.0" [build-dependencies.mcpplibs] -openkal-tools = { version = "0.3.2", tools = ["okld", "okrun"] } +openkal-tools = { version = "0.4.0", tools = ["okld", "okrun", "okprof"] } [indices] mcpplibs = { path = "../../.." } diff --git a/tests/examples/openkal-tools/tests/tools.cpp b/tests/examples/openkal-tools/tests/tools.cpp index 4ba469e5..0a3f2acf 100644 --- a/tests/examples/openkal-tools/tests/tools.cpp +++ b/tests/examples/openkal-tools/tests/tools.cpp @@ -2,6 +2,6 @@ import std; int main() { - std::println("openkal-tools-tests: okld and okrun were built for this machine"); + std::println("openkal-tools-tests: okld, okrun and okprof were built for this machine"); return 0; }