mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-06 06:43:53 +08:00
20 lines
372 B
Bash
Executable File
20 lines
372 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Config
|
|
OUTPUT_DIR="output"
|
|
KERNEL_IMAGE="boot.img"
|
|
|
|
# Log colors
|
|
GREEN="\033[0;32m"
|
|
NO_COLOR='\033[0m'
|
|
|
|
# Make sure we're in the correct spot
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
# Flash bootloader
|
|
fastboot flash boot_a $OUTPUT_DIR/$KERNEL_IMAGE
|
|
fastboot flash boot_b $OUTPUT_DIR/$KERNEL_IMAGE
|
|
|
|
echo -e "${GREEN}Done!"
|