mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +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,16 +18,15 @@
|
||||
#include <sel4/arch/functions.h>
|
||||
#include <sel4/arch/syscalls.h>
|
||||
|
||||
namespace Genode
|
||||
namespace Genode { class Core_console; }
|
||||
|
||||
|
||||
class Genode::Core_console : public Console
|
||||
{
|
||||
class Core_console : public Console
|
||||
{
|
||||
protected:
|
||||
|
||||
void _out_char(char c)
|
||||
{
|
||||
seL4_DebugPutChar(c);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -1,10 +1,7 @@
|
||||
TARGET = test-sel4
|
||||
SRC_CC = main.cc context_area.cc mini_env.cc thread.cc
|
||||
|
||||
LIBS = base-common syscall
|
||||
|
||||
SRC_CC += base/console/core_printf.cc
|
||||
INC_DIR += $(REP_DIR)/src/base/console
|
||||
LIBS = base-common core_printf syscall
|
||||
|
||||
vpath %.cc $(BASE_DIR)/src
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user