forked from grotius-cnc/hal-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake
executable file
·39 lines (30 loc) · 1.21 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
#!/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
# Compile hal-core
cd /opt/hal-core/src/
./configure --disable-gtk --with-realtime=uspace
./make && sudo make setuid
# 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:
# To be reviewed compiling Rpi4.
# chmod +x /opt/hal-core/src/hal/components/dofs/make
# cd /opt/hal-core/src/hal/components/dofs/ && ./make
# Remove the actual halcmd that came with the image
sudo rm /usr/bin/halcmd
# Make a symbolic from new halcmd link for system wide usage
ln -s /opt/hal-core/bin/halcmd /usr/bin/halcmd