-
Notifications
You must be signed in to change notification settings - Fork 5
/
empty_project
43 lines (39 loc) · 1.19 KB
/
empty_project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Compiler
*/
makeoption COMMON_FLAGS += -g
makeoption COMMON_FLAGS += -pipe
makeoption COMMON_FLAGS += -Wall
makeoption COMMON_FLAGS += -O2
makeoption COMMON_FLAGS += -flto -fuse-linker-plugin
makeoption COMMON_FLAGS += -Xlinker --gc-sections
makeoption CFLAGS += $(CONFIG_COMMON_FLAGS)
makeoption CXXFLAGS += $(CONFIG_COMMON_FLAGS)
/*
* Debugging
*/
option SYSLOG_SIZE 4096
option DEBUG // Print debug messages and turn on debug checks
option INFO // Print informative messages
option BOOT_CONSOLE // Enable boot console for debug output
option EARLY_CONSOLE // Enable early kernel console for debug output
option EARLY_CONSOLE_CFLAG (B115200 | CS8)
option KSTACK_CHECK // Kernel stack checking
option KMEM_CHECK // Kernel memory checking
option THREAD_CHECK // Kernel thread checking
option CONSOLE_LOGLEVEL (LOG_DEBUG)
/*
* Operating system version
*/
option UNAME_VERSION (__DATE__ " " __TIME__)
/*
* Boot configuration
*/
option BOOTFS dummy // doesn't exist
option BOOTDEV /dev/dummy // doesn't exist
option INITCMD /init // doesn't exist
/*
* Explicitly build kernel and bootloader as they aren't part of an image
*/
build sys/apex
build boot/boot