mirror of https://github.com/ArduPilot/ardupilot
Tools: force pymonocypher version
This commit is contained in:
parent
3f715cd6cc
commit
360f84d3a8
|
@ -231,7 +231,7 @@ def sign_firmware(image, private_keyfile):
|
||||||
try:
|
try:
|
||||||
import monocypher
|
import monocypher
|
||||||
except ImportError:
|
except ImportError:
|
||||||
Logs.error("Please install monocypher with: python3 -m pip install pymonocypher")
|
Logs.error("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
key = open(private_keyfile, 'r').read()
|
key = open(private_keyfile, 'r').read()
|
||||||
|
|
|
@ -366,7 +366,7 @@ for t in $CI_BUILD_TARGET; do
|
||||||
echo "Building signed firmwares"
|
echo "Building signed firmwares"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y python3-dev
|
sudo apt-get install -y python3-dev
|
||||||
python3 -m pip install pymonocypher
|
python3 -m pip install pymonocypher==3.1.3.2
|
||||||
./Tools/scripts/signing/generate_keys.py testkey
|
./Tools/scripts/signing/generate_keys.py testkey
|
||||||
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
|
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
|
||||||
$waf copter
|
$waf copter
|
||||||
|
|
|
@ -12,7 +12,7 @@ firmware doesn't match any of the public keys in the bootloader.
|
||||||
To generate a public/private key pair, run the following command:
|
To generate a public/private key pair, run the following command:
|
||||||
|
|
||||||
```
|
```
|
||||||
python3 -m pip install pymonocypher
|
python3 -m pip install pymonocypher==3.1.3.2
|
||||||
Tools/scripts/signing/generate_keys.py NAME
|
Tools/scripts/signing/generate_keys.py NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import base64
|
||||||
try:
|
try:
|
||||||
import monocypher
|
import monocypher
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Please install monocypher with: python3 -m pip install pymonocypher")
|
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import base64
|
||||||
try:
|
try:
|
||||||
import monocypher
|
import monocypher
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Please install monocypher with: python3 -m pip install pymonocypher")
|
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# get command line arguments
|
# get command line arguments
|
||||||
|
|
|
@ -10,7 +10,7 @@ import json, base64, zlib
|
||||||
try:
|
try:
|
||||||
import monocypher
|
import monocypher
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Please install monocypher with: python3 -m pip install pymonocypher")
|
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
key_len = 32
|
key_len = 32
|
||||||
|
|
Loading…
Reference in New Issue