use scons to build panda fw (#20457)

* use scons to build panda fw

* add arm gcc to dockerfile

* install gcc on macOS

* pandad shutdown test is flaky and broken due to faster startup

* bump panda
old-commit-hash: 0e338d2b91f35af6a7222eeb414951cd88784092
This commit is contained in:
Willem Melching
2021-03-24 14:44:39 +01:00
committed by GitHub
parent eae1fa481c
commit 285e086d80
10 changed files with 31 additions and 47 deletions
-10
View File
@@ -64,16 +64,6 @@ git commit -a -m "openpilot v$VERSION release"
# Run build
SCONS_CACHE=1 scons -j3
echo "[-] testing panda build T=$SECONDS"
pushd panda/board/
make bin
popd
echo "[-] testing pedal build T=$SECONDS"
pushd panda/board/pedal
make obj/comma.bin
popd
if [ ! -z "$CI_PUSH" ]; then
echo "[-] Pushing to $CI_PUSH T=$SECONDS"
git remote set-url origin git@github.com:commaai/openpilot.git
+8 -7
View File
@@ -41,13 +41,9 @@ echo "#define COMMA_VERSION \"$VERSION-release\"" > selfdrive/common/version.h
git commit -m "openpilot v$VERSION"
# Build signed panda firmware
pushd panda/board/
cp -r /tmp/pandaextra /data/openpilot/
RELEASE=1 make obj/panda.bin
mv obj/panda.bin /tmp/panda.bin
make clean
mv /tmp/panda.bin obj/panda.bin.signed
rm -rf /data/openpilot/pandaextra
pushd panda/
CERT=/tmp/pandaextra/certs/release RELEASE=1 scons
mv board/obj/panda.bin.signed /tmp/panda.bin.signed
popd
# Build stuff
@@ -65,8 +61,13 @@ find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
# Move back signed panda fw
mkdir -p panda/board/obj
mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
# Restore phonelibs
git checkout phonelibs/
+8 -5
View File
@@ -58,11 +58,9 @@ git status
git commit -a -m "openpilot v$VERSION release"
# Build panda firmware
pushd panda/board/
make obj/panda.bin
mv obj/panda.bin /tmp/panda.bin
make clean
mv /tmp/panda.bin obj/panda.bin
pushd panda/
scons
mv board/obj/panda.bin.signed /tmp/panda.bin.signed
popd
# Build
@@ -79,8 +77,13 @@ find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/ apk/
# Move back signed panda fw
mkdir -p panda/board/obj
mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
# Restore phonelibs
git checkout phonelibs/
-1
View File
@@ -513,7 +513,6 @@ panda/__init__.py
panda/VERSION
panda/board/**
panda/certs/**
panda/common/**
panda/crypto/**
panda/python/**