Add simple hello world application
This commit is contained in:
26
run/hello.run
Normal file
26
run/hello.run
Normal 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
6
src/app/hello/main.cc
Normal 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
3
src/app/hello/target.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
TARGET = hello
|
||||||
|
SRC_CC = main.cc
|
||||||
|
LIBS = base
|
||||||
Reference in New Issue
Block a user