mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-23 10:03:41 +08:00
Add a scalable .deb packaging framework for VOXL2, built on the existing cmake/package.cmake CPack infrastructure. The framework handles multi-processor boards by having the POSIX (_default) build own the .deb and pull in the companion SLPI build's artifacts. Board-specific files: - cmake/package.cmake: CPack variable overrides (name, deps, version) - cmake/install.cmake: install() rules for all .deb contents - debian/postinst: px4-* symlinks, DSP signature, directory setup - debian/prerm: service stop, symlink cleanup - debian/voxl-px4.service: systemd unit (after sscrpcd) Infrastructure changes: - cmake/package.cmake: hook for board-specific CPack overrides - platforms/posix/CMakeLists.txt: hook for board install.cmake - Makefile: %_deb pattern rule (build _default, then cpack -G DEB) - CI: auto-discover _deb targets, collect .deb artifacts, upload to GitHub Releases Future boards: add cmake/package.cmake + cmake/install.cmake and CI discovers it automatically. No new file formats or tools needed. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
15 lines
296 B
Bash
Executable File
15 lines
296 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Stop voxl-px4 service if running
|
|
if command -v systemctl > /dev/null 2>&1; then
|
|
systemctl stop voxl-px4 2>/dev/null || true
|
|
fi
|
|
|
|
# Remove px4-* symlinks
|
|
for f in /usr/bin/px4-*; do
|
|
if [ -L "$f" ] && [ "$(readlink "$f")" = "px4" ]; then
|
|
rm -f "$f"
|
|
fi
|
|
done
|