Add simple hello world application

This commit is contained in:
Alexander Weidinger
2019-01-08 22:32:55 +01:00
commit 3f0abadde6
3 changed files with 35 additions and 0 deletions

26
run/hello.run Normal file
View File

@@ -0,0 +1,26 @@
build { core init app/hello }
create_boot_directory
install_config {
<config>
<parent-provides>
<service name="LOG"/>
<service name="PD"/>
<service name="CPU"/>
<service name="ROM"/>
</parent-provides>
<default-route>
<any-service><parent/><any-child/></any-service>
</default-route>
<default caps="50"/>
<start name="hello">
<resource name="RAM" quantum="1M"/>
</start>
</config>}
build_boot_image { core ld.lib.so init hello }
append qemu_args " -nographic "
run_genode_until forever

6
src/app/hello/main.cc Normal file
View File

@@ -0,0 +1,6 @@
#include <base/component.h>
void Component::construct(Genode::Env &env)
{
Genode::log("Hello World!");
}

3
src/app/hello/target.mk Normal file
View File

@@ -0,0 +1,3 @@
TARGET = hello
SRC_CC = main.cc
LIBS = base