-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
55 lines (43 loc) · 2.66 KB
/
Copy pathentrypoint.sh
File metadata and controls
55 lines (43 loc) · 2.66 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
54
55
#!/bin/bash
set -e
# Banner
cat << 'EOF'
$$$$$$$\ $$\ $$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$$$\
$$ __$$\ $$ | $$ __$$\\__$$ __|$$$\ $$$ |$$ ___$$\ $$ __$$\ $$ __$$\ $$$\ $$$ |$$ __$$\ $$ | $$ |$$ _____|
$$ | $$ | $$$$$$\ $$$$$$$\ $$ | $$\ $$$$$$\ $$$$$$\ $$ / \__| $$ | $$$$\ $$$$ |\_/ $$ |\__/ $$ | $$ / \__|$$$$\ $$$$ |$$ / $$ |$$ |$$ / $$ |
$$ | $$ |$$ __$$\ $$ _____|$$ | $$ |$$ __$$\ $$ __$$\ \$$$$$$\ $$ | $$\$$\$$ $$ | $$$$$ / $$$$$$ |$$$$$$\ $$ | $$\$$\$$ $$ |$$$$$$$$ |$$$$$ / $$$$$\
$$ | $$ |$$ / $$ |$$ / $$$$$$ / $$$$$$$$ |$$ | \__| \____$$\ $$ | $$ \$$$ $$ | \___$$\ $$ ____/ \______|$$ | $$ \$$$ $$ |$$ __$$ |$$ $$< $$ __|
$$ | $$ |$$ | $$ |$$ | $$ _$$< $$ ____|$$ | $$\ $$ | $$ | $$ |\$ /$$ |$$\ $$ |$$ | $$ | $$\ $$ |\$ /$$ |$$ | $$ |$$ |\$$\ $$ |
$$$$$$$ |\$$$$$$ |\$$$$$$$\ $$ | \$$\ \$$$$$$$\ $$ | \$$$$$$ | $$ | $$ | \_/ $$ |\$$$$$$ |$$$$$$$$\ \$$$$$$ |$$ | \_/ $$ |$$ | $$ |$$ | \$$\ $$$$$$$$\
\_______/ \______/ \_______|\__| \__| \_______|\__| \______/ \__| \__| \__| \______/ \________| \______/ \__| \__|\__| \__|\__| \__|\________|
STMicroelectronics STM32CubeCLT for Docker
Creative by Uoohyo
https://github.com/uoohyo
EOF
# Variables
CUBECLT_INSTALL_DIR="/opt/st/stm32cubeclt"
echo "=== STM32CubeCLT ${CUBECLT_VERSION} is ready ==="
echo ""
echo "Available tools:"
# Check and display available tools
if command -v arm-none-eabi-gcc &> /dev/null; then
echo " • ARM GCC: $(arm-none-eabi-gcc --version | head -1)"
else
echo " ✗ ARM GCC: not found"
fi
if command -v STM32_Programmer_CLI &> /dev/null; then
echo " • STM32CubeProgrammer CLI: $(STM32_Programmer_CLI --version 2>&1 | head -1 || echo 'installed')"
fi
if [ -d "${CUBECLT_INSTALL_DIR}/STM32CubeMX" ]; then
echo " • STM32CubeMX: installed"
fi
if command -v cmake &> /dev/null; then
echo " • CMake: $(cmake --version | head -1)"
fi
echo ""
echo "Environment:"
echo " • Installation: ${CUBECLT_INSTALL_DIR}"
echo " • Workspace: /workspace"
echo ""
# Run Command
exec "$@"