-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmake
executable file
·88 lines (71 loc) · 3.33 KB
/
make
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
#!/bin/bash
# Give file permissions
chmod +x /opt/hal-core/runtest
chmod +x /opt/hal-core/src/clean
chmod +x /opt/hal-core/src/make
chmod +x /opt/hal-core/src/configure
chmod +x /opt/hal-core/scripts/halrun
chmod +x /opt/hal-core/scripts/realtime
# Compile hal-core
cd /opt/hal-core/src/
./configure --disable-gtk --with-realtime=uspace
./make
# Set user able to insert kernel modules
chown 777 -R /opt/hal-core/bin/rtapi_app
chown 777 -R /opt/hal-core/bin/module_helper
chmod 777 /opt/hal-core/bin/rtapi_app
chmod 777 /opt/hal-core/bin/module_helper
# Compile test component:
chmod +x /opt/hal-core/src/hal/components/test/make
chmod +x /opt/hal-core/src/hal/components/test/runtest
cd /opt/hal-core/src/hal/components/test/ && ./make
# Compile ethercat component:
chmod +x /opt/hal-core/src/hal/components/ethercat/make
chmod +x /opt/hal-core/src/hal/components/ethercat/runtest
cd /opt/hal-core/src/hal/components/ethercat && ./make
# Compile threads component:
chmod +x /opt/hal-core/src/hal/components/threads/make
chmod +x /opt/hal-core/src/hal/components/threads/runtest
cd /opt/hal-core/src/hal/components/threads/ && ./make
# Compile dofs component:
chmod +x /opt/hal-core/src/hal/components/dofs/make
chmod +x /opt/hal-core/src/hal/components/dofs/runtest
chmod +x /opt/hal-core/src/hal/components/dofs/hal/make
chmod +x /opt/hal-core/src/hal/components/dofs/hal/runtest
cd /opt/hal-core/src/hal/components/dofs/ && ./make
# Compile synchrodofs component:
chmod +x /opt/hal-core/src/hal/components/synchrodofs/runtest
# Compile hostmot2 component:
chmod +x /opt/hal-core/src/hal/components/hostmot2/make
chmod +x /opt/hal-core/src/hal/components/hostmot2/runtest
cd /opt/hal-core/src/hal/components/hostmot2/ && ./make
# Compile hm2_eth component:
chmod +x /opt/hal-core/src/hal/components/hm2_eth/make
chmod +x /opt/hal-core/src/hal/components/hm2_eth/runtest
cd /opt/hal-core/src/hal/components/hm2_eth/ && ./make
# Compile hal_parport component:
chmod +x /opt/hal-core/src/hal/components/hal_parport/make
chmod +x /opt/hal-core/src/hal/components/hal_parport/runtest
cd /opt/hal-core/src/hal/components/hal_parport/ && ./make
# Compile stepgen component:
chmod +x /opt/hal-core/src/hal/components/stepgen/make
chmod +x /opt/hal-core/src/hal/components/stepgen/runtest
cd /opt/hal-core/src/hal/components/stepgen/ && ./make
# Compile hal_kinematic component:
chmod +x /opt/hal-core/src/hal/components/kinematic/hal/make
chmod +x /opt/hal-core/src/hal/components/kinematic/hal/runtest
cd /opt/hal-core/src/hal/components/kinematic/hal/ && ./make
# Compile hal_opencascade component:
chmod +x /opt/hal-core/src/hal/components/opencascade/hal/make
chmod +x /opt/hal-core/src/hal/components/opencascade/hal/runtest
cd /opt/hal-core/src/hal/components/opencascade/hal/ && ./make
# Compile hal_trajectory component:
chmod +x /opt/hal-core/src/hal/components/trajectory/hal/make
chmod +x /opt/hal-core/src/hal/components/trajectory/hal/runtest
cd /opt/hal-core/src/hal/components/trajectory/hal/ && ./make
# Compile matrix gui app component:
chmod +x /opt/hal-core/src/hal/components/matrix/hal/make_halmodule
chmod +x /opt/hal-core/src/hal/components/matrix/hal/runtest
chmod +x /opt/hal-core/src/hal/components/matrix/cpp_interface/make
cd /opt/hal-core/src/hal/components/matrix/hal/ && ./make_halmodule
cd /opt/hal-core/src/hal/components/matrix/cpp_interface/ && make