-
Notifications
You must be signed in to change notification settings - Fork 0
/
SEL4.cabal
200 lines (178 loc) · 8.18 KB
/
SEL4.cabal
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
--
-- Copyright 2014, General Dynamics C4 Systems
--
-- SPDX-License-Identifier: GPL-2.0-only
--
name: SEL4
version: 1.5
cabal-version: 1.18
build-type: Custom
license: GPL
author: Philip Derrin et. al., NICTA
synopsis: Executable specification for the seL4 Kernel
tested-with: GHC == 7.8.3
Flag FFI
description: Include the C language bindings
default: True
Flag ArchArm
description: Include ARM modules and platforms
default: False
Flag ArchArmHyp
description: Include ARM (with Hypervisor Extensions) modules and platforms
default: False
Flag ArchX64
description: Include x86 64-bit modules and platforms
default: False
Flag ArchRiscV
description: Include RISC-V 64-bit modules and platforms
default: False
Library
exposed-modules: SEL4
SEL4.Machine.Target
build-depends: mtl==2.2.*, base==4.12.*, array, containers, transformers
if flag(FFI)
-- FFIBindings currently relies on POSIX signal handlers. This could
-- be fixed.
build-depends: unix
exposed-modules: Simulation.FFIBindings
include-dirs: include
install-includes: sel4model.h gic.h
dist/build/Simulation/FFIBindings_stub.h
else
build-depends: unix
include-dirs: include
other-modules: SEL4.API
SEL4.API.Syscall
SEL4.API.Faults
SEL4.API.Failures
SEL4.API.Types
SEL4.API.Types.Universal
SEL4.API.Invocation
SEL4.API.InvocationLabels
SEL4.Kernel
SEL4.Kernel.BootInfo
SEL4.Kernel.VSpace
SEL4.Kernel.CSpace
SEL4.Kernel.Init
SEL4.Kernel.Thread
SEL4.Kernel.FaultHandler
SEL4.Kernel.Hypervisor
SEL4.Object
SEL4.Object.ObjectType
SEL4.Object.CNode
SEL4.Object.Endpoint
SEL4.Object.TCB
SEL4.Object.Instances
SEL4.Object.Structures
SEL4.Object.Interrupt
SEL4.Object.Notification
SEL4.Object.Untyped
SEL4.Model
SEL4.Model.StateData
SEL4.Model.PSpace
SEL4.Model.Failures
SEL4.Model.Preemption
SEL4.Model.Syscall
SEL4.Machine
SEL4.Machine.RegisterSet
SEL4.Machine.Hardware
SEL4.Config
Data.BinaryTree
Data.Helpers
Data.WordLib
if flag(ArchArm)
other-modules:
SEL4.Machine.Hardware.ARM.KZM
SEL4.Machine.Hardware.ARM.Exynos4210
SEL4.Machine.Hardware.ARM.Sabre
SEL4.Machine.Hardware.ARM.Callbacks
SEL4.Machine.Hardware.GICInterface
SEL4.Machine.Hardware.MCTInterface
SEL4.Machine.Hardware.MPTimerInterface
SEL4.API.Types.ARM
SEL4.API.InvocationLabels.ARM
SEL4.API.Invocation.ARM
SEL4.API.Faults.ARM
SEL4.API.Failures.ARM
SEL4.Kernel.VSpace.ARM
SEL4.Kernel.Thread.ARM
SEL4.Kernel.Hypervisor.ARM
SEL4.Object.ObjectType.ARM
SEL4.Object.Structures.ARM
SEL4.Object.Interrupt.ARM
SEL4.Object.Instances.ARM
SEL4.Object.TCB.ARM
SEL4.Model.StateData.ARM
SEL4.Machine.RegisterSet.ARM
SEL4.Machine.Hardware.ARM
if flag(ArchArmHyp)
other-modules:
SEL4.Machine.Hardware.ARM.TK1
SEL4.Machine.Hardware.ARM.Callbacks
SEL4.API.Types.ARM
SEL4.API.InvocationLabels.ARM
SEL4.API.Invocation.ARM
SEL4.API.Faults.ARM
SEL4.API.Failures.ARM
SEL4.Kernel.VSpace.ARM
SEL4.Kernel.Thread.ARM
SEL4.Kernel.Hypervisor.ARM
SEL4.Object.ObjectType.ARM
SEL4.Object.Structures.ARM
SEL4.Object.Interrupt.ARM
SEL4.Object.Instances.ARM
SEL4.Object.VCPU.ARM
SEL4.Object.TCB.ARM
SEL4.Model.StateData.ARM
SEL4.Machine.RegisterSet.ARM
SEL4.Machine.Hardware.ARM
if flag(ArchX64)
other-modules:
SEL4.API.Types.X64
SEL4.API.InvocationLabels.X64
SEL4.API.Invocation.X64
SEL4.API.Failures.X64
SEL4.API.Faults.X64
SEL4.Kernel.VSpace.X64
SEL4.Kernel.Thread.X64
SEL4.Kernel.Hypervisor.X64
SEL4.Object.ObjectType.X64
SEL4.Object.Structures.X64
SEL4.Object.Interrupt.X64
SEL4.Object.Instances.X64
SEL4.Object.IOPort.X64
SEL4.Object.TCB.X64
SEL4.Model.StateData.X64
SEL4.Machine.RegisterSet.X64
SEL4.Machine.Hardware.X64
SEL4.Machine.Hardware.X64.PC99
if flag(ArchRiscV)
other-modules:
SEL4.API.Types.RISCV64
SEL4.API.InvocationLabels.RISCV64
SEL4.API.Invocation.RISCV64
SEL4.API.Failures.RISCV64
SEL4.API.Faults.RISCV64
SEL4.Kernel.VSpace.RISCV64
SEL4.Kernel.Thread.RISCV64
SEL4.Kernel.Hypervisor.RISCV64
SEL4.Object.ObjectType.RISCV64
SEL4.Object.Structures.RISCV64
SEL4.Object.Interrupt.RISCV64
SEL4.Object.Instances.RISCV64
SEL4.Object.TCB.RISCV64
SEL4.Model.StateData.RISCV64
SEL4.Machine.RegisterSet.RISCV64
SEL4.Machine.Hardware.RISCV64
SEL4.Machine.Hardware.RISCV64.HiFive
hs-source-dirs: src
ghc-prof-options: -auto-all -fprof-auto
ghc-options: -Wall -Werror -O2 -fno-warn-unused-do-bind
-fno-warn-missing-signatures -fno-warn-orphans
-fno-spec-constr -fno-warn-name-shadowing
-fno-warn-unrecognised-pragmas
-fno-warn-unused-binds
-fno-warn-unused-imports -fno-warn-unused-matches
cpp-options:
-- set via Setup.hs hook
Default-Language: Haskell98