-
Notifications
You must be signed in to change notification settings - Fork 1
/
rtems_zocl.py
72 lines (68 loc) · 1.47 KB
/
rtems_zocl.py
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
# Copyright 2021 Chris Johns ([email protected])
#
# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
#
from __future__ import print_function
import component
data = {
'rtems': {
'base': 'rtems',
'headers': {
'drv': [
'zocl/zocl.h',
],
},
'includes': [
'..',
'../xrt/src/runtime_src/core/edge/include',
],
'cflags': ['-Wall'],
'sources': [
'zocl/zocl.c',
'zocl/zocl-report.c',
'zocl/zocl-requests.c',
'zocl/zocl-xclbin.c',
],
'install': {
'rtems/zocl': [
'zocl/zocl.h',
]
}
},
'smc': {
'base': 'rtems',
'includes': [
'.',
],
'sources': [
'smc/smccc.c',
'smc/smccc_arm64.S',
],
'install': {
'smc': [
'smc/smccc.h',
]
}
},
'pm': {
'base': 'rtems',
'includes': [
'.',
],
'cflags': ['-Wall'],
'sources': [
'pm/pm.c',
'pm/pm-image.c',
'pm/pm-shell.c',
],
'install': {
'rtems/pm': [
'pm/pm.h',
'pm/pm-image.h',
]
}
},
}
class build(component.build):
def __init__(self):
super(build, self).__init__(data)