-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathSConscript
More file actions
28 lines (20 loc) · 793 Bytes
/
Copy pathSConscript
File metadata and controls
28 lines (20 loc) · 793 Bytes
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
import sys
# Inherit global environment
Import('env')
PROJROOT = '../..'
sys.path.append(PROJROOT)
from scripts.kernel.generate_kernel_cinfo import*
# The set of source files associated with this SConscript file.
src_local = ['irq.c', 'scheduler.c', 'time.c', 'tcb.c', 'space.c',
'bootmem.c', 'resource.c', 'container.c', 'capability.c',
'cinfo.c', 'debug.c', 'idle.c']
# Generate kernel cinfo structure for container definitions
def generate_cinfo(target, source, env):
generate_kernel_cinfo(target[0])
return None
cinfo_generator = Builder(action = generate_cinfo)
env.Append(BUILDERS = {'CINFO_GENERATOR' : cinfo_generator})
env.CINFO_GENERATOR(KERNEL_CINFO_PATH, CONFIG_H)
obj = env.Object(src_local)
Depends(obj, KERNEL_CINFO_PATH)
Return('obj')