mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-10 09:12:05 +08:00
36fc190bc8
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
24 lines
573 B
Bash
Executable File
24 lines
573 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR/..
|
|
|
|
read -p "Is the kernel repo up to date? " -n 1 -r
|
|
echo
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
echo "Update it and run again!"
|
|
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
|
|
fi
|
|
|
|
read -p "Is the firmware repo up to date? Copied in the new abl if needed? " -n 1 -r
|
|
echo
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
echo "Update it and run again!"
|
|
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
|
|
fi
|
|
|
|
./build_kernel.sh
|
|
./build_system.sh
|
|
internal/package_ota.py
|
|
internal/ota_push.sh staging
|