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