-
Notifications
You must be signed in to change notification settings - Fork 139
/
SConstruct
89 lines (79 loc) · 1.5 KB
/
SConstruct
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# The root build file for OpeniBoot.
#
import SCons
#
# Configuration, change this stuff
#
version="0.3"
# /Configuration
SConscript([
'scons/ARMEnvironment.SConscript',
'scons/Git.SConscript',
])
Import('*')
henv = Environment()
Export('henv')
henv.SConscript(['scons/Doxygen.SConscript'])
env = ARMEnvironment()
env.Append(CPPDEFINES=[
'OPENIBOOT_VERSION='+version,
'OPENIBOOT_VERSION_BUILD='+GetGitCommit(),
])
env.Append(CPPFLAGS = ['-Wall', '-Werror', '-O2', '-Ttext=0x0'])
Export('env')
def localize(env, ls):
return [File(f) for f in ls]
env.AddMethod(localize, "Localize")
# Documentation
docs = henv.Doxygen("Doxyfile")
Alias("docs", docs)
# Base Target Sources
base_src = env.Localize([
'device.c',
'mtd.c',
'bdev.c',
'nand.c',
'vfl.c',
'ftl.c',
'audiohw.c',
'actions.c',
'commands.c',
'framebuffer.c',
'images.c',
'malloc.c',
'nvram.c',
'openiboot.c',
'printf.c',
'scripting.c',
'sha1.c',
'stb_image.c',
'syscfg.c',
'tasks.c',
'util.c',
'aes_wrap.c',
])
Export('base_src')
# Build-Environment Modules
henv.SConscript([
'images/SConscript',
'mk8900image/SConscript',
'scons/Module.SConscript',
])
# Target Modules
env.SConscript([
'hfs/SConscript',
'radio-pmb8876/SConscript',
'radio-pmb8878/SConscript',
'radio-xgold618/SConscript',
'usb-synopsys/SConscript',
'nor-cfi/SConscript',
'nor-spi/SConscript',
'vfl-vfl/SConscript',
'vfl-vsvfl/SConscript',
'ftl-yaftl/SConscript',
'acm/SConscript',
'menu/SConscript',
'installer/SConscript',
'arch-arm/SConscript',
])