Merge branch 'develop' of github.com:tsukumijima/px4_drv into develop

This commit is contained in:
tsukumi
2023-05-28 17:14:50 +00:00
3 changed files with 44 additions and 0 deletions

View File

@@ -119,6 +119,17 @@ gcc, make, カーネルソース/ヘッダ, dkms がインストールされて
$ sudo cp -a ./ /usr/src/px4_drv-0.2.1
$ sudo dkms add px4_drv/0.2.1
$ sudo dkms install px4_drv/0.2.1
#### ビルド済みバイナリを Debian パッケージからインストールする
`build_deb.sh` を実行すると、
- px4-drv-***.deb
- px4-drv-dkms-***.deb
の2つのファイルが生成されます。
```
sudo apt install ./px4-drv*.deb -y
```
とする事でインストールができます。
### 3. 確認

26
build_deb.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
set -CEuo pipefail
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
VER_MAJ=0
VER_MIN=2
VER_BUILD=1
cd $SCRIPT_DIR
# Prep
sudo apt install dkms dpkg
# Source pkg
dkms mkdeb
# Binary pkg
mkdir -p ./installer/lib/firmware
cp ./winusb/pkg/DriverHost_PX4/it930x-firmware.bin ./installer/lib/firmware
cp -r ./debian ./installer/DEBIAN
dpkg-deb --build installer
# Clean up, and then place them all
rm -rf installer
mv ./installer.deb ../px4-drv_${VER_MAJ}.${VER_MIN}.${VER_BUILD}_all.deb -v

7
debian/control vendored Normal file
View File

@@ -0,0 +1,7 @@
Maintainer: nns779 <25547272+nns779@users.noreply.github.com>
Build-Depends: debhelper (>= 9), dpkg
Package: px4-drv
Architecture: all
Depends: px4-drv-dkms
Description: Binary blob(s) for the it930x driver
Version: 0.2.1