From 29eaa64d2ee3e39408f0f35d2ace93a11e8e2fd5 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 10 Oct 2023 16:41:38 +0200 Subject: [PATCH] Added Suoritin client component for testing. --- repos/mml/run/suoritin_tester.run | 94 +++++++++++++++++++++++ repos/mml/src/app/suoritin_test/main.cc | 20 +++++ repos/mml/src/app/suoritin_test/target.mk | 3 + 3 files changed, 117 insertions(+) create mode 100644 repos/mml/run/suoritin_tester.run create mode 100644 repos/mml/src/app/suoritin_test/main.cc create mode 100644 repos/mml/src/app/suoritin_test/target.mk diff --git a/repos/mml/run/suoritin_tester.run b/repos/mml/run/suoritin_tester.run new file mode 100644 index 0000000000..2bf13a2c10 --- /dev/null +++ b/repos/mml/run/suoritin_tester.run @@ -0,0 +1,94 @@ +set build_components { + core init hoitaja timer app/suoritin_test +} + +source ${genode_dir}/repos/base/run/platform_drv.inc +append_platform_drv_build_components + +build $build_components + +create_boot_directory + +set config { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + } + + install_config $config + + set boot_modules { + core init hoitaja timer vfs.lib.so ld.lib.so suoritin_tester +} + +append_platform_drv_boot_modules + +build_boot_image $boot_modules +append qemu_args "-nographic " + +run_genode_until forever \ No newline at end of file diff --git a/repos/mml/src/app/suoritin_test/main.cc b/repos/mml/src/app/suoritin_test/main.cc new file mode 100644 index 0000000000..57283b15a0 --- /dev/null +++ b/repos/mml/src/app/suoritin_test/main.cc @@ -0,0 +1,20 @@ +#include +#include + +#include + +struct Suoritin_tester +{ + Genode::Env &_env; + + + Suoritin_tester(Genode::Env &env) : _env(env) + { + Genode::log("Hello from Suoritin tester"); + Tukija::Suoritin::Connection suoritin {_env}; + } +}; + +void Component::construct(Genode::Env &env) { + static Suoritin_tester tester(env); +} \ No newline at end of file diff --git a/repos/mml/src/app/suoritin_test/target.mk b/repos/mml/src/app/suoritin_test/target.mk new file mode 100644 index 0000000000..4deed34456 --- /dev/null +++ b/repos/mml/src/app/suoritin_test/target.mk @@ -0,0 +1,3 @@ +TARGET = suoritin_tester +SRC_CC = main.cc +LIBS = base \ No newline at end of file