This repository was archived by the owner on Feb 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dev.sh
More file actions
executable file
Β·53 lines (44 loc) Β· 1.42 KB
/
setup_dev.sh
File metadata and controls
executable file
Β·53 lines (44 loc) Β· 1.42 KB
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
#!/bin/bash
echo "π Setting up coffee maker firmware development environment..."
# Install pre-commit if not available
if ! command -v pre-commit &> /dev/null; then
echo "π¦ Installing pre-commit..."
pip3 install pre-commit
fi
# Install pre-commit hooks
echo "π§ Installing pre-commit hooks..."
pre-commit install
# Install ARM toolchain if not available
if ! command -v arm-none-eabi-gcc &> /dev/null; then
echo "π§ Installing ARM toolchain..."
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install arm-none-eabi-gcc
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi
fi
fi
# Install quality tools
echo "π Installing quality analysis tools..."
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install cppcheck
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -y cppcheck
fi
# Install Node.js tools for duplicate detection
if command -v npm &> /dev/null; then
npm install -g jscpd lizard
fi
# Make scripts executable
chmod +x scripts/*.sh
chmod +x scripts/*.py
# Initial build test
echo "ποΈ Testing initial build..."
make clean && make
echo "β
Development environment setup complete!"
echo ""
echo "Next steps:"
echo "1. Connect STM32F4 hardware"
echo "2. Run 'make flash' to deploy firmware"
echo "3. Run 'make debug' for debugging session"
echo "4. All commits will automatically run quality checks"