Skip to content

Commit 807b424

Browse files
authored
Merge pull request #1427 from fwsGonzo/dev
Various fixes
2 parents 94e3bcb + 934e633 commit 807b424

17 files changed

Lines changed: 65 additions & 105 deletions

File tree

api/kernel/os.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ class OS {
137137
* Add handler for standard output.
138138
*/
139139
static void add_stdout(print_func func);
140-
/**
141-
* Add stdout handler that simply calls OS::default_stdout
142-
**/
143-
static void add_default_stdout() {
144-
add_stdout(OS::default_stdout);
145-
}
146140

147141
/**
148142
* The default output method preferred by each platform

api/kernel/syscalls.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <sys/types.h>
2323

2424
extern "C" {
25-
int kill(pid_t pid, int sig);
2625
void panic(const char* why) __attribute__((noreturn));
2726
void default_exit() __attribute__((noreturn));
2827

cmake/post.service.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/config.json)
7373
add_library(config_json STATIC config_json.o)
7474
set_target_properties(config_json PROPERTIES LINKER_LANGUAGE CXX)
7575
target_link_libraries(service --whole-archive config_json --no-whole-archive)
76+
set(PLUGINS ${PLUGINS} autoconf)
7677
endif()
7778

7879
#

examples/acorn/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ set(SERVICE_NAME "Acorn Web Appliance")
1515
# Name of your service binary
1616
set(BINARY "acorn")
1717

18-
# Maximum memory can be hard-coded into the binary
19-
set(MAX_MEM 128)
20-
2118
# Source files to be linked with OS library parts to form bootable image
2219
set(SOURCES
2320
service.cpp fs/acorn_fs.cpp

examples/demo_service/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@ set(SOURCES
3636

3737
if ("$ENV{PLATFORM}" STREQUAL "x86_solo5")
3838
set(DRIVERS
39-
silent_start # Less output during boot
40-
solo5net # Virtio networking
41-
# virtioblock # Virtio block device
42-
# ... Others from src/drivers
39+
solo5net
4340
)
4441
else()
4542
set(DRIVERS
46-
silent_start # Less output during boot
4743
virtionet # Virtio networking
4844
# virtioblock # Virtio block device
4945
# ... Others from src/drivers

examples/tcp/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ set(SOURCES
3434
# DRIVERS / PLUGINS:
3535

3636
set(DRIVERS
37-
silent_start
3837
virtionet # Virtio networking
3938
# ... Others from IncludeOS/src/drivers
4039
)

seed/service/CMakeLists.txt

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,25 @@
11
cmake_minimum_required(VERSION 2.8.9)
2-
3-
# IncludeOS install location
42
if (NOT DEFINED ENV{INCLUDEOS_PREFIX})
53
set(ENV{INCLUDEOS_PREFIX} /usr/local)
64
endif()
7-
8-
# Use toolchain (if needed)
95
include($ENV{INCLUDEOS_PREFIX}/includeos/pre.service.cmake)
10-
11-
12-
# Name of your project
13-
project (seed)
6+
project (service)
147

158
# Human-readable name of your service
169
set(SERVICE_NAME "IncludeOS seed")
1710

1811
# Name of your service binary
1912
set(BINARY "seed")
2013

21-
# Maximum memory can be hard-coded into the binary
22-
set(MAX_MEM 128)
23-
2414
# Source files to be linked with OS library parts to form bootable image
2515
set(SOURCES
2616
service.cpp # ...add more here
2717
)
2818

29-
#
30-
# Service CMake options
31-
# (uncomment to enable)
32-
#
33-
34-
# MISC:
35-
3619
# To add your own include paths:
3720
# set(LOCAL_INCLUDES ".")
3821

39-
# Adding memdisk (expects my.disk to exist in current dir):
40-
# set(MEMDISK ${CMAKE_SOURCE_DIR}/my.disk)
41-
4222
# DRIVERS / PLUGINS:
43-
4423
set(DRIVERS
4524
# virtionet # Virtio networking
4625
# virtioblock # Virtio block device
@@ -52,12 +31,14 @@ set(PLUGINS
5231
# ...others
5332
)
5433

55-
# THIRD PARTY LIBRARIES:
56-
34+
# STATIC LIBRARIES:
5735
set(LIBRARIES
5836
# path to full library
5937
)
6038

6139

6240
# include service build script
6341
include($ENV{INCLUDEOS_PREFIX}/includeos/post.service.cmake)
42+
43+
# Create in-memory filesystem from folder
44+
#diskbuilder(my_folder)

src/arch/i686/linker.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ SECTIONS
117117
_CONFIG_JSON_START_ = .;
118118
KEEP(*(.config))
119119
_CONFIG_JSON_END_ = .;
120+
BYTE(0);
120121
}
121122

122123
.rodata :

src/arch/x86_64/linker.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ SECTIONS
121121
_CONFIG_JSON_START_ = .;
122122
KEEP(*(.config))
123123
_CONFIG_JSON_END_ = .;
124+
BYTE(0);
124125
}
125126

126127
.rodata :

src/drivers/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ add_dependencies(vmxnet3 PrecompiledLibraries)
1616
add_library(heap_debugging STATIC heap_debugging.cpp)
1717
add_dependencies(heap_debugging PrecompiledLibraries)
1818

19-
add_library(silent_start STATIC silent.cpp)
20-
add_dependencies(silent_start PrecompiledLibraries)
19+
add_library(boot_logger STATIC bootlog.cpp)
20+
add_dependencies(boot_logger PrecompiledLibraries)
2121

2222
add_library(vga_output STATIC vgaout.cpp)
2323
add_dependencies(vga_output PrecompiledLibraries)
@@ -26,7 +26,7 @@ install(TARGETS
2626
virtionet virtioblk
2727
vmxnet3
2828
heap_debugging
29-
silent_start vga_output
29+
boot_logger vga_output
3030
DESTINATION includeos/${ARCH}/drivers)
3131

3232
if(WITH_SOLO5)

0 commit comments

Comments
 (0)