mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
@@ -513,7 +513,6 @@ panda/__init__.py
|
||||
panda/VERSION
|
||||
panda/board/**
|
||||
panda/certs/**
|
||||
panda/common/**
|
||||
panda/crypto/**
|
||||
panda/python/**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user