store additional files with builds (flake/startup/linkerscript/...)

This commit is contained in:
2026-04-23 17:56:46 +02:00
parent 7bd3d205c9
commit 551335bf53
5 changed files with 26 additions and 20 deletions

View File

@ -323,8 +323,13 @@ rec {
owner = "christoph"; owner = "christoph";
repo = "wamr"; repo = "wamr";
rev = "cda2009deb85511089b04b0ac736ad4da2d07e58"; # With mmap_space in .text.wamr_aot
rev = "cda2008deb85511089b04b0ac736ad4da2d07e58";
hash = "sha256-CN6xTiwzF4Jbrpf21TF5c/C03Xb3urwkibRuIXjoU/w="; hash = "sha256-CN6xTiwzF4Jbrpf21TF5c/C03Xb3urwkibRuIXjoU/w=";
# Without mmap_space in .text.wamr_aot
# rev = "4e7aed33fe53bf3ee4a3f2fe582c74816f850759";
# hash = "sha256-/4BKwoFDRfkA+DmbWagxdtkCDAED5rxbz5e4xvjvVWU=";
}; };
nativeBuildInputs = with pkgs; [cmake]; nativeBuildInputs = with pkgs; [cmake];

View File

@ -174,25 +174,18 @@ my %handlers = (
} }
# Insert charts # Insert charts
my $attach_image = sub {
my ($name) = @_;
return unless ( -f "$local_archive_dir/$experiment/$name.svg" );
system(
'cp', '-i',
"$local_archive_dir/$experiment/$name.svg",
"$local_obsidian_attach/${experiment}_$name.svg"
);
system( 'obsidian', 'append', "file=zettel/$experiment",
"content=![[${experiment}_$name.svg]]\n" );
};
system( system(
'obsidian', 'append', 'obsidian', 'append',
"file=zettel/$experiment", "content=## Charts\n\n" "file=zettel/$experiment", "content=## Charts\n\n"
); );
my $attach_image = sub {
my ($name) = @_;
system( 'obsidian', 'append', "file=zettel/$experiment",
"content=![$name](file://$local_archive_dir/$experiment/$name.svg)\n"
);
};
$attach_image->("single_result"); $attach_image->("single_result");
$attach_image->("scatter"); $attach_image->("scatter");
} }

View File

@ -166,7 +166,7 @@ build module="__help" target="fail" mode="aot":
just clean {{ module }} just clean {{ module }}
just create-build-dir {{ module }} just create-build-dir {{ module }}
just copy-c-module {{ module }} just copy-auxiliary {{ module }}
if [ "{{ mode }}" = "aot" ]; then if [ "{{ mode }}" = "aot" ]; then
just build-wasm-module {{ module }} just build-wasm-module {{ module }}

View File

@ -269,3 +269,5 @@ for my $experiment (@experiments) {
inject($experiment); inject($experiment);
results($experiment); results($experiment);
} }
Util::notify("Finished all experiments");

View File

@ -53,8 +53,7 @@ CROSS_WAMRCFLAGS := "\
--target=i386 \ --target=i386 \
--cpu=generic \ --cpu=generic \
--opt-level=0 \ --opt-level=0 \
--enable-indirect-mode \ --xip \
--disable-llvm-intrinsics \
" "
LINUX_WAMRCFLAGS := "\ LINUX_WAMRCFLAGS := "\
--target=i386 \ --target=i386 \
@ -131,7 +130,14 @@ build-c-module module target="fail":
fi fi
[private] [private]
copy-c-module module: copy-auxiliary module:
cp flake.nix {{ BUILD_DIR }}-{{ module }}/flake.nix
cp scripts/runner.pl {{ BUILD_DIR }}-{{ module }}/runner.pl
cp scripts/wasm.just {{ BUILD_DIR }}-{{ module }}/wasm.just
cp targets/lib.h {{ BUILD_DIR }}-{{ module }}/lib.h
cp targets/linker.ld {{ BUILD_DIR }}-{{ module }}/linker.ld
cp targets/startup.s {{ BUILD_DIR }}-{{ module }}/startup.s
cp targets/syscalls.c {{ BUILD_DIR }}-{{ module }}/syscalls.c
cp targets/wasm-module/{{ module }}.cpp {{ BUILD_DIR }}-{{ module }}/wasm-module.cpp cp targets/wasm-module/{{ module }}.cpp {{ BUILD_DIR }}-{{ module }}/wasm-module.cpp
# =================================================================================================================== # # =================================================================================================================== #