chore(cpn): refactor firmware flashing to use edgetx rs_dfu (#6521)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Neil Horne
2025-09-14 09:59:34 +10:00
committed by GitHub
co-authored by raphaelcoeffic
parent 23830197b3
commit dbce54dec6
105 changed files with 2926 additions and 3676 deletions
-6
View File
@@ -69,12 +69,6 @@ jobs:
- name: Install dependencies
run: python3 -m pip install --upgrade pip Pillow lz4 clang jinja2
- name: Install libusb
run: brew install libusb
- name: Install dfu-util
run: brew install dfu-util
- name: Install SDL2
run: brew install SDL2
-40
View File
@@ -71,46 +71,6 @@ jobs:
echo $PATH
$Python3_ROOT_DIR/python3.exe -m pip install clang jinja2 lz4 pillow
- name: Setup dfu-util and libusb
run: |
#!/bin/bash
set -e
echo "Setting up dfu-util and libusb..."
# Create target directory
mkdir -p dfu-util-0.11
# Download and extract dfu-util
echo "Downloading dfu-util binaries..."
curl -LO https://dfu-util.sourceforge.net/releases/dfu-util-0.11-binaries.tar.xz
tar -xf dfu-util-0.11-binaries.tar.xz
cp dfu-util-0.11-binaries/win64/dfu-util.exe dfu-util-0.11/
# Install 7zip if not available
if ! command -v 7z &> /dev/null; then
echo "Installing 7zip..."
sudo apt-get update -qq
sudo apt-get install -y p7zip-full
fi
# Download and extract libusb
echo "Downloading libusb..."
curl -LO https://github.com/libusb/libusb/releases/download/v1.0.29/libusb-1.0.29.7z
7z x -olibusb-1.0.29 libusb-1.0.29.7z > /dev/null
cp libusb-1.0.29/VS2022/MS64/dll/* dfu-util-0.11/
# Clean up temporary files
rm -f dfu-util-0.11-binaries.tar.xz libusb-1.0.29.7z
rm -rf dfu-util-0.11-binaries libusb-1.0.29
echo "Setup complete. Contents of dfu-util-0.11:"
ls -la dfu-util-0.11/
echo "LIBUSB1_ROOT_DIR=$(pwd)/dfu-util-0.11" >> $GITHUB_ENV
echo "DFU_UTIL_ROOT_DIR=$(pwd)/dfu-util-0.11" >> $GITHUB_ENV
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1