mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 03:40:15 +00:00
sel4: move core console to core_printf library
This commit is contained in:
parent
e3cb8d48f7
commit
c73b6e9c0d
5
repos/base-sel4/lib/mk/core_printf.mk
Normal file
5
repos/base-sel4/lib/mk/core_printf.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
SRC_CC = core_printf.cc
|
||||||
|
INC_DIR += $(REP_DIR)/src/base/console
|
||||||
|
LIBS += syscall
|
||||||
|
|
||||||
|
vpath core_printf.cc $(BASE_DIR)/src/base/console
|
@ -18,9 +18,10 @@
|
|||||||
#include <sel4/arch/functions.h>
|
#include <sel4/arch/functions.h>
|
||||||
#include <sel4/arch/syscalls.h>
|
#include <sel4/arch/syscalls.h>
|
||||||
|
|
||||||
namespace Genode
|
namespace Genode { class Core_console; }
|
||||||
{
|
|
||||||
class Core_console : public Console
|
|
||||||
|
class Genode::Core_console : public Console
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -29,5 +30,3 @@ namespace Genode
|
|||||||
seL4_DebugPutChar(c);
|
seL4_DebugPutChar(c);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
TARGET = test-sel4
|
TARGET = test-sel4
|
||||||
SRC_CC = main.cc context_area.cc mini_env.cc thread.cc
|
SRC_CC = main.cc context_area.cc mini_env.cc thread.cc
|
||||||
|
|
||||||
LIBS = base-common syscall
|
LIBS = base-common core_printf syscall
|
||||||
|
|
||||||
SRC_CC += base/console/core_printf.cc
|
|
||||||
INC_DIR += $(REP_DIR)/src/base/console
|
|
||||||
|
|
||||||
vpath %.cc $(BASE_DIR)/src
|
vpath %.cc $(BASE_DIR)/src
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user