-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
53 lines (35 loc) 路 1.12 KB
/
Copy pathmeson.build
File metadata and controls
53 lines (35 loc) 路 1.12 KB
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
44
45
46
47
48
49
50
51
52
project('Jake', 'c',
default_options: ['warning_level=0', 'werror=false'],
license: 'MIT')
todo_warn = find_program('scripts/todo_warn.py', required: false)
# === Kernel ===
source_files = []
include_dirs = []
c_args = []
link_args = []
subdir('kernel')
foreach source : source_files
output = run_command(todo_warn, source).stdout()
if output != ''
warning(output)
endif
endforeach
kernel = executable('kernel',
[source_files],
name_suffix: 'elf',
include_directories: include_dirs,
c_args: c_args,
link_args: link_args)
# TODO: move linker script and start.S to hw (board specific code)
if host_machine.cpu_family() == 'aarch64'
objcopy = find_program('aarch64-none-elf-objcopy')
custom_target('kernel8.img',
input: kernel,
output: 'kernel8.img',
build_by_default: true,
command: [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
endif
# === Drivers ===
# TODO
# === Utils ===
# TODO