build_release: simplify panda building (#29252)

* build_release: simplify panda building

* cleanup
old-commit-hash: 1e3bb5be7e
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent c0fbbd4b36
commit a7ec9933c8
  1. 16
      release/build_release.sh

@ -52,18 +52,13 @@ echo "[-] committing version $VERSION T=$SECONDS"
git add -f . git add -f .
git commit -a -m "openpilot v$VERSION release" git commit -a -m "openpilot v$VERSION release"
# Build panda firmware
pushd panda/
CERT=/data/pandaextra/certs/release RELEASE=1 scons -u .
rm -rf /tmp/panda_obj/
mkdir /tmp/panda_obj/
mv board/obj/panda.bin.signed board/obj/panda_h7.bin.signed board/obj/bootstub.panda.bin board/obj/bootstub.panda_h7.bin /tmp/panda_obj/
popd
# Build # Build
export PYTHONPATH="$BUILD_DIR" export PYTHONPATH="$BUILD_DIR"
scons -j$(nproc) scons -j$(nproc)
# release panda fw
CERT=/data/pandaextra/certs/release RELEASE=1 scons -j$(nproc) panda/
# Ensure no submodules in release # Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:" echo "submodules found:"
@ -79,14 +74,9 @@ find . -name '*.os' -delete
find . -name '*.pyc' -delete find . -name '*.pyc' -delete
find . -name 'moc_*' -delete find . -name 'moc_*' -delete
find . -name '__pycache__' -delete find . -name '__pycache__' -delete
rm -rf panda/board panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/ rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/supercombo.onnx rm selfdrive/modeld/models/supercombo.onnx
# Move back signed panda fw
mkdir -p panda/board/obj
mv /tmp/panda_obj/* panda/board/obj/
# Restore third_party # Restore third_party
git checkout third_party/ git checkout third_party/

Loading…
Cancel
Save